Lines Matching defs:sp

96 #define CLK_TO_US(sp, clkcnt)		DIV_ROUND_UP(clkcnt, sp->spi_freq / 1000000)  argument
114 static inline void mtk_nor_rmw(struct mtk_nor *sp, u32 reg, u32 set, u32 clr) in mtk_nor_rmw()
123 static inline int mtk_nor_cmd_exec(struct mtk_nor *sp, u32 cmd, ulong clk) in mtk_nor_cmd_exec()
137 static void mtk_nor_set_addr(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_set_addr()
154 static bool need_bounce(struct mtk_nor *sp, const struct spi_mem_op *op) in need_bounce()
252 struct mtk_nor *sp = spi_controller_get_devdata(mem->spi->master); in mtk_nor_adjust_op_size() local
314 static void mtk_nor_setup_bus(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_setup_bus()
340 static int mtk_nor_dma_exec(struct mtk_nor *sp, u32 from, unsigned int length, in mtk_nor_dma_exec()
383 static int mtk_nor_read_bounce(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_read_bounce()
401 static int mtk_nor_read_dma(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_read_dma()
422 static int mtk_nor_read_pio(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_read_pio()
433 static int mtk_nor_write_buffer_enable(struct mtk_nor *sp) in mtk_nor_write_buffer_enable()
450 static int mtk_nor_write_buffer_disable(struct mtk_nor *sp) in mtk_nor_write_buffer_disable()
466 static int mtk_nor_pp_buffered(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_pp_buffered()
485 static int mtk_nor_pp_unbuffered(struct mtk_nor *sp, in mtk_nor_pp_unbuffered()
498 static int mtk_nor_spi_mem_prg(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_spi_mem_prg()
577 struct mtk_nor *sp = spi_controller_get_devdata(mem->spi->master); in mtk_nor_exec_op() local
610 struct mtk_nor *sp = spi_controller_get_devdata(spi->master); in mtk_nor_setup() local
625 struct mtk_nor *sp = spi_controller_get_devdata(master); in mtk_nor_transfer_one_message() local
672 static void mtk_nor_disable_clk(struct mtk_nor *sp) in mtk_nor_disable_clk()
679 static int mtk_nor_enable_clk(struct mtk_nor *sp) in mtk_nor_enable_clk()
703 static void mtk_nor_init(struct mtk_nor *sp) in mtk_nor_init()
716 struct mtk_nor *sp = data; in mtk_nor_irq_handler() local
756 struct mtk_nor *sp; in mtk_nor_probe() local
876 struct mtk_nor *sp = spi_controller_get_devdata(ctlr); in mtk_nor_remove() local
890 struct mtk_nor *sp = spi_controller_get_devdata(ctlr); in mtk_nor_runtime_suspend() local
900 struct mtk_nor *sp = spi_controller_get_devdata(ctlr); in mtk_nor_runtime_resume() local