Lines Matching refs:stm32_spi

214 struct stm32_spi;
244 int (*get_fifo_size)(struct stm32_spi *spi);
245 int (*get_bpw_mask)(struct stm32_spi *spi);
246 void (*disable)(struct stm32_spi *spi);
247 int (*config)(struct stm32_spi *spi);
248 void (*set_bpw)(struct stm32_spi *spi);
249 int (*set_mode)(struct stm32_spi *spi, unsigned int comm_type);
250 void (*set_data_idleness)(struct stm32_spi *spi, u32 length);
251 int (*set_number_of_data)(struct stm32_spi *spi, u32 length);
252 void (*transfer_one_dma_start)(struct stm32_spi *spi);
255 int (*transfer_one_irq)(struct stm32_spi *spi);
290 struct stm32_spi { struct
353 static inline void stm32_spi_set_bits(struct stm32_spi *spi, in stm32_spi_set_bits()
360 static inline void stm32_spi_clr_bits(struct stm32_spi *spi, in stm32_spi_clr_bits()
371 static int stm32h7_spi_get_fifo_size(struct stm32_spi *spi) in stm32h7_spi_get_fifo_size()
396 static int stm32f4_spi_get_bpw_mask(struct stm32_spi *spi) in stm32f4_spi_get_bpw_mask()
406 static int stm32h7_spi_get_bpw_mask(struct stm32_spi *spi) in stm32h7_spi_get_bpw_mask()
440 static int stm32_spi_prepare_mbr(struct stm32_spi *spi, u32 speed_hz, in stm32_spi_prepare_mbr()
474 static u32 stm32h7_spi_prepare_fthlv(struct stm32_spi *spi, u32 xfer_len) in stm32h7_spi_prepare_fthlv()
513 static void stm32f4_spi_write_tx(struct stm32_spi *spi) in stm32f4_spi_write_tx()
542 static void stm32h7_spi_write_txfifo(struct stm32_spi *spi) in stm32h7_spi_write_txfifo()
577 static void stm32f4_spi_read_rx(struct stm32_spi *spi) in stm32f4_spi_read_rx()
607 static void stm32h7_spi_read_rxfifo(struct stm32_spi *spi, bool flush) in stm32h7_spi_read_rxfifo()
650 static void stm32_spi_enable(struct stm32_spi *spi) in stm32_spi_enable()
662 static void stm32f4_spi_disable(struct stm32_spi *spi) in stm32f4_spi_disable()
718 static void stm32h7_spi_disable(struct stm32_spi *spi) in stm32h7_spi_disable()
784 struct stm32_spi *spi = spi_master_get_devdata(master); in stm32_spi_can_dma()
805 struct stm32_spi *spi = spi_master_get_devdata(master); in stm32f4_spi_irq_event()
893 struct stm32_spi *spi = spi_master_get_devdata(master); in stm32f4_spi_irq_thread()
909 struct stm32_spi *spi = spi_master_get_devdata(master); in stm32h7_spi_irq_thread()
1004 struct stm32_spi *spi = spi_master_get_devdata(master); in stm32_spi_prepare_msg()
1058 struct stm32_spi *spi = data; in stm32f4_spi_dma_tx_cb()
1074 struct stm32_spi *spi = data; in stm32f4_spi_dma_rx_cb()
1089 struct stm32_spi *spi = data; in stm32h7_spi_dma_cb()
1112 static void stm32_spi_dma_config(struct stm32_spi *spi, in stm32_spi_dma_config()
1163 static int stm32f4_spi_transfer_one_irq(struct stm32_spi *spi) in stm32f4_spi_transfer_one_irq()
1206 static int stm32h7_spi_transfer_one_irq(struct stm32_spi *spi) in stm32h7_spi_transfer_one_irq()
1245 static void stm32f4_spi_transfer_one_dma_start(struct stm32_spi *spi) in stm32f4_spi_transfer_one_dma_start()
1266 static void stm32h7_spi_transfer_one_dma_start(struct stm32_spi *spi) in stm32h7_spi_transfer_one_dma_start()
1287 static int stm32_spi_transfer_one_dma(struct stm32_spi *spi, in stm32_spi_transfer_one_dma()
1388 static void stm32f4_spi_set_bpw(struct stm32_spi *spi) in stm32f4_spi_set_bpw()
1400 static void stm32h7_spi_set_bpw(struct stm32_spi *spi) in stm32h7_spi_set_bpw()
1429 static void stm32_spi_set_mbr(struct stm32_spi *spi, u32 mbrdiv) in stm32_spi_set_mbr()
1478 static int stm32f4_spi_set_mode(struct stm32_spi *spi, unsigned int comm_type) in stm32f4_spi_set_mode()
1506 static int stm32h7_spi_set_mode(struct stm32_spi *spi, unsigned int comm_type) in stm32h7_spi_set_mode()
1543 static void stm32h7_spi_data_idleness(struct stm32_spi *spi, u32 len) in stm32h7_spi_data_idleness()
1570 static int stm32h7_spi_number_of_data(struct stm32_spi *spi, u32 nb_words) in stm32h7_spi_number_of_data()
1596 static int stm32_spi_transfer_one_setup(struct stm32_spi *spi, in stm32_spi_transfer_one_setup()
1677 struct stm32_spi *spi = spi_master_get_devdata(master); in stm32_spi_transfer_one()
1708 struct stm32_spi *spi = spi_master_get_devdata(master); in stm32_spi_unprepare_msg()
1719 static int stm32f4_spi_config(struct stm32_spi *spi) in stm32f4_spi_config()
1750 static int stm32h7_spi_config(struct stm32_spi *spi) in stm32h7_spi_config()
1832 struct stm32_spi *spi; in stm32_spi_probe()
1836 master = spi_alloc_master(&pdev->dev, sizeof(struct stm32_spi)); in stm32_spi_probe()
1991 struct stm32_spi *spi = spi_master_get_devdata(master); in stm32_spi_remove()
2013 struct stm32_spi *spi = spi_master_get_devdata(master); in stm32_spi_runtime_suspend()
2023 struct stm32_spi *spi = spi_master_get_devdata(master); in stm32_spi_runtime_resume()
2050 struct stm32_spi *spi = spi_master_get_devdata(master); in stm32_spi_resume()