Lines Matching refs:uart
157 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_poll_out() local
159 while (!(uart->status & STATUS_TXRDY_MASK)) { in uart_miv_poll_out()
162 uart->tx = c; in uart_miv_poll_out()
167 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_poll_in() local
169 if (uart->status & STATUS_RXFULL_MASK) { in uart_miv_poll_in()
170 *c = (unsigned char)(uart->rx & RXDATA_MASK); in uart_miv_poll_in()
179 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_err_check() local
180 uint32_t flags = uart->status; in uart_miv_err_check()
205 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_fifo_fill() local
208 for (i = 0; i < size && (uart->status & STATUS_TXRDY_MASK); i++) { in uart_miv_fifo_fill()
209 uart->tx = tx_data[i]; in uart_miv_fifo_fill()
219 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_fifo_read() local
223 if (uart->status & STATUS_RXFULL_MASK) { in uart_miv_fifo_read()
224 rx_data[i] = (unsigned char)(uart->rx & RXDATA_MASK); in uart_miv_fifo_read()
245 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_irq_tx_ready() local
247 return !(uart->status & STATUS_TXRDY_MASK); in uart_miv_irq_tx_ready()
269 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_irq_rx_ready() local
271 return !!(uart->status & STATUS_RXFULL_MASK); in uart_miv_irq_rx_ready()
286 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_irq_is_pending() local
288 return !!(uart->status & STATUS_RXFULL_MASK); in uart_miv_irq_is_pending()
315 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_rx_thread() local
326 if (uart->status & STATUS_RXFULL_MASK) { in uart_miv_rx_thread()
348 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_init() local
353 uart->ctrlreg1 = (uint8_t)(baud_value & BAUDVALUE_LSB); in uart_miv_init()
354 uart->ctrlreg2 = (uint8_t)(cfg->line_config) | in uart_miv_init()
364 static DEVICE_API(uart, uart_miv_driver_api) = {