Lines Matching refs:ndcb

479 	u32 ndcb[4];  member
639 (u32)readl_relaxed(nfc->regs + NDCR), nfc_op->ndcb[0], in marvell_nfc_send_cmd()
640 nfc_op->ndcb[1], nfc_op->ndcb[2], nfc_op->ndcb[3]); in marvell_nfc_send_cmd()
642 writel_relaxed(to_nand_sel(marvell_nand)->ndcb0_csel | nfc_op->ndcb[0], in marvell_nfc_send_cmd()
644 writel_relaxed(nfc_op->ndcb[1], nfc->regs + NDCB0); in marvell_nfc_send_cmd()
645 writel(nfc_op->ndcb[2], nfc->regs + NDCB0); in marvell_nfc_send_cmd()
651 if (nfc_op->ndcb[0] & NDCB0_LEN_OVRD || in marvell_nfc_send_cmd()
652 NDCB0_ADDR_GET_NUM_CYC(nfc_op->ndcb[0]) >= 6) { in marvell_nfc_send_cmd()
654 writel(nfc_op->ndcb[3], nfc->regs + NDCB0); in marvell_nfc_send_cmd()
1034 .ndcb[0] = NDCB0_CMD_TYPE(TYPE_READ) | in marvell_nfc_hw_ecc_hmg_do_read_page()
1039 .ndcb[1] = NDCB1_ADDRS_PAGE(page), in marvell_nfc_hw_ecc_hmg_do_read_page()
1040 .ndcb[2] = NDCB2_ADDR5_PAGE(page), in marvell_nfc_hw_ecc_hmg_do_read_page()
1047 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_MONOLITHIC_RW); in marvell_nfc_hw_ecc_hmg_do_read_page()
1148 .ndcb[0] = NDCB0_CMD_TYPE(TYPE_WRITE) | in marvell_nfc_hw_ecc_hmg_do_write_page()
1153 .ndcb[1] = NDCB1_ADDRS_PAGE(page), in marvell_nfc_hw_ecc_hmg_do_write_page()
1154 .ndcb[2] = NDCB2_ADDR5_PAGE(page), in marvell_nfc_hw_ecc_hmg_do_write_page()
1161 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_MONOLITHIC_RW); in marvell_nfc_hw_ecc_hmg_do_write_page()
1293 .ndcb[0] = NDCB0_CMD_TYPE(TYPE_READ) | in marvell_nfc_hw_ecc_bch_read_chunk()
1296 .ndcb[1] = NDCB1_ADDRS_PAGE(page), in marvell_nfc_hw_ecc_bch_read_chunk()
1297 .ndcb[2] = NDCB2_ADDR5_PAGE(page), in marvell_nfc_hw_ecc_bch_read_chunk()
1298 .ndcb[3] = data_len + spare_len, in marvell_nfc_hw_ecc_bch_read_chunk()
1306 nfc_op.ndcb[0] |= NDCB0_DBC | in marvell_nfc_hw_ecc_bch_read_chunk()
1315 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_MONOLITHIC_RW); in marvell_nfc_hw_ecc_bch_read_chunk()
1317 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_NAKED_RW); in marvell_nfc_hw_ecc_bch_read_chunk()
1319 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_LAST_NAKED_RW); in marvell_nfc_hw_ecc_bch_read_chunk()
1556 .ndcb[0] = NDCB0_CMD_TYPE(TYPE_WRITE) | NDCB0_LEN_OVRD, in marvell_nfc_hw_ecc_bch_write_chunk()
1557 .ndcb[3] = data_len + spare_len, in marvell_nfc_hw_ecc_bch_write_chunk()
1574 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(xtype) | in marvell_nfc_hw_ecc_bch_write_chunk()
1577 nfc_op.ndcb[1] |= NDCB1_ADDRS_PAGE(page); in marvell_nfc_hw_ecc_bch_write_chunk()
1578 nfc_op.ndcb[2] |= NDCB2_ADDR5_PAGE(page); in marvell_nfc_hw_ecc_bch_write_chunk()
1580 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_NAKED_RW); in marvell_nfc_hw_ecc_bch_write_chunk()
1582 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_LAST_NAKED_RW); in marvell_nfc_hw_ecc_bch_write_chunk()
1587 nfc_op.ndcb[0] |= NDCB0_CMD2(NAND_CMD_PAGEPROG) | NDCB0_DBC; in marvell_nfc_hw_ecc_bch_write_chunk()
1703 nfc_op->ndcb[0] |= in marvell_nfc_parse_instructions()
1706 nfc_op->ndcb[0] |= in marvell_nfc_parse_instructions()
1719 nfc_op->ndcb[0] |= NDCB0_ADDR_CYC(naddrs); in marvell_nfc_parse_instructions()
1722 nfc_op->ndcb[1] |= addrs[i] << (8 * i); in marvell_nfc_parse_instructions()
1725 nfc_op->ndcb[2] |= NDCB2_ADDR5_CYC(addrs[4]); in marvell_nfc_parse_instructions()
1727 nfc_op->ndcb[3] |= NDCB3_ADDR6_CYC(addrs[5]); in marvell_nfc_parse_instructions()
1729 nfc_op->ndcb[3] |= NDCB3_ADDR7_CYC(addrs[6]); in marvell_nfc_parse_instructions()
1737 nfc_op->ndcb[0] |= NDCB0_CMD_TYPE(TYPE_READ); in marvell_nfc_parse_instructions()
1739 nfc_op->ndcb[0] |= in marvell_nfc_parse_instructions()
1743 nfc_op->ndcb[3] |= round_up(len, FIFO_DEPTH); in marvell_nfc_parse_instructions()
1751 nfc_op->ndcb[0] |= NDCB0_CMD_TYPE(TYPE_WRITE); in marvell_nfc_parse_instructions()
1753 nfc_op->ndcb[0] |= in marvell_nfc_parse_instructions()
1757 nfc_op->ndcb[3] |= round_up(len, FIFO_DEPTH); in marvell_nfc_parse_instructions()
1878 nfc_op.ndcb[0] &= ~(NDCB0_CMD_TYPE(TYPE_MASK) | in marvell_nfc_naked_access_exec()
1882 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_NAKED_CMD); in marvell_nfc_naked_access_exec()
1885 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_NAKED_ADDR); in marvell_nfc_naked_access_exec()
1888 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_READ) | in marvell_nfc_naked_access_exec()
1892 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_WRITE) | in marvell_nfc_naked_access_exec()
1958 nfc_op.ndcb[0] &= ~NDCB0_CMD_TYPE(TYPE_READ); in marvell_nfc_read_id_type_exec()
1959 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_READ_ID); in marvell_nfc_read_id_type_exec()
1998 nfc_op.ndcb[0] &= ~NDCB0_CMD_TYPE(TYPE_READ); in marvell_nfc_read_status_exec()
1999 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_STATUS); in marvell_nfc_read_status_exec()
2038 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_RESET); in marvell_nfc_reset_cmd_type_exec()
2067 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_ERASE); in marvell_nfc_erase_cmd_type_exec()