Searched refs:mpc8xxx_spi (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/spi/ |
H A D | spi-fsl-lib.c | 31 void mpc8xxx_spi_rx_buf_##type(u32 data, struct mpc8xxx_spi *mpc8xxx_spi) \ 33 type *rx = mpc8xxx_spi->rx; \ 34 *rx++ = (type)(data >> mpc8xxx_spi->rx_shift); \ 35 mpc8xxx_spi->rx = rx; \ 40 u32 mpc8xxx_spi_tx_buf_##type(struct mpc8xxx_spi *mpc8xxx_spi) \ 43 const type *tx = mpc8xxx_spi->tx; \ 46 data = *tx++ << mpc8xxx_spi->tx_shift; \ 47 mpc8xxx_spi->tx = tx; \ 86 struct mpc8xxx_spi *mpc8xxx_spi; in mpc8xxx_spi_probe() local 96 mpc8xxx_spi = spi_controller_get_devdata(ctlr); in mpc8xxx_spi_probe() [all …]
|
H A D | spi-fsl-lib.h | 20 struct mpc8xxx_spi { struct 47 void (*get_rx) (u32 rx_data, struct mpc8xxx_spi *); argument 48 u32(*get_tx) (struct mpc8xxx_spi *); argument 75 void (*get_rx) (u32 rx_data, struct mpc8xxx_spi *); argument 76 u32 (*get_tx) (struct mpc8xxx_spi *); 97 extern u32 mpc8xxx_spi_tx_buf_u8(struct mpc8xxx_spi *mpc8xxx_spi); 98 extern u32 mpc8xxx_spi_tx_buf_u16(struct mpc8xxx_spi *mpc8xxx_spi); 99 extern u32 mpc8xxx_spi_tx_buf_u32(struct mpc8xxx_spi *mpc8xxx_spi); 100 extern void mpc8xxx_spi_rx_buf_u8(u32 data, struct mpc8xxx_spi *mpc8xxx_spi); 101 extern void mpc8xxx_spi_rx_buf_u16(u32 data, struct mpc8xxx_spi *mpc8xxx_spi); [all …]
|
H A D | spi-fsl-cpm.h | 21 extern void fsl_spi_cpm_reinit_txrx(struct mpc8xxx_spi *mspi); 22 extern int fsl_spi_cpm_bufs(struct mpc8xxx_spi *mspi, 24 extern void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi); 25 extern void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events); 26 extern int fsl_spi_cpm_init(struct mpc8xxx_spi *mspi); 27 extern void fsl_spi_cpm_free(struct mpc8xxx_spi *mspi); 29 static inline void fsl_spi_cpm_reinit_txrx(struct mpc8xxx_spi *mspi) { } in fsl_spi_cpm_reinit_txrx() 30 static inline int fsl_spi_cpm_bufs(struct mpc8xxx_spi *mspi, in fsl_spi_cpm_bufs() 32 static inline void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi) { } in fsl_spi_cpm_bufs_complete() 33 static inline void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events) { } in fsl_spi_cpm_irq() [all …]
|
H A D | spi-fsl-cpm.c | 52 void fsl_spi_cpm_reinit_txrx(struct mpc8xxx_spi *mspi) in fsl_spi_cpm_reinit_txrx() 72 static void fsl_spi_cpm_bufs_start(struct mpc8xxx_spi *mspi) in fsl_spi_cpm_bufs_start() 101 int fsl_spi_cpm_bufs(struct mpc8xxx_spi *mspi, struct spi_transfer *t) in fsl_spi_cpm_bufs() 176 void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi) in fsl_spi_cpm_bufs_complete() 196 void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events) in fsl_spi_cpm_irq() 255 static unsigned long fsl_spi_cpm_get_pram(struct mpc8xxx_spi *mspi) in fsl_spi_cpm_get_pram() 292 int fsl_spi_cpm_init(struct mpc8xxx_spi *mspi) in fsl_spi_cpm_init() 402 void fsl_spi_cpm_free(struct mpc8xxx_spi *mspi) in fsl_spi_cpm_free()
|