• Home
  • Raw
  • Download

Lines Matching refs:subop

1960 	struct nand_subop subop;  member
2034 unsigned int instr_offset = ctx->subop.first_instr_start_off; in nand_op_parser_match_pat()
2036 const struct nand_op_instr *instr = ctx->subop.instrs; in nand_op_parser_match_pat()
2097 ctx->subop.ninstrs = ninstrs; in nand_op_parser_match_pat()
2098 ctx->subop.last_instr_end_off = instr_offset; in nand_op_parser_match_pat()
2110 pr_debug("executing subop (CS%d):\n", ctx->subop.cs); in nand_op_parser_trace()
2115 if (instr == &ctx->subop.instrs[0]) in nand_op_parser_trace()
2120 if (instr == &ctx->subop.instrs[ctx->subop.ninstrs - 1]) in nand_op_parser_trace()
2134 if (a->subop.ninstrs < b->subop.ninstrs) in nand_op_parser_cmp_ctx()
2136 else if (a->subop.ninstrs > b->subop.ninstrs) in nand_op_parser_cmp_ctx()
2139 if (a->subop.last_instr_end_off < b->subop.last_instr_end_off) in nand_op_parser_cmp_ctx()
2141 else if (a->subop.last_instr_end_off > b->subop.last_instr_end_off) in nand_op_parser_cmp_ctx()
2174 .subop.cs = op->cs, in nand_op_parser_exec_op()
2175 .subop.instrs = op->instrs, in nand_op_parser_exec_op()
2181 while (ctx.subop.instrs < op->instrs + op->ninstrs) { in nand_op_parser_exec_op()
2211 ret = pattern->exec(chip, &ctx.subop); in nand_op_parser_exec_op()
2220 ctx.subop.instrs = ctx.subop.instrs + ctx.subop.ninstrs; in nand_op_parser_exec_op()
2221 if (ctx.subop.last_instr_end_off) in nand_op_parser_exec_op()
2222 ctx.subop.instrs -= 1; in nand_op_parser_exec_op()
2224 ctx.subop.first_instr_start_off = ctx.subop.last_instr_end_off; in nand_op_parser_exec_op()
2237 static bool nand_subop_instr_is_valid(const struct nand_subop *subop, in nand_subop_instr_is_valid() argument
2240 return subop && instr_idx < subop->ninstrs; in nand_subop_instr_is_valid()
2243 static unsigned int nand_subop_get_start_off(const struct nand_subop *subop, in nand_subop_get_start_off() argument
2249 return subop->first_instr_start_off; in nand_subop_get_start_off()
2263 unsigned int nand_subop_get_addr_start_off(const struct nand_subop *subop, in nand_subop_get_addr_start_off() argument
2266 if (WARN_ON(!nand_subop_instr_is_valid(subop, instr_idx) || in nand_subop_get_addr_start_off()
2267 subop->instrs[instr_idx].type != NAND_OP_ADDR_INSTR)) in nand_subop_get_addr_start_off()
2270 return nand_subop_get_start_off(subop, instr_idx); in nand_subop_get_addr_start_off()
2285 unsigned int nand_subop_get_num_addr_cyc(const struct nand_subop *subop, in nand_subop_get_num_addr_cyc() argument
2290 if (WARN_ON(!nand_subop_instr_is_valid(subop, instr_idx) || in nand_subop_get_num_addr_cyc()
2291 subop->instrs[instr_idx].type != NAND_OP_ADDR_INSTR)) in nand_subop_get_num_addr_cyc()
2294 start_off = nand_subop_get_addr_start_off(subop, instr_idx); in nand_subop_get_num_addr_cyc()
2296 if (instr_idx == subop->ninstrs - 1 && in nand_subop_get_num_addr_cyc()
2297 subop->last_instr_end_off) in nand_subop_get_num_addr_cyc()
2298 end_off = subop->last_instr_end_off; in nand_subop_get_num_addr_cyc()
2300 end_off = subop->instrs[instr_idx].ctx.addr.naddrs; in nand_subop_get_num_addr_cyc()
2317 unsigned int nand_subop_get_data_start_off(const struct nand_subop *subop, in nand_subop_get_data_start_off() argument
2320 if (WARN_ON(!nand_subop_instr_is_valid(subop, instr_idx) || in nand_subop_get_data_start_off()
2321 !nand_instr_is_data(&subop->instrs[instr_idx]))) in nand_subop_get_data_start_off()
2324 return nand_subop_get_start_off(subop, instr_idx); in nand_subop_get_data_start_off()
2339 unsigned int nand_subop_get_data_len(const struct nand_subop *subop, in nand_subop_get_data_len() argument
2344 if (WARN_ON(!nand_subop_instr_is_valid(subop, instr_idx) || in nand_subop_get_data_len()
2345 !nand_instr_is_data(&subop->instrs[instr_idx]))) in nand_subop_get_data_len()
2348 start_off = nand_subop_get_data_start_off(subop, instr_idx); in nand_subop_get_data_len()
2350 if (instr_idx == subop->ninstrs - 1 && in nand_subop_get_data_len()
2351 subop->last_instr_end_off) in nand_subop_get_data_len()
2352 end_off = subop->last_instr_end_off; in nand_subop_get_data_len()
2354 end_off = subop->instrs[instr_idx].ctx.data.len; in nand_subop_get_data_len()