Lines Matching refs:hsuart
15 struct hsuart_regs *hsuart; member
21 struct hsuart_regs *hsuart = priv->hsuart; in lpc32xx_serial_setbrg() local
29 writel(div, &hsuart->rate); in lpc32xx_serial_setbrg()
37 struct hsuart_regs *hsuart = priv->hsuart; in lpc32xx_serial_getc() local
39 if (!(readl(&hsuart->level) & HSUART_LEVEL_RX)) in lpc32xx_serial_getc()
42 return readl(&hsuart->rx) & HSUART_RX_DATA; in lpc32xx_serial_getc()
48 struct hsuart_regs *hsuart = priv->hsuart; in lpc32xx_serial_putc() local
51 if (readl(&hsuart->level) & HSUART_LEVEL_TX) in lpc32xx_serial_putc()
54 writel(c, &hsuart->tx); in lpc32xx_serial_putc()
62 struct hsuart_regs *hsuart = priv->hsuart; in lpc32xx_serial_pending() local
65 if (readl(&hsuart->level) & HSUART_LEVEL_RX) in lpc32xx_serial_pending()
68 if (readl(&hsuart->level) & HSUART_LEVEL_TX) in lpc32xx_serial_pending()
75 static int lpc32xx_serial_init(struct hsuart_regs *hsuart) in lpc32xx_serial_init() argument
80 &hsuart->ctrl); in lpc32xx_serial_init()
90 priv->hsuart = (struct hsuart_regs *)platdata->base; in lpc32xx_hsuart_probe()
92 lpc32xx_serial_init(priv->hsuart); in lpc32xx_hsuart_probe()