mtk_snand
static int mtk_snand_write_page_cache(struct mtk_snand *snf,
struct mtk_snand *ms = spi_controller_get_devdata(mem->spi->controller);
struct mtk_snand *ms = spi_controller_get_devdata(mem->spi->controller);
struct mtk_snand *snf = id;
struct mtk_snand *ms;
struct mtk_snand *ms = spi_controller_get_devdata(ctlr);
static struct mtk_snand *nand_to_mtk_snand(struct nand_device *nand)
return container_of(eng, struct mtk_snand, ecc_eng);
static inline int snand_prepare_bouncebuf(struct mtk_snand *snf, size_t size)
static inline u32 nfi_read32(struct mtk_snand *snf, u32 reg)
static inline void nfi_write32(struct mtk_snand *snf, u32 reg, u32 val)
static inline void nfi_write16(struct mtk_snand *snf, u32 reg, u16 val)
static inline void nfi_rmw32(struct mtk_snand *snf, u32 reg, u32 clr, u32 set)
static void nfi_read_data(struct mtk_snand *snf, u32 reg, u8 *data, u32 len)
static int mtk_nfi_reset(struct mtk_snand *snf)
static int mtk_snand_mac_reset(struct mtk_snand *snf)
static int mtk_snand_mac_trigger(struct mtk_snand *snf, u32 outlen, u32 inlen)
static int mtk_snand_mac_io(struct mtk_snand *snf, const struct spi_mem_op *op)
static int mtk_snand_setup_pagefmt(struct mtk_snand *snf, u32 page_size,
struct mtk_snand *ms = nand_to_mtk_snand(nand);
struct mtk_snand *snf = nand_to_mtk_snand(nand);
struct mtk_snand *snf = nand_to_mtk_snand(nand);
struct mtk_snand *snf = nand_to_mtk_snand(nand);
static void mtk_snand_read_fdm(struct mtk_snand *snf, u8 *buf)
static void mtk_snand_write_fdm(struct mtk_snand *snf, const u8 *buf)
static void mtk_snand_bm_swap(struct mtk_snand *snf, u8 *buf)
static void mtk_snand_fdm_bm_swap(struct mtk_snand *snf)
static int mtk_snand_read_page_cache(struct mtk_snand *snf,