Lines Matching refs:instrs
1137 struct nand_op_instr instrs[] = { in nand_sp_exec_read_page_op() local
1144 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_sp_exec_read_page_op()
1152 instrs[0].ctx.cmd.opcode = NAND_CMD_READOOB; in nand_sp_exec_read_page_op()
1155 instrs[0].ctx.cmd.opcode = NAND_CMD_READ1; in nand_sp_exec_read_page_op()
1166 instrs[1].ctx.addr.naddrs++; in nand_sp_exec_read_page_op()
1179 struct nand_op_instr instrs[] = { in nand_lp_exec_read_page_op() local
1187 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_lp_exec_read_page_op()
1203 instrs[1].ctx.addr.naddrs++; in nand_lp_exec_read_page_op()
1275 struct nand_op_instr instrs[] = { in nand_read_param_page_op() local
1283 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_read_param_page_op()
1332 struct nand_op_instr instrs[] = { in nand_change_read_column_op() local
1339 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_change_read_column_op()
1350 instrs[3].ctx.data.force_8bit = force_8bit; in nand_change_read_column_op()
1408 struct nand_op_instr instrs[] = { in nand_exec_prog_page_op() local
1422 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_exec_prog_page_op()
1433 instrs[2].ctx.addr.naddrs = naddrs; in nand_exec_prog_page_op()
1450 instrs[0].ctx.cmd.opcode = NAND_CMD_READOOB; in nand_exec_prog_page_op()
1453 instrs[0].ctx.cmd.opcode = NAND_CMD_READ1; in nand_exec_prog_page_op()
1459 op.instrs++; in nand_exec_prog_page_op()
1521 struct nand_op_instr instrs[] = { in nand_prog_page_end_op() local
1527 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_prog_page_end_op()
1641 struct nand_op_instr instrs[] = { in nand_change_write_column_op() local
1646 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_change_write_column_op()
1653 instrs[2].ctx.data.force_8bit = force_8bit; in nand_change_write_column_op()
1695 struct nand_op_instr instrs[] = { in nand_readid_op() local
1701 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_readid_op()
1710 instrs[2].ctx.data.len *= 2; in nand_readid_op()
1711 instrs[2].ctx.data.buf.in = ddrbuf; in nand_readid_op()
1755 struct nand_op_instr instrs[] = { in nand_status_op() local
1760 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_status_op()
1765 instrs[1].ctx.data.len *= 2; in nand_status_op()
1766 instrs[1].ctx.data.buf.in = ddrstatus; in nand_status_op()
1801 struct nand_op_instr instrs[] = { in nand_exit_status_op() local
1804 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_exit_status_op()
1836 struct nand_op_instr instrs[] = { in nand_erase_op() local
1844 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_erase_op()
1847 instrs[1].ctx.addr.naddrs++; in nand_erase_op()
1895 struct nand_op_instr instrs[] = { in nand_set_features_op() local
1905 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_set_features_op()
1945 struct nand_op_instr instrs[] = { in nand_get_features_op() local
1954 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_get_features_op()
1959 instrs[3].ctx.data.len *= 2; in nand_get_features_op()
1960 instrs[3].ctx.data.buf.in = ddrbuf; in nand_get_features_op()
1983 struct nand_op_instr instrs[] = { in nand_wait_rdy_op() local
1987 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_wait_rdy_op()
2016 struct nand_op_instr instrs[] = { in nand_reset_op() local
2022 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_reset_op()
2057 struct nand_op_instr instrs[] = { in nand_read_data_op() local
2060 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_read_data_op()
2064 instrs[0].ctx.data.force_8bit = force_8bit; in nand_read_data_op()
2078 instrs[0].ctx.data.len *= 2; in nand_read_data_op()
2079 instrs[0].ctx.data.buf.in = ddrbuf; in nand_read_data_op()
2138 struct nand_op_instr instrs[] = { in nand_write_data_op() local
2141 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in nand_write_data_op()
2143 instrs[0].ctx.data.force_8bit = force_8bit; in nand_write_data_op()
2172 const struct nand_op_instr *instrs; member
2249 const struct nand_op_instr *end = ctx->instrs + ctx->ninstrs; in nand_op_parser_match_pat()
2250 const struct nand_op_instr *instr = ctx->subop.instrs; in nand_op_parser_match_pat()
2327 instr = &ctx->instrs[i]; in nand_op_parser_trace()
2329 if (instr == &ctx->subop.instrs[0]) in nand_op_parser_trace()
2334 if (instr == &ctx->subop.instrs[ctx->subop.ninstrs - 1]) in nand_op_parser_trace()
2389 .subop.instrs = op->instrs, in nand_op_parser_exec_op()
2390 .instrs = op->instrs, in nand_op_parser_exec_op()
2395 while (ctx.subop.instrs < op->instrs + op->ninstrs) { in nand_op_parser_exec_op()
2434 ctx.subop.instrs = ctx.subop.instrs + ctx.subop.ninstrs; in nand_op_parser_exec_op()
2436 ctx.subop.instrs -= 1; in nand_op_parser_exec_op()
2481 subop->instrs[instr_idx].type != NAND_OP_ADDR_INSTR)) in nand_subop_get_addr_start_off()
2505 subop->instrs[instr_idx].type != NAND_OP_ADDR_INSTR)) in nand_subop_get_num_addr_cyc()
2514 end_off = subop->instrs[instr_idx].ctx.addr.naddrs; in nand_subop_get_num_addr_cyc()
2535 !nand_instr_is_data(&subop->instrs[instr_idx]))) in nand_subop_get_data_start_off()
2559 !nand_instr_is_data(&subop->instrs[instr_idx]))) in nand_subop_get_data_len()
2568 end_off = subop->instrs[instr_idx].ctx.data.len; in nand_subop_get_data_len()