Lines Matching full:isr

30 	receive_rb = &backend->isr.receive_rdb[backend->isr.receive_rdb_used];  in modem_backend_uart_isr_irq_handler_receive_ready()
71 if (ring_buf_is_empty(&backend->isr.transmit_rb) == true) { in modem_backend_uart_isr_irq_handler_transmit_ready()
77 size = ring_buf_get_claim(&backend->isr.transmit_rb, &buffer, UINT32_MAX); in modem_backend_uart_isr_irq_handler_transmit_ready()
80 ring_buf_get_finish(&backend->isr.transmit_rb, 0); in modem_backend_uart_isr_irq_handler_transmit_ready()
82 ring_buf_get_finish(&backend->isr.transmit_rb, (uint32_t)ret); in modem_backend_uart_isr_irq_handler_transmit_ready()
85 atomic_sub(&backend->isr.transmit_buf_len, (uint32_t)ret); in modem_backend_uart_isr_irq_handler_transmit_ready()
110 ring_buf_reset(&backend->isr.receive_rdb[0]); in modem_backend_uart_isr_open()
111 ring_buf_reset(&backend->isr.receive_rdb[1]); in modem_backend_uart_isr_open()
112 ring_buf_reset(&backend->isr.transmit_rb); in modem_backend_uart_isr_open()
113 atomic_set(&backend->isr.transmit_buf_len, 0); in modem_backend_uart_isr_open()
123 return atomic_get(&backend->isr.transmit_buf_len); in get_transmit_buf_length()
129 return ring_buf_size_get(&backend->isr.receive_rdb[0]) + in get_receive_buf_length()
130 ring_buf_size_get(&backend->isr.receive_rdb[1]); in get_receive_buf_length()
135 return ring_buf_capacity_get(&backend->isr.receive_rdb[0]) + in get_receive_buf_size()
136 ring_buf_capacity_get(&backend->isr.receive_rdb[1]); in get_receive_buf_size()
141 return ring_buf_capacity_get(&backend->isr.transmit_rb); in get_transmit_buf_size()
165 return backend->isr.transmit_buf_put_limit < get_transmit_buf_length(backend); in modem_backend_uart_isr_transmit_buf_above_limit()
178 written = ring_buf_put(&backend->isr.transmit_rb, buf, size); in modem_backend_uart_isr_transmit()
182 atomic_add(&backend->isr.transmit_buf_len, written); in modem_backend_uart_isr_transmit()
203 receive_rdb_unused = (backend->isr.receive_rdb_used == 1) ? 0 : 1; in modem_backend_uart_isr_receive()
206 read_bytes += ring_buf_get(&backend->isr.receive_rdb[receive_rdb_unused], buf, size); in modem_backend_uart_isr_receive()
208 if (ring_buf_is_empty(&backend->isr.receive_rdb[receive_rdb_unused]) == false) { in modem_backend_uart_isr_receive()
214 backend->isr.receive_rdb_used = receive_rdb_unused; in modem_backend_uart_isr_receive()
218 receive_rdb_unused = (backend->isr.receive_rdb_used == 1) ? 0 : 1; in modem_backend_uart_isr_receive()
220 read_bytes += ring_buf_get(&backend->isr.receive_rdb[receive_rdb_unused], in modem_backend_uart_isr_receive()
265 backend->isr.transmit_buf_put_limit = in modem_backend_uart_isr_init()
270 ring_buf_init(&backend->isr.receive_rdb[0], receive_double_buf_size, in modem_backend_uart_isr_init()
273 ring_buf_init(&backend->isr.receive_rdb[1], receive_double_buf_size, in modem_backend_uart_isr_init()
276 ring_buf_init(&backend->isr.transmit_rb, config->transmit_buf_size, in modem_backend_uart_isr_init()
279 atomic_set(&backend->isr.transmit_buf_len, 0); in modem_backend_uart_isr_init()