Lines Matching full:bind
450 * Register a new BIND/BINDN operation with @p state.
454 * @param skip_in The number of input elements to skip after each bind.
456 * the current offset after each bind. If false, the input skip should be
458 * @param skip_out The number of output elements to skip after each bind.
482 SPROM_OP_BAD(state, "BIND outside of variable definition\n"); in bhnd_sprom_opcode_set_bind()
486 /* Cannot overwite an existing bind definition */ in bhnd_sprom_opcode_set_bind()
488 SPROM_OP_BAD(state, "BIND overwrites existing definition\n"); in bhnd_sprom_opcode_set_bind()
494 SPROM_OP_BAD(state, "BIND with zero count\n"); in bhnd_sprom_opcode_set_bind()
529 state->var.bind.count = count; in bhnd_sprom_opcode_set_bind()
530 state->var.bind.skip_in = skip_in; in bhnd_sprom_opcode_set_bind()
531 state->var.bind.skip_out = skip_out; in bhnd_sprom_opcode_set_bind()
533 state->var.bind.skip_in_negative = skip_in_negative; in bhnd_sprom_opcode_set_bind()
535 /* Update total bind count for the current variable */ in bhnd_sprom_opcode_set_bind()
542 * Apply and clear the current opcode bind state, if any.
562 if (state->var.bind.count > 0) { in bhnd_sprom_opcode_flush_bind()
563 skip = state->var.bind.skip_in * state->var.bind.count; in bhnd_sprom_opcode_flush_bind()
567 if (state->var.bind.skip_in_negative) { in bhnd_sprom_opcode_flush_bind()
574 /* Clear bind state */ in bhnd_sprom_opcode_flush_bind()
575 memset(&state->var.bind, 0, sizeof(state->var.bind)); in bhnd_sprom_opcode_flush_bind()
660 BHND_NV_ASSERT(!state->var.have_bind, ("stale bind state")); in bhnd_sprom_opcode_clear_var()
926 * If a variable definition contains no explicit bind in bhnd_sprom_opcode_rewrite_opcode()
936 /* Create bind with skip_in/skip_out of 1, count of 1 */ in bhnd_sprom_opcode_rewrite_opcode()
1006 /* Clear any existing bind state */ in bhnd_sprom_opcode_step()
1091 /* Set BIND state */ in bhnd_sprom_opcode_step()
1356 /* Step until we hit a bind opcode, or a new variable */ in bhnd_sprom_opcode_next_binding()
1362 /* Found next bind */ in bhnd_sprom_opcode_next_binding()
1366 BHND_NV_ASSERT(state->var.have_bind, ("missing bind")); in bhnd_sprom_opcode_next_binding()