/linux/drivers/tty/serial/ |
H A D | omap-serial.c | 634 lcr = serial_in(up, UART_LCR); in serial_omap_set_mctrl() 635 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in serial_omap_set_mctrl() 641 serial_out(up, UART_LCR, lcr); in serial_omap_set_mctrl() 655 serial_out(up, UART_LCR, up->lcr); in serial_omap_break_ctl() 703 serial_out(up, UART_LCR, UART_LCR_WLEN8); in serial_omap_startup() 753 serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC); in serial_omap_shutdown() 860 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_omap_set_termios() 870 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in serial_omap_set_termios() 873 serial_out(up, UART_LCR, 0); in serial_omap_set_termios() 875 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in serial_omap_set_termios() [all …]
|
H A D | sunsu.c | 608 serial_out(up, UART_LCR, up->lcr); in sunsu_break_ctl() 622 serial_outp(up, UART_LCR, 0xBF); in sunsu_startup() 625 serial_outp(up, UART_LCR, 0); in sunsu_startup() 627 serial_outp(up, UART_LCR, 0xBF); in sunsu_startup() 629 serial_outp(up, UART_LCR, 0); in sunsu_startup() 685 serial_outp(up, UART_LCR, UART_LCR_WLEN8); in sunsu_startup() 749 serial_out(up, UART_LCR, serial_inp(up, UART_LCR) & ~UART_LCR_SBC); in sunsu_shutdown() 875 serial_outp(up, UART_LCR, 0xBF); in sunsu_change_speed() 878 serial_outp(up, UART_LCR, cval | UART_LCR_DLAB);/* set DLAB */ in sunsu_change_speed() 883 serial_outp(up, UART_LCR, cval); /* reset DLAB */ in sunsu_change_speed() [all …]
|
H A D | pxa.c | 303 serial_out(up, UART_LCR, up->lcr); in serial_pxa_break_ctl() 347 serial_out(up, UART_LCR, UART_LCR_WLEN8); in serial_pxa_startup() 394 serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC); in serial_pxa_shutdown() 492 serial_out(up, UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in serial_pxa_set_termios() 503 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_pxa_set_termios()
|
H A D | serial-tegra.c | 261 tegra_uart_write(tup, lcr, UART_LCR); in tegra_uart_break_ctl() 417 tegra_uart_write(tup, lcr, UART_LCR); in tegra_set_baudrate() 423 tegra_uart_write(tup, lcr, UART_LCR); in tegra_set_baudrate() 1341 tegra_uart_write(tup, lcr, UART_LCR); in tegra_uart_set_termios()
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_mtk.c | 159 int lcr = serial_in(up, UART_LCR); in mtk8250_dma_enable() 175 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_dma_enable() 177 serial_out(up, UART_LCR, lcr); in mtk8250_dma_enable() 246 int lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() 251 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_set_flow_ctrl() 253 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 254 lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() 260 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_set_flow_ctrl() 263 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 272 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_set_flow_ctrl() [all …]
|
H A D | 8250_port.c | 490 p->serial_in(p, UART_LCR); /* safe, no side-effects */ in serial_port_out_sync() 696 lcr = serial_in(p, UART_LCR); in serial8250_set_sleep() 698 serial_out(p, UART_LCR, UART_LCR_CONF_MODE_B); in serial8250_set_sleep() 700 serial_out(p, UART_LCR, 0); in serial8250_set_sleep() 704 serial_out(p, UART_LCR, UART_LCR_CONF_MODE_B); in serial8250_set_sleep() 706 serial_out(p, UART_LCR, lcr); in serial8250_set_sleep() 801 old_lcr = serial_in(up, UART_LCR); in size_fifo() 802 serial_out(up, UART_LCR, 0); in size_fifo() 808 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in size_fifo() 811 serial_out(up, UART_LCR, UART_LCR_WLEN8); in size_fifo() [all …]
|
H A D | 8250_em.c | 43 case UART_LCR: /* LCR @ 0x10 (+1) */ in serial8250_em_serial_out_helper() 67 case UART_LCR: /* LCR @ 0x10 (+1) */ in serial8250_em_serial_in() 91 lcr = serial8250_em_serial_in(p, UART_LCR); in serial8250_em_reg_update() 107 case UART_LCR: in serial8250_em_reg_update() 118 serial8250_em_serial_out_helper(p, UART_LCR, lcr); in serial8250_em_reg_update() 135 case UART_LCR: in serial8250_em_serial_out()
|
H A D | 8250_early.c | 135 serial8250_early_out(port, UART_LCR, UART_LCR_WLEN8); /* 8n1 */ in init_port() 143 c = serial8250_early_in(port, UART_LCR); in init_port() 144 serial8250_early_out(port, UART_LCR, c | UART_LCR_DLAB); in init_port() 147 serial8250_early_out(port, UART_LCR, c & ~UART_LCR_DLAB); in init_port()
|
H A D | 8250_ingenic.c | 110 early_out(port, UART_LCR, UART_LCR_DLAB | UART_LCR_WLEN8); in ingenic_earlycon_setup_tail() 113 early_out(port, UART_LCR, UART_LCR_WLEN8); in ingenic_earlycon_setup_tail() 118 early_out(port, UART_LCR, UART_LCR_DLAB | UART_LCR_WLEN8); in ingenic_earlycon_setup_tail() 121 early_out(port, UART_LCR, UART_LCR_WLEN8); in ingenic_earlycon_setup_tail()
|
H A D | 8250_omap.c | 189 lcr = serial_in(up, UART_LCR); in __omap8250_set_mctrl() 190 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in __omap8250_set_mctrl() 196 serial_out(up, UART_LCR, lcr); in __omap8250_set_mctrl() 324 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs() 327 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in omap8250_restore_regs() 333 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs() 341 serial_out(up, UART_LCR, 0); in omap8250_restore_regs() 348 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs() 354 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs() 358 serial_out(up, UART_LCR, up->lcr); in omap8250_restore_regs() [all …]
|
H A D | 8250_pericom.c | 74 int lcr = serial_port_in(port, UART_LCR); in pericom_do_set_divisor() 76 serial_port_out(port, UART_LCR, lcr | UART_LCR_DLAB); in pericom_do_set_divisor() 79 serial_port_out(port, UART_LCR, lcr); in pericom_do_set_divisor()
|
H A D | 8250_rt288x.c | 22 [UART_LCR] = 5, 32 [UART_LCR] = 5,
|
H A D | 8250_uniphier.c | 76 case UART_LCR: in uniphier_serial_in() 108 case UART_LCR: in uniphier_serial_out()
|
H A D | 8250_pci.c | 1363 LCR = inb(base + UART_LCR); in pci_quatech_rqopr() 1364 outb(0xBF, base + UART_LCR); in pci_quatech_rqopr() 1366 outb(LCR, base + UART_LCR); in pci_quatech_rqopr() 1375 LCR = inb(base + UART_LCR); in pci_quatech_wqopr() 1376 outb(0xBF, base + UART_LCR); in pci_quatech_wqopr() 1379 outb(LCR, base + UART_LCR); in pci_quatech_wqopr() 1387 LCR = inb(base + UART_LCR); in pci_quatech_rqmcr() 1388 outb(0xBF, base + UART_LCR); in pci_quatech_rqmcr() 1393 outb(LCR, base + UART_LCR); in pci_quatech_rqmcr() 1403 LCR = inb(base + UART_LCR); in pci_quatech_wqmcr() [all …]
|
H A D | 8250_dw.c | 137 if (offset != UART_LCR || d->uart_16550_compatible) in dw8250_check_lcr() 200 if (offset == UART_LCR) in dw8250_serial_out38x() 226 __raw_readq(p->membase + (UART_LCR << p->regshift)); in dw8250_serial_outq()
|
H A D | 8250_exar.c | 1209 old_lcr = readb(p + UART_LCR); in sealevel_rs485_config() 1220 writeb(old_lcr | UART_LCR_DLAB, p + UART_LCR); in sealevel_rs485_config() 1227 writeb(old_lcr, p + UART_LCR); in sealevel_rs485_config()
|
/linux/arch/powerpc/platforms/embedded6xx/ |
H A D | ls_uart.c | 67 out_8(avr_addr + UART_LCR, cval); /* initialise UART */ in avr_uart_configure() 73 out_8(avr_addr + UART_LCR, cval); /* Set character format */ in avr_uart_configure() 75 out_8(avr_addr + UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in avr_uart_configure() 78 out_8(avr_addr + UART_LCR, cval); /* reset DLAB */ in avr_uart_configure()
|
/linux/drivers/usb/serial/ |
H A D | ark3116.c | 161 ark3116_write_reg(serial, UART_LCR, UART_LCR_DLAB); in ark3116_port_probe() 169 ark3116_write_reg(serial, UART_LCR, UART_LCR_WLEN8); in ark3116_port_probe() 264 ark3116_write_reg(serial, UART_LCR, in ark3116_set_termios() 270 ark3116_write_reg(serial, UART_LCR, lcr); in ark3116_set_termios() 280 ark3116_write_reg(serial, UART_LCR, lcr); in ark3116_set_termios() 450 ret = ark3116_write_reg(port->serial, UART_LCR, priv->lcr); in ark3116_break_ctl()
|
/linux/drivers/tty/ |
H A D | mxser.c | 299 oldlcr = inb(baseio + UART_LCR); in __mxser_must_set_EFR() 300 outb(MOXA_MUST_ENTER_ENHANCED, baseio + UART_LCR); in __mxser_must_set_EFR() 309 outb(oldlcr, baseio + UART_LCR); in __mxser_must_set_EFR() 324 outb(oldlcr, baseio + UART_LCR); in mxser_set_must_xon1_value() 331 outb(oldlcr, baseio + UART_LCR); in mxser_set_must_xoff1_value() 340 outb(oldlcr, info->ioaddr + UART_LCR); in mxser_set_must_fifo_value() 347 outb(oldlcr, baseio + UART_LCR); in mxser_set_must_enum_value() 354 outb(oldlcr, baseio + UART_LCR); in mxser_get_must_hardware_id() 393 outb(0, io + UART_LCR); in mxser_must_get_hwid() 521 cval = inb(info->ioaddr + UART_LCR); in mxser_set_baud() [all …]
|
/linux/sound/drivers/ |
H A D | serial-u16550.c | 334 outb(UART_LCR_WLEN8, io_base + UART_LCR); /* Line Control Register */ in snd_uart16550_detect() 381 uart->old_line_ctrl_reg = inb(uart->base + UART_LCR); in snd_uart16550_do_open() 383 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_open() 398 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_open() 489 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_close() 496 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_close()
|
/linux/arch/powerpc/boot/ |
H A D | ns16550.c | 23 #define UART_LCR 3 /* Out: Line Control Register */ macro
|
/linux/drivers/accessibility/speakup/ |
H A D | serialio.c | 89 outb(cval | UART_LCR_DLAB, ser->port + UART_LCR); /* set DLAB */ in spk_serial_init() 92 outb(cval, ser->port + UART_LCR); /* reset DLAB */ in spk_serial_init()
|
/linux/drivers/mmc/core/ |
H A D | sdio_uart.c | 323 sdio_out(port, UART_LCR, cval | UART_LCR_DLAB); in sdio_uart_change_speed() 326 sdio_out(port, UART_LCR, cval); in sdio_uart_change_speed() 620 sdio_out(port, UART_LCR, UART_LCR_WLEN8); in sdio_uart_activate() 680 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_shutdown() 909 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_break_ctl()
|
/linux/arch/sh/include/asm/ |
H A D | smc37c93x.h | 62 #define UART_LCR 0x6 /* Line Control Register */ macro
|
/linux/include/uapi/linux/ |
H A D | serial_reg.h | 105 #define UART_LCR 3 /* Out: Line Control Register */ macro
|