Lines Matching refs:hsuart
16 struct hsuart_regs *hsuart; member
22 struct hsuart_regs *hsuart = priv->hsuart; in lpc32xx_serial_setbrg() local
30 writel(div, &hsuart->rate); in lpc32xx_serial_setbrg()
38 struct hsuart_regs *hsuart = priv->hsuart; in lpc32xx_serial_getc() local
40 if (!(readl(&hsuart->level) & HSUART_LEVEL_RX)) in lpc32xx_serial_getc()
43 return readl(&hsuart->rx) & HSUART_RX_DATA; in lpc32xx_serial_getc()
49 struct hsuart_regs *hsuart = priv->hsuart; in lpc32xx_serial_putc() local
52 if (readl(&hsuart->level) & HSUART_LEVEL_TX) in lpc32xx_serial_putc()
55 writel(c, &hsuart->tx); in lpc32xx_serial_putc()
63 struct hsuart_regs *hsuart = priv->hsuart; in lpc32xx_serial_pending() local
66 if (readl(&hsuart->level) & HSUART_LEVEL_RX) in lpc32xx_serial_pending()
69 if (readl(&hsuart->level) & HSUART_LEVEL_TX) in lpc32xx_serial_pending()
76 static int lpc32xx_serial_init(struct hsuart_regs *hsuart) in lpc32xx_serial_init() argument
81 &hsuart->ctrl); in lpc32xx_serial_init()
91 priv->hsuart = (struct hsuart_regs *)plat->base; in lpc32xx_hsuart_probe()
93 lpc32xx_serial_init(priv->hsuart); in lpc32xx_hsuart_probe()