Home
last modified time | relevance | path

Searched refs:rx_count (Results 1 – 25 of 30) sorted by relevance

12

/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_bus_uart.c36 size_t rx_count; member
119 uart->rx_buf[uart->rx_count++] = c; in eswifi_uart_get_resp()
121 if (uart->rx_count == uart->rx_buf_size) { in eswifi_uart_get_resp()
179 return uart->rx_count; in eswifi_uart_wait_prompt()
205 uart->rx_count = 0; in eswifi_uart_request()
212 LOG_HEXDUMP_DBG(uart->rx_buf, uart->rx_count, "Stream"); in eswifi_uart_request()
/Zephyr-latest/drivers/spi/
Dspi_rpi_pico_pio.c45 uint32_t rx_count; member
430 data->rx_count = 0; in spi_pico_pio_txrx_4_wire()
434 while (data->rx_count < chunk_len || data->tx_count < chunk_len) { in spi_pico_pio_txrx_4_wire()
472 data->rx_count < chunk_len && fifo_cnt > 0) { in spi_pico_pio_txrx_4_wire()
479 sys_put_be32(txrx, rxbuf + (data->rx_count * 4)); in spi_pico_pio_txrx_4_wire()
488 sys_put_be16(txrx, rxbuf + (data->rx_count * 2)); in spi_pico_pio_txrx_4_wire()
497 ((uint8_t *)rxbuf)[data->rx_count] = (uint8_t)txrx; in spi_pico_pio_txrx_4_wire()
505 data->rx_count++; in spi_pico_pio_txrx_4_wire()
524 data->rx_count = 0; in spi_pico_pio_txrx_3_wire()
586 while (data->rx_count < rx_size) { in spi_pico_pio_txrx_3_wire()
[all …]
Dspi_context.h46 size_t rx_count; member
305 ctx->rx_count = ctx->current_rx ? rx_bufs->count : 0; in spi_context_buffers_setup()
307 spi_context_get_next_buf(&ctx->current_rx, &ctx->rx_count, in spi_context_buffers_setup()
319 ctx->current_rx, ctx->rx_count, in spi_context_buffers_setup()
395 --ctx->rx_count; in spi_context_update_rx()
398 &ctx->rx_count, in spi_context_update_rx()
457 for (n = 0; n < ctx->rx_count; ++n) { in spi_context_total_rx_len()
Dspi_rtio.c137 size_t rx_count = rx_bufs ? rx_bufs->count : 0; in spi_rtio_copy() local
153 if (rx < rx_count) { in spi_rtio_copy()
162 while ((tx < tx_count || rx < rx_count) && (tx_len > 0 || rx_len > 0)) { in spi_rtio_copy()
187 if (rx < rx_count) { in spi_rtio_copy()
207 if (rx < rx_count) { in spi_rtio_copy()
236 if (rx < rx_count) { in spi_rtio_copy()
Dspi_sam0.c272 size_t rx_count = 0; in spi_sam0_fast_transceive() local
284 rx_count = rx_bufs->count; in spi_sam0_fast_transceive()
289 while (tx_count != 0 && rx_count != 0) { in spi_sam0_fast_transceive()
301 rx_count--; in spi_sam0_fast_transceive()
308 for (; rx_count != 0; rx_count--) { in spi_sam0_fast_transceive()
326 size_t rx_count = 0; in spi_sam0_is_regular() local
335 rx_count = rx_bufs->count; in spi_sam0_is_regular()
338 while (tx_count != 0 && rx_count != 0) { in spi_sam0_is_regular()
346 rx_count--; in spi_sam0_is_regular()
Dspi_pl022.c300 uint32_t rx_count; member
645 while (SSP_RX_FIFO_NOT_EMPTY(cfg->reg) && (data->rx_count < chunk_len)) { in spi_pl022_async_xfer()
650 *(((uint8_t *)ctx->rx_buf) + data->rx_count) = (uint8_t)txrx; in spi_pl022_async_xfer()
652 data->rx_count++; in spi_pl022_async_xfer()
660 if (MIN(data->tx_count, data->rx_count) >= chunk_len && chunk_len > 0) { in spi_pl022_async_xfer()
666 data->rx_count = 0; in spi_pl022_async_xfer()
707 data->rx_count = 0; in spi_pl022_start_async_xfer()
744 data->rx_count = 0; in spi_pl022_xfer()
755 while (data->rx_count < chunk_len || data->tx_count < chunk_len) { in spi_pl022_xfer()
769 while (data->rx_count < chunk_len && fifo_cnt > 0) { in spi_pl022_xfer()
[all …]
Dspi_sam.c532 size_t rx_count = 0; in spi_sam_fast_transceive() local
544 rx_count = rx_bufs->count; in spi_sam_fast_transceive()
547 while (tx_count != 0 && rx_count != 0) { in spi_sam_fast_transceive()
561 rx_count--; in spi_sam_fast_transceive()
569 for (; rx_count != 0; rx_count--) { in spi_sam_fast_transceive()
621 size_t rx_count = 0; in spi_sam_is_regular() local
630 rx_count = rx_bufs->count; in spi_sam_is_regular()
637 while (tx_count != 0 && rx_count != 0) { in spi_sam_is_regular()
645 rx_count--; in spi_sam_is_regular()
Dspi_sedi.c124 if ((ctx->tx_count > 1) || (ctx->rx_count > 1)) { in transceive()
128 if (ctx->tx_count > ctx->rx_count) { in transceive()
130 for (i = ctx->rx_count; i < ctx->tx_count; i++) { in transceive()
135 } else if (ctx->tx_count < ctx->rx_count) { in transceive()
137 for (i = ctx->tx_count; i < ctx->rx_count; i++) { in transceive()
Dspi_dw.c294 size_t rx_count, uint8_t dfs) in spi_dw_compute_ndf() argument
298 for (; rx_count; rx_bufs++, rx_count--) { in spi_dw_compute_ndf()
Dspi_b_renesas_ra8.c471 data->spi.rx_count = 0; in ra_spi_retransmit()
488 data->spi.rx_count = data->data_len; in ra_spi_retransmit()
546 if (spi_context_is_slave(&data->ctx) && data->spi.rx_count == data->spi.count) { in ra_spi_rxi_isr()
586 if (data->spi.rx_count == data->spi.count) { in ra_spi_tei_isr()
Dspi_renesas_ra.c513 data->spi.rx_count = 0; in ra_spi_retransmit()
531 data->spi.rx_count = data->data_len; in ra_spi_retransmit()
594 if (spi_context_is_slave(&data->ctx) && data->spi.rx_count == data->spi.count) { in ra_spi_rxi_isr()
632 if (data->spi.rx_count == data->spi.count) { in ra_spi_tei_isr()
Dspi_opentitan.c176 if (ctx->tx_count > 0 || ctx->rx_count > 1) { in spi_opentitan_xfer()
Dspi_mcux_dspi.c191 if (!(ctx->tx_count <= 1 && ctx->rx_count <= 1)) { in spi_mcux_transfer_next_packet()
503 LOG_DBG("rx count %d", data->ctx.rx_count); in dma_callback()
505 LOG_DBG("rx count %d", data->ctx.rx_count); in dma_callback()
Dspi_rv32m1_lpspi.c101 if (!(ctx->tx_count <= 1 && ctx->rx_count <= 1)) { in spi_mcux_transfer_next_packet()
Dspi_mcux_flexcomm.c127 if (ctx->tx_count <= 1 && ctx->rx_count <= 1) { in spi_mcux_transfer_next_packet()
670 (data->ctx.rx_count > 1)) { in transceive_dma()
/Zephyr-latest/include/zephyr/drivers/flash/
Dnpcx_flash_api_ex.h49 size_t rx_count; member
/Zephyr-latest/drivers/serial/
Duart_b91.c404 int rx_count; in uart_b91_fifo_read() local
407 for (rx_count = 0; rx_count < size; rx_count++) { in uart_b91_fifo_read()
412 uart_b91_poll_in(dev, &rx_data[rx_count]); in uart_b91_fifo_read()
415 return rx_count; in uart_b91_fifo_read()
/Zephyr-latest/drivers/flash/
Dflash_npcx_fiu_qspi.h34 size_t rx_count; member
Dflash_rpi_pico.c102 size_t rx_count = count; in __no_inline_not_in_flash_func() local
108 while (tx_count || rx_skip || rx_count) { in __no_inline_not_in_flash_func()
126 --rx_count; in __no_inline_not_in_flash_func()
Dflash_npcx_fiu_nor.c113 .rx_count = size}; in flash_npcx_uma_read()
207 .rx_count = size}; in flash_npcx_nor_read_sfdp()
399 if (op_out != NULL && op_in->rx_count != 0) { in flash_npcx_nor_ex_exec_uma()
401 cfg.rx_count = op_in->rx_count; in flash_npcx_nor_ex_exec_uma()
Dflash_npcx_fiu_qspi.c197 for (size_t i = 0; i < cfg->rx_count; i++) { in qspi_npcx_fiu_uma_transceive()
/Zephyr-latest/drivers/i3c/
Di3c_mcux.c1199 size_t rx_count; in mcux_i3c_do_daa() local
1232 rx_count = mcux_i3c_fifo_rx_count_get(base); in mcux_i3c_do_daa()
1234 (rx_count != 0U)) { in mcux_i3c_do_daa()
1238 rx_count--; in mcux_i3c_do_daa()
Di3c_npcx.c1316 size_t rx_count; in npcx_i3c_do_daa() local
1356 rx_count = GET_FIELD(inst->MDATACTRL, NPCX_I3C_MDATACTRL_RXCOUNT); in npcx_i3c_do_daa()
1358 if (rx_count == DAA_TGT_INFO_SZ) { in npcx_i3c_do_daa()
1359 for (int i = 0; i < rx_count; i++) { in npcx_i3c_do_daa()
1365 LOG_DBG("Rx count not as expected %d, abort DAA", rx_count); in npcx_i3c_do_daa()
/Zephyr-latest/drivers/espi/
Despi_taf_npcx.c466 .rx_count = 0, in espi_taf_npcx_rpmc_op1()
494 .rx_count = pckt->len, in espi_taf_npcx_rpmc_op2()
/Zephyr-latest/drivers/usb/udc/
Dudc_stm32.c264 uint32_t rx_count = HAL_PCD_EP_GetRxCount(hpcd, epnum); in HAL_PCD_DataOutStageCallback() local
280 net_buf_add(buf, rx_count); in HAL_PCD_DataOutStageCallback()

12