Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/samples/subsys/usb/cdc_acm_composite/src/
Dmain.c34 struct ring_buf rb; member
55 struct ring_buf *rb = &peer->data->rb; in interrupt_handler() local
63 wrote = ring_buf_put(rb, buf, read); in interrupt_handler()
79 len = ring_buf_get(&peer->rb, buf, sizeof(buf)); in interrupt_handler()
165 ring_buf_init(&peers[0].rb, sizeof(buffer0), buffer0); in main()
166 ring_buf_init(&peers[1].rb, sizeof(buffer1), buffer1); in main()
/Zephyr-Core-3.5.0/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-Core-3.5.0/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.c49 static int queue_get(struct ring_buf *rb, void **mem_block, size_t *size) in queue_get() argument
55 if (rb->tail == rb->head) { in queue_get()
61 *mem_block = rb->buf[rb->tail].mem_block; in queue_get()
62 *size = rb->buf[rb->tail].size; in queue_get()
63 MODULO_INC(rb->tail, rb->len); in queue_get()
73 static int queue_put(struct ring_buf *rb, void *mem_block, size_t size) in queue_put() argument
80 head_next = rb->head; in queue_put()
81 MODULO_INC(head_next, rb->len); in queue_put()
83 if (head_next == rb->tail) { in queue_put()
89 rb->buf[rb->head].mem_block = mem_block; 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-Core-3.5.0/subsys/usb/device_next/class/
Dusbd_cdc_acm.c46 struct ring_buf *rb; member
185 done = ring_buf_put(data->rx_fifo.rb, buf->data, buf->len); in usbd_cdc_acm_request()
482 len = ring_buf_get(data->tx_fifo.rb, buf->data, buf->size); in cdc_acm_tx_fifo_handler()
520 if (ring_buf_space_get(data->rx_fifo.rb) < cdc_acm_get_bulk_mps(c_nd)) { in cdc_acm_rx_fifo_handler()
549 if (ring_buf_is_empty(data->tx_fifo.rb)) { in cdc_acm_irq_tx_enable()
569 if (!ring_buf_is_empty(data->rx_fifo.rb)) { in cdc_acm_irq_rx_enable()
600 done = ring_buf_put(data->tx_fifo.rb, tx_data, len); in cdc_acm_fifo_fill()
606 dev, len, ring_buf_space_get(data->tx_fifo.rb)); in cdc_acm_fifo_fill()
619 dev, size, ring_buf_size_get(data->rx_fifo.rb)); in cdc_acm_fifo_read()
627 len = ring_buf_get(data->rx_fifo.rb, rx_data, size); in cdc_acm_fifo_read()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/drivers/console/
Dipm_console.h68 struct ring_buf rb; member
/Zephyr-Core-3.5.0/drivers/ethernet/
Deth_sam_gmac.c404 static void ring_buf_reset(struct ring_buf *rb) in ring_buf_reset() argument
406 rb->head = 0U; in ring_buf_reset()
407 rb->tail = 0U; in ring_buf_reset()
413 static uint32_t ring_buf_get(struct ring_buf *rb) in ring_buf_get() argument
417 __ASSERT(rb->tail != rb->head, in ring_buf_get()
420 val = rb->buf[rb->tail]; in ring_buf_get()
421 MODULO_INC(rb->tail, rb->len); in ring_buf_get()
429 static void ring_buf_put(struct ring_buf *rb, uint32_t val) in ring_buf_put() argument
431 rb->buf[rb->head] = val; in ring_buf_put()
432 MODULO_INC(rb->head, rb->len); in ring_buf_put()
[all …]
/Zephyr-Core-3.5.0/subsys/net/lib/lwm2m/
Dlwm2m_registry.c2156 ring_buf_init(&cache_entry->rb, cache_entry_size * cache_len, (uint8_t *)data_cache); in lwm2m_enable_cache()
2214 if (ring_buf_space_get(&cache_entry->rb) < element_size) { in lwm2m_cache_write()
2220 length = ring_buf_get_claim(&cache_entry->rb, &buf_ptr, element_size); in lwm2m_cache_write()
2221 ring_buf_get_finish(&cache_entry->rb, length); in lwm2m_cache_write()
2224 length = ring_buf_put_claim(&cache_entry->rb, &buf_ptr, element_size); in lwm2m_cache_write()
2227 ring_buf_put_finish(&cache_entry->rb, 0); in lwm2m_cache_write()
2232 ring_buf_put_finish(&cache_entry->rb, length); in lwm2m_cache_write()
2249 if (ring_buf_is_empty(&cache_entry->rb)) { in lwm2m_cache_read()
2253 length = ring_buf_get_claim(&cache_entry->rb, &buf_ptr, element_size); in lwm2m_cache_read()
2257 ring_buf_get_finish(&cache_entry->rb, 0); in lwm2m_cache_read()
[all …]
Dlwm2m_registry.h224 struct ring_buf rb; member
Dlwm2m_message_handling.c1334 read_info->original_get_base = cached_data->rb.get_base; in lwm2m_read_cached_data()
1335 read_info->original_get_head = cached_data->rb.get_head; in lwm2m_read_cached_data()
1336 read_info->original_get_tail = cached_data->rb.get_tail; in lwm2m_read_cached_data()
2948 cache_temp->read_info[i].cache_data->rb.get_head = in lwm2m_timeseries_data_rebuild()
2950 cache_temp->read_info[i].cache_data->rb.get_tail = in lwm2m_timeseries_data_rebuild()
2952 cache_temp->read_info[i].cache_data->rb.get_base = in lwm2m_timeseries_data_rebuild()
3371 if (ring_buf_is_empty(&cache_temp->read_info[i].cache_data->rb)) { in init_next_pending_timeseries_data()
3382 bytes_available += ring_buf_size_get(&cache_temp->read_info[i].cache_data->rb); in init_next_pending_timeseries_data()
/Zephyr-Core-3.5.0/lib/os/
DCMakeLists.txt14 rb.c
/Zephyr-Core-3.5.0/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-Core-3.5.0/scripts/coccinelle/
Dfind_dev_usage.cocci34 with open("function_names.pickle", "rb") as f:
/Zephyr-Core-3.5.0/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-Core-3.5.0/boards/x86/qemu_x86/
Dqemu_x86_tiny.ld201 LIB_ZEPHYR_OBJECT_FILE_IN_SECT(lsect, rb) \
/Zephyr-Core-3.5.0/doc/releases/
Drelease-notes-1.14.rst1540 * :github:`13464` - rb.h: macro RB_FOR_EACH_CONTAINER bug