Lines Matching refs:USART3_BIT
51 if (!(readl(&usart->csr) & USART3_BIT(TXEMPTY))) in atmel_serial_init_internal()
54 writel(USART3_BIT(RSTRX) | USART3_BIT(RSTTX), &usart->cr); in atmel_serial_init_internal()
65 writel(USART3_BIT(RXEN) | USART3_BIT(TXEN), &usart->cr); in atmel_serial_activate()
94 while (!(readl(&usart->csr) & USART3_BIT(TXRDY))); in atmel_serial_putc()
102 while (!(readl(&usart->csr) & USART3_BIT(RXRDY))) in atmel_serial_getc()
110 return (readl(&usart->csr) & USART3_BIT(RXRDY)) != 0; in atmel_serial_tstc()
158 writel(USART3_BIT(RXDIS) | USART3_BIT(TXDIS), &usart->cr); in _atmel_serial_init()
168 writel(USART3_BIT(RSTRX) | USART3_BIT(RSTTX), &usart->cr); in _atmel_serial_init()
169 writel(USART3_BIT(RXEN) | USART3_BIT(TXEN), &usart->cr); in _atmel_serial_init()
185 if (!(readl(&priv->usart->csr) & USART3_BIT(RXRDY))) in atmel_serial_getc()
195 if (!(readl(&priv->usart->csr) & USART3_BIT(TXRDY))) in atmel_serial_putc()
209 return csr & USART3_BIT(RXRDY) ? 1 : 0; in atmel_serial_pending()
211 return csr & USART3_BIT(TXEMPTY) ? 0 : 1; in atmel_serial_pending()
314 while (!(readl(&usart->csr) & USART3_BIT(TXRDY))) in _debug_uart_putc()