/Zephyr-latest/drivers/console/ |
D | ipm_console_receiver.c | 37 ret = ring_buf_item_get(&driver_data->rb, &type, in ipm_console_thread() 76 ring_buf_item_space_get(&driver_data->rb)) { in ipm_console_thread() 95 ret = ring_buf_item_put(&driver_data->rb, 0, id, NULL, 0); in ipm_console_receive_callback() 107 if (ring_buf_item_space_get(&driver_data->rb) == 0) { in ipm_console_receive_callback() 138 ring_buf_item_init(&driver_data->rb, config_info->rb_size32, in ipm_console_receiver_init()
|
/Zephyr-latest/drivers/i2s/ |
D | i2s_litex.c | 263 static int queue_get(struct ring_buf *rb, void **mem_block, size_t *size) in queue_get() argument 269 if (rb->tail == rb->head) { in queue_get() 274 *mem_block = rb->buf[rb->tail].mem_block; in queue_get() 275 *size = rb->buf[rb->tail].size; in queue_get() 276 MODULO_INC(rb->tail, rb->len); in queue_get() 285 static int queue_put(struct ring_buf *rb, void *mem_block, size_t size) in queue_put() argument 292 head_next = rb->head; in queue_put() 293 MODULO_INC(head_next, rb->len); in queue_put() 295 if (head_next == rb->tail) { in queue_put() 301 rb->buf[rb->head].mem_block = mem_block; in queue_put() [all …]
|
D | i2s_ll_stm32.c | 33 static bool queue_is_empty(struct ring_buf *rb) in queue_is_empty() argument 39 if (rb->tail != rb->head) { in queue_is_empty() 53 static int queue_get(struct ring_buf *rb, void **mem_block, size_t *size) in queue_get() argument 59 if (queue_is_empty(rb) == true) { in queue_get() 64 *mem_block = rb->buf[rb->tail].mem_block; in queue_get() 65 *size = rb->buf[rb->tail].size; in queue_get() 66 MODULO_INC(rb->tail, rb->len); in queue_get() 76 static int queue_put(struct ring_buf *rb, void *mem_block, size_t size) in queue_put() argument 83 head_next = rb->head; in queue_put() 84 MODULO_INC(head_next, rb->len); in queue_put() [all …]
|
D | i2s_sam_ssc.c | 116 static int queue_get(struct ring_buf *rb, void **mem_block, size_t *size) in queue_get() argument 122 if (rb->tail == rb->head) { in queue_get() 128 *mem_block = rb->buf[rb->tail].mem_block; in queue_get() 129 *size = rb->buf[rb->tail].size; in queue_get() 130 MODULO_INC(rb->tail, rb->len); in queue_get() 140 static int queue_put(struct ring_buf *rb, void *mem_block, size_t size) in queue_put() argument 147 head_next = rb->head; in queue_put() 148 MODULO_INC(head_next, rb->len); in queue_put() 150 if (head_next == rb->tail) { in queue_put() 156 rb->buf[rb->head].mem_block = mem_block; in queue_put() [all …]
|
/Zephyr-latest/subsys/usb/device_next/class/ |
D | usbd_cdc_acm.c | 59 struct ring_buf *rb; member 243 done = ring_buf_put(data->rx_fifo.rb, buf->data, buf->len); in usbd_cdc_acm_request() 260 if (!ring_buf_is_empty(data->tx_fifo.rb)) { in usbd_cdc_acm_request() 295 if (ring_buf_space_get(data->tx_fifo.rb)) { in usbd_cdc_acm_enable() 574 len = ring_buf_get(data->tx_fifo.rb, buf->data, buf->size); in cdc_acm_tx_fifo_handler() 610 if (ring_buf_space_get(data->rx_fifo.rb) < cdc_acm_get_bulk_mps(c_data)) { in cdc_acm_rx_fifo_handler() 642 if (ring_buf_space_get(data->tx_fifo.rb)) { in cdc_acm_irq_tx_enable() 662 if (!ring_buf_is_empty(data->rx_fifo.rb)) { in cdc_acm_irq_rx_enable() 695 done = ring_buf_put(data->tx_fifo.rb, tx_data, len); in cdc_acm_fifo_fill() 702 dev, len, ring_buf_space_get(data->tx_fifo.rb)); in cdc_acm_fifo_fill() [all …]
|
/Zephyr-latest/include/zephyr/drivers/console/ |
D | ipm_console.h | 68 struct ring_buf rb; member
|
/Zephyr-latest/lib/utils/ |
D | CMakeLists.txt | 8 rb.c
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_registry.c | 1632 ring_buf_init(&cache_entry->rb, cache_entry_size * cache_len, (uint8_t *)data_cache); in lwm2m_enable_cache() 1665 if (ring_buf_space_get(&cache_entry->rb) < element_size) { in lwm2m_cache_write() 1671 length = ring_buf_get_claim(&cache_entry->rb, &buf_ptr, element_size); in lwm2m_cache_write() 1672 ring_buf_get_finish(&cache_entry->rb, length); in lwm2m_cache_write() 1675 length = ring_buf_put_claim(&cache_entry->rb, &buf_ptr, element_size); in lwm2m_cache_write() 1678 ring_buf_put_finish(&cache_entry->rb, 0); in lwm2m_cache_write() 1683 ring_buf_put_finish(&cache_entry->rb, length); in lwm2m_cache_write() 1700 if (ring_buf_is_empty(&cache_entry->rb)) { in lwm2m_cache_read() 1704 length = ring_buf_get_claim(&cache_entry->rb, &buf_ptr, element_size); in lwm2m_cache_read() 1708 ring_buf_get_finish(&cache_entry->rb, 0); in lwm2m_cache_read() [all …]
|
D | lwm2m_registry.h | 213 struct ring_buf rb; member
|
D | lwm2m_message_handling.c | 1399 read_info->original_get_base = cached_data->rb.get_base; in lwm2m_read_cached_data() 1400 read_info->original_get_head = cached_data->rb.get_head; in lwm2m_read_cached_data() 1401 read_info->original_get_tail = cached_data->rb.get_tail; in lwm2m_read_cached_data() 3059 cache_temp->read_info[i].cache_data->rb.get_head = in lwm2m_timeseries_data_rebuild() 3061 cache_temp->read_info[i].cache_data->rb.get_tail = in lwm2m_timeseries_data_rebuild() 3063 cache_temp->read_info[i].cache_data->rb.get_base = in lwm2m_timeseries_data_rebuild() 3492 if (ring_buf_is_empty(&cache_temp->read_info[i].cache_data->rb)) { in init_next_pending_timeseries_data() 3503 bytes_available += ring_buf_size_get(&cache_temp->read_info[i].cache_data->rb); in init_next_pending_timeseries_data()
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_sam_gmac.c | 406 static void ring_buf_reset(struct ring_buf *rb) in ring_buf_reset() argument 408 rb->head = 0U; in ring_buf_reset() 409 rb->tail = 0U; in ring_buf_reset() 415 static uint32_t ring_buf_get(struct ring_buf *rb) in ring_buf_get() argument 419 __ASSERT(rb->tail != rb->head, in ring_buf_get() 422 val = rb->buf[rb->tail]; in ring_buf_get() 423 MODULO_INC(rb->tail, rb->len); in ring_buf_get() 431 static void ring_buf_put(struct ring_buf *rb, uint32_t val) in ring_buf_put() argument 433 rb->buf[rb->head] = val; in ring_buf_put() 434 MODULO_INC(rb->head, rb->len); in ring_buf_put() [all …]
|
/Zephyr-latest/drivers/wifi/winc1500/ |
D | wifi_winc1500_nm_bus_wrapper.c | 45 static int8_t nm_i2c_read(uint8_t *rb, uint16_t sz) in nm_i2c_read() argument
|
/Zephyr-latest/scripts/coccinelle/ |
D | find_dev_usage.cocci | 34 with open("function_names.pickle", "rb") as f:
|
/Zephyr-latest/scripts/build/ |
D | uf2conv.py | 36 if w[0] == ':' and re.match(rb"^[:0-9a-fA-F\r\n]+$", buf):
|
/Zephyr-latest/doc/kernel/data_structures/ |
D | ring_buffers.rst | 214 struct ring_buf rb; 221 ring_buf_item_init(&ms.rb, MY_RING_BUF_WORDS, ms.buffer);
|
/Zephyr-latest/boards/qemu/x86/ |
D | qemu_x86_tiny.ld | 201 LIB_ZEPHYR_OBJECT_FILE_IN_SECT(lsect, rb) \
|
/Zephyr-latest/doc/releases/ |
D | release-notes-1.14.rst | 1540 * :github:`13464` - rb.h: macro RB_FOR_EACH_CONTAINER bug
|