Lines Matching refs:sifive_spi
19 #define SIFIVE_SPI_DRIVER_NAME "sifive_spi"
91 struct sifive_spi {
99 static void sifive_spi_write(struct sifive_spi *spi, int offset, u32 value)
104 static u32 sifive_spi_read(struct sifive_spi *spi, int offset)
109 static void sifive_spi_init(struct sifive_spi *spi)
133 struct sifive_spi *spi = spi_controller_get_devdata(host);
155 struct sifive_spi *spi = spi_controller_get_devdata(device->controller);
167 sifive_spi_prep_transfer(struct sifive_spi *spi, struct spi_device *device,
210 struct sifive_spi *spi = dev_id;
223 static void sifive_spi_wait(struct sifive_spi *spi, u32 bit, int poll)
238 static void sifive_spi_tx(struct sifive_spi *spi, const u8 *tx_ptr)
246 static void sifive_spi_rx(struct sifive_spi *spi, u8 *rx_ptr)
258 struct sifive_spi *spi = spi_controller_get_devdata(host);
294 struct sifive_spi *spi;
299 host = spi_alloc_host(&pdev->dev, sizeof(struct sifive_spi));
421 struct sifive_spi *spi = spi_controller_get_devdata(host);
431 struct sifive_spi *spi = spi_controller_get_devdata(host);
449 struct sifive_spi *spi = spi_controller_get_devdata(host);