Searched refs:mpc8xxx_spi (Results 1 – 5 of 5) sorted by relevance
/linux-6.6.21/drivers/spi/ |
D | spi-fsl-spi.c | 91 struct mpc8xxx_spi *mspi = spi_controller_get_devdata(spi->controller); in fsl_spi_change_mode() 150 struct mpc8xxx_spi *mpc8xxx_spi, in mspi_apply_cpu_mode_quirks() argument 166 if (mpc8xxx_spi->set_shifts) in mspi_apply_cpu_mode_quirks() 167 mpc8xxx_spi->set_shifts(&cs->rx_shift, &cs->tx_shift, in mspi_apply_cpu_mode_quirks() 171 mpc8xxx_spi->rx_shift = cs->rx_shift; in mspi_apply_cpu_mode_quirks() 172 mpc8xxx_spi->tx_shift = cs->tx_shift; in mspi_apply_cpu_mode_quirks() 173 mpc8xxx_spi->get_rx = cs->get_rx; in mspi_apply_cpu_mode_quirks() 174 mpc8xxx_spi->get_tx = cs->get_tx; in mspi_apply_cpu_mode_quirks() 180 struct mpc8xxx_spi *mpc8xxx_spi; in fsl_spi_setup_transfer() local 186 mpc8xxx_spi = spi_controller_get_devdata(spi->controller); in fsl_spi_setup_transfer() [all …]
|
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_master_get_devdata(master); in mpc8xxx_spi_probe() [all …]
|
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 …]
|
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() 33 static inline void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi) { } in fsl_spi_cpm_bufs_complete() 34 static inline void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events) { } in fsl_spi_cpm_irq() [all …]
|
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, in fsl_spi_cpm_bufs() 182 void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi) in fsl_spi_cpm_bufs_complete() 202 void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events) in fsl_spi_cpm_irq() 261 static unsigned long fsl_spi_cpm_get_pram(struct mpc8xxx_spi *mspi) in fsl_spi_cpm_get_pram() 298 int fsl_spi_cpm_init(struct mpc8xxx_spi *mspi) in fsl_spi_cpm_init() 408 void fsl_spi_cpm_free(struct mpc8xxx_spi *mspi) in fsl_spi_cpm_free()
|