Lines Matching defs:nfi_write32

346 static inline void nfi_write32(struct mtk_snand *snf, u32 reg, u32 val)
383 nfi_write32(snf, NFI_CON, CON_FIFO_FLUSH | CON_NFI_RST);
425 nfi_write32(snf, SNF_MISC_CTL,
436 nfi_write32(snf, SNF_MAC_CTL, SF_MAC_EN);
437 nfi_write32(snf, SNF_MAC_OUTL, outlen);
438 nfi_write32(snf, SNF_MAC_INL, inlen);
440 nfi_write32(snf, SNF_MAC_CTL, SF_MAC_EN | SF_TRIG);
455 nfi_write32(snf, SNF_MAC_CTL, 0);
483 nfi_write32(snf, SNF_GPRAM + reg_offs - 3, val);
492 nfi_write32(snf, SNF_GPRAM + reg_offs - 3, val);
499 nfi_write32(snf, SNF_GPRAM + reg_offs - 3, val);
508 nfi_write32(snf, SNF_GPRAM + reg_offs - 3, val);
515 nfi_write32(snf, SNF_GPRAM + (reg_offs & ~3), val);
613 nfi_write32(snf, NFI_PAGEFMT,
823 nfi_write32(snf, NFI_FDML(i), vall);
824 nfi_write32(snf, NFI_FDMM(i), valm);
903 nfi_write32(snf, SNF_RD_CTL2,
908 nfi_write32(snf, SNF_RD_CTL3, op_addr);
926 nfi_write32(snf, SNF_MISC_CTL2,
934 nfi_write32(snf, NFI_CON, (snf->nfi_cfg.nsectors << CON_SEC_NUM_S));
942 nfi_write32(snf, NFI_STRADDR, buf_dma);
950 nfi_write32(snf, NFI_INTR_EN, NFI_IRQ_INTR_EN | NFI_IRQ_CUS_READ);
1039 nfi_write32(snf, NFI_CON, 0);
1044 nfi_write32(snf, SNF_STA_CTL1, 0);
1048 nfi_write32(snf, NFI_INTR_EN, 0);
1102 nfi_write32(snf, SNF_PG_CTL1, (op->cmd.opcode << PG_LOAD_CMD_S));
1105 nfi_write32(snf, SNF_PG_CTL2, op_addr);
1117 nfi_write32(snf, SNF_MISC_CTL2,
1125 nfi_write32(snf, NFI_CON, (snf->nfi_cfg.nsectors << CON_SEC_NUM_S));
1132 nfi_write32(snf, NFI_STRADDR, buf_dma);
1140 nfi_write32(snf, NFI_INTR_EN, NFI_IRQ_INTR_EN | NFI_IRQ_CUS_PG);
1172 nfi_write32(snf, NFI_CON, 0);
1177 nfi_write32(snf, SNF_STA_CTL1, 0);
1181 nfi_write32(snf, NFI_INTR_EN, 0);
1321 nfi_write32(snf, NFI_INTR_EN, 0);
1455 nfi_write32(ms, SNF_CFG, SPI_MODE);