/Zephyr-latest/tests/subsys/modem/mock/ |
D | modem_backend_mock.c | 49 ret = ring_buf_put(&t_mock->rx_rb, buf, size); in modem_backend_mock_transmit() 72 return ring_buf_get(&mock->rx_rb, buf, size); in modem_backend_mock_receive() 111 ring_buf_init(&mock->rx_rb, config->rx_buf_size, config->rx_buf); in modem_backend_mock_init() 127 ring_buf_reset(&mock->rx_rb); in modem_backend_mock_reset() 140 __ASSERT(ring_buf_put(&mock->rx_rb, buf, size) == size, in modem_backend_mock_put()
|
D | modem_backend_mock.h | 27 struct ring_buf rx_rb; member
|
/Zephyr-latest/drivers/wifi/eswifi/ |
D | eswifi_bus_uart.c | 42 struct ring_buf rx_rb; member 70 partial_size = ring_buf_put_claim(&uart->rx_rb, &dst, in eswifi_iface_uart_isr() 89 ring_buf_put_finish(&uart->rx_rb, total_size); in eswifi_iface_uart_isr() 114 while (ring_buf_get(&uart->rx_rb, &c, 1) > 0) { in eswifi_uart_get_resp() 236 ring_buf_init(&uart->rx_rb, sizeof(uart->iface_rb_buf), in eswifi_uart_init()
|
/Zephyr-latest/drivers/modem/ |
D | modem_iface_uart_interrupt.c | 73 partial_size = ring_buf_put_claim(&data->rx_rb, &dst, in modem_iface_uart_isr() 96 ret = ring_buf_put_finish(&data->rx_rb, total_size); in modem_iface_uart_isr() 119 *bytes_read = ring_buf_get(&data->rx_rb, buf, size); in modem_iface_uart_read() 193 ring_buf_init(&data->rx_rb, config->rx_rb_buf_len, config->rx_rb_buf); in modem_iface_uart_init()
|
D | modem_receiver.c | 124 ret = ring_buf_put(&ctx->rx_rb, read_buf, rx); in mdm_receiver_isr() 177 *bytes_read = ring_buf_get(&ctx->rx_rb, buf, size); in mdm_receiver_recv() 235 ring_buf_init(&ctx->rx_rb, size, buf); in mdm_receiver_register()
|
D | modem_iface_uart_async.c | 55 written = ring_buf_put(&data->rx_rb, in iface_uart_async_callback() 100 *bytes_read = ring_buf_get(&data->rx_rb, buf, size); in modem_iface_uart_async_read() 179 ring_buf_init(&data->rx_rb, config->rx_rb_buf_len, config->rx_rb_buf); in modem_iface_uart_init()
|
D | modem_iface_uart.h | 27 struct ring_buf rx_rb; member
|
D | modem_receiver.h | 28 struct ring_buf rx_rb; member
|
/Zephyr-latest/drivers/serial/ |
D | uart_emul.c | 42 struct ring_buf *rx_rb; member 135 read = ring_buf_get(drv_data->rx_rb, p_char, 1); in uart_emul_poll_in() 224 bytes_to_read = MIN(config->latch_buffer_size, ring_buf_size_get(data->rx_rb)); in uart_emul_fifo_read() 226 ring_buf_get(data->rx_rb, rx_data, bytes_to_read); in uart_emul_fifo_read() 258 ready = !ring_buf_is_empty(data->rx_rb); in uart_emul_irq_rx_ready() 292 have_work = have_work || !ring_buf_is_empty(data->rx_rb); in uart_emul_irq_handler() 330 submit_irq_work = !ring_buf_is_empty(data->rx_rb); in uart_emul_irq_rx_enable() 497 empty = ring_buf_is_empty(data->rx_rb); in uart_emul_async_rx_handler() 525 uint32_t read = ring_buf_get(data->rx_rb, &rx_buf[offset + data_len], in uart_emul_async_rx_handler() 847 if (!ring_buf_is_empty(data->rx_rb)) { in uart_emul_rx_enable() [all …]
|
/Zephyr-latest/subsys/shell/backends/ |
D | shell_mqtt.c | 71 uint32_t size = ring_buf_size_get(&sh_mqtt->rx_rb); in sh_mqtt_rx_rb_flush() 74 size = ring_buf_get(&sh_mqtt->rx_rb, &c, 1U); in sh_mqtt_rx_rb_flush() 586 size = (size_t)ring_buf_put_claim(&sh_mqtt->rx_rb, &sh_mqtt->rx_rb_ptr, in mqtt_evt_handler() 593 (void)ring_buf_put_finish(&sh_mqtt->rx_rb, 0U); in mqtt_evt_handler() 600 (void)ring_buf_put_finish(&sh_mqtt->rx_rb, size); in mqtt_evt_handler() 612 size = ring_buf_space_get(&sh_mqtt->rx_rb); in mqtt_evt_handler() 614 (void)ring_buf_put(&sh_mqtt->rx_rb, "\r\n", sizeof("\r\n")); in mqtt_evt_handler() 663 ring_buf_init(&sh_mqtt->rx_rb, RX_RB_SIZE, sh_mqtt->rx_rb_buf); in init() 803 *cnt = ring_buf_get(&sh_mqtt->rx_rb, data, length); in read_data() 806 if (ring_buf_size_get(&sh_mqtt->rx_rb) > 0) { in read_data()
|
/Zephyr-latest/include/zephyr/shell/ |
D | shell_mqtt.h | 49 struct ring_buf rx_rb; member
|