Lines Matching refs:written
151 uint32_t written; in uart_emul_poll_out() local
154 written = ring_buf_put(drv_data->tx_rb, &out_char, 1); in uart_emul_poll_out()
157 if (!written) { in uart_emul_poll_out()
585 uint32_t written; in uart_emul_async_tx_handler() local
601 written = ring_buf_put(data->tx_rb, &data->tx_buf[tx_buf_offset], in uart_emul_async_tx_handler()
603 tx_done = written == (tx_buf_len - tx_buf_offset); in uart_emul_async_tx_handler()
605 data->tx_buf_offset += written; in uart_emul_async_tx_handler()
617 if (config->loopback && written) { in uart_emul_async_tx_handler()
618 uint32_t loop_written = uart_emul_put_rx_data(dev, &tx_buf[tx_buf_offset], written); in uart_emul_async_tx_handler()
620 if (loop_written < written) { in uart_emul_async_tx_handler()
621 LOG_WRN("Lost %" PRIu32 " bytes on loopback", written - loop_written); in uart_emul_async_tx_handler()
627 if ((config->loopback && written) || !written) { in uart_emul_async_tx_handler()
635 if (written) { in uart_emul_async_tx_handler()