Home
last modified time | relevance | path

Searched refs:tx_count (Results 1 – 25 of 32) sorted by relevance

12

/drivers/spi/
A Dspi_renesas_rx.c32 uint16_t tx_count; member
137 uint16_t tx_count = rspi_tcb->tx_count; in rx_rspi_spti_sub() local
162 if (tx_count < rspi_tcb->xfr_length) { in rx_rspi_spti_sub()
163 transmit_data(data, tx_count); in rx_rspi_spti_sub()
164 rspi_tcb->tx_count++; in rx_rspi_spti_sub()
462 data->tcb.tx_count = 0; in transceive()
617 data->tcb.tx_count = 0; in rx_rspi_retransmit()
623 uint16_t tx_count = rspi_tcb->tx_count; in rx_rspi_retransmit() local
626 transmit_data(data, tx_count); in rx_rspi_retransmit()
627 rspi_tcb->tx_count++; in rx_rspi_retransmit()
[all …]
A Dspi_rpi_pico_pio.c67 uint32_t tx_count; member
551 data->tx_count += chunk_len; in spi_pico_pio_dma_callback()
569 data->tx_count = 0; in spi_pico_pio_dma_callback()
681 txrx = sys_get_be32(txbuf + (data->tx_count * 4)); in spi_pico_pio_txrx_4_wire()
695 txrx = ((uint8_t *)txbuf)[data->tx_count]; in spi_pico_pio_txrx_4_wire()
704 data->tx_count++; in spi_pico_pio_txrx_4_wire()
773 while (data->tx_count < tx_size) { in spi_pico_pio_txrx_3_wire()
776 data->tx_count < tx_size) { in spi_pico_pio_txrx_3_wire()
790 txrx = ((uint8_t *)txbuf)[data->tx_count]; in spi_pico_pio_txrx_3_wire()
798 data->tx_count++; in spi_pico_pio_txrx_3_wire()
[all …]
A Dspi_rtio.c173 size_t tx_count = tx_bufs ? tx_bufs->count : 0; in spi_rtio_copy() local
182 if (tx < tx_count) { in spi_rtio_copy()
195 rx_len = (tx_bufs != NULL && tx < tx_count) ? tx_bufs->buffers[tx].len : 0; in spi_rtio_copy()
199 while ((tx < tx_count || rx < rx_count) && (tx_len > 0 || rx_len > 0)) { in spi_rtio_copy()
231 if (tx < tx_count) { in spi_rtio_copy()
257 if (tx < tx_count) { in spi_rtio_copy()
289 if (tx < tx_count) { in spi_rtio_copy()
A Dspi_pl022.c299 uint32_t tx_count; member
667 data->tx_count = 0; in spi_pl022_async_xfer()
679 if ((data->tx_count < chunk_len) && SSP_TX_FIFO_NOT_FULL(cfg->reg)) { in spi_pl022_async_xfer()
684 txrx = *(((uint8_t *)ctx->tx_buf) + data->tx_count); in spi_pl022_async_xfer()
687 data->tx_count++; in spi_pl022_async_xfer()
708 data->tx_count = 0; in spi_pl022_start_async_xfer()
745 data->tx_count = 0; in spi_pl022_xfer()
757 while (data->rx_count < chunk_len || data->tx_count < chunk_len) { in spi_pl022_xfer()
765 txrx = ((uint8_t *)txbuf)[data->tx_count]; in spi_pl022_xfer()
768 data->tx_count++; in spi_pl022_xfer()
[all …]
A Dspi_sam0.c294 size_t tx_count = 0; in spi_sam0_fast_transceive() local
302 tx_count = tx_bufs->count; in spi_sam0_fast_transceive()
312 while (tx_count != 0 && rx_count != 0) { in spi_sam0_fast_transceive()
322 tx_count--; in spi_sam0_fast_transceive()
327 for (; tx_count != 0; tx_count--) { in spi_sam0_fast_transceive()
348 size_t tx_count = 0; in spi_sam0_is_regular() local
353 tx_count = tx_bufs->count; in spi_sam0_is_regular()
361 while (tx_count != 0 && rx_count != 0) { in spi_sam0_is_regular()
367 tx_count--; in spi_sam0_is_regular()
A Dspi_context.h60 size_t tx_count; member
474 ctx->tx_count = ctx->current_tx ? tx_bufs->count : 0; in spi_context_buffers_setup()
476 spi_context_get_next_buf(&ctx->current_tx, &ctx->tx_count, in spi_context_buffers_setup()
493 ctx->current_tx, ctx->tx_count, in spi_context_buffers_setup()
521 --ctx->tx_count; in spi_context_update_tx()
524 &ctx->tx_count, in spi_context_update_tx()
642 for (n = start_index; n < ctx->tx_count; ++n) { in spi_context_count_tx_buf_lens()
A Dspi_sam.c531 size_t tx_count = 0; in spi_sam_fast_transceive() local
539 tx_count = tx_bufs->count; in spi_sam_fast_transceive()
547 while (tx_count != 0 && rx_count != 0) { in spi_sam_fast_transceive()
559 tx_count--; in spi_sam_fast_transceive()
564 for (; tx_count != 0; tx_count--) { in spi_sam_fast_transceive()
620 size_t tx_count = 0; in spi_sam_is_regular() local
625 tx_count = tx_bufs->count; in spi_sam_is_regular()
637 while (tx_count != 0 && rx_count != 0) { in spi_sam_is_regular()
643 tx_count--; in spi_sam_is_regular()
A Dspi_sedi.c125 if ((ctx->tx_count > 1) || (ctx->rx_count > 1)) { in transceive()
129 if (ctx->tx_count > ctx->rx_count) { in transceive()
131 for (i = ctx->rx_count; i < ctx->tx_count; i++) { in transceive()
136 } else if (ctx->tx_count < ctx->rx_count) { in transceive()
138 for (i = ctx->tx_count; i < ctx->rx_count; i++) { in transceive()
A Dspi_cc23x0.c60 uint32_t tx_count; member
127 if (status & SPI_TXEMPTY && !data->xfer_done && data->tx_count == data->rx_count) { in spi_cc23x0_isr()
143 data->tx_count++; in spi_cc23x0_isr()
257 data->tx_count = 0; in spi_cc23x0_initialize_data()
A Dspi_b_renesas_ra8.c482 data->spi.tx_count = 0; in ra_spi_retransmit()
522 data->spi.tx_count = data->data_len; in ra_spi_retransmit()
599 if (data->spi.tx_count == data->spi.count) { in ra_spi_tei_isr()
A Dspi_opentitan.c176 if (ctx->tx_count > 0 || ctx->rx_count > 1) { in spi_opentitan_xfer()
A Dspi_mcux_dspi.c191 if (!(ctx->tx_count <= 1 && ctx->rx_count <= 1)) { in spi_mcux_transfer_next_packet()
493 LOG_DBG("tx count %d", data->ctx.tx_count); in dma_callback()
496 LOG_DBG("tx count %d", data->ctx.tx_count); in dma_callback()
A Dspi_renesas_ra.c526 data->spi.tx_count = 0; in ra_spi_retransmit()
567 data->spi.tx_count = data->data_len; in ra_spi_retransmit()
647 if (data->spi.tx_count == data->spi.count) { in ra_spi_tei_isr()
A Dspi_mcux_flexcomm.c140 if (ctx->tx_count <= 1 && ctx->rx_count <= 1) { in spi_mcux_transfer_next_packet()
540 if (data->ctx.tx_count <= 1 && data->ctx.rx_count <= 1 && in spi_mcux_dma_transfer()
681 if (data->ctx.tx_count <= 1 && data->ctx.rx_count <= 1 && in transceive_dma()
A Dspi_rv32m1_lpspi.c101 if (!(ctx->tx_count <= 1 && ctx->rx_count <= 1)) { in spi_mcux_transfer_next_packet()
A Dspi_andes_atcspi200.c312 if (ctx->tx_buf == NULL && ctx->tx_count == 0) { in spi_dma_tx_load()
357 if (ctx->tx_buf == NULL && ctx->tx_count == 0) { in spi_dma_tx_load()
A Dspi_it8xxx2.c249 if (ctx->tx_count > 1) { in spi_it8xxx2_tx()
/drivers/flash/
A Dflash_npcx_fiu_nor.c131 .tx_count = size}; in flash_npcx_uma_write()
141 .tx_count = size}; in flash_npcx_uma_write_by_addr()
230 .tx_count = 4, in flash_npcx_nor_read_sfdp()
472 if (op_in->tx_count != 0) { in flash_npcx_nor_ex_exec_uma()
474 cfg.tx_count = op_in->tx_count; in flash_npcx_nor_ex_exec_uma()
A Dflash_npcx_fiu_qspi.h46 size_t tx_count; member
A Dflash_npcx_fiu_qspi.c189 for (size_t i = 0; i < cfg->tx_count; i++) { in qspi_npcx_fiu_uma_transceive()
/drivers/display/
A Ddisplay_st7735r.c72 const uint8_t *tx_data, size_t tx_count) in st7735r_transmit_hold() argument
77 cmd, tx_data, tx_count); in st7735r_transmit_hold()
81 const uint8_t *tx_data, size_t tx_count) in st7735r_transmit() argument
86 ret = st7735r_transmit_hold(dev, cmd, tx_data, tx_count); in st7735r_transmit()
A Ddisplay_st7789v.c72 uint8_t *tx_data, size_t tx_count) in st7789v_transmit() argument
77 cmd, tx_data, tx_count); in st7789v_transmit()
/drivers/i3c/
A Di3cs_it51xxx.c245 uint16_t tx_count; in it51xxx_i3cs_prepare_tx_fifo() local
251 tx_count = tx_byte_cnt_in_fifo(dev); in it51xxx_i3cs_prepare_tx_fifo()
252 if (tx_count) { in it51xxx_i3cs_prepare_tx_fifo()
253 LOG_INST_WRN(cfg->log, "dropped the remaining %d bytes in the tx fifo", tx_count); in it51xxx_i3cs_prepare_tx_fifo()
/drivers/espi/
A Despi_taf_npcx.c536 .tx_count = (pckt->len) - 1, in espi_taf_npcx_rpmc_op1()
564 .tx_count = 1, in espi_taf_npcx_rpmc_op2()
/drivers/spi/spi_nxp_lpspi/
A Dspi_nxp_lpspi.c164 size_t bufs_left = ctx->tx_count; in lpspi_next_tx_fill()

Completed in 66 milliseconds

12