/Zephyr-Core-3.7.0/tests/drivers/ethernet/eth_ivshmem_queue/src/ |
D | main.c | 21 static size_t rx_len; variable 53 rx_len = 0; in test_setup() 77 zassert_ok(eth_ivshmem_queue_rx(&q2, &rx_message, &rx_len)); in ZTEST() 78 zassert_equal(rx_len, sizeof(x)); in ZTEST() 96 zassert_ok(eth_ivshmem_queue_rx(&q2, &rx_message, &rx_len)); in ZTEST() 97 zassert_equal(rx_len, sizeof(q1_tx_data)); in ZTEST() 102 zassert_ok(eth_ivshmem_queue_rx(&q1, &rx_message, &rx_len)); in ZTEST() 103 zassert_equal(rx_len, sizeof(q2_tx_data)); in ZTEST() 111 zassert_equal(eth_ivshmem_queue_rx(&q1, &rx_message, &rx_len), -EWOULDBLOCK); in ZTEST() 141 zassert_ok(eth_ivshmem_queue_rx(&q2, &rx_message, &rx_len)); in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/drivers/spi/ |
D | spi_context.h | 51 size_t rx_len; member 157 uint32_t rx_len = spi_context_total_rx_len(ctx); in spi_context_wait_for_completion() local 160 timeout_ms = MAX(tx_len, rx_len) * 8 * 1000 / in spi_context_wait_for_completion() 308 &ctx->rx_len, dfs); in spi_context_buffers_setup() 321 (void *)ctx->rx_buf, ctx->rx_len); in spi_context_buffers_setup() 374 if (!ctx->rx_len) { in spi_context_update_rx() 378 if (len > ctx->rx_len) { in spi_context_update_rx() 383 ctx->rx_len -= len; in spi_context_update_rx() 384 if (!ctx->rx_len) { in spi_context_update_rx() 391 &ctx->rx_len, dfs); in spi_context_update_rx() [all …]
|
D | spi_sedi.c | 146 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in transceive() 161 transfer_bytes = ctx->rx_len; in transceive() 163 } else if (ctx->rx_len == 0) { in transceive() 169 } else if (ctx->tx_len == ctx->rx_len) { in transceive() 174 } else if (ctx->tx_len > ctx->rx_len) { in transceive() 181 transfer_bytes = ctx->rx_len; in transceive() 278 if ((ctx->rx_len == 0) && in spi_sedi_callback() 291 spi_context_update_rx(ctx, 1, ctx->rx_len); in spi_sedi_callback() 292 if (ctx->rx_len != 0) { in spi_sedi_callback() 294 ctx->rx_len); in spi_sedi_callback()
|
D | spi_mcux_dspi.c | 95 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in spi_mcux_transfer_next_packet() 121 if (ctx->rx_len != 0) { in spi_mcux_transfer_next_packet() 159 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet() 160 } else if (ctx->rx_len == 0) { in spi_mcux_transfer_next_packet() 165 } else if (ctx->tx_len == ctx->rx_len) { in spi_mcux_transfer_next_packet() 170 } else if (ctx->tx_len > ctx->rx_len) { in spi_mcux_transfer_next_packet() 177 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet() 398 if (data->ctx.rx_len == 0) { in update_rx_dma() 419 if (data->ctx.rx_len == 1) { in update_rx_dma() 501 LOG_DBG("ctx.rx_len is %d", data->ctx.rx_len); in dma_callback() [all …]
|
D | spi_rv32m1_lpspi.c | 55 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in spi_mcux_transfer_next_packet() 69 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet() 70 } else if (ctx->rx_len == 0) { in spi_mcux_transfer_next_packet() 75 } else if (ctx->tx_len == ctx->rx_len) { in spi_mcux_transfer_next_packet() 80 } else if (ctx->tx_len > ctx->rx_len) { in spi_mcux_transfer_next_packet() 87 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet()
|
D | spi_psoc6.c | 58 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()
|
D | spi_smartbond.c | 90 size_t rx_len; member 422 if (ctx->rx_len || ctx->tx_len) { in spi_smartbond_transfer_mode_get() 482 if (ctx->rx_len && !ctx->rx_buf) { in spi_smartbond_write() 494 while (data->rx_len) { in spi_smartbond_transfer() 509 data->rx_len--; in spi_smartbond_transfer() 578 data->rx_len = spi_context_max_continuous_chunk(ctx); in spi_smartbond_isr_trigger() 579 data->tx_len = data->rx_len; in spi_smartbond_isr_trigger() 644 if (!data->rx_len && !data->tx_len) { in spi_smartbond_isr() 655 data->rx_len = spi_context_max_continuous_chunk(ctx); in spi_smartbond_isr() 656 data->tx_len = data->rx_len; in spi_smartbond_isr() [all …]
|
D | spi_dw.c | 122 if ((int)(spi->ctx.rx_len - spi->fifo_diff) <= 0) { in push_data() 174 if (!spi->ctx.rx_len && spi->ctx.tx_len < info->fifo_depth) { in pull_data() 176 } else if (read_rxftlr(dev) >= spi->ctx.rx_len) { in pull_data() 177 write_rxftlr(dev, spi->ctx.rx_len - 1); in pull_data() 412 if (spi->ctx.rx_len && in transceive() 413 spi->ctx.rx_len < dw_spi_rxftlr_dflt) { in transceive() 414 reg_data = spi->ctx.rx_len - 1; in transceive() 417 if (spi->ctx.rx_len && spi->ctx.rx_len < info->fifo_depth) { in transceive() 418 reg_data = spi->ctx.rx_len - 1; in transceive()
|
D | spi_mcux_flexcomm.c | 84 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in spi_mcux_transfer_next_packet() 96 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet() 97 } else if (ctx->rx_len == 0) { in spi_mcux_transfer_next_packet() 102 } else if (ctx->tx_len == ctx->rx_len) { in spi_mcux_transfer_next_packet() 107 } else if (ctx->tx_len > ctx->rx_len) { in spi_mcux_transfer_next_packet() 114 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet() 614 while (data->ctx.rx_len > 0 || data->ctx.tx_len > 0) { in transceive_dma() 622 if (data->ctx.rx_len == 0) { in transceive_dma() 626 dma_len = data->ctx.rx_len; in transceive_dma() 628 } else if (data->ctx.tx_len == data->ctx.rx_len) { in transceive_dma() [all …]
|
D | spi_ambiq.c | 196 rem_num = ctx->rx_len; in spi_ambiq_xfer_half_duplex() 237 bool trx_once = (ctx->tx_len == ctx->rx_len); in spi_ambiq_xfer_full_duplex() 242 trans.ui32NumBytes = MIN(ctx->rx_len, ctx->tx_len); in spi_ambiq_xfer_full_duplex() 264 trans.ui32NumBytes = ctx->rx_len; in spi_ambiq_xfer_full_duplex() 290 spi_context_update_rx(ctx, 1, ctx->rx_len); in spi_ambiq_xfer() 313 spi_context_update_rx(ctx, 1, ctx->rx_len); in spi_ambiq_xfer()
|
D | spi_mcux_flexio.c | 46 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in spi_mcux_transfer_next_packet() 59 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet() 60 } else if (ctx->rx_len == 0) { in spi_mcux_transfer_next_packet() 65 } else if (ctx->tx_len == ctx->rx_len) { in spi_mcux_transfer_next_packet() 70 } else if (ctx->tx_len > ctx->rx_len) { in spi_mcux_transfer_next_packet() 77 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet()
|
D | spi_mcux_lpspi.c | 106 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in spi_mcux_transfer_next_packet() 120 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet() 121 } else if (ctx->rx_len == 0) { in spi_mcux_transfer_next_packet() 126 } else if (ctx->tx_len == ctx->rx_len) { in spi_mcux_transfer_next_packet() 131 } else if (ctx->tx_len > ctx->rx_len) { in spi_mcux_transfer_next_packet() 138 transfer.dataSize = ctx->rx_len; in spi_mcux_transfer_next_packet() 329 size_t dma_size = MIN(data->ctx.tx_len, data->ctx.rx_len); in spi_mcux_dma_callback() 332 dma_size = MAX(data->ctx.tx_len, data->ctx.rx_len); in spi_mcux_dma_callback() 338 if (data->ctx.tx_len == 0 && data->ctx.rx_len == 0) { in spi_mcux_dma_callback() 463 *dma_size = MIN(lpspi_data->ctx.tx_len, lpspi_data->ctx.rx_len); in spi_mcux_dma_rxtx_load() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/drivers/ |
D | spi.h | 1077 uint32_t rx = 0, rx_len = 0; in spi_rtio_copy() local 1092 rx_len = rx_bufs->buffers[rx].len; in spi_rtio_copy() 1095 rx_len = tx_bufs->buffers[tx].len; in spi_rtio_copy() 1099 while ((tx < tx_count || rx < rx_count) && (tx_len > 0 || rx_len > 0)) { in spi_rtio_copy() 1111 if (tx_len == rx_len) { in spi_rtio_copy() 1114 rx_buf, rx_len, NULL); in spi_rtio_copy() 1120 tx_buf, rx_buf, rx_len, NULL); in spi_rtio_copy() 1126 rx_len = rx_bufs->buffers[rx].len; in spi_rtio_copy() 1129 rx_len = 0; in spi_rtio_copy() 1141 (uint32_t)rx_len, in spi_rtio_copy() [all …]
|
/Zephyr-Core-3.7.0/drivers/ieee802154/ |
D | ieee802154_uart_pipe.c | 119 if (!upipe->rx_len) { in upipe_rx() 124 upipe->rx_len = *buf; in upipe_rx() 130 if (upipe->rx_len == upipe->rx_off) { in upipe_rx() 131 pkt = net_pkt_rx_alloc_with_buffer(upipe->iface, upipe->rx_len, in upipe_rx() 138 if (net_pkt_write(pkt, upipe->rx_buf, upipe->rx_len)) { in upipe_rx() 155 LOG_DBG("Caught a packet (%u)", upipe->rx_len); in upipe_rx() 166 upipe->rx_len = 0U; in upipe_rx()
|
D | ieee802154_uart_pipe.h | 21 uint8_t rx_len; member
|
D | ieee802154_kw41z.c | 713 uint32_t rx_len; in kw41z_isr() local 754 rx_len = (irqsts & ZLL_IRQSTS_RX_FRAME_LENGTH_MASK) in kw41z_isr() 760 if (rx_len > IEEE802154_ACK_LENGTH) { in kw41z_isr() 763 seq_state, rx_len); in kw41z_isr() 775 rx_len = rx_len * 2U + 12 + 22 + 2; in kw41z_isr() 776 kw41z_tmr3_set_timeout(rx_len); in kw41z_isr() 831 rx_len = (ZLL->IRQSTS & in kw41z_isr() 836 if (rx_len != 0U) { in kw41z_isr() 838 rx_len); in kw41z_isr()
|
/Zephyr-Core-3.7.0/drivers/w1/ |
D | w1_ds2485.c | 29 uint8_t *rx_buf, uint8_t rx_len) in ds2485_w1_script_cmd() argument 45 .len = rx_len, in ds2485_w1_script_cmd() 66 if ((rx_bytes[0] != (rx_len + 2)) || (rx_bytes[2] != w1_cmd)) { in ds2485_w1_script_cmd()
|
D | w1_ds2477_85_common.c | 226 int ds2477_85_read_block(const struct device *dev, uint8_t *buffer, size_t rx_len) in ds2477_85_read_block() argument 230 int w1_timing = cfg->mode_timing[data->master_reg.od_active].t_slot * 8 * rx_len; in ds2477_85_read_block() 231 uint8_t buf[3] = {CMD_RD_BLOCK, CMD_RD_BLOCK_LEN, rx_len}; in ds2477_85_read_block() 234 {.buf = buffer, .len = rx_len, .flags = (I2C_MSG_READ | I2C_MSG_STOP)} in ds2477_85_read_block() 238 __ASSERT_NO_MSG(rx_len <= MAX_BLOCK_LEN); in ds2477_85_read_block() 240 if (rx_len == 0) { in ds2477_85_read_block() 250 k_usleep(cfg->t_op_us + (cfg->t_seq_us * rx_len) + w1_timing); in ds2477_85_read_block()
|
/Zephyr-Core-3.7.0/drivers/i2c/ |
D | i2c_max32.c | 220 Wrap_MXC_I2C_SetRxCount(i2c, req->rx_len); in i2c_max32_transfer_sync() 221 while (req->rx_len > readb) { in i2c_max32_transfer_sync() 224 readb += MXC_I2C_ReadRXFIFO(i2c, &req->rx_buf[readb], req->rx_len - readb); in i2c_max32_transfer_sync() 233 if ((int_fl0 & ADI_MAX32_I2C_INT_FL0_DONE) && (req->rx_len > readb) && in i2c_max32_transfer_sync() 235 Wrap_MXC_I2C_SetRxCount(i2c, req->rx_len - readb); in i2c_max32_transfer_sync() 254 if (req->rx_len) { in i2c_max32_transfer_sync() 296 req->rx_len = msgs[i].len; in i2c_max32_transfer() 304 req->rx_len = 0; in i2c_max32_transfer() 325 Wrap_MXC_I2C_SetRxCount(i2c, req->rx_len); in i2c_max32_transfer() 387 req->rx_len = msgs[i].len; in i2c_max32_transfer() [all …]
|
D | i2c_sc18im704.h | 80 uint8_t *rx_data, uint8_t rx_len);
|
/Zephyr-Core-3.7.0/drivers/mipi_dsi/ |
D | mipi_dsi.c | 18 .rx_len = len, in mipi_dsi_generic_read() 78 .rx_len = len in mipi_dsi_dcs_read()
|
/Zephyr-Core-3.7.0/subsys/shell/backends/ |
D | shell_telnet.c | 279 buf_left = sizeof(sh_telnet->rx_buf) - sh_telnet->rx_len; in telnet_recv() 287 buf = sh_telnet->rx_buf + sh_telnet->rx_len; in telnet_recv() 371 sh_telnet->rx_len += len; in telnet_recv() 433 sh_telnet->rx_len = 0; in telnet_accept() 743 if (sh_telnet->rx_len == 0) { in telnet_read() 748 read_len = sh_telnet->rx_len; in telnet_read() 756 sh_telnet->rx_len -= read_len; in telnet_read() 757 if (sh_telnet->rx_len > 0) { in telnet_read() 759 sh_telnet->rx_len); in telnet_read()
|
/Zephyr-Core-3.7.0/drivers/serial/ |
D | uart_sam0.c | 83 size_t rx_len; member 234 if (dev_data->rx_len == 0U) { in uart_sam0_dma_rx_done() 239 uart_sam0_notify_rx_processed(dev_data, dev_data->rx_len); in uart_sam0_dma_rx_done() 255 dev_data->rx_len = 0U; in uart_sam0_dma_rx_done() 270 dev_data->rx_len = dev_data->rx_next_len; in uart_sam0_dma_rx_done() 277 (uint32_t)dev_data->rx_buf, dev_data->rx_len); in uart_sam0_dma_rx_done() 314 if (dev_data->rx_len == 0U) { in uart_sam0_rx_timeout() 333 uint8_t *rx_dma_start = dev_data->rx_buf + dev_data->rx_len - in uart_sam0_rx_timeout() 344 dev_data->rx_len - rx_processed); in uart_sam0_rx_timeout() 750 if (dev_data->rx_len && regs->INTFLAG.bit.RXC && in uart_sam0_isr() [all …]
|
/Zephyr-Core-3.7.0/drivers/bluetooth/hci/ |
D | apollox_blue.h | 29 typedef int (*bt_spi_transceive_fun)(void *tx, uint32_t tx_len, void *rx, uint32_t rx_len);
|
/Zephyr-Core-3.7.0/include/zephyr/shell/ |
D | shell_telnet.h | 49 size_t rx_len; member
|