Home
last modified time | relevance | path

Searched refs:current_tx (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/drivers/spi/
Dspi_context.h43 const struct spi_buf *current_tx; member
367 ctx->current_tx = tx_bufs ? tx_bufs->buffers : NULL; in spi_context_buffers_setup()
368 ctx->tx_count = ctx->current_tx ? tx_bufs->count : 0; in spi_context_buffers_setup()
370 spi_context_get_next_buf(&ctx->current_tx, &ctx->tx_count, in spi_context_buffers_setup()
387 ctx->current_tx, ctx->tx_count, in spi_context_buffers_setup()
414 ++ctx->current_tx; in spi_context_update_tx()
417 spi_context_get_next_buf(&ctx->current_tx, in spi_context_update_tx()
537 total_len += ctx->current_tx[n].len; in spi_context_count_tx_buf_lens()
Dspi_andes_atcspi200.c311 if (ctx->current_tx->len > data->chunk_len) { in spi_dma_tx_load()
315 data->dma_tx.dma_blk_cfg.block_size = ctx->current_tx->len / in spi_dma_tx_load()
320 if (ctx->current_tx->buf == NULL) { in spi_dma_tx_load()
326 data->dma_tx.dma_blk_cfg.source_address = (uintptr_t)ctx->current_tx->buf; in spi_dma_tx_load()
335 remain_len = data->chunk_len - ctx->current_tx->len; in spi_dma_tx_load()
336 spi_context_update_tx(ctx, dfs, ctx->current_tx->len); in spi_dma_tx_load()
357 const struct spi_buf *current_tx = ctx->current_tx; in spi_dma_tx_load() local
366 current_tx = ctx->current_tx; in spi_dma_tx_load()
368 next_blk_cfg->block_size = current_tx->len / in spi_dma_tx_load()
372 if (current_tx->buf == NULL) { in spi_dma_tx_load()
[all …]
Dspi_mcux_dspi.c272 get_size_byte_by_frame_size(ctx->current_tx->len, frame_size_bit)) { in mcux_spi_context_data_update()
275 ctx->current_tx->len * 8 / frame_size_bit, in mcux_spi_context_data_update()
293 } while (i < ctx->current_tx->len && in mcux_spi_context_data_update()
297 if (i == ctx->current_tx->len) { in mcux_spi_context_data_update()
313 } while (i < ctx->current_tx->len && in mcux_spi_context_data_update()
316 if (i == ctx->current_tx->len) { in mcux_spi_context_data_update()
349 if (data->ctx.current_tx && data->ctx.current_tx->len > 0 && in update_tx_dma()
350 data->ctx.current_tx->buf != NULL) { in update_tx_dma()
357 tx_size = get_size_byte_by_frame_size(data->ctx.current_tx->len, in update_tx_dma()
360 tx_buf = data->ctx.current_tx->buf; in update_tx_dma()
Dspi_sedi.c131 buf = ctx->current_tx + i; in transceive()
Dspi_silabs_eusart.c485 ret = spi_eusart_prepare_dma_channel(dev, data->ctx.current_tx, data->ctx.tx_count, in spi_eusart_prepare_dma_transaction()