/Zephyr-Core-2.7.6/include/sys/ |
D | ring_buffer.h | 34 struct ring_buf { struct 86 struct ring_buf name = { \ 110 struct ring_buf name = { \ 132 struct ring_buf name = { \ 154 static inline void ring_buf_init(struct ring_buf *buf, in ring_buf_init() 160 memset(buf, 0, sizeof(struct ring_buf)); in ring_buf_init() 177 int ring_buf_is_empty(struct ring_buf *buf); 184 static inline void ring_buf_reset(struct ring_buf *buf) in ring_buf_reset() 198 uint32_t ring_buf_space_get(struct ring_buf *buf); 207 static inline uint32_t ring_buf_capacity_get(struct ring_buf *buf) in ring_buf_capacity_get() [all …]
|
/Zephyr-Core-2.7.6/subsys/shell/ |
D | shell_history.c | 119 ring_buf_get_finish(history->ring_buf, total_len); in remove_from_tail() 143 if (total_len > ring_buf_capacity_get(history->ring_buf)) { in z_shell_history_put() 164 claim_len = ring_buf_put_claim(history->ring_buf, in z_shell_history_put() 171 ring_buf_put_claim(history->ring_buf, in z_shell_history_put() 174 ring_buf_put_finish(history->ring_buf, in z_shell_history_put() 183 ring_buf_put_finish(history->ring_buf, claim_len); in z_shell_history_put() 187 ring_buf_put_finish(history->ring_buf, 0); in z_shell_history_put() 189 __ASSERT_NO_MSG(ring_buf_is_empty(history->ring_buf)); in z_shell_history_put() 197 ring_buf_reset(history->ring_buf); in z_shell_history_put()
|
/Zephyr-Core-2.7.6/include/shell/ |
D | shell_history.h | 22 struct ring_buf *ring_buf; member 36 static struct ring_buf _name##_ring_buf = \ 42 .ring_buf = &_name##_ring_buf \
|
D | shell_uart.h | 53 struct ring_buf *tx_ringbuf; 54 struct ring_buf *rx_ringbuf;
|
/Zephyr-Core-2.7.6/lib/os/ |
D | ring_buffer.c | 34 static uint32_t mod(struct ring_buf *buf, uint32_t val) in mod() 44 int ring_buf_is_empty(struct ring_buf *buf) in ring_buf_is_empty() 57 uint32_t ring_buf_size_get(struct ring_buf *buf) in ring_buf_size_get() 70 uint32_t ring_buf_space_get(struct ring_buf *buf) in ring_buf_space_get() 75 int ring_buf_item_put(struct ring_buf *buf, uint16_t type, uint8_t value, in ring_buf_item_put() 120 int ring_buf_item_get(struct ring_buf *buf, uint16_t *type, uint8_t *value, in ring_buf_item_get() 183 uint32_t ring_buf_put_claim(struct ring_buf *buf, uint8_t **data, uint32_t size) in ring_buf_put_claim() 206 int ring_buf_put_finish(struct ring_buf *buf, uint32_t size) in ring_buf_put_finish() 228 uint32_t ring_buf_put(struct ring_buf *buf, const uint8_t *data, uint32_t size) in ring_buf_put() 249 uint32_t ring_buf_get_claim(struct ring_buf *buf, uint8_t **data, uint32_t size) in ring_buf_get_claim() [all …]
|
/Zephyr-Core-2.7.6/tests/lib/ringbuffer/src/ |
D | concurrent.c | 43 typedef void (*test_ringbuf_action_t)(struct ring_buf *rbuf, bool reset); 138 static void produce_cpy(struct ring_buf *rbuf, bool reset) in produce_cpy() 157 static void consume_cpy(struct ring_buf *rbuf, bool reset) in consume_cpy() 175 static void produce_item(struct ring_buf *rbuf, bool reset) in produce_item() 190 static void consume_item(struct ring_buf *rbuf, bool reset) in consume_item() 213 static void produce(struct ring_buf *rbuf, bool reset) in produce() 248 static void consume(struct ring_buf *rbuf, bool reset) in consume() 288 struct ring_buf *rbuf = k_timer_user_data_get(timer); in produce_timeout() 299 struct ring_buf *rbuf = k_timer_user_data_get(timer); in consume_timeout() 332 struct ring_buf *rbuf = p1; in thread_entry_spsc()
|
D | main.c | 179 static struct ring_buf ringbuf, *pbuf; 849 struct ring_buf buf_ii; in test_ringbuffer_array_perf() 950 struct ring_buf buf_ii; in test_ringbuffer_equal_bufs() 972 static struct ring_buf rbuf; in test_ringbuffer_performance()
|
/Zephyr-Core-2.7.6/drivers/i2s/ |
D | i2s_ll_stm32.h | 63 struct ring_buf { struct 93 struct ring_buf mem_block_queue;
|
D | i2s_litex.h | 81 struct ring_buf { struct 92 struct ring_buf mem_block_queue; argument
|
D | i2s_sam_ssc.c | 58 struct ring_buf { struct 84 struct ring_buf mem_block_queue; argument 120 static int queue_get(struct ring_buf *rb, void **mem_block, size_t *size) in queue_get() 144 static int queue_put(struct ring_buf *rb, void *mem_block, size_t size) in queue_put()
|
D | i2s_litex.c | 277 static int queue_get(struct ring_buf *rb, void **mem_block, size_t *size) in queue_get() 299 static int queue_put(struct ring_buf *rb, void *mem_block, size_t size) in queue_put()
|
/Zephyr-Core-2.7.6/drivers/ethernet/ |
D | eth_sam_gmac_priv.h | 211 struct ring_buf { struct 245 struct ring_buf tx_frag_list; 247 struct ring_buf tx_frames;
|
/Zephyr-Core-2.7.6/drivers/modem/ |
D | modem_iface_uart.h | 31 struct ring_buf rx_rb;
|
D | modem_receiver.h | 28 struct ring_buf rx_rb;
|
/Zephyr-Core-2.7.6/doc/reference/data_structures/ |
D | ring_buffers.rst | 10 "streaming" copying of data, Zephyr provides a ``struct ring_buf`` 54 A ``struct ring_buf`` may be placed anywhere in user-accessible 191 ring_buf`` contains its own buffer pointer and its size, and also a 216 A ring buffer is defined using a variable of type :c:type:`ring_buf`. 228 struct ring_buf rb; 279 ret = ring_buf_item_put(&ring_buf, TYPE_FOO, 0, data, SIZE32_OF(data)); 293 ret = ring_buf_item_put(&ring_buf, TYPE_BAR, 17, NULL, 0); 307 ret = ring_buf_put(&ring_buf, my_data, SIZE_OF(my_data)); 324 size = ring_buf_put_claim(&ring_buf, &data, MY_RING_BUF_BYTES); 330 err = ring_buf_put_finish(&ring_buf, rx_size); [all …]
|
/Zephyr-Core-2.7.6/include/drivers/console/ |
D | ipm_console.h | 68 struct ring_buf rb;
|
/Zephyr-Core-2.7.6/samples/subsys/usb/cdc_acm_composite/src/ |
D | main.c | 34 struct ring_buf rb; 54 struct ring_buf *rb = &peer->data->rb; in interrupt_handler()
|
/Zephyr-Core-2.7.6/subsys/tracing/ |
D | tracing_buffer.c | 9 static struct ring_buf tracing_ring_buf;
|
/Zephyr-Core-2.7.6/samples/subsys/usb/cdc_acm/src/ |
D | main.c | 29 struct ring_buf ringbuf;
|
/Zephyr-Core-2.7.6/subsys/mgmt/osdp/src/ |
D | osdp.c | 30 struct ring_buf rx_buf; 31 struct ring_buf tx_buf;
|
/Zephyr-Core-2.7.6/drivers/wifi/eswifi/ |
D | eswifi_bus_uart.c | 43 struct ring_buf rx_rb;
|
/Zephyr-Core-2.7.6/subsys/net/lib/openthread/platform/ |
D | uart.c | 31 struct ring_buf *rx_ringbuf;
|
/Zephyr-Core-2.7.6/drivers/console/ |
D | uart_mux.c | 51 struct ring_buf *rx_ringbuf; 120 struct ring_buf *tx_ringbuf; 125 struct ring_buf *rx_ringbuf;
|
/Zephyr-Core-2.7.6/subsys/testsuite/busy_sim/ |
D | busy_sim.c | 22 struct ring_buf rnd_rbuf;
|
/Zephyr-Core-2.7.6/drivers/entropy/ |
D | entropy_cc13xx_cc26xx.c | 33 struct ring_buf pool;
|