Home
last modified time | relevance | path

Searched refs:tx_data (Results 1 – 25 of 128) sorted by relevance

123456

/Zephyr-latest/tests/drivers/dma/chan_link_transfer/src/
Dtest_dma.c29 static __aligned(32) char tx_data[RX_BUFF_SIZE] __used
37 static const char tx_data[] = "It is harder to be kind than to be wise........"; variable
64 memcpy(tx_data, TX_DATA, sizeof(TX_DATA)); in test_task()
88 dma_block_cfg.block_size = sizeof(tx_data); in test_task()
90 dma_block_cfg.source_address = (uint64_t)tx_data; in test_task()
93 dma_block_cfg.source_address = (uint32_t)tx_data; in test_task()
110 dma_block_cfg.block_size = sizeof(tx_data); in test_task()
112 dma_block_cfg.source_address = (uint64_t)tx_data; in test_task()
115 dma_block_cfg.source_address = (uint32_t)tx_data; in test_task()
133 if (strncmp(tx_data, rx_data2, dma_cfg.source_burst_length) != 0) { in test_task()
[all …]
/Zephyr-latest/tests/drivers/dma/loop_transfer/src/
Dtest_dma_loop.c36 static __aligned(32) uint8_t tx_data[CONFIG_DMA_LOOP_TRANSFER_SIZE];
49 dma_block_cfg.block_size = sizeof(tx_data); in test_transfer()
51 dma_block_cfg.source_address = (uint64_t)tx_data; in test_transfer()
54 dma_block_cfg.source_address = (uint32_t)tx_data; in test_transfer()
93 memset(tx_data, 0, sizeof(tx_data)); in test_loop()
96 tx_data[i] = i; in test_loop()
133 dma_block_cfg.block_size = sizeof(tx_data); in test_loop()
135 dma_block_cfg.source_address = (uint64_t)tx_data; in test_loop()
138 dma_block_cfg.source_address = (uint32_t)tx_data; in test_loop()
167 if (memcmp(tx_data, rx_data[i], CONFIG_DMA_LOOP_TRANSFER_SIZE)) { in test_loop()
[all …]
/Zephyr-latest/tests/bluetooth/mesh/delayable_msg/src/
Dmain.c159 uint8_t tx_data[20]; in ZTEST() local
170 memset(tx_data, 1, 20); in ZTEST()
171 memcpy(net_buf_simple_add(&buf1, 20), tx_data, 20); in ZTEST()
172 memset(tx_data, 2, 20); in ZTEST()
173 memcpy(net_buf_simple_add(&buf2, 20), tx_data, 20); in ZTEST()
174 memset(tx_data, 3, 20); in ZTEST()
175 memcpy(net_buf_simple_add(&buf3, 20), tx_data, 20); in ZTEST()
176 memset(tx_data, 4, 20); in ZTEST()
177 memcpy(net_buf_simple_add(&buf4, 20), tx_data, 20); in ZTEST()
209 uint8_t tx_data[20]; in ZTEST() local
[all …]
/Zephyr-latest/tests/drivers/i2c/i2c_ram/src/
Dtest_i2c_ram.c26 static uint8_t tx_data[9] = {0x00, 0x00, 'Z', 'e', 'p', 'h', 'y', 'r', '\n'}; variable
71 tx_data[0] = (addr >> 8) & 0xFF; in i2c_ram_before()
72 tx_data[1] = (addr) & 0xFF; in i2c_ram_before()
75 addr += ARRAY_SIZE(tx_data) - TX_DATA_OFFSET; in i2c_ram_before()
94 msgs[0].buf = tx_data; in ZTEST()
95 msgs[0].len = ARRAY_SIZE(tx_data); in ZTEST()
112 zassert_equal(memcmp(&tx_data[TX_DATA_OFFSET], &rx_data[0], ARRAY_SIZE(rx_data)), 0, in ZTEST()
121 zassert_ok(i2c_write(i2c_dev, tx_data, ARRAY_SIZE(tx_data), RAM_ADDR), in ZTEST()
128 zassert_equal(memcmp(&tx_data[TX_DATA_OFFSET], &rx_data[0], ARRAY_SIZE(rx_data)), 0, in ZTEST()
145 msgs[0].buf = tx_data; in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/dma/scatter_gather/src/
Dtest_dma_sg.c27 static __aligned(32) uint8_t tx_data[CONFIG_DMA_SG_XFER_SIZE] __used
33 static __aligned(32) uint8_t tx_data[CONFIG_DMA_SG_XFER_SIZE];
61 memset(tx_data, 0, sizeof(tx_data)); in test_sg()
64 tx_data[i] = i; in test_sg()
106 dma_block_cfgs[i].source_address = (uint64_t)(tx_data); in test_sg()
112 dma_block_cfgs[i].source_address = (uint32_t)(tx_data); in test_sg()
147 if (memcmp(tx_data, rx_data[i], CONFIG_DMA_SG_XFER_SIZE)) { in test_sg()
/Zephyr-latest/drivers/dac/
Ddac_mcp4728.c58 uint8_t tx_data[3]; in mcp4728_write_value() local
70 tx_data[0] = (MCP4728_MULTI_WRITE_CMD_VAL << MCP4728_MULTI_WRITE_CMD_POS) | in mcp4728_write_value()
72 tx_data[1] = (config->voltage_reference[channel] << MCP4728_MULTI_WRITE_REFERENCE_POS) | in mcp4728_write_value()
78 tx_data[2] = (value & MCP4728_MULTI_WRITE_DAC_LOWER_VAL_MASK); in mcp4728_write_value()
79 ret = i2c_write_dt(&config->bus, tx_data, sizeof(tx_data)); in mcp4728_write_value()
Ddac_mcp4725.c90 uint8_t tx_data[2]; in mcp4725_write_value() local
107 tx_data[0] = ((value >> MCP4725_FAST_MODE_DAC_UPPER_VAL_POS) & in mcp4725_write_value()
109 tx_data[1] = (value & MCP4725_FAST_MODE_DAC_LOWER_VAL_MASK); in mcp4725_write_value()
110 ret = i2c_write_dt(&config->i2c, tx_data, sizeof(tx_data)); in mcp4725_write_value()
Ddac_ad569x.c41 uint8_t tx_data[3]; in ad569x_write() local
43 tx_data[0] = command; in ad569x_write()
44 sys_put_be16(value, tx_data + 1); in ad569x_write()
46 return i2c_write_dt(&config->bus, tx_data, sizeof(tx_data)); in ad569x_write()
/Zephyr-latest/tests/drivers/i2s/i2s_api/src/
Dtest_i2s_errors.c54 char tx_data[BLOCK_SIZE] = {0}; in ZTEST_USER() local
68 err = i2s_buf_write(dev_i2s, tx_data, BLOCK_SIZE); in ZTEST_USER()
87 char tx_data[BLOCK_SIZE] = {0}; in ZTEST_USER() local
101 err = i2s_buf_write(dev_i2s, tx_data, BLOCK_SIZE); in ZTEST_USER()
111 char tx_data[BLOCK_SIZE] = {0}; in ZTEST_USER() local
125 err = i2s_buf_write(dev_i2s, tx_data, BLOCK_SIZE); in ZTEST_USER()
135 char tx_data[BLOCK_SIZE] = {0}; in ZTEST_USER() local
149 err = i2s_buf_write(dev_i2s, tx_data, sizeof(uint16_t) + BLOCK_SIZE); in ZTEST_USER()
/Zephyr-latest/subsys/net/lib/shell/
Dmem.c103 struct net_buf_pool *rx_data, *tx_data; in cmd_net_mem() local
105 net_pkt_get_info(&rx, &tx, &rx_data, &tx_data); in cmd_net_mem()
128 PR("%p\t%d\t%ld\tTX DATA (%s)\n", tx_data, tx_data->buf_count, in cmd_net_mem()
129 atomic_get(&tx_data->avail_count), tx_data->name); in cmd_net_mem()
136 PR("%p\t%d\tTX DATA\n", tx_data, tx_data->buf_count); in cmd_net_mem()
/Zephyr-latest/tests/boards/altera_max10/msgdma/src/
Ddma.c23 static char tx_data[DMA_BUFF_SIZE]; variable
52 tx_data[i] = i; in ZTEST()
73 dma_block_cfg.source_address = (uint32_t)tx_data; in ZTEST()
96 zassert_true(!memcmp(&tx_data, &rx_data, DMA_BUFF_SIZE), in ZTEST()
/Zephyr-latest/tests/kernel/mbox/mbox_api/src/
Dtest_mbox_api.c116 mmsg.tx_data = NULL; in tmbox_put()
126 mmsg.tx_data = data[info_type]; in tmbox_put()
138 mmsg.tx_data = data[info_type]; in tmbox_put()
156 mmsg.tx_data = NULL; in tmbox_put()
165 mmsg.tx_data = data[1]; in tmbox_put()
173 mmsg.tx_data = data[0]; in tmbox_put()
180 mmsg.tx_data = data[0]; in tmbox_put()
186 mmsg.tx_data = data[0]; in tmbox_put()
190 mmsg.tx_data = data[1]; in tmbox_put()
194 mmsg.tx_data = data[1]; in tmbox_put()
[all …]
/Zephyr-latest/drivers/display/
Ddisplay_ili9xxx.c67 int ili9xxx_transmit(const struct device *dev, uint8_t cmd, const void *tx_data, in ili9xxx_transmit() argument
73 cmd, tx_data, tx_len); in ili9xxx_transmit()
295 uint8_t tx_data; in ili9xxx_set_pixel_format() local
300 tx_data = ILI9XXX_PIXSET_MCU_16_BIT | ILI9XXX_PIXSET_RGB_16_BIT; in ili9xxx_set_pixel_format()
303 tx_data = ILI9XXX_PIXSET_MCU_18_BIT | ILI9XXX_PIXSET_RGB_18_BIT; in ili9xxx_set_pixel_format()
309 r = ili9xxx_transmit(dev, ILI9XXX_PIXSET, &tx_data, 1U); in ili9xxx_set_pixel_format()
327 uint8_t tx_data = ILI9XXX_MADCTL_BGR; in ili9xxx_set_orientation() local
330 tx_data |= ILI9XXX_MADCTL_MX; in ili9xxx_set_orientation()
332 tx_data |= ILI9XXX_MADCTL_MV; in ili9xxx_set_orientation()
334 tx_data |= ILI9XXX_MADCTL_MY; in ili9xxx_set_orientation()
[all …]
Ddisplay_gc9x01x.c220 static int gc9x01x_transmit(const struct device *dev, uint8_t cmd, const void *tx_data, in gc9x01x_transmit() argument
226 cmd, tx_data, tx_len); in gc9x01x_transmit()
372 uint8_t tx_data; in gc9x01x_set_pixel_format() local
377 tx_data = GC9X01X_PIXFMT_VAL_MCU_16_BIT | GC9X01X_PIXFMT_VAL_RGB_16_BIT; in gc9x01x_set_pixel_format()
380 tx_data = GC9X01X_PIXFMT_VAL_MCU_18_BIT | GC9X01X_PIXFMT_VAL_RGB_18_BIT; in gc9x01x_set_pixel_format()
386 ret = gc9x01x_transmit(dev, GC9X01X_CMD_PIXFMT, &tx_data, 1U); in gc9x01x_set_pixel_format()
402 uint8_t tx_data = GC9X01X_MADCTL_VAL_BGR; in gc9x01x_set_orientation() local
408 tx_data |= GC9X01X_MADCTL_VAL_MV | GC9X01X_MADCTL_VAL_MY; in gc9x01x_set_orientation()
411 tx_data |= GC9X01X_MADCTL_VAL_MY | GC9X01X_MADCTL_VAL_MX | GC9X01X_MADCTL_VAL_MH; in gc9x01x_set_orientation()
414 tx_data |= GC9X01X_MADCTL_VAL_MV | GC9X01X_MADCTL_VAL_MX; in gc9x01x_set_orientation()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/credits_seg_recv/src/
Dmain.c27 static uint8_t tx_data[SDU_LEN]; variable
69 l2cap_chan_send(chan, tx_data, sizeof(tx_data)); in continue_sending()
91 ASSERT(sdu_len == sizeof(tx_data), "Recv SDU length does not match send length."); in recv_cb()
94 ASSERT(memcmp(seg->data, &tx_data[seg_offset], seg->len) == 0, "RX data doesn't match TX"); in recv_cb()
232 for (size_t i = 0; i < sizeof(tx_data); i++) { in test_peripheral_main()
233 tx_data[i] = (uint8_t)i; in test_peripheral_main()
388 for (size_t i = 0; i < sizeof(tx_data); i++) { in test_central_main()
389 tx_data[i] = (uint8_t)i; in test_central_main()
408 l2cap_chan_send(&test_ctx.le_chan.chan, tx_data, sizeof(tx_data)); in test_central_main()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/stress/src/
Dmain.c49 static uint8_t tx_data[SDU_LEN]; variable
114 l2cap_chan_send(chan, tx_data, sizeof(tx_data)); in continue_sending()
139 int pos = memcmp(buf->data, tx_data, buf->len); in recv_cb()
144 LOG_HEXDUMP_INF(tx_data, buf->len, "TX data"); in recv_cb()
147 __ASSERT(buf->data[p] == tx_data[p], in recv_cb()
149 p, buf->data[p], p, tx_data[p]); in recv_cb()
302 for (size_t i = 0; i < sizeof(tx_data); i++) { in test_peripheral_main()
303 tx_data[i] = (uint8_t)i; in test_peripheral_main()
415 for (size_t i = 0; i < sizeof(tx_data); i++) { in test_central_main()
416 tx_data[i] = (uint8_t)i; in test_central_main()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/credits/src/
Dmain.c29 static uint8_t tx_data[SDU_LEN]; variable
74 l2cap_chan_send(chan, tx_data, sizeof(tx_data)); in continue_sending()
97 ASSERT(memcmp(buf->data, tx_data, buf->len) == 0, "RX data doesn't match TX"); in recv_cb()
219 for (size_t i = 0; i < sizeof(tx_data); i++) { in test_peripheral_main()
220 tx_data[i] = (uint8_t)i; in test_peripheral_main()
354 for (size_t i = 0; i < sizeof(tx_data); i++) { in test_central_main()
355 tx_data[i] = (uint8_t)i; in test_central_main()
374 l2cap_chan_send(&test_ctx.le_chan.chan, tx_data, sizeof(tx_data)); in test_central_main()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/many_conns/src/
Dmain.c34 static uint8_t tx_data[SDU_LEN]; variable
97 int pos = memcmp(buf->data, tx_data, buf->len); in recv_cb()
102 LOG_HEXDUMP_INF(tx_data, buf->len, "TX data"); in recv_cb()
105 __ASSERT(buf->data[p] == tx_data[p], in recv_cb()
107 p, buf->data[p], p, tx_data[p]); in recv_cb()
244 for (size_t i = 0; i < sizeof(tx_data); i++) { in test_peripheral_main()
245 tx_data[i] = (uint8_t)i; in test_peripheral_main()
376 for (size_t i = 0; i < sizeof(tx_data); i++) { in test_central_main()
377 tx_data[i] = (uint8_t)i; in test_central_main()
402 l2cap_chan_send(&contexts[i].le_chan.chan, tx_data, sizeof(tx_data)); in test_central_main()
/Zephyr-latest/tests/drivers/sensor/bmi160/include/
Dchecks.h30 const struct spi_buf *tx_data = &tx_bufs->buffers[1]; in bmi160_spi_is_touching_reg() local
33 return (start_reg <= reg) && (reg < start_reg + tx_data->len); in bmi160_spi_is_touching_reg()
/Zephyr-latest/modules/hal_nordic/nrfs/backends/
Dnrfs_backend_ipc_service.c184 struct ipc_data_packet tx_data; in nrfs_backend_send_ex() local
186 tx_data.channel_id = IPC_CPUSYS_CHANNEL_ID; in nrfs_backend_send_ex()
187 tx_data.size = size; in nrfs_backend_send_ex()
188 memcpy(tx_data.data, (uint8_t *)message, size); in nrfs_backend_send_ex()
190 err = k_msgq_put(&ipc_transmit_msgq, &tx_data, timeout); in nrfs_backend_send_ex()
/Zephyr-latest/tests/net/net_pkt/src/
Dmain.c1169 struct net_buf_pool *tx_data; in ZTEST() local
1176 net_pkt_get_info(NULL, NULL, NULL, &tx_data); in ZTEST()
1177 zassert_equal(atomic_get(&tx_data->avail_count), tx_data->buf_count - bufs_to_allocate, in ZTEST()
1182 zassert_equal(atomic_get(&tx_data->avail_count), tx_data->buf_count - bufs_to_allocate, in ZTEST()
1186 zassert_equal(atomic_get(&tx_data->avail_count), tx_data->buf_count - bufs_to_allocate, in ZTEST()
1190 zassert_equal(atomic_get(&tx_data->avail_count), tx_data->buf_count, in ZTEST()
1208 struct net_buf_pool *tx_data; in test_net_pkt_shallow_clone_append_buf() local
1213 net_pkt_get_info(NULL, NULL, NULL, &tx_data); in test_net_pkt_shallow_clone_append_buf()
1214 zassert_equal(atomic_get(&tx_data->avail_count), tx_data->buf_count in test_net_pkt_shallow_clone_append_buf()
1222 frag = net_buf_alloc_len(tx_data, CONFIG_NET_BUF_DATA_SIZE, K_NO_WAIT); in test_net_pkt_shallow_clone_append_buf()
[all …]
/Zephyr-latest/tests/drivers/dma/chan_blen_transfer/src/
Dtest_dma.c64 dma_block_cfg.block_size = sizeof(tx_data); in test_task()
66 dma_block_cfg.source_address = (uint64_t)tx_data; in test_task()
69 dma_block_cfg.source_address = (uint32_t)tx_data; in test_task()
85 if (strcmp(tx_data, rx_data) != 0) { in test_task()
/Zephyr-latest/drivers/input/
Dinput_pinnacle.c428 uint8_t tx_data[] = { in pinnacle_write_spi() local
433 .buf = tx_data, in pinnacle_write_spi()
434 .len = sizeof(tx_data), in pinnacle_write_spi()
447 uint8_t tx_data[count * 2]; in pinnacle_seq_write_spi() local
449 .buf = tx_data, in pinnacle_seq_write_spi()
450 .len = sizeof(tx_data), in pinnacle_seq_write_spi()
458 tx_data[i * 2] = PINNACLE_WRITE_REG(address[i]); in pinnacle_seq_write_spi()
459 tx_data[i * 2 + 1] = value[i]; in pinnacle_seq_write_spi()
467 uint8_t tx_data[] = { in pinnacle_read_spi() local
474 .buf = tx_data, in pinnacle_read_spi()
[all …]
/Zephyr-latest/samples/net/sockets/dumb_http_server/src/
Dsocket_dumb_http.c156 struct net_buf_pool *rx_data, *tx_data; in main() local
158 net_pkt_get_info(&rx, &tx, &rx_data, &tx_data); in main()
160 atomic_get(&rx_data->avail_count), atomic_get(&tx_data->avail_count)); in main()
/Zephyr-latest/drivers/serial/
Duart_mcux_flexcomm.c83 struct mcux_flexcomm_uart_tx_data tx_data; member
145 const uint8_t *tx_data, in mcux_flexcomm_fifo_fill() argument
155 USART_WriteByte(config->base, tx_data[num_tx++]); in mcux_flexcomm_fifo_fill()
450 data->tx_data.xfer_buf = buf; in mcux_flexcomm_uart_tx()
451 data->tx_data.xfer_len = len; in mcux_flexcomm_uart_tx()
452 data->tx_data.active_block.source_address = (uint32_t)buf; in mcux_flexcomm_uart_tx()
453 data->tx_data.active_block.dest_address = (uint32_t) &config->base->FIFOWR; in mcux_flexcomm_uart_tx()
454 data->tx_data.active_block.block_size = len; in mcux_flexcomm_uart_tx()
455 data->tx_data.active_block.next_block = NULL; in mcux_flexcomm_uart_tx()
479 k_work_schedule(&data->tx_data.timeout_work, K_USEC(timeout)); in mcux_flexcomm_uart_tx()
[all …]

123456