| /Linux-v5.4/arch/powerpc/kernel/ |
| D | udbg_16550.c | 20 #define UART_LCR 3 macro 29 #define UART_DLAB UART_LCR 110 udbg_uart_out(UART_LCR, 0x00); in udbg_uart_setup() 113 udbg_uart_out(UART_LCR, LCR_DLAB); in udbg_uart_setup() 117 udbg_uart_out(UART_LCR, 0x3); in udbg_uart_setup() 129 old_lcr = udbg_uart_in(UART_LCR); in udbg_probe_uart_speed() 132 udbg_uart_out(UART_LCR, old_lcr | LCR_DLAB); in udbg_probe_uart_speed() 146 udbg_uart_out(UART_LCR, old_lcr); in udbg_probe_uart_speed()
|
| /Linux-v5.4/drivers/tty/serial/8250/ |
| D | 8250_mtk.c | 149 int lcr = serial_in(up, UART_LCR); in mtk8250_dma_enable() 165 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_dma_enable() 167 serial_out(up, UART_LCR, lcr); in mtk8250_dma_enable() 226 int lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() 228 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_set_flow_ctrl() 230 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 231 lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() 237 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_set_flow_ctrl() 240 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 249 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_set_flow_ctrl() [all …]
|
| D | 8250_port.c | 523 p->serial_in(p, UART_LCR); /* safe, no side-effects */ in serial_port_out_sync() 718 lcr = serial_in(p, UART_LCR); in serial8250_set_sleep() 720 serial_out(p, UART_LCR, UART_LCR_CONF_MODE_B); in serial8250_set_sleep() 722 serial_out(p, UART_LCR, 0); in serial8250_set_sleep() 726 serial_out(p, UART_LCR, UART_LCR_CONF_MODE_B); in serial8250_set_sleep() 728 serial_out(p, UART_LCR, lcr); in serial8250_set_sleep() 814 old_lcr = serial_in(up, UART_LCR); in size_fifo() 815 serial_out(up, UART_LCR, 0); in size_fifo() 821 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in size_fifo() 824 serial_out(up, UART_LCR, 0x03); in size_fifo() [all …]
|
| D | 8250_early.c | 119 serial8250_early_out(port, UART_LCR, 0x3); /* 8n1 */ in init_port() 127 c = serial8250_early_in(port, UART_LCR); in init_port() 128 serial8250_early_out(port, UART_LCR, c | UART_LCR_DLAB); in init_port() 131 serial8250_early_out(port, UART_LCR, c & ~UART_LCR_DLAB); in init_port()
|
| D | 8250_dw.c | 80 void __iomem *offset = p->membase + (UART_LCR << p->regshift); in dw8250_check_lcr() 85 unsigned int lcr = p->serial_in(p, UART_LCR); in dw8250_check_lcr() 136 if (offset == UART_LCR) in dw8250_serial_out38x() 141 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out38x() 152 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out() 180 __raw_readq(p->membase + (UART_LCR << p->regshift)); in dw8250_serial_outq() 182 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_outq() 193 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out32() 210 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out32be()
|
| D | 8250_omap.c | 149 lcr = serial_in(up, UART_LCR); in omap8250_set_mctrl() 150 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_set_mctrl() 156 serial_out(up, UART_LCR, lcr); in omap8250_set_mctrl() 288 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs() 291 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in omap8250_restore_regs() 297 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs() 305 serial_out(up, UART_LCR, 0); in omap8250_restore_regs() 311 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs() 317 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs() 321 serial_out(up, UART_LCR, up->lcr); in omap8250_restore_regs() [all …]
|
| D | 8250_ingenic.c | 113 early_out(port, UART_LCR, UART_LCR_DLAB | UART_LCR_WLEN8); in ingenic_early_console_setup() 116 early_out(port, UART_LCR, UART_LCR_WLEN8); in ingenic_early_console_setup() 121 early_out(port, UART_LCR, UART_LCR_DLAB | UART_LCR_WLEN8); in ingenic_early_console_setup() 124 early_out(port, UART_LCR, UART_LCR_WLEN8); in ingenic_early_console_setup()
|
| D | 8250_uniphier.c | 76 case UART_LCR: in uniphier_serial_in() 108 case UART_LCR: in uniphier_serial_out()
|
| D | 8250_pci.c | 1249 LCR = inb(base + UART_LCR); in pci_quatech_rqopr() 1250 outb(0xBF, base + UART_LCR); in pci_quatech_rqopr() 1252 outb(LCR, base + UART_LCR); in pci_quatech_rqopr() 1261 LCR = inb(base + UART_LCR); in pci_quatech_wqopr() 1262 outb(0xBF, base + UART_LCR); in pci_quatech_wqopr() 1265 outb(LCR, base + UART_LCR); in pci_quatech_wqopr() 1273 LCR = inb(base + UART_LCR); in pci_quatech_rqmcr() 1274 outb(0xBF, base + UART_LCR); in pci_quatech_rqmcr() 1279 outb(LCR, base + UART_LCR); in pci_quatech_rqmcr() 1289 LCR = inb(base + UART_LCR); in pci_quatech_wqmcr() [all …]
|
| /Linux-v5.4/drivers/tty/serial/ |
| D | omap-serial.c | 687 lcr = serial_in(up, UART_LCR); in serial_omap_set_mctrl() 688 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in serial_omap_set_mctrl() 694 serial_out(up, UART_LCR, lcr); in serial_omap_set_mctrl() 712 serial_out(up, UART_LCR, up->lcr); in serial_omap_break_ctl() 762 serial_out(up, UART_LCR, UART_LCR_WLEN8); in serial_omap_startup() 815 serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC); in serial_omap_shutdown() 938 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_omap_set_termios() 948 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in serial_omap_set_termios() 951 serial_out(up, UART_LCR, 0); in serial_omap_set_termios() 953 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in serial_omap_set_termios() [all …]
|
| D | sunsu.c | 615 serial_out(up, UART_LCR, up->lcr); in sunsu_break_ctl() 629 serial_outp(up, UART_LCR, 0xBF); in sunsu_startup() 632 serial_outp(up, UART_LCR, 0); in sunsu_startup() 634 serial_outp(up, UART_LCR, 0xBF); in sunsu_startup() 636 serial_outp(up, UART_LCR, 0); in sunsu_startup() 692 serial_outp(up, UART_LCR, UART_LCR_WLEN8); in sunsu_startup() 756 serial_out(up, UART_LCR, serial_inp(up, UART_LCR) & ~UART_LCR_SBC); in sunsu_shutdown() 884 serial_outp(up, UART_LCR, 0xBF); in sunsu_change_speed() 887 serial_outp(up, UART_LCR, cval | UART_LCR_DLAB);/* set DLAB */ in sunsu_change_speed() 892 serial_outp(up, UART_LCR, cval); /* reset DLAB */ in sunsu_change_speed() [all …]
|
| D | vr41xx_siu.c | 291 lcr = siu_read(port, UART_LCR); in siu_break_ctl() 296 siu_write(port, UART_LCR, lcr); in siu_break_ctl() 458 siu_write(port, UART_LCR, UART_LCR_WLEN8); in siu_startup() 488 lcr = siu_read(port, UART_LCR); in siu_shutdown() 490 siu_write(port, UART_LCR, lcr); in siu_shutdown() 570 siu_write(port, UART_LCR, lcr | UART_LCR_DLAB); in siu_set_termios() 575 siu_write(port, UART_LCR, lcr); in siu_set_termios()
|
| D | pxa.c | 329 serial_out(up, UART_LCR, up->lcr); in serial_pxa_break_ctl() 373 serial_out(up, UART_LCR, UART_LCR_WLEN8); in serial_pxa_startup() 420 serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC); in serial_pxa_shutdown() 532 serial_out(up, UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in serial_pxa_set_termios() 543 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_pxa_set_termios()
|
| /Linux-v5.4/drivers/tty/ |
| D | mxser.c | 293 oldlcr = inb(baseio + UART_LCR); in mxser_enable_must_enchance_mode() 294 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_enable_must_enchance_mode() 300 outb(oldlcr, baseio + UART_LCR); in mxser_enable_must_enchance_mode() 309 oldlcr = inb(baseio + UART_LCR); in mxser_disable_must_enchance_mode() 310 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_disable_must_enchance_mode() 316 outb(oldlcr, baseio + UART_LCR); in mxser_disable_must_enchance_mode() 325 oldlcr = inb(baseio + UART_LCR); in mxser_set_must_xon1_value() 326 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_set_must_xon1_value() 334 outb(oldlcr, baseio + UART_LCR); in mxser_set_must_xon1_value() 342 oldlcr = inb(baseio + UART_LCR); in mxser_set_must_xoff1_value() [all …]
|
| /Linux-v5.4/arch/powerpc/platforms/embedded6xx/ |
| D | ls_uart.c | 66 out_8(avr_addr + UART_LCR, cval); /* initialise UART */ in avr_uart_configure() 72 out_8(avr_addr + UART_LCR, cval); /* Set character format */ in avr_uart_configure() 74 out_8(avr_addr + UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in avr_uart_configure() 77 out_8(avr_addr + UART_LCR, cval); /* reset DLAB */ in avr_uart_configure()
|
| /Linux-v5.4/arch/powerpc/boot/ |
| D | virtex.c | 18 #define UART_LCR 3 /* Out: Line Control Register */ macro 55 out_8(reg_base + (UART_LCR << reg_shift), UART_LCR_DLAB); in virtex_ns16550_console_init() 62 out_8(reg_base + (UART_LCR << reg_shift), UART_LCR_WLEN8); in virtex_ns16550_console_init()
|
| D | ns16550.c | 22 #define UART_LCR 3 /* Out: Line Control Register */ macro
|
| /Linux-v5.4/drivers/media/rc/ |
| D | serial_ir.c | 422 soutp(UART_LCR, sinp(UART_LCR) & (~UART_LCR_DLAB)); in hardware_init_port() 450 soutp(UART_LCR, sinp(UART_LCR) | UART_LCR_DLAB); in hardware_init_port() 455 soutp(UART_LCR, UART_LCR_WLEN7); in hardware_init_port() 610 soutp(UART_LCR, sinp(UART_LCR) & (~UART_LCR_DLAB)); in serial_ir_open() 626 soutp(UART_LCR, sinp(UART_LCR) & (~UART_LCR_DLAB)); in serial_ir_close() 689 soutp(UART_LCR, sinp(UART_LCR) & (~UART_LCR_DLAB)); in serial_ir_suspend()
|
| D | sir_ir.c | 297 outb(UART_LCR_DLAB | UART_LCR_WLEN7, io + UART_LCR); in init_hardware() 300 outb(UART_LCR_WLEN7, io + UART_LCR); in init_hardware()
|
| /Linux-v5.4/drivers/usb/serial/ |
| 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() 280 ark3116_write_reg(serial, UART_LCR, in ark3116_set_termios() 286 ark3116_write_reg(serial, UART_LCR, lcr); in ark3116_set_termios() 296 ark3116_write_reg(serial, UART_LCR, lcr); in ark3116_set_termios() 477 ark3116_write_reg(port->serial, UART_LCR, priv->lcr); in ark3116_break_ctl()
|
| /Linux-v5.4/arch/mips/pmcs-msp71xx/ |
| D | msp_serial.c | 50 if (offset == UART_LCR) in msp_serial_out() 83 writeb(d->last_lcr, p->membase + (UART_LCR << p->regshift)); in msp_serial_handle_irq()
|
| /Linux-v5.4/sound/drivers/ |
| D | serial-u16550.c | 336 outb(UART_LCR_WLEN8, io_base + UART_LCR); /* Line Control Register */ in snd_uart16550_detect() 383 uart->old_line_ctrl_reg = inb(uart->base + UART_LCR); in snd_uart16550_do_open() 385 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_open() 400 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_open() 491 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_close() 498 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_close()
|
| /Linux-v5.4/drivers/staging/speakup/ |
| D | serialio.c | 87 outb(cval | UART_LCR_DLAB, ser->port + UART_LCR); /* set DLAB */ in spk_serial_init() 90 outb(cval, ser->port + UART_LCR); /* reset DLAB */ in spk_serial_init()
|
| /Linux-v5.4/arch/sh/include/asm/ |
| D | smc37c93x.h | 62 #define UART_LCR 0x6 /* Line Control Register */ macro
|
| /Linux-v5.4/drivers/mmc/core/ |
| D | sdio_uart.c | 338 sdio_out(port, UART_LCR, cval | UART_LCR_DLAB); in sdio_uart_change_speed() 341 sdio_out(port, UART_LCR, cval); in sdio_uart_change_speed() 638 sdio_out(port, UART_LCR, UART_LCR_WLEN8); in sdio_uart_activate() 698 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_shutdown() 927 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_break_ctl()
|