/Zephyr-latest/drivers/spi/ |
D | spi_rtio.c | 139 uint32_t tx = 0, tx_len = 0; in spi_rtio_copy() local 147 tx_len = tx_bufs->buffers[tx].len; in spi_rtio_copy() 150 tx_len = rx_bufs->buffers[rx].len; in spi_rtio_copy() 162 while ((tx < tx_count || rx < rx_count) && (tx_len > 0 || rx_len > 0)) { in spi_rtio_copy() 174 if (tx_len == rx_len) { in spi_rtio_copy() 180 tx_buf, tx_len, NULL); in spi_rtio_copy() 196 tx_len = tx_bufs->buffers[tx].len; in spi_rtio_copy() 199 tx_len = 0; in spi_rtio_copy() 201 } else if (tx_len == 0) { in spi_rtio_copy() 217 (uint32_t)tx_len, in spi_rtio_copy() [all …]
|
D | spi_context.h | 49 size_t tx_len; member 156 uint32_t tx_len = spi_context_total_tx_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() 302 &ctx->tx_len, dfs); in spi_context_buffers_setup() 320 (void *)ctx->tx_buf, ctx->tx_len, in spi_context_buffers_setup() 331 if (!ctx->tx_len) { in spi_context_update_tx() 335 if (len > ctx->tx_len) { in spi_context_update_tx() 340 ctx->tx_len -= len; in spi_context_update_tx() 341 if (!ctx->tx_len) { in spi_context_update_tx() 348 &ctx->tx_len, dfs); in spi_context_update_tx() [all …]
|
D | spi_sedi.c | 147 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in transceive() 158 if (ctx->tx_len == 0) { in transceive() 168 transfer_bytes = ctx->tx_len; in transceive() 170 } else if (ctx->tx_len == ctx->rx_len) { in transceive() 174 transfer_bytes = ctx->tx_len; in transceive() 175 } else if (ctx->tx_len > ctx->rx_len) { in transceive() 190 transfer_bytes = ctx->tx_len; in transceive() 275 spi_context_update_tx(ctx, 1, ctx->tx_len); in spi_sedi_callback() 276 if (ctx->tx_len != 0) { in spi_sedi_callback() 278 ctx->tx_len); in spi_sedi_callback()
|
D | spi_it8xxx2.c | 234 if (ctx->tx_len <= SPI_CMDQ_WR_CMD_LEN_MAX) { in spi_it8xxx2_tx() 235 data->cmdq_data.spi_write_cmd_length = ctx->tx_len; in spi_it8xxx2_tx() 236 memcpy(data->cmdq_data.write_data, ctx->tx_buf, ctx->tx_len); in spi_it8xxx2_tx() 244 data->cmdq_data.data_length_lb = BYTE_0(ctx->tx_len - SPI_CMDQ_WR_CMD_LEN_MAX); in spi_it8xxx2_tx() 245 data->cmdq_data.data_length_hb = BYTE_1(ctx->tx_len - SPI_CMDQ_WR_CMD_LEN_MAX); in spi_it8xxx2_tx() 251 data->transfer_len = ctx->tx_len; in spi_it8xxx2_tx() 281 if (ctx->tx_len <= SPI_CMDQ_WR_CMD_LEN_MAX) { in spi_it8xxx2_tx_rx() 284 data->cmdq_data.spi_write_cmd_length = ctx->tx_len; in spi_it8xxx2_tx_rx() 285 memcpy(data->cmdq_data.write_data, ctx->tx_buf, ctx->tx_len); in spi_it8xxx2_tx_rx() 287 spi_context_update_tx(ctx, 1, ctx->tx_len); in spi_it8xxx2_tx_rx() [all …]
|
D | spi_rv32m1_lpspi.c | 56 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in spi_mcux_transfer_next_packet() 66 if (ctx->tx_len == 0) { in spi_mcux_transfer_next_packet() 75 transfer.dataSize = ctx->tx_len; in spi_mcux_transfer_next_packet() 76 } else if (ctx->tx_len == ctx->rx_len) { in spi_mcux_transfer_next_packet() 80 transfer.dataSize = ctx->tx_len; in spi_mcux_transfer_next_packet() 81 } else if (ctx->tx_len > ctx->rx_len) { in spi_mcux_transfer_next_packet() 97 transfer.dataSize = ctx->tx_len; in spi_mcux_transfer_next_packet()
|
D | spi_mcux_dspi.c | 96 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in spi_mcux_transfer_next_packet() 108 if (ctx->tx_len != 0) { in spi_mcux_transfer_next_packet() 156 if (ctx->tx_len == 0) { in spi_mcux_transfer_next_packet() 165 transfer.dataSize = ctx->tx_len; in spi_mcux_transfer_next_packet() 166 } else if (ctx->tx_len == ctx->rx_len) { in spi_mcux_transfer_next_packet() 170 transfer.dataSize = ctx->tx_len; in spi_mcux_transfer_next_packet() 171 } else if (ctx->tx_len > ctx->rx_len) { in spi_mcux_transfer_next_packet() 187 transfer.dataSize = ctx->tx_len; in spi_mcux_transfer_next_packet() 344 if (data->ctx.tx_len == 0) { in update_tx_dma() 492 LOG_DBG("ctx.tx_len is %d", data->ctx.tx_len); in dma_callback() [all …]
|
D | spi_psoc6.c | 59 LOG_DBG("TX L: %d, RX L: %d", ctx->tx_len, ctx->rx_len); in spi_psoc6_transfer_next_packet() 61 if ((ctx->tx_len == 0U) && (ctx->rx_len == 0U)) { in spi_psoc6_transfer_next_packet() 70 if (ctx->tx_len == 0U) { in spi_psoc6_transfer_next_packet() 79 xfer->dataSize = ctx->tx_len; in spi_psoc6_transfer_next_packet() 80 } else if (ctx->tx_len == ctx->rx_len) { in spi_psoc6_transfer_next_packet() 84 xfer->dataSize = ctx->tx_len; in spi_psoc6_transfer_next_packet() 85 } else if (ctx->tx_len > ctx->rx_len) { in spi_psoc6_transfer_next_packet() 100 xfer->dataSize = ctx->tx_len; in spi_psoc6_transfer_next_packet()
|
D | spi_smartbond.c | 92 size_t tx_len; member 423 if (ctx->rx_len || ctx->tx_len) { in spi_smartbond_transfer_mode_get() 514 while (data->tx_len) { in spi_smartbond_transfer() 527 data->tx_len--; in spi_smartbond_transfer() 548 while (data->tx_len) { in spi_smartbond_read() 554 data->tx_len--; in spi_smartbond_read() 567 data->tx_len = spi_context_total_rx_len(ctx); in spi_smartbond_isr_trigger() 580 data->tx_len = data->rx_len; in spi_smartbond_isr_trigger() 645 if (!data->rx_len && !data->tx_len) { in spi_smartbond_isr() 649 data->tx_len = spi_context_total_rx_len(ctx) - data->transferred; in spi_smartbond_isr() [all …]
|
D | spi_mcux_flexio.c | 48 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in spi_mcux_transfer_next_packet() 57 if (ctx->tx_len == 0) { in spi_mcux_transfer_next_packet() 66 transfer.dataSize = ctx->tx_len; in spi_mcux_transfer_next_packet() 67 } else if (ctx->tx_len == ctx->rx_len) { in spi_mcux_transfer_next_packet() 71 transfer.dataSize = ctx->tx_len; in spi_mcux_transfer_next_packet() 72 } else if (ctx->tx_len > ctx->rx_len) { in spi_mcux_transfer_next_packet() 87 transfer.dataSize = ctx->tx_len; in spi_mcux_transfer_next_packet()
|
D | spi_mcux_flexcomm.c | 86 if ((ctx->tx_len == 0) && (ctx->rx_len == 0)) { in spi_mcux_transfer_next_packet() 94 if (ctx->tx_len == 0) { in spi_mcux_transfer_next_packet() 103 transfer.dataSize = ctx->tx_len; in spi_mcux_transfer_next_packet() 104 } else if (ctx->tx_len == ctx->rx_len) { in spi_mcux_transfer_next_packet() 108 transfer.dataSize = ctx->tx_len; in spi_mcux_transfer_next_packet() 109 } else if (ctx->tx_len > ctx->rx_len) { in spi_mcux_transfer_next_packet() 124 transfer.dataSize = ctx->tx_len; in spi_mcux_transfer_next_packet() 628 while (data->ctx.rx_len > 0 || data->ctx.tx_len > 0) { in transceive_dma() 637 dma_len = data->ctx.tx_len; in transceive_dma() 639 } else if (data->ctx.tx_len == 0) { in transceive_dma() [all …]
|
D | spi_ambiq_spic.c | 229 rem_num = ctx->tx_len; in spi_ambiq_xfer_half_duplex() 268 bool trx_once = (ctx->tx_len == ctx->rx_len); in spi_ambiq_xfer_full_duplex() 273 trans.ui32NumBytes = MIN(ctx->rx_len, ctx->tx_len); in spi_ambiq_xfer_full_duplex() 288 if (ctx->tx_len) { in spi_ambiq_xfer_full_duplex() 290 trans.ui32NumBytes = ctx->tx_len; in spi_ambiq_xfer_full_duplex() 333 spi_context_update_tx(ctx, 1, ctx->tx_len); in spi_ambiq_xfer()
|
/Zephyr-latest/drivers/w1/ |
D | w1_ds2485.c | 28 const uint8_t *tx_buf, const uint8_t tx_len, in ds2485_w1_script_cmd() argument 32 uint8_t i2c_len = 3 + tx_len; in ds2485_w1_script_cmd() 34 CMD_W1_SCRIPT, tx_len + CMD_W1_SCRIPT_LEN, w1_cmd in ds2485_w1_script_cmd() 51 __ASSERT_NO_MSG(tx_len <= SCRIPT_WR_LEN); in ds2485_w1_script_cmd() 52 memcpy(&tx_bytes[3], tx_buf, tx_len); in ds2485_w1_script_cmd()
|
D | w1_ds2477_85_common.c | 189 int ds2477_85_write_block(const struct device *dev, const uint8_t *buffer, size_t tx_len) in ds2477_85_write_block() argument 193 int w1_timing = cfg->mode_timing[data->master_reg.od_active].t_slot * 8 * tx_len; in ds2477_85_write_block() 194 uint8_t buf[3] = {CMD_WR_BLOCK, (tx_len + CMD_WR_BLOCK_LEN), 0}; in ds2477_85_write_block() 197 {.buf = (uint8_t *)buffer, .len = tx_len, .flags = (I2C_MSG_WRITE | I2C_MSG_STOP)}, in ds2477_85_write_block() 201 __ASSERT_NO_MSG(tx_len <= MAX_BLOCK_LEN); in ds2477_85_write_block() 203 if (tx_len == 0) { in ds2477_85_write_block() 213 k_usleep(cfg->t_op_us + (cfg->t_seq_us * tx_len) + w1_timing); in ds2477_85_write_block()
|
/Zephyr-latest/tests/drivers/uart/uart_emul/src/ |
D | bus.c | 93 size_t tx_len; in ZTEST_F() local 99 tx_len = uart_emul_get_tx_data(fixture->dev, tx_content, sizeof(tx_content)); in ZTEST_F() 100 zassert_equal(tx_len, SAMPLE_DATA_SIZE, "TX buffer length does not match"); in ZTEST_F() 104 tx_len = uart_emul_get_tx_data(fixture->dev, tx_content, sizeof(tx_content)); in ZTEST_F() 105 zassert_equal(tx_len, 0, "TX buffer should be empty"); in ZTEST_F() 198 size_t tx_len; in ZTEST_F() local 207 tx_len = uart_emul_get_tx_data(fixture->dev, fixture->tx_content, SAMPLE_DATA_SIZE); in ZTEST_F() 208 zassert_equal(tx_len, SAMPLE_DATA_SIZE, "TX buffer length does not match"); in ZTEST_F() 212 tx_len = uart_emul_get_tx_data(fixture->dev, fixture->tx_content, in ZTEST_F() 214 zassert_equal(tx_len, 0, "TX buffer should be empty"); in ZTEST_F() [all …]
|
D | device.c | 170 size_t tx_len; in ZTEST_F() local 183 tx_len = uart_emul_get_tx_data(fixture->dev, NULL, SAMPLE_DATA_SIZE); in ZTEST_F() 184 zassert_equal(tx_len, 0, "TX buffer should be empty"); in ZTEST_F() 236 size_t tx_len; in ZTEST_F() local 250 tx_len = uart_emul_get_tx_data(fixture->dev, NULL, SAMPLE_DATA_SIZE); in ZTEST_F() 251 zassert_equal(tx_len, 0, "TX buffer should be empty"); in ZTEST_F()
|
/Zephyr-latest/tests/subsys/logging/log_backend_uart/src/ |
D | main.c | 60 size_t tx_len; in ZTEST_F() local 69 tx_len = uart_emul_get_tx_data(fixture->dev[i], tx_content, sizeof(tx_content)); in ZTEST_F() 70 zassert_equal(tx_len, strlen(TEST_DATA), in ZTEST_F() 72 i, strlen(TEST_DATA), tx_len); in ZTEST_F()
|
/Zephyr-latest/drivers/mipi_dsi/ |
D | mipi_dsi.c | 16 .tx_len = nparams, in mipi_dsi_generic_read() 47 .tx_len = len in mipi_dsi_generic_write() 90 .tx_len = len in mipi_dsi_dcs_write()
|
D | dsi_stm32.c | 331 if (msg->tx_len >= 1U) { in mipi_dsi_stm32_transfer() 336 len = msg->tx_len; in mipi_dsi_stm32_transfer() 339 ret = HAL_DSI_LongWrite(&data->hdsi, channel, msg->type, msg->tx_len, msg->cmd, in mipi_dsi_stm32_transfer() 341 len = msg->tx_len; in mipi_dsi_stm32_transfer() 347 if (msg->tx_len == 1U) { in mipi_dsi_stm32_transfer() 351 if (msg->tx_len >= 2U) { in mipi_dsi_stm32_transfer() 356 len = msg->tx_len; in mipi_dsi_stm32_transfer() 359 ret = HAL_DSI_LongWrite(&data->hdsi, channel, msg->type, msg->tx_len, in mipi_dsi_stm32_transfer() 361 len = msg->tx_len; in mipi_dsi_stm32_transfer() 377 channel, msg->cmd, msg->tx_len); in mipi_dsi_stm32_transfer() [all …]
|
D | dsi_renesas_ra.c | 139 uint8_t combined_tx_buffer[msg->tx_len + 1]; in mipi_dsi_renesas_ra_transfer() 142 memcpy(&combined_tx_buffer[1], msg->tx_buf, msg->tx_len); in mipi_dsi_renesas_ra_transfer() 148 .tx_len = msg->tx_len + 1, in mipi_dsi_renesas_ra_transfer() 172 len = msg->tx_len; in mipi_dsi_renesas_ra_transfer()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_max32_rtio.c | 131 req->tx_len = 0; in max32_msg_start() 135 req->tx_len = buf_len; in max32_msg_start() 154 if (req->tx_len) { in max32_msg_start() 207 if (written < req->tx_len) { in i2c_max32_isr_controller() 215 if (req->tx_len && in i2c_max32_isr_controller() 217 if (written < req->tx_len) { in i2c_max32_isr_controller() 219 req->tx_len - written); in i2c_max32_isr_controller()
|
D | i2c_sc18im704.h | 79 const uint8_t *tx_data, uint8_t tx_len,
|
/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/uart/src/ |
D | uart_mock.h | 19 size_t tx_len; member
|
/Zephyr-latest/drivers/hdlc_rcp_if/ |
D | hdlc_rcp_if_uart.c | 83 uint32_t tx_len = 0, len; in uart_tx_handle() local 90 tx_len = uart_fifo_fill(dev, data, len); in uart_tx_handle() 91 int err = ring_buf_get_finish(ot_uart.tx_ringbuf, tx_len); in uart_tx_handle()
|
/Zephyr-latest/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-latest/include/zephyr/drivers/serial/ |
D | uart_async_to_irq.h | 93 .tx_len = _tx_len, \ 148 size_t tx_len; member
|