Lines Matching refs:lcr
104 u_char lcr; in ns8250_delay() local
106 lcr = uart_getreg(bas, REG_LCR); in ns8250_delay()
107 uart_setreg(bas, REG_LCR, lcr | LCR_DLAB); in ns8250_delay()
111 uart_setreg(bas, REG_LCR, lcr); in ns8250_delay()
213 uint8_t lcr; in ns8250_param() local
215 lcr = 0; in ns8250_param()
217 lcr |= LCR_8BITS; in ns8250_param()
219 lcr |= LCR_7BITS; in ns8250_param()
221 lcr |= LCR_6BITS; in ns8250_param()
223 lcr |= LCR_5BITS; in ns8250_param()
225 lcr |= LCR_STOPB; in ns8250_param()
226 lcr |= parity << 3; in ns8250_param()
233 uart_setreg(bas, REG_LCR, lcr | LCR_DLAB); in ns8250_param()
241 uart_setreg(bas, REG_LCR, lcr); in ns8250_param()
558 uint8_t efr, lcr; in ns8250_bus_ioctl() local
565 lcr = uart_getreg(bas, REG_LCR); in ns8250_bus_ioctl()
567 lcr |= LCR_SBREAK; in ns8250_bus_ioctl()
569 lcr &= ~LCR_SBREAK; in ns8250_bus_ioctl()
570 uart_setreg(bas, REG_LCR, lcr); in ns8250_bus_ioctl()
574 lcr = uart_getreg(bas, REG_LCR); in ns8250_bus_ioctl()
585 uart_setreg(bas, REG_LCR, lcr); in ns8250_bus_ioctl()
589 lcr = uart_getreg(bas, REG_LCR); in ns8250_bus_ioctl()
600 uart_setreg(bas, REG_LCR, lcr); in ns8250_bus_ioctl()
604 lcr = uart_getreg(bas, REG_LCR); in ns8250_bus_ioctl()
605 uart_setreg(bas, REG_LCR, lcr | LCR_DLAB); in ns8250_bus_ioctl()
610 uart_setreg(bas, REG_LCR, lcr); in ns8250_bus_ioctl()