Lines Matching refs:SPI_DATA
129 struct spi_context *ctx = &SPI_DATA(dev)->ctx; in spi_sifive_xfer()
165 spi_context_cs_control(&SPI_DATA(dev)->ctx, false); in spi_sifive_xfer()
184 err = spi_context_cs_configure_all(&SPI_DATA(dev)->ctx); in spi_sifive_init()
197 spi_context_unlock_unconditionally(&SPI_DATA(dev)->ctx); in spi_sifive_init()
210 spi_context_lock(&SPI_DATA(dev)->ctx, false, NULL, NULL, config); in spi_sifive_transceive()
213 SPI_DATA(dev)->ctx.config = config; in spi_sifive_transceive()
243 spi_context_release(&SPI_DATA(dev)->ctx, rc); in spi_sifive_transceive()
247 spi_context_buffers_setup(&SPI_DATA(dev)->ctx, tx_bufs, rx_bufs, 1); in spi_sifive_transceive()
251 spi_context_cs_control(&SPI_DATA(dev)->ctx, true); in spi_sifive_transceive()
259 rc = spi_context_wait_for_completion(&SPI_DATA(dev)->ctx); in spi_sifive_transceive()
261 spi_context_release(&SPI_DATA(dev)->ctx, rc); in spi_sifive_transceive()
269 spi_context_unlock_unconditionally(&SPI_DATA(dev)->ctx); in spi_sifive_release()