Lines Matching refs:instr
574 const struct nand_op_instr *instr)
580 switch (instr->type) {
582 writeb(instr->ctx.cmd.opcode,
586 for (i = 0; i < instr->ctx.addr.naddrs; i++)
587 writeb(instr->ctx.addr.addrs[i],
591 atmel_nand_data_in(nand, instr->ctx.data.buf.in,
592 instr->ctx.data.len,
593 instr->ctx.data.force_8bit);
596 atmel_nand_data_out(nand, instr->ctx.data.buf.out,
597 instr->ctx.data.len,
598 instr->ctx.data.force_8bit);
602 instr->ctx.waitrdy.timeout_ms);
643 const struct nand_op_instr *instr = &subop->instrs[i];
645 if (instr->type == NAND_OP_CMD_INSTR) {
646 nc->op.cmds[nc->op.ncmds++] = instr->ctx.cmd.opcode;
652 nc->op.addrs[nc->op.naddrs] = instr->ctx.addr.addrs[j];
663 const struct nand_op_instr *instr = subop->instrs;
666 if (instr->type == NAND_OP_DATA_IN_INSTR)
667 atmel_nand_data_in(nand, instr->ctx.data.buf.in,
668 instr->ctx.data.len,
669 instr->ctx.data.force_8bit);
671 atmel_nand_data_out(nand, instr->ctx.data.buf.out,
672 instr->ctx.data.len,
673 instr->ctx.data.force_8bit);
681 const struct nand_op_instr *instr = subop->instrs;
684 return atmel_hsmc_nand_waitrdy(nand, instr->ctx.waitrdy.timeout_ms);