Lines Matching refs:q_op

1553 			       struct qcom_op *q_op)
1581 q_op->flag = OP_PROGRAM_PAGE;
1602 struct qcom_op *q_op)
1616 ret = qcom_op_cmd_mapping(chip, instr->ctx.cmd.opcode, q_op);
1620 q_op->cmd_reg = cpu_to_le32(ret);
1621 q_op->rdy_delay_ns = instr->delay_ns;
1630 q_op->addr1_reg |= cpu_to_le32(addrs[i] << (i * 8));
1633 q_op->addr2_reg |= cpu_to_le32(addrs[4]);
1635 q_op->rdy_delay_ns = instr->delay_ns;
1639 q_op->data_instr = instr;
1640 q_op->data_instr_idx = op_id;
1641 q_op->rdy_delay_ns = instr->delay_ns;
1644 q_op->rdy_delay_ns = instr->delay_ns;
1648 q_op->rdy_timeout_ms = instr->ctx.waitrdy.timeout_ms;
1649 q_op->rdy_delay_ns = instr->delay_ns;
1694 struct qcom_op q_op = {};
1703 ret = qcom_parse_instructions(chip, subop, &q_op);
1717 nandc->regs->cmd = q_op.cmd_reg;
1744 instr = q_op.data_instr;
1745 op_id = q_op.data_instr_idx;
1757 struct qcom_op q_op = {};
1763 ret = qcom_parse_instructions(chip, subop, &q_op);
1774 nandc->regs->cmd = q_op.cmd_reg;
1775 nandc->regs->addr0 = q_op.addr1_reg;
1776 nandc->regs->addr1 = q_op.addr2_reg;
1791 instr = q_op.data_instr;
1792 op_id = q_op.data_instr_idx;
1806 struct qcom_op q_op = {};
1810 ret = qcom_parse_instructions(chip, subop, &q_op);
1814 if (q_op.flag == OP_PROGRAM_PAGE) {
1816 } else if (q_op.cmd_reg == cpu_to_le32(OP_BLOCK_ERASE)) {
1817 q_op.cmd_reg |= cpu_to_le32(PAGE_ACC | LAST_PAGE);
1818 nandc->regs->addr0 = q_op.addr1_reg;
1819 nandc->regs->addr1 = q_op.addr2_reg;
1823 } else if (q_op.cmd_reg != cpu_to_le32(OP_RESET_DEVICE)) {
1834 nandc->regs->cmd = q_op.cmd_reg;
1838 if (q_op.cmd_reg == cpu_to_le32(OP_BLOCK_ERASE))
1851 qcom_delay_ns(q_op.rdy_delay_ns);
1852 ret = qcom_wait_rdy_poll(chip, q_op.rdy_timeout_ms);
1862 struct qcom_op q_op = {};
1873 ret = qcom_parse_instructions(chip, subop, &q_op);
1877 q_op.cmd_reg |= cpu_to_le32(PAGE_ACC | LAST_PAGE);
1885 nandc->regs->cmd = q_op.cmd_reg;
1919 instr = q_op.data_instr;
1920 op_id = q_op.data_instr_idx;
1954 ret = qcom_wait_rdy_poll(chip, q_op.rdy_timeout_ms);