Lines Matching refs:sprd_spi
151 struct sprd_spi { struct
169 int (*read_bufs)(struct sprd_spi *ss, u32 len); argument
170 int (*write_bufs)(struct sprd_spi *ss, u32 len); argument
173 static u32 sprd_spi_transfer_max_timeout(struct sprd_spi *ss, in sprd_spi_transfer_max_timeout()
194 static int sprd_spi_wait_for_tx_end(struct sprd_spi *ss, struct spi_transfer *t) in sprd_spi_wait_for_tx_end()
219 static int sprd_spi_wait_for_rx_end(struct sprd_spi *ss, struct spi_transfer *t) in sprd_spi_wait_for_rx_end()
237 static void sprd_spi_tx_req(struct sprd_spi *ss) in sprd_spi_tx_req()
242 static void sprd_spi_rx_req(struct sprd_spi *ss) in sprd_spi_rx_req()
247 static void sprd_spi_enter_idle(struct sprd_spi *ss) in sprd_spi_enter_idle()
255 static void sprd_spi_set_transfer_bits(struct sprd_spi *ss, u32 bits) in sprd_spi_set_transfer_bits()
265 static void sprd_spi_set_tx_length(struct sprd_spi *ss, u32 length) in sprd_spi_set_tx_length()
278 static void sprd_spi_set_rx_length(struct sprd_spi *ss, u32 length) in sprd_spi_set_rx_length()
294 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_chipselect()
308 static int sprd_spi_write_only_receive(struct sprd_spi *ss, u32 len) in sprd_spi_write_only_receive()
330 static int sprd_spi_write_bufs_u8(struct sprd_spi *ss, u32 len) in sprd_spi_write_bufs_u8()
342 static int sprd_spi_write_bufs_u16(struct sprd_spi *ss, u32 len) in sprd_spi_write_bufs_u16()
354 static int sprd_spi_write_bufs_u32(struct sprd_spi *ss, u32 len) in sprd_spi_write_bufs_u32()
366 static int sprd_spi_read_bufs_u8(struct sprd_spi *ss, u32 len) in sprd_spi_read_bufs_u8()
378 static int sprd_spi_read_bufs_u16(struct sprd_spi *ss, u32 len) in sprd_spi_read_bufs_u16()
390 static int sprd_spi_read_bufs_u32(struct sprd_spi *ss, u32 len) in sprd_spi_read_bufs_u32()
404 struct sprd_spi *ss = spi_controller_get_devdata(sdev->controller); in sprd_spi_txrx_bufs()
457 static void sprd_spi_irq_enable(struct sprd_spi *ss) in sprd_spi_irq_enable()
471 static void sprd_spi_irq_disable(struct sprd_spi *ss) in sprd_spi_irq_disable()
476 static void sprd_spi_dma_enable(struct sprd_spi *ss, bool enable) in sprd_spi_dma_enable()
517 static int sprd_spi_dma_rx_config(struct sprd_spi *ss, struct spi_transfer *t) in sprd_spi_dma_rx_config()
535 static int sprd_spi_dma_tx_config(struct sprd_spi *ss, struct spi_transfer *t) in sprd_spi_dma_tx_config()
553 static int sprd_spi_dma_request(struct sprd_spi *ss) in sprd_spi_dma_request()
570 static void sprd_spi_dma_release(struct sprd_spi *ss) in sprd_spi_dma_release()
582 struct sprd_spi *ss = spi_master_get_devdata(sdev->master); in sprd_spi_dma_txrx_bufs()
652 static void sprd_spi_set_speed(struct sprd_spi *ss, u32 speed_hz) in sprd_spi_set_speed()
665 static int sprd_spi_init_hw(struct sprd_spi *ss, struct spi_transfer *t) in sprd_spi_init_hw()
718 struct sprd_spi *ss = spi_controller_get_devdata(sdev->controller); in sprd_spi_setup_transfer()
817 struct sprd_spi *ss = (struct sprd_spi *)data; in sprd_spi_handle_irq()
843 static int sprd_spi_irq_init(struct platform_device *pdev, struct sprd_spi *ss) in sprd_spi_irq_init()
860 static int sprd_spi_clk_init(struct platform_device *pdev, struct sprd_spi *ss) in sprd_spi_clk_init()
893 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_can_dma()
898 static int sprd_spi_dma_init(struct platform_device *pdev, struct sprd_spi *ss) in sprd_spi_dma_init()
923 struct sprd_spi *ss; in sprd_spi_probe()
1008 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_remove()
1031 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_runtime_suspend()
1044 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_runtime_resume()