Lines Matching defs:instr_idx
2577 unsigned int instr_idx)
2579 return subop && instr_idx < subop->ninstrs;
2583 unsigned int instr_idx)
2585 if (instr_idx)
2594 * @instr_idx: Index of the instruction inside the sub-operation
2603 unsigned int instr_idx)
2605 if (WARN_ON(!nand_subop_instr_is_valid(subop, instr_idx) ||
2606 subop->instrs[instr_idx].type != NAND_OP_ADDR_INSTR))
2609 return nand_subop_get_start_off(subop, instr_idx);
2616 * @instr_idx: Index of the instruction inside the sub-operation
2625 unsigned int instr_idx)
2629 if (WARN_ON(!nand_subop_instr_is_valid(subop, instr_idx) ||
2630 subop->instrs[instr_idx].type != NAND_OP_ADDR_INSTR))
2633 start_off = nand_subop_get_addr_start_off(subop, instr_idx);
2635 if (instr_idx == subop->ninstrs - 1 &&
2639 end_off = subop->instrs[instr_idx].ctx.addr.naddrs;
2648 * @instr_idx: Index of the instruction inside the sub-operation
2657 unsigned int instr_idx)
2659 if (WARN_ON(!nand_subop_instr_is_valid(subop, instr_idx) ||
2660 !nand_instr_is_data(&subop->instrs[instr_idx])))
2663 return nand_subop_get_start_off(subop, instr_idx);
2670 * @instr_idx: Index of the instruction inside the sub-operation
2679 unsigned int instr_idx)
2683 if (WARN_ON(!nand_subop_instr_is_valid(subop, instr_idx) ||
2684 !nand_instr_is_data(&subop->instrs[instr_idx])))
2687 start_off = nand_subop_get_data_start_off(subop, instr_idx);
2689 if (instr_idx == subop->ninstrs - 1 &&
2693 end_off = subop->instrs[instr_idx].ctx.data.len;