Lines Matching defs:mtk_nor
113 struct mtk_nor {
131 static inline void mtk_nor_rmw(struct mtk_nor *sp, u32 reg, u32 set, u32 clr)
140 static inline int mtk_nor_cmd_exec(struct mtk_nor *sp, u32 cmd, ulong clk)
154 static void mtk_nor_reset(struct mtk_nor *sp)
163 static void mtk_nor_set_addr(struct mtk_nor *sp, const struct spi_mem_op *op)
180 static bool need_bounce(struct mtk_nor *sp, const struct spi_mem_op *op)
278 struct mtk_nor *sp = spi_controller_get_devdata(mem->spi->master);
340 static void mtk_nor_setup_bus(struct mtk_nor *sp, const struct spi_mem_op *op)
366 static int mtk_nor_dma_exec(struct mtk_nor *sp, u32 from, unsigned int length,
410 static int mtk_nor_read_bounce(struct mtk_nor *sp, const struct spi_mem_op *op)
428 static int mtk_nor_read_dma(struct mtk_nor *sp, const struct spi_mem_op *op)
449 static int mtk_nor_read_pio(struct mtk_nor *sp, const struct spi_mem_op *op)
460 static int mtk_nor_setup_write_buffer(struct mtk_nor *sp, bool on)
485 static int mtk_nor_pp_buffered(struct mtk_nor *sp, const struct spi_mem_op *op)
504 static int mtk_nor_pp_unbuffered(struct mtk_nor *sp,
517 static int mtk_nor_spi_mem_prg(struct mtk_nor *sp, const struct spi_mem_op *op)
601 struct mtk_nor *sp = spi_controller_get_devdata(mem->spi->master);
642 struct mtk_nor *sp = spi_controller_get_devdata(spi->master);
657 struct mtk_nor *sp = spi_controller_get_devdata(master);
704 static void mtk_nor_disable_clk(struct mtk_nor *sp)
712 static int mtk_nor_enable_clk(struct mtk_nor *sp)
744 static void mtk_nor_init(struct mtk_nor *sp)
757 struct mtk_nor *sp = data;
813 struct mtk_nor *sp;
941 struct mtk_nor *sp = spi_controller_get_devdata(ctlr);
953 struct mtk_nor *sp = spi_controller_get_devdata(ctlr);
963 struct mtk_nor *sp = spi_controller_get_devdata(ctlr);
976 struct mtk_nor *sp = spi_controller_get_devdata(ctlr);