Searched refs:ringbuf (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/tests/lib/ringbuffer/src/ |
D | concurrent.c | 28 RING_BUF_ITEM_DECLARE(ringbuf, RINGBUFFER); 36 int ret = ring_buf_item_put(&ringbuf, TYPE, VALUE, in data_write() 49 ret = ring_buf_item_get(&ringbuf, &type, &value, output, &size32); in data_read() 114 len = ring_buf_put(&ringbuf, buf, sizeof(buf)); in produce_cpy() 130 len = ring_buf_get(&ringbuf, buf, sizeof(buf)); in consume_cpy() 149 err = ring_buf_item_put(&ringbuf, (uint16_t)pcnt, VALUE, buf, 2); in produce_item() 170 err = ring_buf_item_get(&ringbuf, &type, &value, data, &size32); in consume_item() 193 len = ring_buf_put_claim(&ringbuf, &data, wr); in produce() 195 len = ring_buf_put_claim(&ringbuf, &data, wr); in produce() 211 int err = ring_buf_put_finish(&ringbuf, len); in produce() [all …]
|
D | main.c | 162 static struct ring_buf ringbuf, *pbuf; variable 222 ring_buf_item_init(&ringbuf, RINGBUFFER_SIZE, buffer); in ZTEST() 223 zassert_true(ring_buf_is_empty(&ringbuf)); in ZTEST() 224 zassert_equal(ring_buf_item_space_get(&ringbuf), RINGBUFFER_SIZE); in ZTEST() 282 pbuf = &ringbuf; in ZTEST() 297 pbuf = &ringbuf; in ZTEST() 310 pbuf = &ringbuf; in ZTEST() 321 pbuf = &ringbuf; in ZTEST()
|
/Zephyr-latest/samples/subsys/usb/cdc_acm/src/ |
D | main.c | 34 struct ring_buf ringbuf; variable 119 size_t len = MIN(ring_buf_space_get(&ringbuf), in interrupt_handler() 135 rb_len = ring_buf_put(&ringbuf, buffer, recv_len); in interrupt_handler() 150 rb_len = ring_buf_get(&ringbuf, buffer, sizeof(buffer)); in interrupt_handler() 192 ring_buf_init(&ringbuf, sizeof(ring_buffer), ring_buffer); in main()
|
/Zephyr-latest/drivers/serial/ |
D | uart_bt.c | 69 struct ring_buf *ringbuf = dev_data->uart.rx_ringbuf; in bt_received() local 72 LOG_DBG("%s() - len: %d, rx_ringbuf space %d", __func__, len, ring_buf_space_get(ringbuf)); in bt_received() 75 put_len = ring_buf_put(ringbuf, (const uint8_t *)data, len); in bt_received() 192 struct ring_buf *ringbuf = dev_data->uart.tx_ringbuf; in uart_bt_poll_out() local 195 while (!ring_buf_put(ringbuf, &c, 1)) { in uart_bt_poll_out()
|