Searched refs:nfc_op (Results 1 – 2 of 2) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | marvell_nand.c | 632 struct marvell_nfc_op *nfc_op) in marvell_nfc_send_cmd() argument 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() 1027 struct marvell_nfc_op nfc_op = { in marvell_nfc_hw_ecc_hmg_do_read_page() local [all …]
|
| H A D | arasan-nand-controller.c | 243 static void anfc_trigger_op(struct arasan_nfc *nfc, struct anfc_op *nfc_op) in anfc_trigger_op() argument 245 writel_relaxed(nfc_op->pkt_reg, nfc->base + PKT_REG); in anfc_trigger_op() 246 writel_relaxed(nfc_op->addr1_reg, nfc->base + MEM_ADDR1_REG); in anfc_trigger_op() 247 writel_relaxed(nfc_op->addr2_reg, nfc->base + MEM_ADDR2_REG); in anfc_trigger_op() 248 writel_relaxed(nfc_op->cmd_reg, nfc->base + CMD_REG); in anfc_trigger_op() 249 writel_relaxed(nfc_op->prog_reg, nfc->base + PROG_REG); in anfc_trigger_op() 338 struct anfc_op nfc_op = { in anfc_read_page_hw_ecc() local 368 anfc_trigger_op(nfc, &nfc_op); in anfc_read_page_hw_ecc() 455 struct anfc_op nfc_op = { in anfc_write_page_hw_ecc() local 491 anfc_trigger_op(nfc, &nfc_op); in anfc_write_page_hw_ecc() [all …]
|