Lines Matching refs:rd_len
74 uint32_t rd_len; in uart_rx_handle() local
85 rd_len = uart_fifo_read(dev, data, len); in uart_rx_handle()
91 if (rd_len > 0) { in uart_rx_handle()
98 size_t i = smp_shell_rx_bytes(smp, data, rd_len); in uart_rx_handle()
100 rd_len -= i; in uart_rx_handle()
102 if (rd_len) { in uart_rx_handle()
103 for (uint32_t j = 0; j < rd_len; j++) { in uart_rx_handle()
108 int err = ring_buf_put_finish(&sh_uart->rx_ringbuf, rd_len); in uart_rx_handle()
117 rd_len = uart_fifo_read(dev, &dummy, 1); in uart_rx_handle()
122 if ((rd_len != 0) && (smp_shell_rx_bytes(smp, &dummy, 1) == 1)) { in uart_rx_handle()
127 } while (rd_len && (rd_len == len)); in uart_rx_handle()