Lines Matching refs:ndcb
490 u32 ndcb[4]; member
650 (u32)readl_relaxed(nfc->regs + NDCR), nfc_op->ndcb[0], in marvell_nfc_send_cmd()
651 nfc_op->ndcb[1], nfc_op->ndcb[2], nfc_op->ndcb[3]); in marvell_nfc_send_cmd()
653 writel_relaxed(to_nand_sel(marvell_nand)->ndcb0_csel | nfc_op->ndcb[0], in marvell_nfc_send_cmd()
655 writel_relaxed(nfc_op->ndcb[1], nfc->regs + NDCB0); in marvell_nfc_send_cmd()
656 writel(nfc_op->ndcb[2], nfc->regs + NDCB0); in marvell_nfc_send_cmd()
662 if (nfc_op->ndcb[0] & NDCB0_LEN_OVRD || in marvell_nfc_send_cmd()
663 NDCB0_ADDR_GET_NUM_CYC(nfc_op->ndcb[0]) >= 6) { in marvell_nfc_send_cmd()
665 writel(nfc_op->ndcb[3], nfc->regs + NDCB0); in marvell_nfc_send_cmd()
1045 .ndcb[0] = NDCB0_CMD_TYPE(TYPE_READ) | in marvell_nfc_hw_ecc_hmg_do_read_page()
1050 .ndcb[1] = NDCB1_ADDRS_PAGE(page), in marvell_nfc_hw_ecc_hmg_do_read_page()
1051 .ndcb[2] = NDCB2_ADDR5_PAGE(page), in marvell_nfc_hw_ecc_hmg_do_read_page()
1058 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_MONOLITHIC_RW); in marvell_nfc_hw_ecc_hmg_do_read_page()
1159 .ndcb[0] = NDCB0_CMD_TYPE(TYPE_WRITE) | in marvell_nfc_hw_ecc_hmg_do_write_page()
1164 .ndcb[1] = NDCB1_ADDRS_PAGE(page), in marvell_nfc_hw_ecc_hmg_do_write_page()
1165 .ndcb[2] = NDCB2_ADDR5_PAGE(page), in marvell_nfc_hw_ecc_hmg_do_write_page()
1173 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_MONOLITHIC_RW); in marvell_nfc_hw_ecc_hmg_do_write_page()
1316 .ndcb[0] = NDCB0_CMD_TYPE(TYPE_READ) | in marvell_nfc_hw_ecc_bch_read_chunk()
1319 .ndcb[1] = NDCB1_ADDRS_PAGE(page), in marvell_nfc_hw_ecc_bch_read_chunk()
1320 .ndcb[2] = NDCB2_ADDR5_PAGE(page), in marvell_nfc_hw_ecc_bch_read_chunk()
1321 .ndcb[3] = data_len + spare_len, in marvell_nfc_hw_ecc_bch_read_chunk()
1329 nfc_op.ndcb[0] |= NDCB0_DBC | in marvell_nfc_hw_ecc_bch_read_chunk()
1338 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_MONOLITHIC_RW); in marvell_nfc_hw_ecc_bch_read_chunk()
1340 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_NAKED_RW); in marvell_nfc_hw_ecc_bch_read_chunk()
1342 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_LAST_NAKED_RW); in marvell_nfc_hw_ecc_bch_read_chunk()
1579 .ndcb[0] = NDCB0_CMD_TYPE(TYPE_WRITE) | NDCB0_LEN_OVRD, in marvell_nfc_hw_ecc_bch_write_chunk()
1580 .ndcb[3] = data_len + spare_len, in marvell_nfc_hw_ecc_bch_write_chunk()
1597 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(xtype) | in marvell_nfc_hw_ecc_bch_write_chunk()
1600 nfc_op.ndcb[1] |= NDCB1_ADDRS_PAGE(page); in marvell_nfc_hw_ecc_bch_write_chunk()
1601 nfc_op.ndcb[2] |= NDCB2_ADDR5_PAGE(page); in marvell_nfc_hw_ecc_bch_write_chunk()
1603 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_NAKED_RW); in marvell_nfc_hw_ecc_bch_write_chunk()
1605 nfc_op.ndcb[0] |= NDCB0_CMD_XTYPE(XTYPE_LAST_NAKED_RW); in marvell_nfc_hw_ecc_bch_write_chunk()
1610 nfc_op.ndcb[0] |= NDCB0_CMD2(NAND_CMD_PAGEPROG) | NDCB0_DBC; in marvell_nfc_hw_ecc_bch_write_chunk()
1735 nfc_op->ndcb[0] |= in marvell_nfc_parse_instructions()
1738 nfc_op->ndcb[0] |= in marvell_nfc_parse_instructions()
1751 nfc_op->ndcb[0] |= NDCB0_ADDR_CYC(naddrs); in marvell_nfc_parse_instructions()
1754 nfc_op->ndcb[1] |= addrs[i] << (8 * i); in marvell_nfc_parse_instructions()
1757 nfc_op->ndcb[2] |= NDCB2_ADDR5_CYC(addrs[4]); in marvell_nfc_parse_instructions()
1759 nfc_op->ndcb[3] |= NDCB3_ADDR6_CYC(addrs[5]); in marvell_nfc_parse_instructions()
1761 nfc_op->ndcb[3] |= NDCB3_ADDR7_CYC(addrs[6]); in marvell_nfc_parse_instructions()
1769 nfc_op->ndcb[0] |= NDCB0_CMD_TYPE(TYPE_READ); in marvell_nfc_parse_instructions()
1771 nfc_op->ndcb[0] |= in marvell_nfc_parse_instructions()
1775 nfc_op->ndcb[3] |= round_up(len, FIFO_DEPTH); in marvell_nfc_parse_instructions()
1783 nfc_op->ndcb[0] |= NDCB0_CMD_TYPE(TYPE_WRITE); in marvell_nfc_parse_instructions()
1785 nfc_op->ndcb[0] |= in marvell_nfc_parse_instructions()
1789 nfc_op->ndcb[3] |= round_up(len, FIFO_DEPTH); in marvell_nfc_parse_instructions()
1910 nfc_op.ndcb[0] &= ~(NDCB0_CMD_TYPE(TYPE_MASK) | in marvell_nfc_naked_access_exec()
1914 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_NAKED_CMD); in marvell_nfc_naked_access_exec()
1917 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_NAKED_ADDR); in marvell_nfc_naked_access_exec()
1920 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_READ) | in marvell_nfc_naked_access_exec()
1924 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_WRITE) | in marvell_nfc_naked_access_exec()
1990 nfc_op.ndcb[0] &= ~NDCB0_CMD_TYPE(TYPE_READ); in marvell_nfc_read_id_type_exec()
1991 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_READ_ID); in marvell_nfc_read_id_type_exec()
2030 nfc_op.ndcb[0] &= ~NDCB0_CMD_TYPE(TYPE_READ); in marvell_nfc_read_status_exec()
2031 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_STATUS); in marvell_nfc_read_status_exec()
2070 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_RESET); in marvell_nfc_reset_cmd_type_exec()
2099 nfc_op.ndcb[0] |= NDCB0_CMD_TYPE(TYPE_ERASE); in marvell_nfc_erase_cmd_type_exec()