Searched refs:rd_idx (Results 1 – 12 of 12) sorted by relevance
/Zephyr-Core-3.6.0/subsys/ipc/ipc_service/lib/ |
D | pbuf.c | 15 static uint32_t idx_occupied(uint32_t len, uint32_t wr_idx, uint32_t rd_idx) in idx_occupied() argument 18 return (rd_idx > wr_idx) ? (len - (rd_idx - wr_idx)) : (wr_idx - rd_idx); in idx_occupied() 65 pb->data.rd_idx = 0; in pbuf_init() 69 *(pb->cfg->rd_idx_loc) = pb->data.rd_idx; in pbuf_init() 93 uint32_t rd_idx = *(pb->cfg->rd_idx_loc); in pbuf_write() local 101 if (!IS_PTR_ALIGNED_BYTES(rd_idx, _PBUF_IDX_SIZE)) { in pbuf_write() 105 uint32_t free_space = blen - idx_occupied(blen, wr_idx, rd_idx) - _PBUF_IDX_SIZE; in pbuf_write() 161 uint32_t rd_idx = pb->data.rd_idx; in pbuf_read() local 164 __ASSERT_NO_MSG(IS_PTR_ALIGNED_BYTES(rd_idx, _PBUF_IDX_SIZE)); in pbuf_read() 172 if (rd_idx == wr_idx) { in pbuf_read() [all …]
|
D | icmsg.c | 218 dev_data->rx_pb->data.rd_idx = 0; in icmsg_open()
|
/Zephyr-Core-3.6.0/lib/os/ |
D | spsc_pbuf.c | 64 return &pb->common.rd_idx; in get_rd_idx_loc() 125 pb->common.rd_idx = 0; in spsc_pbuf_init() 156 uint32_t rd_idx = *rd_idx_loc; in spsc_pbuf_alloc() local 159 if (wr_idx >= rd_idx) { in spsc_pbuf_alloc() 171 if ((remaining >= space) || (rd_idx <= space)) { in spsc_pbuf_alloc() 177 free_space = remaining - ((rd_idx > 0) ? 0 : FREE_SPACE_DISTANCE); in spsc_pbuf_alloc() 188 free_space = rd_idx - FREE_SPACE_DISTANCE; in spsc_pbuf_alloc() 192 free_space = rd_idx - wr_idx - FREE_SPACE_DISTANCE; in spsc_pbuf_alloc() 262 uint32_t rd_idx = *rd_idx_loc; in spsc_pbuf_claim() local 264 if (rd_idx == wr_idx) { in spsc_pbuf_claim() [all …]
|
D | mpsc_pbuf.c | 24 buffer->rd_idx, buffer->tmp_rd_idx); in mpsc_state_print() 66 if (buffer->rd_idx > buffer->tmp_wr_idx) { in free_space() 67 *res = buffer->rd_idx - buffer->tmp_wr_idx; in free_space() 101 f += (buffer->rd_idx - 1); in get_usage() 151 if (buffer->tmp_wr_idx == buffer->rd_idx) { in tmp_wr_idx_inc() 158 buffer->rd_idx = idx_inc(buffer, buffer->rd_idx, wlen); in rd_idx_inc() 181 item = (union mpsc_pbuf_generic *)&buffer->buf[buffer->rd_idx]; in drop_item_locked() 191 buffer->tmp_rd_idx = buffer->rd_idx; in drop_item_locked() 218 if (buffer->rd_idx == buffer->tmp_rd_idx) { in drop_item_locked() 223 buffer->rd_idx = buffer->tmp_rd_idx; in drop_item_locked() [all …]
|
/Zephyr-Core-3.6.0/drivers/serial/ |
D | uart_async_rx.c | 57 buf->rd_idx = 0; in buf_reset() 92 if ((buf->rd_idx == buf->wr_idx) && (buf->completed == 1)) { in uart_async_rx_data_claim() 99 *data = &buf->buffer[buf->rd_idx]; in uart_async_rx_data_claim() 100 rem = buf->wr_idx - buf->rd_idx; in uart_async_rx_data_claim() 109 buf->rd_idx += length; in uart_async_rx_data_consume() 113 __ASSERT_NO_MSG(buf->rd_idx <= buf->wr_idx); in uart_async_rx_data_consume()
|
/Zephyr-Core-3.6.0/modules/hal_nordic/nrf_802154/serialization/platform/ |
D | nrf_802154_spinel_backend_ipc.c | 90 static uint8_t rd_idx; variable 100 if (get_rb_idx_plus_1(wr_idx) == rd_idx) { in spinel_packet_from_thread_send() 122 struct ringbuffer *buf = &ring_buffer[rd_idx]; in spinel_packet_send_thread_fn() 128 rd_idx = get_rb_idx_plus_1(rd_idx); in spinel_packet_send_thread_fn()
|
/Zephyr-Core-3.6.0/include/zephyr/drivers/serial/ |
D | uart_async_rx.h | 31 uint8_t rd_idx; member
|
/Zephyr-Core-3.6.0/include/zephyr/sys/ |
D | spsc_pbuf.h | 65 uint32_t rd_idx; /* Index of the first valid byte in data[] */ member
|
D | mpsc_pbuf.h | 101 uint32_t rd_idx; member
|
/Zephyr-Core-3.6.0/include/zephyr/ipc/ |
D | pbuf.h | 70 volatile uint32_t rd_idx; /* Index of the first holding first member
|
/Zephyr-Core-3.6.0/drivers/interrupt_controller/ |
D | intc_gicv3_its.c | 300 uint64_t wr_idx, rd_idx, idx; in its_post_command() local 304 rd_idx = sys_read32(data->base + GITS_CREADR); in its_post_command() 320 rd_idx, idx, wr_idx); in its_post_command()
|
/Zephyr-Core-3.6.0/tests/subsys/ipc/pbuf/src/ |
D | main.c | 29 printk("data.rd_idx: %u\n", pb->data.rd_idx); in print_pbuf_info()
|