Home
last modified time | relevance | path

Searched refs:SPI_DATA (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/drivers/spi/
Dspi_sifive.c129 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()
[all …]
Dspi_grlib_spimctrl.c35 #define SPI_DATA(dev) ((struct data *) ((dev)->data)) macro
105 struct spi_context *ctx = &SPI_DATA(dev)->ctx; in transceive()
154 spi_context_unlock_unconditionally(&SPI_DATA(dev)->ctx); in release()
162 struct spi_context *ctx = &SPI_DATA(dev)->ctx; in spim_isr()
213 spi_context_unlock_unconditionally(&SPI_DATA(dev)->ctx); in init()
Dspi_b91.c44 #define SPI_DATA(dev) ((struct spi_b91_data *) ((dev)->data)) macro
194 struct spi_context *ctx = &SPI_DATA(dev)->ctx; in spi_b91_txrx()
302 struct spi_b91_data *b91_data = SPI_DATA(dev); in spi_b91_config()
368 struct spi_b91_data *data = SPI_DATA(dev); in spi_b91_init()
387 struct spi_b91_data *data = SPI_DATA(dev); in spi_b91_transceive()
444 struct spi_b91_data *data = SPI_DATA(dev); in spi_b91_release()
Dspi_sifive.h19 #define SPI_DATA(dev) ((struct spi_sifive_data *) ((dev)->data)) macro
Dspi_gd32.c210 SPI_DATA(cfg->reg) = tx_frame; in spi_gd32_frame_exchange()
217 SPI_DATA(cfg->reg) = tx_frame; in spi_gd32_frame_exchange()
228 rx_frame = SPI_DATA(cfg->reg); in spi_gd32_frame_exchange()
235 rx_frame = SPI_DATA(cfg->reg); in spi_gd32_frame_exchange()
285 block_cfg->dest_address = (uint32_t)&SPI_DATA(cfg->reg); in spi_gd32_dma_setup()
297 block_cfg->source_address = (uint32_t)&SPI_DATA(cfg->reg); in spi_gd32_dma_setup()
Dspi_andes_atcspi200.h33 #define SPI_DATA(base) (base + REG_DATA) macro
Dspi_andes_atcspi200.c338 data->dma_tx.dma_blk_cfg.dest_address = (uint32_t)SPI_DATA(cfg->base); in spi_dma_tx_load()
386 next_blk_cfg->dest_address = (uint32_t)SPI_DATA(cfg->base); in spi_dma_tx_load()
455 data->dma_rx.dma_blk_cfg.source_address = (uint32_t)SPI_DATA(cfg->base); in spi_dma_rx_load()
500 next_blk_cfg->source_address = (uint32_t)SPI_DATA(cfg->base); in spi_dma_rx_load()
803 sys_write32(tx_data, SPI_DATA(cfg->base)); in spi_atcspi200_irq_handler()
818 rx_data = sys_read32(SPI_DATA(cfg->base)); in spi_atcspi200_irq_handler()