Home
last modified time | relevance | path

Searched refs:dw_spi (Results 1 – 6 of 6) sorted by relevance

/drivers/spi/
Dspi-dw.h140 struct dw_spi;
142 int (*dma_init)(struct device *dev, struct dw_spi *dws);
143 void (*dma_exit)(struct dw_spi *dws);
144 int (*dma_setup)(struct dw_spi *dws, struct spi_transfer *xfer);
147 int (*dma_transfer)(struct dw_spi *dws, struct spi_transfer *xfer);
148 void (*dma_stop)(struct dw_spi *dws);
151 struct dw_spi { struct
179 irqreturn_t (*transfer_handler)(struct dw_spi *dws); argument
204 static inline u32 dw_readl(struct dw_spi *dws, u32 offset) in dw_readl() argument
209 static inline void dw_writel(struct dw_spi *dws, u32 offset, u32 val) in dw_writel()
[all …]
Dspi-dw-dma.c37 static void dw_spi_dma_maxburst_init(struct dw_spi *dws) in dw_spi_dma_maxburst_init()
75 static void dw_spi_dma_sg_burst_init(struct dw_spi *dws) in dw_spi_dma_sg_burst_init()
92 static int dw_spi_dma_init_mfld(struct device *dev, struct dw_spi *dws) in dw_spi_dma_init_mfld()
143 static int dw_spi_dma_init_generic(struct device *dev, struct dw_spi *dws) in dw_spi_dma_init_generic()
179 static void dw_spi_dma_exit(struct dw_spi *dws) in dw_spi_dma_exit()
192 static irqreturn_t dw_spi_dma_transfer_handler(struct dw_spi *dws) in dw_spi_dma_transfer_handler()
204 struct dw_spi *dws = spi_controller_get_devdata(master); in dw_spi_can_dma()
219 static int dw_spi_dma_wait(struct dw_spi *dws, unsigned int len, u32 speed) in dw_spi_dma_wait()
242 static inline bool dw_spi_dma_tx_busy(struct dw_spi *dws) in dw_spi_dma_tx_busy()
247 static int dw_spi_dma_wait_tx_done(struct dw_spi *dws, in dw_spi_dma_wait_tx_done()
[all …]
Dspi-dw-core.c60 static int dw_spi_debugfs_init(struct dw_spi *dws) in dw_spi_debugfs_init()
77 static void dw_spi_debugfs_remove(struct dw_spi *dws) in dw_spi_debugfs_remove()
83 static inline int dw_spi_debugfs_init(struct dw_spi *dws) in dw_spi_debugfs_init()
88 static inline void dw_spi_debugfs_remove(struct dw_spi *dws) in dw_spi_debugfs_remove()
95 struct dw_spi *dws = spi_controller_get_devdata(spi->controller); in dw_spi_set_cs()
113 static inline u32 dw_spi_tx_max(struct dw_spi *dws) in dw_spi_tx_max()
133 static inline u32 dw_spi_rx_max(struct dw_spi *dws) in dw_spi_rx_max()
138 static void dw_writer(struct dw_spi *dws) in dw_writer()
159 static void dw_reader(struct dw_spi *dws) in dw_reader()
180 int dw_spi_check_status(struct dw_spi *dws, bool raw) in dw_spi_check_status()
[all …]
Dspi-dw-pci.c28 int (*setup)(struct dw_spi *);
34 static int dw_spi_pci_mid_init(struct dw_spi *dws) in dw_spi_pci_mid_init()
56 static int dw_spi_pci_generic_init(struct dw_spi *dws) in dw_spi_pci_generic_init()
85 struct dw_spi *dws; in dw_spi_pci_probe()
155 struct dw_spi *dws = pci_get_drvdata(pdev); in dw_spi_pci_remove()
167 struct dw_spi *dws = dev_get_drvdata(dev); in dw_spi_pci_suspend()
174 struct dw_spi *dws = dev_get_drvdata(dev); in dw_spi_pci_resume()
Dspi-dw-bt1.c33 struct dw_spi dws;
111 struct dw_spi *dws = &dwsbt1->dws; in dw_spi_bt1_dirmap_read()
168 struct dw_spi *dws = &dwsbt1->dws; in dw_spi_bt1_std_init()
194 struct dw_spi *dws = &dwsbt1->dws; in dw_spi_bt1_sys_init()
257 struct dw_spi *dws; in dw_spi_bt1_probe()
Dspi-dw-mmio.c29 struct dw_spi dws;
65 struct dw_spi *dws = spi_master_get_devdata(spi->master); in dw_spi_mscc_set_cs()
138 struct dw_spi *dws = spi_master_get_devdata(spi->master); in dw_spi_sparx5_set_cs()
264 struct dw_spi *dws; in dw_spi_mmio_probe()