Lines Matching refs:lcr
174 uint8_t lcr; in ns8250_get_divisor() local
176 lcr = uart_getreg(bas, REG_LCR); in ns8250_get_divisor()
177 uart_setreg(bas, REG_LCR, lcr | LCR_DLAB); in ns8250_get_divisor()
181 uart_setreg(bas, REG_LCR, lcr); in ns8250_get_divisor()
319 uint8_t lcr; in ns8250_param() local
325 lcr = 0; in ns8250_param()
327 lcr |= LCR_8BITS; in ns8250_param()
329 lcr |= LCR_7BITS; in ns8250_param()
331 lcr |= LCR_6BITS; in ns8250_param()
333 lcr |= LCR_5BITS; in ns8250_param()
335 lcr |= LCR_STOPB; in ns8250_param()
336 lcr |= parity << 3; in ns8250_param()
343 uart_setreg(bas, REG_LCR, lcr | LCR_DLAB); in ns8250_param()
351 uart_setreg(bas, REG_LCR, lcr); in ns8250_param()
763 uint8_t efr, lcr; in ns8250_bus_ioctl() local
770 lcr = uart_getreg(bas, REG_LCR); in ns8250_bus_ioctl()
772 lcr |= LCR_SBREAK; in ns8250_bus_ioctl()
774 lcr &= ~LCR_SBREAK; in ns8250_bus_ioctl()
775 uart_setreg(bas, REG_LCR, lcr); in ns8250_bus_ioctl()
779 lcr = uart_getreg(bas, REG_LCR); in ns8250_bus_ioctl()
790 uart_setreg(bas, REG_LCR, lcr); in ns8250_bus_ioctl()
794 lcr = uart_getreg(bas, REG_LCR); in ns8250_bus_ioctl()
805 uart_setreg(bas, REG_LCR, lcr); in ns8250_bus_ioctl()