Lines Matching refs:mtk_nfc
142 struct mtk_nfc { struct
216 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_data_ptr()
223 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_oob_ptr()
228 static inline void nfi_writel(struct mtk_nfc *nfc, u32 val, u32 reg) in nfi_writel()
233 static inline void nfi_writew(struct mtk_nfc *nfc, u16 val, u32 reg) in nfi_writew()
238 static inline void nfi_writeb(struct mtk_nfc *nfc, u8 val, u32 reg) in nfi_writeb()
243 static inline u32 nfi_readl(struct mtk_nfc *nfc, u32 reg) in nfi_readl()
248 static inline u16 nfi_readw(struct mtk_nfc *nfc, u32 reg) in nfi_readw()
253 static inline u8 nfi_readb(struct mtk_nfc *nfc, u32 reg) in nfi_readb()
258 static void mtk_nfc_hw_reset(struct mtk_nfc *nfc) in mtk_nfc_hw_reset()
280 static int mtk_nfc_send_command(struct mtk_nfc *nfc, u8 command) in mtk_nfc_send_command()
298 static int mtk_nfc_send_address(struct mtk_nfc *nfc, int addr) in mtk_nfc_send_address()
322 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_hw_runtime_config()
389 static inline void mtk_nfc_wait_ioready(struct mtk_nfc *nfc) in mtk_nfc_wait_ioready()
402 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_read_byte()
438 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_write_byte()
468 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_exec_instr()
501 struct mtk_nfc *nfc = nand_get_controller_data(nand); in mtk_nfc_select_target()
513 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_exec_op()
536 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_setup_interface()
643 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_sector_encode()
677 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_format_subpage()
711 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_format_page()
731 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_read_fdm()
750 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_write_fdm()
777 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_do_write_page()
828 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_write_page()
887 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_write_page_raw()
898 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_write_subpage_hwecc()
918 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_update_ecc_stats()
943 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_read_subpage()
1058 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_read_page_raw()
1087 static inline void mtk_nfc_hw_init(struct mtk_nfc *nfc) in mtk_nfc_hw_init()
1106 struct mtk_nfc *nfc = id; in mtk_nfc_irq()
1166 struct mtk_nfc *nfc = nand_get_controller_data(nand); in mtk_nfc_set_fdm()
1197 struct mtk_nfc *nfc = nand_get_controller_data(nand); in mtk_nfc_set_spare_per_sector()
1231 struct mtk_nfc *nfc = nand_get_controller_data(nand); in mtk_nfc_ecc_init()
1300 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_nfc_attach_chip()
1339 static int mtk_nfc_nand_chip_init(struct device *dev, struct mtk_nfc *nfc, in mtk_nfc_nand_chip_init()
1432 static void mtk_nfc_nand_chips_cleanup(struct mtk_nfc *nfc) in mtk_nfc_nand_chips_cleanup()
1449 static int mtk_nfc_nand_chips_init(struct device *dev, struct mtk_nfc *nfc) in mtk_nfc_nand_chips_init()
1511 struct mtk_nfc *nfc; in mtk_nfc_probe()
1588 struct mtk_nfc *nfc = platform_get_drvdata(pdev); in mtk_nfc_remove()
1597 struct mtk_nfc *nfc = dev_get_drvdata(dev); in mtk_nfc_suspend()
1607 struct mtk_nfc *nfc = dev_get_drvdata(dev); in mtk_nfc_resume()