Home
last modified time | relevance | path

Searched refs:ring_buf (Results 1 – 25 of 29) sorted by relevance

12

/Zephyr-Core-2.7.6/include/sys/
Dring_buffer.h34 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/
Dshell_history.c119 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/
Dshell_history.h22 struct ring_buf *ring_buf; member
36 static struct ring_buf _name##_ring_buf = \
42 .ring_buf = &_name##_ring_buf \
Dshell_uart.h53 struct ring_buf *tx_ringbuf;
54 struct ring_buf *rx_ringbuf;
/Zephyr-Core-2.7.6/lib/os/
Dring_buffer.c34 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/
Dconcurrent.c43 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()
Dmain.c179 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/
Di2s_ll_stm32.h63 struct ring_buf { struct
93 struct ring_buf mem_block_queue;
Di2s_litex.h81 struct ring_buf { struct
92 struct ring_buf mem_block_queue; argument
Di2s_sam_ssc.c58 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()
Di2s_litex.c277 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/
Deth_sam_gmac_priv.h211 struct ring_buf { struct
245 struct ring_buf tx_frag_list;
247 struct ring_buf tx_frames;
/Zephyr-Core-2.7.6/drivers/modem/
Dmodem_iface_uart.h31 struct ring_buf rx_rb;
Dmodem_receiver.h28 struct ring_buf rx_rb;
/Zephyr-Core-2.7.6/doc/reference/data_structures/
Dring_buffers.rst10 "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/
Dipm_console.h68 struct ring_buf rb;
/Zephyr-Core-2.7.6/samples/subsys/usb/cdc_acm_composite/src/
Dmain.c34 struct ring_buf rb;
54 struct ring_buf *rb = &peer->data->rb; in interrupt_handler()
/Zephyr-Core-2.7.6/subsys/tracing/
Dtracing_buffer.c9 static struct ring_buf tracing_ring_buf;
/Zephyr-Core-2.7.6/samples/subsys/usb/cdc_acm/src/
Dmain.c29 struct ring_buf ringbuf;
/Zephyr-Core-2.7.6/subsys/mgmt/osdp/src/
Dosdp.c30 struct ring_buf rx_buf;
31 struct ring_buf tx_buf;
/Zephyr-Core-2.7.6/drivers/wifi/eswifi/
Deswifi_bus_uart.c43 struct ring_buf rx_rb;
/Zephyr-Core-2.7.6/subsys/net/lib/openthread/platform/
Duart.c31 struct ring_buf *rx_ringbuf;
/Zephyr-Core-2.7.6/drivers/console/
Duart_mux.c51 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/
Dbusy_sim.c22 struct ring_buf rnd_rbuf;
/Zephyr-Core-2.7.6/drivers/entropy/
Dentropy_cc13xx_cc26xx.c33 struct ring_buf pool;

12