Lines Matching refs:base
58 return io_pa_or_va(&pd->base, ATMEL_UART_SIZE); in chip_to_base()
63 vaddr_t base = chip_to_base(chip); in atmel_uart_flush() local
65 while (!(io_read32(base + ATMEL_UART_SR) & ATMEL_SR_TXEMPTY)) in atmel_uart_flush()
71 vaddr_t base = chip_to_base(chip); in atmel_uart_getchar() local
73 while (io_read32(base + ATMEL_UART_SR) & ATMEL_SR_RXRDY) in atmel_uart_getchar()
76 return io_read32(base + ATMEL_UART_RHR); in atmel_uart_getchar()
81 vaddr_t base = chip_to_base(chip); in atmel_uart_putc() local
83 while (!(io_read32(base + ATMEL_UART_SR) & ATMEL_SR_TXRDY)) in atmel_uart_putc()
86 io_write32(base + ATMEL_UART_THR, ch); in atmel_uart_putc()
95 void atmel_uart_init(struct atmel_uart_data *pd, paddr_t base) in atmel_uart_init() argument
97 pd->base.pa = base; in atmel_uart_init()