Lines Matching refs:nfi_writew
233 static inline void nfi_writew(struct mtk_nfc *nfc, u16 val, u32 reg) in nfi_writew() function
277 nfi_writew(nfc, STAR_DE, NFI_STRDATA); in mtk_nfc_hw_reset()
306 nfi_writew(nfc, 1, NFI_ADDRNOB); in mtk_nfc_send_address()
410 nfi_writew(nfc, reg, NFI_CNFG); in mtk_nfc_read_byte()
420 nfi_writew(nfc, STAR_EN, NFI_STRDATA); in mtk_nfc_read_byte()
445 nfi_writew(nfc, reg, NFI_CNFG); in mtk_nfc_write_byte()
450 nfi_writew(nfc, STAR_EN, NFI_STRDATA); in mtk_nfc_write_byte()
521 nfi_writew(nfc, CNFG_OP_CUST, NFI_CNFG); in mtk_nfc_exec_op()
791 nfi_writew(nfc, reg, NFI_CNFG); in mtk_nfc_do_write_page()
795 nfi_writew(nfc, INTR_AHB_DONE_EN, NFI_INTR_EN); in mtk_nfc_do_write_page()
801 nfi_writew(nfc, STAR_EN, NFI_STRDATA); in mtk_nfc_do_write_page()
806 nfi_writew(nfc, 0, NFI_INTR_EN); in mtk_nfc_do_write_page()
841 nfi_writew(nfc, reg | CNFG_HW_ECC_EN, NFI_CNFG); in mtk_nfc_write_page()
850 nfi_writew(nfc, reg, NFI_CNFG); in mtk_nfc_write_page()
977 nfi_writew(nfc, reg, NFI_CNFG); in mtk_nfc_read_subpage()
988 nfi_writew(nfc, reg, NFI_CNFG); in mtk_nfc_read_subpage()
994 nfi_writew(nfc, reg, NFI_CNFG); in mtk_nfc_read_subpage()
998 nfi_writew(nfc, INTR_AHB_DONE_EN, NFI_INTR_EN); in mtk_nfc_read_subpage()
1004 nfi_writew(nfc, STAR_EN, NFI_STRDATA); in mtk_nfc_read_subpage()
1095 nfi_writew(nfc, 0xf1, NFI_CNRNB); in mtk_nfc_hw_init()
1115 nfi_writew(nfc, ~sta & ien, NFI_INTR_EN); in mtk_nfc_irq()