Lines Matching refs:slave_plat
108 struct dm_spi_slave_plat *slave_plat) in sifive_spi_prep_device() argument
111 if (slave_plat->mode & SPI_CS_HIGH) in sifive_spi_prep_device()
112 spi->cs_inactive &= ~BIT(slave_plat->cs); in sifive_spi_prep_device()
114 spi->cs_inactive |= BIT(slave_plat->cs); in sifive_spi_prep_device()
118 writel(slave_plat->cs, spi->regs + SIFIVE_SPI_REG_CSID); in sifive_spi_prep_device()
122 struct dm_spi_slave_plat *slave_plat) in sifive_spi_set_cs() argument
126 if (slave_plat->mode & SPI_CS_HIGH) in sifive_spi_set_cs()
140 struct dm_spi_slave_plat *slave_plat, in sifive_spi_prep_transfer() argument
154 if (slave_plat->mode & SPI_LSB_FIRST) in sifive_spi_prep_transfer()
215 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in sifive_spi_xfer() local
222 sifive_spi_prep_device(spi, slave_plat); in sifive_spi_xfer()
224 ret = sifive_spi_set_cs(spi, slave_plat); in sifive_spi_xfer()
229 sifive_spi_prep_transfer(spi, slave_plat, rx_ptr); in sifive_spi_xfer()