Searched refs:mspi (Results 1 – 4 of 4) sorted by relevance
/drivers/spi/ |
D | spi-fsl-cpm.c | 52 void fsl_spi_cpm_reinit_txrx(struct mpc8xxx_spi *mspi) in fsl_spi_cpm_reinit_txrx() argument 54 if (mspi->flags & SPI_QE) { in fsl_spi_cpm_reinit_txrx() 55 qe_issue_cmd(QE_INIT_TX_RX, mspi->subblock, in fsl_spi_cpm_reinit_txrx() 58 if (mspi->flags & SPI_CPM1) { in fsl_spi_cpm_reinit_txrx() 59 out_be32(&mspi->pram->rstate, 0); in fsl_spi_cpm_reinit_txrx() 60 out_be16(&mspi->pram->rbptr, in fsl_spi_cpm_reinit_txrx() 61 in_be16(&mspi->pram->rbase)); in fsl_spi_cpm_reinit_txrx() 62 out_be32(&mspi->pram->tstate, 0); in fsl_spi_cpm_reinit_txrx() 63 out_be16(&mspi->pram->tbptr, in fsl_spi_cpm_reinit_txrx() 64 in_be16(&mspi->pram->tbase)); in fsl_spi_cpm_reinit_txrx() [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() argument 30 static inline int fsl_spi_cpm_bufs(struct mpc8xxx_spi *mspi, in fsl_spi_cpm_bufs() argument 33 static inline void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi) { } in fsl_spi_cpm_bufs_complete() argument 34 static inline void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events) { } in fsl_spi_cpm_irq() argument [all …]
|
D | spi-fsl-spi.c | 91 struct mpc8xxx_spi *mspi = spi_master_get_devdata(spi->master); in fsl_spi_change_mode() local 93 struct fsl_spi_reg __iomem *reg_base = mspi->reg_base; in fsl_spi_change_mode() 107 if (mspi->flags & SPI_CPM_MODE) { in fsl_spi_change_mode() 108 fsl_spi_cpm_reinit_txrx(mspi); in fsl_spi_change_mode() 268 static int fsl_spi_cpu_bufs(struct mpc8xxx_spi *mspi, in fsl_spi_cpu_bufs() argument 272 struct fsl_spi_reg __iomem *reg_base = mspi->reg_base; in fsl_spi_cpu_bufs() 274 mspi->count = len; in fsl_spi_cpu_bufs() 280 word = mspi->get_tx(mspi); in fsl_spi_cpu_bufs() 494 static void fsl_spi_cpu_irq(struct mpc8xxx_spi *mspi, u32 events) in fsl_spi_cpu_irq() argument 496 struct fsl_spi_reg __iomem *reg_base = mspi->reg_base; in fsl_spi_cpu_irq() [all …]
|
D | spi-fsl-lib.h | 106 extern int mpc8xxx_spi_bufs(struct mpc8xxx_spi *mspi,
|