nfc_op 623 drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_op *nfc_op) nfc_op 630 drivers/mtd/nand/raw/marvell_nand.c (u32)readl_relaxed(nfc->regs + NDCR), nfc_op->ndcb[0], nfc_op 631 drivers/mtd/nand/raw/marvell_nand.c nfc_op->ndcb[1], nfc_op->ndcb[2], nfc_op->ndcb[3]); nfc_op 633 drivers/mtd/nand/raw/marvell_nand.c writel_relaxed(to_nand_sel(marvell_nand)->ndcb0_csel | nfc_op->ndcb[0], nfc_op 635 drivers/mtd/nand/raw/marvell_nand.c writel_relaxed(nfc_op->ndcb[1], nfc->regs + NDCB0); nfc_op 636 drivers/mtd/nand/raw/marvell_nand.c writel(nfc_op->ndcb[2], nfc->regs + NDCB0); nfc_op 642 drivers/mtd/nand/raw/marvell_nand.c if (nfc_op->ndcb[0] & NDCB0_LEN_OVRD || nfc_op 643 drivers/mtd/nand/raw/marvell_nand.c NDCB0_ADDR_GET_NUM_CYC(nfc_op->ndcb[0]) >= 6) { nfc_op 645 drivers/mtd/nand/raw/marvell_nand.c writel(nfc_op->ndcb[3], nfc->regs + NDCB0); nfc_op 990 drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_op nfc_op = { nfc_op 1004 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_MONOLITHIC_RW); nfc_op 1010 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_send_cmd(chip, &nfc_op); nfc_op 1102 drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_op nfc_op = { nfc_op 1116 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_MONOLITHIC_RW); nfc_op 1122 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_send_cmd(chip, &nfc_op); nfc_op 1247 drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_op nfc_op = { nfc_op 1261 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_DBC | nfc_op 1270 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_MONOLITHIC_RW); nfc_op 1272 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_NAKED_RW); nfc_op 1274 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_LAST_NAKED_RW); nfc_op 1276 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_send_cmd(chip, &nfc_op); nfc_op 1511 drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_op nfc_op = { nfc_op 1530 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(xtype) | nfc_op 1533 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[1] |= NDCB1_ADDRS_PAGE(page); nfc_op 1534 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[2] |= NDCB2_ADDR5_PAGE(page); nfc_op 1536 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_NAKED_RW); nfc_op 1538 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_LAST_NAKED_RW); nfc_op 1543 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD2(NAND_CMD_PAGEPROG) | NDCB0_DBC; nfc_op 1549 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_send_cmd(chip, &nfc_op); nfc_op 1637 drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_op *nfc_op) nfc_op 1646 drivers/mtd/nand/raw/marvell_nand.c memset(nfc_op, 0, sizeof(struct marvell_nfc_op)); nfc_op 1658 drivers/mtd/nand/raw/marvell_nand.c nfc_op->ndcb[0] |= nfc_op 1661 drivers/mtd/nand/raw/marvell_nand.c nfc_op->ndcb[0] |= nfc_op 1665 drivers/mtd/nand/raw/marvell_nand.c nfc_op->cle_ale_delay_ns = instr->delay_ns; nfc_op 1674 drivers/mtd/nand/raw/marvell_nand.c nfc_op->ndcb[0] |= NDCB0_ADDR_CYC(naddrs); nfc_op 1677 drivers/mtd/nand/raw/marvell_nand.c nfc_op->ndcb[1] |= addrs[i] << (8 * i); nfc_op 1680 drivers/mtd/nand/raw/marvell_nand.c nfc_op->ndcb[2] |= NDCB2_ADDR5_CYC(addrs[4]); nfc_op 1682 drivers/mtd/nand/raw/marvell_nand.c nfc_op->ndcb[3] |= NDCB3_ADDR6_CYC(addrs[5]); nfc_op 1684 drivers/mtd/nand/raw/marvell_nand.c nfc_op->ndcb[3] |= NDCB3_ADDR7_CYC(addrs[6]); nfc_op 1686 drivers/mtd/nand/raw/marvell_nand.c nfc_op->cle_ale_delay_ns = instr->delay_ns; nfc_op 1690 drivers/mtd/nand/raw/marvell_nand.c nfc_op->data_instr = instr; nfc_op 1691 drivers/mtd/nand/raw/marvell_nand.c nfc_op->data_instr_idx = op_id; nfc_op 1692 drivers/mtd/nand/raw/marvell_nand.c nfc_op->ndcb[0] |= NDCB0_CMD_TYPE(TYPE_READ); nfc_op 1694 drivers/mtd/nand/raw/marvell_nand.c nfc_op->ndcb[0] |= nfc_op 1698 drivers/mtd/nand/raw/marvell_nand.c nfc_op->ndcb[3] |= round_up(len, FIFO_DEPTH); nfc_op 1700 drivers/mtd/nand/raw/marvell_nand.c nfc_op->data_delay_ns = instr->delay_ns; nfc_op 1704 drivers/mtd/nand/raw/marvell_nand.c nfc_op->data_instr = instr; nfc_op 1705 drivers/mtd/nand/raw/marvell_nand.c nfc_op->data_instr_idx = op_id; nfc_op 1706 drivers/mtd/nand/raw/marvell_nand.c nfc_op->ndcb[0] |= NDCB0_CMD_TYPE(TYPE_WRITE); nfc_op 1708 drivers/mtd/nand/raw/marvell_nand.c nfc_op->ndcb[0] |= nfc_op 1712 drivers/mtd/nand/raw/marvell_nand.c nfc_op->ndcb[3] |= round_up(len, FIFO_DEPTH); nfc_op 1714 drivers/mtd/nand/raw/marvell_nand.c nfc_op->data_delay_ns = instr->delay_ns; nfc_op 1718 drivers/mtd/nand/raw/marvell_nand.c nfc_op->rdy_timeout_ms = instr->ctx.waitrdy.timeout_ms; nfc_op 1719 drivers/mtd/nand/raw/marvell_nand.c nfc_op->rdy_delay_ns = instr->delay_ns; nfc_op 1727 drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_op *nfc_op) nfc_op 1730 drivers/mtd/nand/raw/marvell_nand.c const struct nand_op_instr *instr = nfc_op->data_instr; nfc_op 1731 drivers/mtd/nand/raw/marvell_nand.c unsigned int op_id = nfc_op->data_instr_idx; nfc_op 1759 drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_op nfc_op; nfc_op 1763 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_parse_instructions(chip, subop, &nfc_op); nfc_op 1764 drivers/mtd/nand/raw/marvell_nand.c reading = (nfc_op.data_instr->type == NAND_OP_DATA_IN_INSTR); nfc_op 1770 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_send_cmd(chip, &nfc_op); nfc_op 1776 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.cle_ale_delay_ns); nfc_op 1779 drivers/mtd/nand/raw/marvell_nand.c if (nfc_op.rdy_timeout_ms) { nfc_op 1780 drivers/mtd/nand/raw/marvell_nand.c ret = marvell_nfc_wait_op(chip, nfc_op.rdy_timeout_ms); nfc_op 1785 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.rdy_delay_ns); nfc_op 1788 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_xfer_data_pio(chip, subop, &nfc_op); nfc_op 1793 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.data_delay_ns); nfc_op 1796 drivers/mtd/nand/raw/marvell_nand.c if (nfc_op.rdy_timeout_ms) { nfc_op 1797 drivers/mtd/nand/raw/marvell_nand.c ret = marvell_nfc_wait_op(chip, nfc_op.rdy_timeout_ms); nfc_op 1802 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.rdy_delay_ns); nfc_op 1823 drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_op nfc_op; nfc_op 1826 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_parse_instructions(chip, subop, &nfc_op); nfc_op 1833 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] &= ~(NDCB0_CMD_TYPE(TYPE_MASK) | nfc_op 1837 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_NAKED_CMD); nfc_op 1840 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_NAKED_ADDR); nfc_op 1843 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_READ) | nfc_op 1847 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_WRITE) | nfc_op 1859 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_send_cmd(chip, &nfc_op); nfc_op 1861 drivers/mtd/nand/raw/marvell_nand.c if (!nfc_op.data_instr) { nfc_op 1863 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.cle_ale_delay_ns); nfc_op 1872 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_xfer_data_pio(chip, subop, &nfc_op); nfc_op 1895 drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_op nfc_op; nfc_op 1898 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_parse_instructions(chip, subop, &nfc_op); nfc_op 1900 drivers/mtd/nand/raw/marvell_nand.c ret = marvell_nfc_wait_op(chip, nfc_op.rdy_timeout_ms); nfc_op 1901 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.rdy_delay_ns); nfc_op 1909 drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_op nfc_op; nfc_op 1912 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_parse_instructions(chip, subop, &nfc_op); nfc_op 1913 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] &= ~NDCB0_CMD_TYPE(TYPE_READ); nfc_op 1914 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_READ_ID); nfc_op 1920 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_send_cmd(chip, &nfc_op); nfc_op 1926 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.cle_ale_delay_ns); nfc_op 1928 drivers/mtd/nand/raw/marvell_nand.c if (nfc_op.rdy_timeout_ms) { nfc_op 1929 drivers/mtd/nand/raw/marvell_nand.c ret = marvell_nfc_wait_op(chip, nfc_op.rdy_timeout_ms); nfc_op 1934 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.rdy_delay_ns); nfc_op 1936 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_xfer_data_pio(chip, subop, &nfc_op); nfc_op 1941 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.data_delay_ns); nfc_op 1949 drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_op nfc_op; nfc_op 1952 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_parse_instructions(chip, subop, &nfc_op); nfc_op 1953 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] &= ~NDCB0_CMD_TYPE(TYPE_READ); nfc_op 1954 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_STATUS); nfc_op 1960 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_send_cmd(chip, &nfc_op); nfc_op 1966 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.cle_ale_delay_ns); nfc_op 1968 drivers/mtd/nand/raw/marvell_nand.c if (nfc_op.rdy_timeout_ms) { nfc_op 1969 drivers/mtd/nand/raw/marvell_nand.c ret = marvell_nfc_wait_op(chip, nfc_op.rdy_timeout_ms); nfc_op 1974 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.rdy_delay_ns); nfc_op 1976 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_xfer_data_pio(chip, subop, &nfc_op); nfc_op 1981 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.data_delay_ns); nfc_op 1989 drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_op nfc_op; nfc_op 1992 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_parse_instructions(chip, subop, &nfc_op); nfc_op 1993 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_RESET); nfc_op 1999 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_send_cmd(chip, &nfc_op); nfc_op 2004 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.cle_ale_delay_ns); nfc_op 2006 drivers/mtd/nand/raw/marvell_nand.c ret = marvell_nfc_wait_op(chip, nfc_op.rdy_timeout_ms); nfc_op 2010 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.rdy_delay_ns); nfc_op 2018 drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_op nfc_op; nfc_op 2021 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_parse_instructions(chip, subop, &nfc_op); nfc_op 2022 drivers/mtd/nand/raw/marvell_nand.c nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_ERASE); nfc_op 2028 drivers/mtd/nand/raw/marvell_nand.c marvell_nfc_send_cmd(chip, &nfc_op); nfc_op 2033 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.cle_ale_delay_ns); nfc_op 2035 drivers/mtd/nand/raw/marvell_nand.c ret = marvell_nfc_wait_op(chip, nfc_op.rdy_timeout_ms); nfc_op 2039 drivers/mtd/nand/raw/marvell_nand.c cond_delay(nfc_op.rdy_delay_ns);