Home
last modified time | relevance | path

Searched refs:rx_ringbuf (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/drivers/hdlc_rcp_if/
Dhdlc_rcp_if_uart.c38 struct ring_buf *rx_ringbuf; member
51 .rx_ringbuf = &_name##_rx_ringbuf, \
73 len = ring_buf_get_claim(otuart->rx_ringbuf, &data, in ot_uart_rx_cb()
74 otuart->rx_ringbuf->size); in ot_uart_rx_cb()
77 ring_buf_get_finish(otuart->rx_ringbuf, len); in ot_uart_rx_cb()
105 ot_uart.rx_ringbuf, &data, in uart_rx_handle()
106 ot_uart.rx_ringbuf->size); in uart_rx_handle()
110 int err = ring_buf_put_finish(ot_uart.rx_ringbuf, rd_len); in uart_rx_handle()
130 if (ring_buf_size_get(ot_uart.rx_ringbuf) > 0) { in uart_callback()
194 ring_buf_reset(ot_uart.rx_ringbuf); in hdlc_deinit()
/Zephyr-latest/modules/openthread/platform/
Duart.c31 struct ring_buf *rx_ringbuf; member
40 .rx_ringbuf = &_name##_rx_ringbuf, \
60 ot_uart.rx_ringbuf, &data, in uart_rx_handle()
61 ot_uart.rx_ringbuf->size); in uart_rx_handle()
69 ot_uart.rx_ringbuf, rd_len); in uart_rx_handle()
137 ot_uart.rx_ringbuf, in platformUartProcess()
139 ot_uart.rx_ringbuf->size)) > 0) { in platformUartProcess()
144 ot_uart.rx_ringbuf, in platformUartProcess()
/Zephyr-latest/include/zephyr/shell/
Dshell_uart.h53 struct ring_buf rx_ringbuf; member
71 struct ring_buf rx_ringbuf; member
/Zephyr-latest/subsys/console/
Dtty.c62 tty->rx_ringbuf[tty->rx_put] = c; in tty_irq_input_hook()
153 c = tty->rx_ringbuf[tty->rx_get++]; in tty_getchar()
250 tty->rx_ringbuf = NULL; in tty_init()
269 tty->rx_ringbuf = buf; in tty_set_rx_buf()
/Zephyr-latest/subsys/shell/backends/
Dshell_uart.c81 len = ring_buf_put_claim(&sh_uart->rx_ringbuf, &data, in uart_rx_handle()
82 sh_uart->rx_ringbuf.size); in uart_rx_handle()
108 int err = ring_buf_put_finish(&sh_uart->rx_ringbuf, rd_len); in uart_rx_handle()
215 ring_buf_init(&sh_uart->rx_ringbuf, CONFIG_SHELL_BACKEND_SERIAL_RX_RING_BUFFER_SIZE, in irq_init()
269 if (ring_buf_put(&sh_uart->rx_ringbuf, &c, 1) == 0U) { in polling_rx_timeout_handler()
283 ring_buf_init(&sh_uart->rx_ringbuf, CONFIG_SHELL_BACKEND_SERIAL_RX_RING_BUFFER_SIZE, in polling_init()
423 *cnt = ring_buf_get(&sh_uart->rx_ringbuf, data, length); in irq_read()
431 *cnt = ring_buf_get(&sh_uart->rx_ringbuf, data, length); in polling_read()
/Zephyr-latest/drivers/serial/
Duart_bt.c30 struct ring_buf *rx_ringbuf; member
69 struct ring_buf *ringbuf = dev_data->uart.rx_ringbuf; in bt_received()
179 return ring_buf_get(dev_data->uart.rx_ringbuf, rx_data, size); in uart_bt_fifo_read()
247 if (!ring_buf_is_empty(dev_data->uart.rx_ringbuf) && dev_data->uart.rx_irq_ena) { in uart_bt_irq_rx_ready()
362 .rx_ringbuf = &bt_nus_rx_rb_##n, \
/Zephyr-latest/subsys/usb/device/class/
Dcdc_acm.c115 struct ring_buf *rx_ringbuf; member
306 ep, size, dev_data, ring_buf_space_get(dev_data->rx_ringbuf)); in cdc_acm_read_cb()
312 wrote = ring_buf_put(dev_data->rx_ringbuf, dev_data->rx_buf, size); in cdc_acm_read_cb()
324 if (ring_buf_space_get(dev_data->rx_ringbuf) < sizeof(dev_data->rx_buf)) { in cdc_acm_read_cb()
560 dev, size, ring_buf_space_get(dev_data->rx_ringbuf)); in cdc_acm_fifo_read()
562 len = ring_buf_get(dev_data->rx_ringbuf, rx_data, size); in cdc_acm_fifo_read()
565 if (ring_buf_space_get(dev_data->rx_ringbuf) >= CDC_ACM_BUFFER_SIZE) { in cdc_acm_fifo_read()
701 if (ring_buf_is_empty(dev_data->rx_ringbuf)) { in cdc_acm_irq_update()
1211 .rx_ringbuf = &cdc_acm_rx_rb_##x, \
/Zephyr-latest/include/zephyr/console/
Dtty.h22 uint8_t *rx_ringbuf; member
/Zephyr-latest/drivers/net/
Dppp.c104 struct ring_buf rx_ringbuf; member
179 ret = ring_buf_put(&context->rx_ringbuf, p, len); in uart_callback()
196 space_left = ring_buf_space_get(&context->rx_ringbuf); in uart_callback()
280 ret = ring_buf_space_get(&ppp->rx_ringbuf); in uart_recovery()
907 len = ring_buf_get_claim(&ppp->rx_ringbuf, &data, in ppp_consume_ringbuf()
910 LOG_DBG("Ringbuf %p is empty!", &ppp->rx_ringbuf); in ppp_consume_ringbuf()
930 ret = ring_buf_get_finish(&ppp->rx_ringbuf, len); in ppp_consume_ringbuf()
957 ring_buf_init(&ppp->rx_ringbuf, sizeof(ppp->rx_buf), ppp->rx_buf); in ppp_driver_init()
1085 ret = ring_buf_put(&context->rx_ringbuf, context->buf, rx); in ppp_uart_isr()