Lines Matching refs:mode
90 out_be32(&priv->spi->mode, SPI_MODE_REV | SPI_MODE_MS); in mpc8xxx_spi_probe()
93 setbits_be32(&spi->mode, (8 - 1) << SPI_MODE_LEN_SHIFT); in mpc8xxx_spi_probe()
95 setbits_be32(&spi->mode, SPI_MODE_EN); in mpc8xxx_spi_probe()
217 u32 mode; in mpc8xxx_spi_set_speed() local
236 mode = in_be32(&spi->mode); in mpc8xxx_spi_set_speed()
237 if ((mode & mask) != bits) { in mpc8xxx_spi_set_speed()
239 mode &= ~(mask | SPI_MODE_EN); in mpc8xxx_spi_set_speed()
240 out_be32(&spi->mode, mode); in mpc8xxx_spi_set_speed()
241 mode |= bits; in mpc8xxx_spi_set_speed()
242 out_be32(&spi->mode, mode); in mpc8xxx_spi_set_speed()
243 mode |= SPI_MODE_EN; in mpc8xxx_spi_set_speed()
244 out_be32(&spi->mode, mode); in mpc8xxx_spi_set_speed()
254 static int mpc8xxx_spi_set_mode(struct udevice *dev, uint mode) in mpc8xxx_spi_set_mode() argument