Searched refs:ringbuf (Results 1 – 3 of 3) sorted by relevance
/Zephyr-Core-2.7.6/samples/subsys/usb/cdc_acm/src/ |
D | main.c | 29 struct ring_buf ringbuf; variable 39 size_t len = MIN(ring_buf_space_get(&ringbuf), in interrupt_handler() 44 rb_len = ring_buf_put(&ringbuf, buffer, recv_len); in interrupt_handler() 58 rb_len = ring_buf_get(&ringbuf, buffer, sizeof(buffer)); in interrupt_handler() 93 ring_buf_init(&ringbuf, sizeof(ring_buffer), ring_buffer); in main()
|
/Zephyr-Core-2.7.6/tests/lib/ringbuffer/src/ |
D | concurrent.c | 35 RING_BUF_ITEM_DECLARE_SIZE(ringbuf, RINGBUFFER); 51 int ret = ring_buf_item_put(&ringbuf, TYPE, VALUE, in data_write() 64 ret = ring_buf_item_get(&ringbuf, &type, &value, output, &size32); in data_read() 405 ring_buf_init(&ringbuf, ARRAY_SIZE(buf32), buf32); in test_ringbuffer_spsc() 410 ring_buf_init(&ringbuf, ARRAY_SIZE(buf), buf); in test_ringbuffer_spsc() 415 ring_buf_init(&ringbuf, ARRAY_SIZE(buf), buf); in test_ringbuffer_spsc() 427 &ringbuf, (void *)higher_producer, NULL, in test_ringbuffer_spsc()
|
D | main.c | 179 static struct ring_buf ringbuf, *pbuf; variable 239 ring_buf_init(&ringbuf, RINGBUFFER_SIZE, buffer); in test_ringbuffer_init() 240 zassert_true(ring_buf_is_empty(&ringbuf), NULL); in test_ringbuffer_init() 241 zassert_equal(ring_buf_space_get(&ringbuf), RINGBUFFER_SIZE, NULL); in test_ringbuffer_init() 299 pbuf = &ringbuf; in test_ringbuffer_put_get_thread() 314 pbuf = &ringbuf; in test_ringbuffer_put_get_isr() 327 pbuf = &ringbuf; in test_ringbuffer_put_get_thread_isr() 338 pbuf = &ringbuf; in test_ringbuffer_put_get_discard()
|