Lines Matching refs:subop
596 const struct nand_subop *subop, in anfc_parse_instructions() argument
610 for (op_id = 0; op_id < subop->ninstrs; op_id++) { in anfc_parse_instructions()
615 instr = &subop->instrs[op_id]; in anfc_parse_instructions()
628 offset = nand_subop_get_addr_start_off(subop, op_id); in anfc_parse_instructions()
629 naddrs = nand_subop_get_num_addr_cyc(subop, op_id); in anfc_parse_instructions()
645 offset = nand_subop_get_data_start_off(subop, op_id); in anfc_parse_instructions()
648 nfc_op->len = nand_subop_get_data_len(subop, op_id); in anfc_parse_instructions()
724 const struct nand_subop *subop, in anfc_misc_data_type_exec() argument
731 ret = anfc_parse_instructions(chip, subop, &nfc_op); in anfc_misc_data_type_exec()
748 const struct nand_subop *subop) in anfc_param_read_type_exec() argument
750 return anfc_misc_data_type_exec(chip, subop, PROG_RDPARAM); in anfc_param_read_type_exec()
754 const struct nand_subop *subop) in anfc_data_read_type_exec() argument
768 if (subop->instrs[0].ctx.cmd.opcode == NAND_CMD_RNDOUT && in anfc_data_read_type_exec()
769 subop->instrs[2].ctx.cmd.opcode == NAND_CMD_RNDOUTSTART) in anfc_data_read_type_exec()
772 return anfc_misc_data_type_exec(chip, subop, prog_reg); in anfc_data_read_type_exec()
776 const struct nand_subop *subop) in anfc_param_write_type_exec() argument
778 return anfc_misc_data_type_exec(chip, subop, PROG_SET_FEATURE); in anfc_param_write_type_exec()
782 const struct nand_subop *subop) in anfc_data_write_type_exec() argument
784 return anfc_misc_data_type_exec(chip, subop, PROG_PGPROG); in anfc_data_write_type_exec()
788 const struct nand_subop *subop, in anfc_misc_zerolen_type_exec() argument
795 ret = anfc_parse_instructions(chip, subop, &nfc_op); in anfc_misc_zerolen_type_exec()
813 const struct nand_subop *subop) in anfc_status_type_exec() argument
820 if (subop->instrs[0].ctx.cmd.opcode != NAND_CMD_STATUS) in anfc_status_type_exec()
823 ret = anfc_misc_zerolen_type_exec(chip, subop, PROG_STATUS); in anfc_status_type_exec()
828 memcpy(subop->instrs[1].ctx.data.buf.in, &tmp, 1); in anfc_status_type_exec()
834 const struct nand_subop *subop) in anfc_reset_type_exec() argument
836 return anfc_misc_zerolen_type_exec(chip, subop, PROG_RST); in anfc_reset_type_exec()
840 const struct nand_subop *subop) in anfc_erase_type_exec() argument
842 return anfc_misc_zerolen_type_exec(chip, subop, PROG_ERASE); in anfc_erase_type_exec()
846 const struct nand_subop *subop) in anfc_wait_type_exec() argument
852 ret = anfc_parse_instructions(chip, subop, &nfc_op); in anfc_wait_type_exec()