Lines Matching refs:mspi
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()
502 if (mspi->rx) in fsl_spi_cpu_irq()
503 mspi->get_rx(rx_data, mspi); in fsl_spi_cpu_irq()
516 mspi->count -= 1; in fsl_spi_cpu_irq()
517 if (mspi->count) { in fsl_spi_cpu_irq()
518 u32 word = mspi->get_tx(mspi); in fsl_spi_cpu_irq()
522 complete(&mspi->done); in fsl_spi_cpu_irq()
528 struct mpc8xxx_spi *mspi = context_data; in fsl_spi_irq() local
531 struct fsl_spi_reg __iomem *reg_base = mspi->reg_base; in fsl_spi_irq()
538 dev_dbg(mspi->dev, "%s: events %x\n", __func__, events); in fsl_spi_irq()
540 if (mspi->flags & SPI_CPM_MODE) in fsl_spi_irq()
541 fsl_spi_cpm_irq(mspi, events); in fsl_spi_irq()
543 fsl_spi_cpu_irq(mspi, events); in fsl_spi_irq()