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