Home
last modified time | relevance | path

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

/drivers/spi/
Dspi-dw.h90 struct dw_spi;
92 int (*dma_init)(struct dw_spi *dws);
93 void (*dma_exit)(struct dw_spi *dws);
94 int (*dma_setup)(struct dw_spi *dws, struct spi_transfer *xfer);
97 int (*dma_transfer)(struct dw_spi *dws, struct spi_transfer *xfer);
98 void (*dma_stop)(struct dw_spi *dws);
101 struct dw_spi { struct
125 irqreturn_t (*transfer_handler)(struct dw_spi *dws); argument
145 static inline u32 dw_readl(struct dw_spi *dws, u32 offset) in dw_readl() argument
150 static inline u16 dw_readw(struct dw_spi *dws, u32 offset) in dw_readw()
[all …]
Dspi-dw.c50 struct dw_spi *dws = file->private_data; in dw_spi_show_regs()
108 static int dw_spi_debugfs_init(struct dw_spi *dws) in dw_spi_debugfs_init()
122 static void dw_spi_debugfs_remove(struct dw_spi *dws) in dw_spi_debugfs_remove()
128 static inline int dw_spi_debugfs_init(struct dw_spi *dws) in dw_spi_debugfs_init()
133 static inline void dw_spi_debugfs_remove(struct dw_spi *dws) in dw_spi_debugfs_remove()
140 struct dw_spi *dws = spi_master_get_devdata(spi->master); in dw_spi_set_cs()
152 static inline u32 tx_max(struct dw_spi *dws) in tx_max()
174 static inline u32 rx_max(struct dw_spi *dws) in rx_max()
181 static void dw_writer(struct dw_spi *dws) in dw_writer()
199 static void dw_reader(struct dw_spi *dws) in dw_reader()
[all …]
Dspi-dw-mid.c46 static int mid_spi_dma_init(struct dw_spi *dws) in mid_spi_dma_init()
87 static void mid_spi_dma_exit(struct dw_spi *dws) in mid_spi_dma_exit()
99 static irqreturn_t dma_transfer(struct dw_spi *dws) in dma_transfer()
118 struct dw_spi *dws = spi_master_get_devdata(master); in mid_spi_can_dma()
141 struct dw_spi *dws = arg; in dw_spi_dma_tx_done()
149 static struct dma_async_tx_descriptor *dw_spi_dma_prepare_tx(struct dw_spi *dws, in dw_spi_dma_prepare_tx()
187 struct dw_spi *dws = arg; in dw_spi_dma_rx_done()
195 static struct dma_async_tx_descriptor *dw_spi_dma_prepare_rx(struct dw_spi *dws, in dw_spi_dma_prepare_rx()
227 static int mid_spi_dma_setup(struct dw_spi *dws, struct spi_transfer *xfer) in mid_spi_dma_setup()
248 static int mid_spi_dma_transfer(struct dw_spi *dws, struct spi_transfer *xfer) in mid_spi_dma_transfer()
[all …]
Dspi-dw-pci.c27 int (*setup)(struct dw_spi *);
46 struct dw_spi *dws; in spi_pci_probe()
101 struct dw_spi *dws = pci_get_drvdata(pdev); in spi_pci_remove()
110 struct dw_spi *dws = pci_get_drvdata(pdev); in spi_suspend()
118 struct dw_spi *dws = pci_get_drvdata(pdev); in spi_resume()
Dspi-dw-mmio.c29 struct dw_spi dws;
36 struct dw_spi *dws; in dw_spi_mmio_probe()