Lines Matching full:mspi
91 struct mpc8xxx_spi *mspi = spi_controller_get_devdata(spi->controller); 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()
234 static int fsl_spi_cpu_bufs(struct mpc8xxx_spi *mspi, in fsl_spi_cpu_bufs() argument
238 struct fsl_spi_reg __iomem *reg_base = mspi->reg_base; in fsl_spi_cpu_bufs()
240 mspi->count = len; in fsl_spi_cpu_bufs()
246 word = mspi->get_tx(mspi); in fsl_spi_cpu_bufs()
425 static void fsl_spi_cpu_irq(struct mpc8xxx_spi *mspi, u32 events) in fsl_spi_cpu_irq() argument
427 struct fsl_spi_reg __iomem *reg_base = mspi->reg_base; in fsl_spi_cpu_irq()
433 if (mspi->rx) in fsl_spi_cpu_irq()
434 mspi->get_rx(rx_data, mspi); in fsl_spi_cpu_irq()
447 mspi->count -= 1; in fsl_spi_cpu_irq()
448 if (mspi->count) { in fsl_spi_cpu_irq()
449 u32 word = mspi->get_tx(mspi); in fsl_spi_cpu_irq()
453 complete(&mspi->done); in fsl_spi_cpu_irq()
459 struct mpc8xxx_spi *mspi = context_data; in fsl_spi_irq() local
462 struct fsl_spi_reg __iomem *reg_base = mspi->reg_base; in fsl_spi_irq()
469 dev_dbg(mspi->dev, "%s: events %x\n", __func__, events); in fsl_spi_irq()
471 if (mspi->flags & SPI_CPM_MODE) in fsl_spi_irq()
472 fsl_spi_cpm_irq(mspi, events); in fsl_spi_irq()
474 fsl_spi_cpu_irq(mspi, events); in fsl_spi_irq()