/Zephyr-latest/drivers/serial/ |
D | uart_async_rx.c | 11 static uint8_t inc(struct uart_async_rx *rx_data, uint8_t val) in inc() argument 13 return (val + 1) & (rx_data->config->buf_cnt - 1); in inc() 16 static struct uart_async_rx_buf *get_buf(struct uart_async_rx *rx_data, uint8_t idx) in get_buf() argument 18 uint8_t *p = rx_data->config->buffer; in get_buf() 20 p += idx * (rx_data->buf_len + sizeof(struct uart_async_rx_buf)); in get_buf() 25 uint8_t *uart_async_rx_buf_req(struct uart_async_rx *rx_data) in uart_async_rx_buf_req() argument 29 if (rx_data->free_buf_cnt != 0) { in uart_async_rx_buf_req() 30 struct uart_async_rx_buf *buf = get_buf(rx_data, rx_data->drv_buf_idx); in uart_async_rx_buf_req() 33 rx_data->drv_buf_idx = inc(rx_data, rx_data->drv_buf_idx); in uart_async_rx_buf_req() 35 atomic_dec(&rx_data->free_buf_cnt); in uart_async_rx_buf_req() [all …]
|
D | uart_mcux_flexcomm.c | 84 struct mcux_flexcomm_uart_rx_data rx_data; member 161 static int mcux_flexcomm_fifo_read(const struct device *dev, uint8_t *rx_data, in mcux_flexcomm_fifo_read() argument 171 rx_data[num_rx++] = USART_ReadByte(config->base); in mcux_flexcomm_fifo_read() 570 data->rx_data.xfer_buf = buf; in mcux_flexcomm_uart_rx_enable() 571 data->rx_data.xfer_len = len; in mcux_flexcomm_uart_rx_enable() 572 data->rx_data.active_block.dest_address = (uint32_t)data->rx_data.xfer_buf; in mcux_flexcomm_uart_rx_enable() 573 data->rx_data.active_block.source_address = (uint32_t) &config->base->FIFORD; in mcux_flexcomm_uart_rx_enable() 574 data->rx_data.active_block.block_size = data->rx_data.xfer_len; in mcux_flexcomm_uart_rx_enable() 582 data->rx_data.timeout = timeout; in mcux_flexcomm_uart_rx_enable() 621 size_t total_rx_receive_len = data->rx_data.xfer_len - status.pending_length; in flexcomm_uart_rx_update() [all …]
|
/Zephyr-latest/tests/kernel/fifo/fifo_usage/src/ |
D | main.c | 72 void *rx_data; in tIsr_entry_get() local 77 rx_data = k_fifo_get((struct k_fifo *)p, K_NO_WAIT); in tIsr_entry_get() 78 zassert_equal(rx_data, (void *)&data_isr[i]); in tIsr_entry_get() 85 void *rx_data; in thread_entry_fn_single() local 90 rx_data = k_fifo_get((struct k_fifo *)p1, K_NO_WAIT); in thread_entry_fn_single() 91 zassert_equal(rx_data, (void *)&data1[i]); in thread_entry_fn_single() 105 void *rx_data; in thread_entry_fn_dual() local 110 rx_data = k_fifo_get((struct k_fifo *)p2, K_FOREVER); in thread_entry_fn_dual() 111 zassert_equal(rx_data, (void *)&data2[i]); in thread_entry_fn_dual() 146 void *rx_data; in ZTEST() local [all …]
|
/Zephyr-latest/tests/drivers/i2c/i2c_ram/src/ |
D | test_i2c_ram.c | 34 uint8_t rx_data[7]; variable 76 memset(rx_data, 0, ARRAY_SIZE(rx_data)); in i2c_ram_before() 105 msgs[1].buf = rx_data; in ZTEST() 112 zassert_equal(memcmp(&tx_data[TX_DATA_OFFSET], &rx_data[0], ARRAY_SIZE(rx_data)), 0, in ZTEST() 125 rx_data, ARRAY_SIZE(rx_data)), in ZTEST() 128 zassert_equal(memcmp(&tx_data[TX_DATA_OFFSET], &rx_data[0], ARRAY_SIZE(rx_data)), 0, in ZTEST() 159 msgs[1].buf = rx_data; in ZTEST() 160 msgs[1].len = ARRAY_SIZE(rx_data); in ZTEST() 169 zassert_equal(memcmp(&tx_data[TX_DATA_OFFSET], &rx_data[0], ARRAY_SIZE(rx_data)), 0, in ZTEST() 199 msgs[1].buf = rx_data; in ZTEST() [all …]
|
/Zephyr-latest/tests/integration/kernel/src/ |
D | main.c | 38 struct fifo_item_t *rx_data; in thread_entry_fn_fifo() local 43 rx_data = k_fifo_get((struct k_fifo *)p1, K_NO_WAIT); in thread_entry_fn_fifo() 44 zassert_equal(rx_data->value, fifo_data[i].value); in thread_entry_fn_fifo() 60 struct fifo_item_t *rx_data; in ZTEST() local 82 rx_data = k_fifo_get(&fifo, K_NO_WAIT); in ZTEST() 83 zassert_equal(rx_data->value, fifo_data[i].value); in ZTEST() 107 struct lifo_item_t *rx_data; in thread_entry_fn_lifo() local 112 rx_data = k_lifo_get((struct k_lifo *)p1, K_NO_WAIT); in thread_entry_fn_lifo() 113 zassert_equal(rx_data->value, lifo_data[LIST_LEN-1-i].value); in thread_entry_fn_lifo() 128 struct lifo_item_t *rx_data; in ZTEST() local [all …]
|
/Zephyr-latest/tests/drivers/dma/loop_transfer/src/ |
D | test_dma_loop.c | 37 static __aligned(32) uint8_t rx_data[TRANSFER_LOOPS][CONFIG_DMA_LOOP_TRANSFER_SIZE] = { { 0 } }; 52 dma_block_cfg.dest_address = (uint64_t)rx_data[transfer_count]; in test_transfer() 55 dma_block_cfg.dest_address = (uint32_t)rx_data[transfer_count]; in test_transfer() 99 memset(rx_data, 0, sizeof(rx_data)); in test_loop() 136 dma_block_cfg.dest_address = (uint64_t)rx_data[transfer_count]; in test_loop() 139 dma_block_cfg.dest_address = (uint32_t)rx_data[transfer_count]; in test_loop() 167 if (memcmp(tx_data, rx_data[i], CONFIG_DMA_LOOP_TRANSFER_SIZE)) { in test_loop() 190 memset(rx_data, 0, sizeof(rx_data)); in test_loop_suspend_resume() 227 dma_block_cfg.dest_address = (uint64_t)rx_data[transfer_count]; in test_loop_suspend_resume() 230 dma_block_cfg.dest_address = (uint32_t)rx_data[transfer_count]; in test_loop_suspend_resume() [all …]
|
/Zephyr-latest/tests/drivers/dma/chan_link_transfer/src/ |
D | test_dma.c | 32 static __aligned(32) char rx_data[RX_BUFF_SIZE] __used 38 static char rx_data[RX_BUFF_SIZE] = { 0 }; variable 85 (void)memset(rx_data, 0, sizeof(rx_data)); in test_task() 113 dma_block_cfg.dest_address = (uint64_t)rx_data; in test_task() 116 dma_block_cfg.dest_address = (uint32_t)rx_data; in test_task() 129 TC_PRINT("%s\n", rx_data); in test_task()
|
/Zephyr-latest/tests/drivers/dma/scatter_gather/src/ |
D | test_dma_sg.c | 29 static __aligned(32) uint8_t rx_data[XFERS][CONFIG_DMA_SG_XFER_SIZE] __used 34 static __aligned(32) uint8_t rx_data[XFERS][CONFIG_DMA_SG_XFER_SIZE] = { { 0 } }; 67 memset(rx_data, 0, sizeof(rx_data)); in test_sg() 107 dma_block_cfgs[i].dest_address = (uint64_t)(rx_data[i]); in test_sg() 113 dma_block_cfgs[i].dest_address = (uint32_t)(rx_data[i]); in test_sg() 147 if (memcmp(tx_data, rx_data[i], CONFIG_DMA_SG_XFER_SIZE)) { in test_sg()
|
/Zephyr-latest/tests/kernel/fifo/fifo_api/src/ |
D | test_fifo_contexts.c | 48 void *rx_data; in tfifo_get() local 53 rx_data = k_fifo_get(pfifo, K_NO_WAIT); in tfifo_get() 54 zassert_equal(rx_data, (void *)&data[i]); in tfifo_get() 58 rx_data = k_fifo_get(pfifo, K_NO_WAIT); in tfifo_get() 59 zassert_equal(rx_data, (void *)&data_l[i]); in tfifo_get() 63 rx_data = k_fifo_get(pfifo, K_NO_WAIT); in tfifo_get() 64 zassert_equal(rx_data, (void *)&data_sl[i]); in tfifo_get()
|
D | test_fifo_loop.c | 29 void *rx_data; in tfifo_get() local 34 rx_data = k_fifo_get(pfifo, K_NO_WAIT); in tfifo_get() 35 zassert_equal(rx_data, (void *)&data[i]); in tfifo_get()
|
/Zephyr-latest/tests/kernel/pipe/pipe_api/src/ |
D | test_pipe_contexts.c | 63 unsigned char rx_data[PIPE_LEN]; in tpipe_get() local 71 zassert_false(k_pipe_get(ppipe, &rx_data[i], to_rd, in tpipe_get() 76 zassert_equal(rx_data[i], data[i]); in tpipe_get() 153 unsigned char rx_data[PIPE_LEN]; in tpipe_get_small_size() local 160 zassert_false(k_pipe_get(ppipe, &rx_data[i], to_rd, in tpipe_get_small_size() 168 unsigned char rx_data[PIPE_LEN]; in tpipe_get_large_size() local 176 zassert_false(k_pipe_get(ppipe, &rx_data[i], to_rd, in tpipe_get_large_size() 352 unsigned char rx_data[PIPE_LEN]; in ZTEST() local 356 memset(rx_data, 0, sizeof(rx_data)); in ZTEST() 359 ret = k_pipe_put(&kpipe, &rx_data[0], 1, &rd_byte, 24, K_NO_WAIT); in ZTEST() [all …]
|
D | test_pipe_fail.c | 70 unsigned char rx_data[PIPE_LEN]; in get_fail() local 74 zassert_equal(k_pipe_get(p, rx_data, PIPE_LEN, &rd_byte, 1, in get_fail() 78 zassert_equal(k_pipe_get(p, rx_data, PIPE_LEN, &rd_byte, 1, in get_fail() 81 zassert_equal(k_pipe_get(p, rx_data, PIPE_LEN, &rd_byte, 1, in get_fail() 146 unsigned char rx_data[PIPE_LEN]; in ZTEST_USER() local 150 k_pipe_get(NULL, rx_data, PIPE_LEN, in ZTEST_USER() 191 unsigned char rx_data[PIPE_LEN]; in ZTEST_USER() local 197 k_pipe_get(p, rx_data, PIPE_LEN, in ZTEST_USER()
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | mem.c | 103 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() 125 PR("%p\t%d\t%ld\tRX DATA (%s)\n", rx_data, rx_data->buf_count, in cmd_net_mem() 126 atomic_get(&rx_data->avail_count), rx_data->name); in cmd_net_mem() 135 PR("%p\t%d\tRX DATA\n", rx_data, rx_data->buf_count); in cmd_net_mem()
|
/Zephyr-latest/tests/kernel/queue/src/ |
D | test_queue_loop.c | 41 void *rx_data; in tqueue_get() local 46 rx_data = k_queue_get(pqueue, K_NO_WAIT); in tqueue_get() 47 zassert_equal(rx_data, (void *)&data_p[i]); in tqueue_get() 53 rx_data = k_queue_get(pqueue, K_NO_WAIT); in tqueue_get() 54 zassert_equal(rx_data, (void *)&data[i]); in tqueue_get()
|
D | test_queue_contexts.c | 67 void *rx_data; in tqueue_get() local 72 rx_data = k_queue_get(pqueue, K_NO_WAIT); in tqueue_get() 73 zassert_equal(rx_data, (void *)&data_p[i]); in tqueue_get() 78 rx_data = k_queue_get(pqueue, K_NO_WAIT); in tqueue_get() 79 zassert_equal(rx_data, (void *)&data[i]); in tqueue_get() 83 rx_data = k_queue_get(pqueue, K_NO_WAIT); in tqueue_get() 84 zassert_equal(rx_data, (void *)&data_l[i]); in tqueue_get() 88 rx_data = k_queue_get(pqueue, K_NO_WAIT); in tqueue_get() 89 zassert_equal(rx_data, (void *)&data_sl[i]); in tqueue_get()
|
/Zephyr-latest/tests/drivers/dma/chan_blen_transfer/src/ |
D | test_dma.c | 63 (void)memset(rx_data, 0, sizeof(rx_data)); in test_task() 67 dma_block_cfg.dest_address = (uint64_t)rx_data; in test_task() 70 dma_block_cfg.dest_address = (uint32_t)rx_data; in test_task() 84 TC_PRINT("%s\n", rx_data); in test_task() 85 if (strcmp(tx_data, rx_data) != 0) { in test_task()
|
/Zephyr-latest/tests/boards/altera_max10/msgdma/src/ |
D | dma.c | 24 static char rx_data[DMA_BUFF_SIZE]; variable 74 dma_block_cfg.dest_address = (uint32_t)rx_data; in ZTEST() 91 z_nios2_dcache_flush_no_writeback(rx_data, DMA_BUFF_SIZE); in ZTEST() 96 zassert_true(!memcmp(&tx_data, &rx_data, DMA_BUFF_SIZE), in ZTEST()
|
/Zephyr-latest/tests/kernel/stack/stack/src/ |
D | test_stack_fail.c | 22 stack_data_t rx_data; in stack_pop_fail() local 25 zassert_equal(k_stack_pop(rx_data_stack, &rx_data, K_NO_WAIT), -EBUSY); in stack_pop_fail() 27 zassert_equal(k_stack_pop(rx_data_stack, &rx_data, TIMEOUT), -EAGAIN); in stack_pop_fail() 59 stack_data_t rx_data[STACK_LEN - 1]; in ZTEST() local 65 rx_data, NULL, K_PRIO_PREEMPT(0), 0, in ZTEST()
|
/Zephyr-latest/drivers/w1/ |
D | w1_ds2477_85_common.c | 106 uint8_t rx_data; in ds2477_85_reset_bus() local 110 ret = cfg->w1_script_cmd(dev, delay_us, SCRIPT_OW_RESET, &tx_data, 1, &rx_data, 1); in ds2477_85_reset_bus() 129 uint8_t rx_data; in ds2477_85_read_bit() local 132 ret = cfg->w1_script_cmd(dev, delay_us, SCRIPT_OW_READ_BIT, NULL, 0, &rx_data, 1); in ds2477_85_read_bit() 137 return (rx_data & BIT(5)) ? 1 : 0; in ds2477_85_read_bit() 146 uint8_t rx_data; in ds2477_85_write_bit() local 149 ret = cfg->w1_script_cmd(dev, delay_us, SCRIPT_OW_WRITE_BIT, &tx_data, 1, &rx_data, 1); in ds2477_85_write_bit() 162 uint8_t rx_data; in ds2477_85_read_byte() local 165 ret = cfg->w1_script_cmd(dev, delay_us, SCRIPT_OW_READ_BYTE, NULL, 0, &rx_data, 1); in ds2477_85_read_byte() 170 return rx_data; in ds2477_85_read_byte() [all …]
|
/Zephyr-latest/drivers/dac/ |
D | dac_mcp4725.c | 43 uint8_t rx_data[5]; in mcp4725_wait_until_ready() local 50 ret = i2c_read_dt(&config->i2c, rx_data, sizeof(rx_data)); in mcp4725_wait_until_ready() 53 mcp4725_ready = rx_data[0] & MCP4725_READ_RDY_MASK; in mcp4725_wait_until_ready()
|
/Zephyr-latest/samples/basic/threads/src/ |
D | main.c | 103 struct printk_data_t *rx_data = k_fifo_get(&printk_fifo, in uart_out() local 106 rx_data->led, rx_data->cnt); in uart_out() 107 k_free(rx_data); in uart_out()
|
/Zephyr-latest/modules/hal_nordic/nrfs/backends/ |
D | nrfs_backend_ipc_service.c | 106 struct ipc_data_packet rx_data; in ipc_sysctrl_ept_recv() local 110 rx_data.channel_id = IPC_CPUSYS_CHANNEL_ID; in ipc_sysctrl_ept_recv() 111 rx_data.size = size; in ipc_sysctrl_ept_recv() 113 memcpy(rx_data.data, (uint8_t *)data, size); in ipc_sysctrl_ept_recv() 114 nrfs_dispatcher_notify(&rx_data.data, rx_data.size); in ipc_sysctrl_ept_recv()
|
/Zephyr-latest/tests/kernel/lifo/lifo_api/src/ |
D | test_lifo_loop.c | 29 void *rx_data; in tlifo_get() local 34 rx_data = k_lifo_get(plifo, K_FOREVER); in tlifo_get() 35 zassert_equal(rx_data, (void *)&data[i]); in tlifo_get()
|
D | test_lifo_contexts.c | 31 void *rx_data; in tlifo_get() local 36 rx_data = k_lifo_get(plifo, K_FOREVER); in tlifo_get() 37 zassert_equal(rx_data, (void *)&data[i]); in tlifo_get()
|
/Zephyr-latest/tests/kernel/msgq/msgq_api/src/ |
D | test_msgq_fail.c | 31 uint32_t rx_data; in get_fail() local 34 int ret = k_msgq_get(q, &rx_data, K_NO_WAIT); in get_fail() 38 ret = k_msgq_get(q, &rx_data, TIMEOUT); in get_fail()
|