Lines Matching refs:rx_buf
45 struct uart_mcumgr_rx_buf *rx_buf; in uart_mcumgr_alloc_rx_buf() local
54 rx_buf = block; in uart_mcumgr_alloc_rx_buf()
55 rx_buf->length = 0; in uart_mcumgr_alloc_rx_buf()
56 return rx_buf; in uart_mcumgr_alloc_rx_buf()
59 void uart_mcumgr_free_rx_buf(struct uart_mcumgr_rx_buf *rx_buf) in uart_mcumgr_free_rx_buf() argument
63 block = rx_buf; in uart_mcumgr_free_rx_buf()
86 struct uart_mcumgr_rx_buf *rx_buf; in uart_mcumgr_rx_byte() local
98 rx_buf = uart_mcumgr_cur_buf; in uart_mcumgr_rx_byte()
100 if (rx_buf->length >= sizeof(rx_buf->data)) { in uart_mcumgr_rx_byte()
106 rx_buf->data[rx_buf->length++] = byte; in uart_mcumgr_rx_byte()
116 return rx_buf; in uart_mcumgr_rx_byte()
126 struct uart_mcumgr_rx_buf *rx_buf; in uart_mcumgr_async() local
141 rx_buf = uart_mcumgr_rx_byte(p[i]); in uart_mcumgr_async()
142 if (rx_buf != NULL) { in uart_mcumgr_async()
143 uart_mgumgr_recv_cb(rx_buf); in uart_mcumgr_async()
174 struct uart_mcumgr_rx_buf *rx_buf; in uart_mcumgr_isr() local
191 rx_buf = uart_mcumgr_rx_byte(buf[i]); in uart_mcumgr_isr()
192 if (rx_buf != NULL) { in uart_mcumgr_isr()
193 uart_mgumgr_recv_cb(rx_buf); in uart_mcumgr_isr()