Lines Matching refs:mpc8xxx_spi
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()
97 mpc8xxx_spi->dev = dev; in mpc8xxx_spi_probe()
98 mpc8xxx_spi->get_rx = mpc8xxx_spi_rx_buf_u8; in mpc8xxx_spi_probe()
99 mpc8xxx_spi->get_tx = mpc8xxx_spi_tx_buf_u8; in mpc8xxx_spi_probe()
100 mpc8xxx_spi->flags = pdata->flags; in mpc8xxx_spi_probe()
101 mpc8xxx_spi->spibrg = pdata->sysclk; in mpc8xxx_spi_probe()
102 mpc8xxx_spi->irq = irq; in mpc8xxx_spi_probe()
104 mpc8xxx_spi->rx_shift = 0; in mpc8xxx_spi_probe()
105 mpc8xxx_spi->tx_shift = 0; in mpc8xxx_spi_probe()
110 init_completion(&mpc8xxx_spi->done); in mpc8xxx_spi_probe()