Home
last modified time | relevance | path

Searched refs:rx_len (Results 1 – 22 of 22) sorted by relevance

/Zephyr-Core-2.7.6/drivers/spi/
Dspi_context.h47 size_t rx_len; member
126 timeout_ms = MAX(ctx->tx_len, ctx->rx_len) * 8 * 1000 / in spi_context_wait_for_completion()
288 &ctx->rx_len, dfs); in spi_context_buffers_setup()
300 ctx->tx_buf, ctx->tx_len, ctx->rx_buf, ctx->rx_len); in spi_context_buffers_setup()
353 if (!ctx->rx_len) { in spi_context_update_rx()
357 if (len > ctx->rx_len) { in spi_context_update_rx()
362 ctx->rx_len -= len; in spi_context_update_rx()
363 if (!ctx->rx_len) { in spi_context_update_rx()
370 &ctx->rx_len, dfs); in spi_context_update_rx()
375 LOG_DBG("rx buf/len %p/%zu", ctx->rx_buf, ctx->rx_len); in spi_context_update_rx()
[all …]
Dspi_mcux_dspi.c92 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in spi_mcux_transfer_next_packet()
118 if (ctx->rx_len != 0) { in spi_mcux_transfer_next_packet()
156 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet()
157 } else if (ctx->rx_len == 0) { in spi_mcux_transfer_next_packet()
162 } else if (ctx->tx_len == ctx->rx_len) { in spi_mcux_transfer_next_packet()
167 } else if (ctx->tx_len > ctx->rx_len) { in spi_mcux_transfer_next_packet()
174 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet()
395 if (data->ctx.rx_len == 0) { in update_rx_dma()
416 if (data->ctx.rx_len == 1) { in update_rx_dma()
498 LOG_DBG("ctx.rx_len is %d", data->ctx.rx_len); in dma_callback()
[all …]
Dspi_rv32m1_lpspi.c50 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in spi_mcux_transfer_next_packet()
64 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet()
65 } else if (ctx->rx_len == 0) { in spi_mcux_transfer_next_packet()
70 } else if (ctx->tx_len == ctx->rx_len) { in spi_mcux_transfer_next_packet()
75 } else if (ctx->tx_len > ctx->rx_len) { in spi_mcux_transfer_next_packet()
82 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet()
Dspi_mcux_flexcomm.c73 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in spi_mcux_transfer_next_packet()
85 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet()
86 } else if (ctx->rx_len == 0) { in spi_mcux_transfer_next_packet()
91 } else if (ctx->tx_len == ctx->rx_len) { in spi_mcux_transfer_next_packet()
96 } else if (ctx->tx_len > ctx->rx_len) { in spi_mcux_transfer_next_packet()
103 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet()
562 while (data->ctx.rx_len > 0 || data->ctx.tx_len > 0) { in transceive_dma()
566 if (data->ctx.rx_len == 0) { in transceive_dma()
570 dma_len = data->ctx.rx_len; in transceive_dma()
572 } else if (data->ctx.tx_len == data->ctx.rx_len) { in transceive_dma()
[all …]
Dspi_mcux_lpspi.c49 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in spi_mcux_transfer_next_packet()
63 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet()
64 } else if (ctx->rx_len == 0) { in spi_mcux_transfer_next_packet()
69 } else if (ctx->tx_len == ctx->rx_len) { in spi_mcux_transfer_next_packet()
74 } else if (ctx->tx_len > ctx->rx_len) { in spi_mcux_transfer_next_packet()
81 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet()
Dspi_psoc6.c58 LOG_DBG("TX L: %d, RX L: %d", ctx->tx_len, ctx->rx_len); in spi_psoc6_transfer_next_packet()
60 if ((ctx->tx_len == 0U) && (ctx->rx_len == 0U)) { in spi_psoc6_transfer_next_packet()
73 xfer->dataSize = ctx->rx_len; in spi_psoc6_transfer_next_packet()
74 } else if (ctx->rx_len == 0U) { in spi_psoc6_transfer_next_packet()
79 } else if (ctx->tx_len == ctx->rx_len) { in spi_psoc6_transfer_next_packet()
84 } else if (ctx->tx_len > ctx->rx_len) { in spi_psoc6_transfer_next_packet()
91 xfer->dataSize = ctx->rx_len; in spi_psoc6_transfer_next_packet()
Dspi_dw.c126 if ((int)(spi->ctx.rx_len - spi->fifo_diff) <= 0) { in push_data()
188 if (!spi->ctx.rx_len && spi->ctx.tx_len < DW_SPI_FIFO_DEPTH) { in pull_data()
190 } else if (read_rxftlr(info->regs) >= spi->ctx.rx_len) { in pull_data()
191 write_rxftlr(spi->ctx.rx_len - 1, info->regs); in pull_data()
409 if (spi->ctx.rx_len && in transceive()
410 spi->ctx.rx_len < DW_SPI_RXFTLR_DFLT) { in transceive()
411 reg_data = spi->ctx.rx_len - 1; in transceive()
414 if (spi->ctx.rx_len && spi->ctx.rx_len < DW_SPI_FIFO_DEPTH) { in transceive()
415 reg_data = spi->ctx.rx_len - 1; in transceive()
Dspi_litespi.c114 if (i < ctx->rx_len) { in spi_litespi_xfer()
Dspi_ll_stm32.c726 while (data->ctx.rx_len > 0 || data->ctx.tx_len > 0) { in transceive_dma()
729 if (data->ctx.rx_len == 0) { in transceive_dma()
732 dma_len = data->ctx.rx_len; in transceive_dma()
734 dma_len = MIN(data->ctx.tx_len, data->ctx.rx_len); in transceive_dma()
Dspi_sam0.c530 if (data->ctx.rx_len != 0) { in spi_sam0_dma_advance_segment()
531 segment_len = data->ctx.rx_len; in spi_sam0_dma_advance_segment()
559 if (data->ctx.rx_len) { in spi_sam0_dma_advance_buffers()
/Zephyr-Core-2.7.6/drivers/ieee802154/
Dieee802154_uart_pipe.c117 if (!upipe->rx_len) { in upipe_rx()
122 upipe->rx_len = *buf; in upipe_rx()
128 if (upipe->rx_len == upipe->rx_off) { in upipe_rx()
145 memcpy(frag->data, upipe->rx_buf, upipe->rx_len); in upipe_rx()
146 net_buf_add(frag, upipe->rx_len); in upipe_rx()
160 LOG_DBG("Caught a packet (%u)", upipe->rx_len); in upipe_rx()
171 upipe->rx_len = 0U; in upipe_rx()
Dieee802154_kw41z.c718 uint32_t rx_len; in kw41z_isr() local
759 rx_len = (irqsts & ZLL_IRQSTS_RX_FRAME_LENGTH_MASK) in kw41z_isr()
765 if (rx_len > IEEE802154_ACK_LENGTH) { in kw41z_isr()
768 seq_state, rx_len); in kw41z_isr()
780 rx_len = rx_len * 2U + 12 + 22 + 2; in kw41z_isr()
781 kw41z_tmr3_set_timeout(rx_len); in kw41z_isr()
836 rx_len = (ZLL->IRQSTS & in kw41z_isr()
841 if (rx_len != 0U) { in kw41z_isr()
843 rx_len); in kw41z_isr()
Dieee802154_uart_pipe.h21 uint8_t rx_len; member
/Zephyr-Core-2.7.6/drivers/serial/
Duart_sam0.c81 size_t rx_len; member
236 if (dev_data->rx_len == 0U) { in uart_sam0_dma_rx_done()
241 uart_sam0_notify_rx_processed(dev_data, dev_data->rx_len); in uart_sam0_dma_rx_done()
257 dev_data->rx_len = 0U; in uart_sam0_dma_rx_done()
272 dev_data->rx_len = dev_data->rx_next_len; in uart_sam0_dma_rx_done()
279 (uint32_t)dev_data->rx_buf, dev_data->rx_len); in uart_sam0_dma_rx_done()
315 if (dev_data->rx_len == 0U) { in uart_sam0_rx_timeout()
334 uint8_t *rx_dma_start = dev_data->rx_buf + dev_data->rx_len - in uart_sam0_rx_timeout()
345 dev_data->rx_len - rx_processed); in uart_sam0_rx_timeout()
741 if (dev_data->rx_len && regs->INTFLAG.bit.RXC && in uart_sam0_isr()
[all …]
Duart_nrfx_uarte.c1082 int rx_len = rx_amount - data->async->rx_offset; in endrx_isr() local
1084 if (rx_len < 0) { in endrx_isr()
1085 rx_len = 0; in endrx_isr()
1088 data->async->rx_total_user_byte_cnt += rx_len; in endrx_isr()
1091 if (rx_len > 0) { in endrx_isr()
1092 notify_uart_rx_rdy(dev, rx_len); in endrx_isr()
/Zephyr-Core-2.7.6/drivers/ethernet/
Deth_w5500.c215 uint16_t rx_len; in w5500_rx() local
237 rx_len = sys_get_be16(header) - 2; in w5500_rx()
239 pkt = net_pkt_rx_alloc_with_buffer(ctx->iface, rx_len, in w5500_rx()
248 read_len = rx_len; in w5500_rx()
278 sys_put_be16(off + 2 + rx_len, tmp); in w5500_rx()
/Zephyr-Core-2.7.6/drivers/flash/
Dnrf_qspi_nor.c446 size_t rx_len = 0; in qspi_send_cmd() local
456 rx_len = cmd->rx_buf->len; in qspi_send_cmd()
459 if ((rx_len != 0) && (tx_len != 0)) { in qspi_send_cmd()
460 if (rx_len != tx_len) { in qspi_send_cmd()
467 xfer_len += tx_len + rx_len; in qspi_send_cmd()
/Zephyr-Core-2.7.6/drivers/bluetooth/hci/
Dspi.c150 void *rx, uint32_t rx_len) in bt_spi_transceive() argument
155 spi_rx_buf.len = (size_t)rx_len; in bt_spi_transceive()
/Zephyr-Core-2.7.6/subsys/bluetooth/host/
Diso.c570 iso->rx_len = len - buf->len; in bt_iso_recv()
571 if (iso->rx_len) { in bt_iso_recv()
593 BT_DBG("Cont, len %u rx_len %u", buf->len, iso->rx_len); in bt_iso_recv()
603 iso->rx_len -= buf->len; in bt_iso_recv()
611 BT_DBG("End, len %u rx_len %u", buf->len, iso->rx_len); in bt_iso_recv()
627 iso->rx_len -= buf->len; in bt_iso_recv()
Dconn_internal.h168 uint16_t rx_len; member
/Zephyr-Core-2.7.6/drivers/modem/
Dwncm14a2a.c1064 uint16_t rx_len; in wncm14a2a_read_rx() local
1089 rx_len = net_buf_append_bytes(*buf, bytes_read, uart_buffer, in wncm14a2a_read_rx()
1093 if (rx_len < bytes_read) { in wncm14a2a_read_rx()
1095 rx_len, bytes_read); in wncm14a2a_read_rx()
Dhl7800.c3994 uint16_t rx_len; in hl7800_read_rx() local
4021 rx_len = in hl7800_read_rx()
4025 if (rx_len < bytes_read) { in hl7800_read_rx()
4026 LOG_ERR("Data was lost! read %u of %zu!", rx_len, in hl7800_read_rx()