Lines Matching refs:dw_spi
140 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()
214 static inline u32 dw_read_io_reg(struct dw_spi *dws, u32 offset) in dw_read_io_reg()
225 static inline void dw_write_io_reg(struct dw_spi *dws, u32 offset, u32 val) in dw_write_io_reg()
238 static inline void dw_spi_enable_chip(struct dw_spi *dws, int enable) in dw_spi_enable_chip()
243 static inline void dw_spi_set_clk(struct dw_spi *dws, u16 div) in dw_spi_set_clk()
249 static inline void dw_spi_mask_intr(struct dw_spi *dws, u32 mask) in dw_spi_mask_intr()
258 static inline void dw_spi_umask_intr(struct dw_spi *dws, u32 mask) in dw_spi_umask_intr()
271 static inline void dw_spi_reset_chip(struct dw_spi *dws) in dw_spi_reset_chip()
280 static inline void dw_spi_shutdown_chip(struct dw_spi *dws) in dw_spi_shutdown_chip()
287 extern void dw_spi_update_config(struct dw_spi *dws, struct spi_device *spi,
289 extern int dw_spi_check_status(struct dw_spi *dws, bool raw);
290 extern int dw_spi_add_host(struct device *dev, struct dw_spi *dws);
291 extern void dw_spi_remove_host(struct dw_spi *dws);
292 extern int dw_spi_suspend_host(struct dw_spi *dws);
293 extern int dw_spi_resume_host(struct dw_spi *dws);
297 extern void dw_spi_dma_setup_mfld(struct dw_spi *dws);
298 extern void dw_spi_dma_setup_generic(struct dw_spi *dws);
302 static inline void dw_spi_dma_setup_mfld(struct dw_spi *dws) {} in dw_spi_dma_setup_mfld()
303 static inline void dw_spi_dma_setup_generic(struct dw_spi *dws) {} in dw_spi_dma_setup_generic()