Lines Matching defs:sp
96 #define CLK_TO_US(sp, clkcnt) DIV_ROUND_UP(clkcnt, sp->spi_freq / 1000000) argument
113 static inline void mtk_nor_rmw(struct mtk_nor *sp, u32 reg, u32 set, u32 clr) in mtk_nor_rmw()
122 static inline int mtk_nor_cmd_exec(struct mtk_nor *sp, u32 cmd, ulong clk) in mtk_nor_cmd_exec()
136 static void mtk_nor_set_addr(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_set_addr()
153 static bool need_bounce(struct mtk_nor *sp, const struct spi_mem_op *op) in need_bounce()
251 struct mtk_nor *sp = spi_controller_get_devdata(mem->spi->master); in mtk_nor_adjust_op_size() local
313 static void mtk_nor_setup_bus(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_setup_bus()
339 static int mtk_nor_dma_exec(struct mtk_nor *sp, u32 from, unsigned int length, in mtk_nor_dma_exec()
382 static int mtk_nor_read_bounce(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_read_bounce()
400 static int mtk_nor_read_dma(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_read_dma()
421 static int mtk_nor_read_pio(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_read_pio()
432 static int mtk_nor_write_buffer_enable(struct mtk_nor *sp) in mtk_nor_write_buffer_enable()
449 static int mtk_nor_write_buffer_disable(struct mtk_nor *sp) in mtk_nor_write_buffer_disable()
465 static int mtk_nor_pp_buffered(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_pp_buffered()
484 static int mtk_nor_pp_unbuffered(struct mtk_nor *sp, in mtk_nor_pp_unbuffered()
497 static int mtk_nor_spi_mem_prg(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_spi_mem_prg()
576 struct mtk_nor *sp = spi_controller_get_devdata(mem->spi->master); in mtk_nor_exec_op() local
609 struct mtk_nor *sp = spi_controller_get_devdata(spi->master); in mtk_nor_setup() local
624 struct mtk_nor *sp = spi_controller_get_devdata(master); in mtk_nor_transfer_one_message() local
671 static void mtk_nor_disable_clk(struct mtk_nor *sp) in mtk_nor_disable_clk()
677 static int mtk_nor_enable_clk(struct mtk_nor *sp) in mtk_nor_enable_clk()
694 static void mtk_nor_init(struct mtk_nor *sp) in mtk_nor_init()
707 struct mtk_nor *sp = data; in mtk_nor_irq_handler() local
747 struct mtk_nor *sp; in mtk_nor_probe() local
862 struct mtk_nor *sp = spi_controller_get_devdata(ctlr); in mtk_nor_remove() local
876 struct mtk_nor *sp = spi_controller_get_devdata(ctlr); in mtk_nor_runtime_suspend() local
886 struct mtk_nor *sp = spi_controller_get_devdata(ctlr); in mtk_nor_runtime_resume() local