Home
last modified time | relevance | path

Searched refs:rb (Results 1 – 17 of 17) sorted by relevance

/Zephyr-latest/drivers/console/
Dipm_console_receiver.c37 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/
Di2s_litex.c263 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 …]
Di2s_ll_stm32.c33 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 …]
Di2s_sam_ssc.c116 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/
Dusbd_cdc_acm.c59 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/
Dipm_console.h68 struct ring_buf rb; member
/Zephyr-latest/lib/utils/
DCMakeLists.txt8 rb.c
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_registry.c1632 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 …]
Dlwm2m_registry.h213 struct ring_buf rb; member
Dlwm2m_message_handling.c1399 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/
Deth_sam_gmac.c406 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/
Dwifi_winc1500_nm_bus_wrapper.c45 static int8_t nm_i2c_read(uint8_t *rb, uint16_t sz) in nm_i2c_read() argument
/Zephyr-latest/scripts/coccinelle/
Dfind_dev_usage.cocci34 with open("function_names.pickle", "rb") as f:
/Zephyr-latest/scripts/build/
Duf2conv.py36 if w[0] == ':' and re.match(rb"^[:0-9a-fA-F\r\n]+$", buf):
/Zephyr-latest/doc/kernel/data_structures/
Dring_buffers.rst214 struct ring_buf rb;
221 ring_buf_item_init(&ms.rb, MY_RING_BUF_WORDS, ms.buffer);
/Zephyr-latest/boards/qemu/x86/
Dqemu_x86_tiny.ld201 LIB_ZEPHYR_OBJECT_FILE_IN_SECT(lsect, rb) \
/Zephyr-latest/doc/releases/
Drelease-notes-1.14.rst1540 * :github:`13464` - rb.h: macro RB_FOR_EACH_CONTAINER bug