Lines Matching refs:base
30 return io_pa_or_va(&pd->base, AML_UART_SIZE); in chip_to_base()
35 vaddr_t base = chip_to_base(chip); in amlogic_uart_flush() local
37 while (!(io_read32(base + AML_UART_STATUS) & AML_UART_TX_EMPTY)) in amlogic_uart_flush()
43 vaddr_t base = chip_to_base(chip); in amlogic_uart_getchar() local
45 if (io_read32(base + AML_UART_STATUS) & AML_UART_RX_EMPTY) in amlogic_uart_getchar()
48 return io_read32(base + AML_UART_RFIFO) & 0xff; in amlogic_uart_getchar()
53 vaddr_t base = chip_to_base(chip); in amlogic_uart_putc() local
55 while (io_read32(base + AML_UART_STATUS) & AML_UART_TX_FULL) in amlogic_uart_putc()
58 io_write32(base + AML_UART_WFIFO, ch); in amlogic_uart_putc()
67 void amlogic_uart_init(struct amlogic_uart_data *pd, paddr_t base) in amlogic_uart_init() argument
69 pd->base.pa = base; in amlogic_uart_init()