Lines Matching defs:mtk_snand
301 struct mtk_snand {
321 static struct mtk_snand *nand_to_mtk_snand(struct nand_device *nand)
325 return container_of(eng, struct mtk_snand, ecc_eng);
328 static inline int snand_prepare_bouncebuf(struct mtk_snand *snf, size_t size)
341 static inline u32 nfi_read32(struct mtk_snand *snf, u32 reg)
346 static inline void nfi_write32(struct mtk_snand *snf, u32 reg, u32 val)
351 static inline void nfi_write16(struct mtk_snand *snf, u32 reg, u16 val)
356 static inline void nfi_rmw32(struct mtk_snand *snf, u32 reg, u32 clr, u32 set)
366 static void nfi_read_data(struct mtk_snand *snf, u32 reg, u8 *data, u32 len)
378 static int mtk_nfi_reset(struct mtk_snand *snf)
413 static int mtk_snand_mac_reset(struct mtk_snand *snf)
431 static int mtk_snand_mac_trigger(struct mtk_snand *snf, u32 outlen, u32 inlen)
460 static int mtk_snand_mac_io(struct mtk_snand *snf, const struct spi_mem_op *op)
534 static int mtk_snand_setup_pagefmt(struct mtk_snand *snf, u32 page_size,
645 struct mtk_snand *ms = nand_to_mtk_snand(nand);
662 struct mtk_snand *snf = nand_to_mtk_snand(nand);
749 struct mtk_snand *snf = nand_to_mtk_snand(nand);
765 struct mtk_snand *snf = nand_to_mtk_snand(nand);
786 static void mtk_snand_read_fdm(struct mtk_snand *snf, u8 *buf)
803 static void mtk_snand_write_fdm(struct mtk_snand *snf, const u8 *buf)
830 static void mtk_snand_bm_swap(struct mtk_snand *snf, u8 *buf)
847 static void mtk_snand_fdm_bm_swap(struct mtk_snand *snf)
861 static int mtk_snand_read_page_cache(struct mtk_snand *snf,
1054 static int mtk_snand_write_page_cache(struct mtk_snand *snf,
1258 struct mtk_snand *ms = spi_controller_get_devdata(mem->spi->master);
1285 struct mtk_snand *ms = spi_controller_get_devdata(mem->spi->master);
1312 struct mtk_snand *snf = id;
1335 static int mtk_snand_enable_clk(struct mtk_snand *ms)
1364 static void mtk_snand_disable_clk(struct mtk_snand *ms)
1376 struct mtk_snand *ms;
1513 struct mtk_snand *ms = spi_controller_get_devdata(ctlr);