Lines Matching refs:stm32_spi
197 #define STM32_SPI_HOST_MODE(stm32_spi) (!(stm32_spi)->device_mode) argument
198 #define STM32_SPI_DEVICE_MODE(stm32_spi) ((stm32_spi)->device_mode) argument
240 struct stm32_spi;
273 int (*get_fifo_size)(struct stm32_spi *spi);
274 int (*get_bpw_mask)(struct stm32_spi *spi);
275 void (*disable)(struct stm32_spi *spi);
276 int (*config)(struct stm32_spi *spi);
277 void (*set_bpw)(struct stm32_spi *spi);
278 int (*set_mode)(struct stm32_spi *spi, unsigned int comm_type);
279 void (*set_data_idleness)(struct stm32_spi *spi, u32 length);
280 int (*set_number_of_data)(struct stm32_spi *spi, u32 length);
281 void (*write_tx)(struct stm32_spi *spi);
282 void (*read_rx)(struct stm32_spi *spi);
283 void (*transfer_one_dma_start)(struct stm32_spi *spi);
286 int (*transfer_one_irq)(struct stm32_spi *spi);
327 struct stm32_spi { struct
420 static inline void stm32_spi_set_bits(struct stm32_spi *spi, in stm32_spi_set_bits()
427 static inline void stm32_spi_clr_bits(struct stm32_spi *spi, in stm32_spi_clr_bits()
438 static int stm32h7_spi_get_fifo_size(struct stm32_spi *spi) in stm32h7_spi_get_fifo_size()
463 static int stm32f4_spi_get_bpw_mask(struct stm32_spi *spi) in stm32f4_spi_get_bpw_mask()
473 static int stm32f7_spi_get_bpw_mask(struct stm32_spi *spi) in stm32f7_spi_get_bpw_mask()
483 static int stm32h7_spi_get_bpw_mask(struct stm32_spi *spi) in stm32h7_spi_get_bpw_mask()
510 static int stm32mp25_spi_get_bpw_mask(struct stm32_spi *spi) in stm32mp25_spi_get_bpw_mask()
537 static int stm32_spi_prepare_mbr(struct stm32_spi *spi, u32 speed_hz, in stm32_spi_prepare_mbr()
573 static u32 stm32h7_spi_prepare_fthlv(struct stm32_spi *spi, u32 xfer_len) in stm32h7_spi_prepare_fthlv()
592 static void stm32f4_spi_write_tx(struct stm32_spi *spi) in stm32f4_spi_write_tx()
621 static void stm32f7_spi_write_tx(struct stm32_spi *spi) in stm32f7_spi_write_tx()
650 static void stm32h7_spi_write_txfifo(struct stm32_spi *spi) in stm32h7_spi_write_txfifo()
685 static void stm32f4_spi_read_rx(struct stm32_spi *spi) in stm32f4_spi_read_rx()
714 static void stm32f7_spi_read_rx(struct stm32_spi *spi) in stm32f7_spi_read_rx()
754 static void stm32h7_spi_read_rxfifo(struct stm32_spi *spi) in stm32h7_spi_read_rxfifo()
797 static void stm32_spi_enable(struct stm32_spi *spi) in stm32_spi_enable()
809 static void stm32fx_spi_disable(struct stm32_spi *spi) in stm32fx_spi_disable()
859 static void stm32h7_spi_disable(struct stm32_spi *spi) in stm32h7_spi_disable()
910 struct stm32_spi *spi = spi_controller_get_devdata(ctrl); in stm32_spi_can_dma()
931 struct stm32_spi *spi = spi_controller_get_devdata(ctrl); in stm32fx_spi_irq_event()
1019 struct stm32_spi *spi = spi_controller_get_devdata(ctrl); in stm32fx_spi_irq_thread()
1035 struct stm32_spi *spi = spi_controller_get_devdata(ctrl); in stm32h7_spi_irq_thread()
1124 struct stm32_spi *spi = spi_controller_get_devdata(ctrl); in stm32_spi_optimize_message()
1144 struct stm32_spi *spi = spi_controller_get_devdata(ctrl); in stm32_spi_prepare_msg()
1203 struct stm32_spi *spi = data; in stm32fx_spi_dma_tx_cb()
1219 struct stm32_spi *spi = data; in stm32_spi_dma_rx_cb()
1233 static void stm32_spi_dma_config(struct stm32_spi *spi, in stm32_spi_dma_config()
1286 static int stm32fx_spi_transfer_one_irq(struct stm32_spi *spi) in stm32fx_spi_transfer_one_irq()
1329 static int stm32h7_spi_transfer_one_irq(struct stm32_spi *spi) in stm32h7_spi_transfer_one_irq()
1369 static void stm32fx_spi_transfer_one_dma_start(struct stm32_spi *spi) in stm32fx_spi_transfer_one_dma_start()
1390 static void stm32f7_spi_transfer_one_dma_start(struct stm32_spi *spi) in stm32f7_spi_transfer_one_dma_start()
1406 static void stm32h7_spi_transfer_one_dma_start(struct stm32_spi *spi) in stm32h7_spi_transfer_one_dma_start()
1430 static int stm32_spi_transfer_one_dma(struct stm32_spi *spi, in stm32_spi_transfer_one_dma()
1531 static void stm32f4_spi_set_bpw(struct stm32_spi *spi) in stm32f4_spi_set_bpw()
1543 static void stm32f7_spi_set_bpw(struct stm32_spi *spi) in stm32f7_spi_set_bpw()
1568 static void stm32h7_spi_set_bpw(struct stm32_spi *spi) in stm32h7_spi_set_bpw()
1595 static void stm32_spi_set_mbr(struct stm32_spi *spi, u32 mbrdiv) in stm32_spi_set_mbr()
1643 static int stm32fx_spi_set_mode(struct stm32_spi *spi, unsigned int comm_type) in stm32fx_spi_set_mode()
1671 static int stm32h7_spi_set_mode(struct stm32_spi *spi, unsigned int comm_type) in stm32h7_spi_set_mode()
1707 static void stm32h7_spi_data_idleness(struct stm32_spi *spi, u32 len) in stm32h7_spi_data_idleness()
1735 static int stm32h7_spi_number_of_data(struct stm32_spi *spi, u32 nb_words) in stm32h7_spi_number_of_data()
1755 static int stm32_spi_transfer_one_setup(struct stm32_spi *spi, in stm32_spi_transfer_one_setup()
1839 struct stm32_spi *spi = spi_controller_get_devdata(ctrl); in stm32_spi_transfer_one()
1870 struct stm32_spi *spi = spi_controller_get_devdata(ctrl); in stm32_spi_unprepare_msg()
1881 static int stm32fx_spi_config(struct stm32_spi *spi) in stm32fx_spi_config()
1912 static int stm32h7_spi_config(struct stm32_spi *spi) in stm32h7_spi_config()
2068 struct stm32_spi *spi; in stm32_spi_probe()
2083 ctrl = devm_spi_alloc_target(&pdev->dev, sizeof(struct stm32_spi)); in stm32_spi_probe()
2085 ctrl = devm_spi_alloc_host(&pdev->dev, sizeof(struct stm32_spi)); in stm32_spi_probe()
2263 struct stm32_spi *spi = spi_controller_get_devdata(ctrl); in stm32_spi_remove()
2289 struct stm32_spi *spi = spi_controller_get_devdata(ctrl); in stm32_spi_runtime_suspend()
2299 struct stm32_spi *spi = spi_controller_get_devdata(ctrl); in stm32_spi_runtime_resume()
2324 struct stm32_spi *spi = spi_controller_get_devdata(ctrl); in stm32_spi_resume()