Lines Matching defs:snf

328 static inline int snand_prepare_bouncebuf(struct mtk_snand *snf, size_t size)  in snand_prepare_bouncebuf()
341 static inline u32 nfi_read32(struct mtk_snand *snf, u32 reg) in nfi_read32()
346 static inline void nfi_write32(struct mtk_snand *snf, u32 reg, u32 val) in nfi_write32()
351 static inline void nfi_write16(struct mtk_snand *snf, u32 reg, u16 val) in nfi_write16()
356 static inline void nfi_rmw32(struct mtk_snand *snf, u32 reg, u32 clr, u32 set) in nfi_rmw32()
366 static void nfi_read_data(struct mtk_snand *snf, u32 reg, u8 *data, u32 len) in nfi_read_data()
378 static int mtk_nfi_reset(struct mtk_snand *snf) in mtk_nfi_reset()
413 static int mtk_snand_mac_reset(struct mtk_snand *snf) in mtk_snand_mac_reset()
431 static int mtk_snand_mac_trigger(struct mtk_snand *snf, u32 outlen, u32 inlen) in mtk_snand_mac_trigger()
460 static int mtk_snand_mac_io(struct mtk_snand *snf, const struct spi_mem_op *op) in mtk_snand_mac_io()
534 static int mtk_snand_setup_pagefmt(struct mtk_snand *snf, u32 page_size, in mtk_snand_setup_pagefmt()
662 struct mtk_snand *snf = nand_to_mtk_snand(nand); in mtk_snand_ecc_init_ctx() local
749 struct mtk_snand *snf = nand_to_mtk_snand(nand); in mtk_snand_ecc_prepare_io_req() local
765 struct mtk_snand *snf = nand_to_mtk_snand(nand); in mtk_snand_ecc_finish_io_req() local
786 static void mtk_snand_read_fdm(struct mtk_snand *snf, u8 *buf) in mtk_snand_read_fdm()
803 static void mtk_snand_write_fdm(struct mtk_snand *snf, const u8 *buf) in mtk_snand_write_fdm()
830 static void mtk_snand_bm_swap(struct mtk_snand *snf, u8 *buf) in mtk_snand_bm_swap()
847 static void mtk_snand_fdm_bm_swap(struct mtk_snand *snf) in mtk_snand_fdm_bm_swap()
861 static int mtk_snand_read_page_cache(struct mtk_snand *snf, in mtk_snand_read_page_cache()
1054 static int mtk_snand_write_page_cache(struct mtk_snand *snf, in mtk_snand_write_page_cache()
1312 struct mtk_snand *snf = id; in mtk_snand_irq() local