| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/8250/ |
| H A D | 8250_port.c | 533 p->serial_in(p, UART_LCR); /* safe, no side-effects */ in serial_port_out_sync() 734 lcr = serial_in(p, UART_LCR); in serial8250_set_sleep() 736 serial_out(p, UART_LCR, UART_LCR_CONF_MODE_B); in serial8250_set_sleep() 738 serial_out(p, UART_LCR, 0); in serial8250_set_sleep() 742 serial_out(p, UART_LCR, UART_LCR_CONF_MODE_B); in serial8250_set_sleep() 744 serial_out(p, UART_LCR, lcr); in serial8250_set_sleep() 830 old_lcr = serial_in(up, UART_LCR); in size_fifo() 831 serial_out(up, UART_LCR, 0); in size_fifo() 837 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in size_fifo() 840 serial_out(up, UART_LCR, 0x03); in size_fifo() [all …]
|
| 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() 236 int lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() 238 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() 241 lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() 247 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_set_flow_ctrl() 250 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 259 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_set_flow_ctrl() [all …]
|
| H A D | 8250_early.c | 141 serial8250_early_out(port, UART_LCR, 0x3); /* 8n1 */ in init_port() 149 c = serial8250_early_in(port, UART_LCR); in init_port() 150 serial8250_early_out(port, UART_LCR, c | UART_LCR_DLAB); in init_port() 153 serial8250_early_out(port, UART_LCR, c & ~UART_LCR_DLAB); in init_port()
|
| H A D | 8250_dw.c | 104 void __iomem *offset = p->membase + (UART_LCR << p->regshift); in dw8250_check_lcr() 109 unsigned int lcr = p->serial_in(p, UART_LCR); in dw8250_check_lcr() 163 if (offset == UART_LCR) in dw8250_serial_out38x() 168 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out38x() 179 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out() 207 __raw_readq(p->membase + (UART_LCR << p->regshift)); in dw8250_serial_outq() 209 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_outq() 220 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out32() 237 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out32be()
|
| H A D | 8250_omap.c | 177 lcr = serial_in(up, UART_LCR); in __omap8250_set_mctrl() 178 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in __omap8250_set_mctrl() 184 serial_out(up, UART_LCR, lcr); in __omap8250_set_mctrl() 309 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs() 312 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in omap8250_restore_regs() 318 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs() 326 serial_out(up, UART_LCR, 0); in omap8250_restore_regs() 333 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs() 339 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs() 343 serial_out(up, UART_LCR, up->lcr); in omap8250_restore_regs() [all …]
|
| H A 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()
|
| 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 | 1118 LCR = inb(base + UART_LCR); in pci_quatech_rqopr() 1119 outb(0xBF, base + UART_LCR); in pci_quatech_rqopr() 1121 outb(LCR, base + UART_LCR); in pci_quatech_rqopr() 1130 LCR = inb(base + UART_LCR); in pci_quatech_wqopr() 1131 outb(0xBF, base + UART_LCR); in pci_quatech_wqopr() 1134 outb(LCR, base + UART_LCR); in pci_quatech_wqopr() 1142 LCR = inb(base + UART_LCR); in pci_quatech_rqmcr() 1143 outb(0xBF, base + UART_LCR); in pci_quatech_rqmcr() 1148 outb(LCR, base + UART_LCR); in pci_quatech_rqmcr() 1158 LCR = inb(base + UART_LCR); in pci_quatech_wqmcr() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/ |
| H A D | omap-serial.c | 691 lcr = serial_in(up, UART_LCR); in serial_omap_set_mctrl() 692 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in serial_omap_set_mctrl() 698 serial_out(up, UART_LCR, lcr); in serial_omap_set_mctrl() 716 serial_out(up, UART_LCR, up->lcr); in serial_omap_break_ctl() 766 serial_out(up, UART_LCR, UART_LCR_WLEN8); in serial_omap_startup() 819 serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC); in serial_omap_shutdown() 942 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_omap_set_termios() 952 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in serial_omap_set_termios() 955 serial_out(up, UART_LCR, 0); in serial_omap_set_termios() 957 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in serial_omap_set_termios() [all …]
|
| H A D | sunsu.c | 611 serial_out(up, UART_LCR, up->lcr); in sunsu_break_ctl() 625 serial_outp(up, UART_LCR, 0xBF); in sunsu_startup() 628 serial_outp(up, UART_LCR, 0); in sunsu_startup() 630 serial_outp(up, UART_LCR, 0xBF); in sunsu_startup() 632 serial_outp(up, UART_LCR, 0); in sunsu_startup() 688 serial_outp(up, UART_LCR, UART_LCR_WLEN8); in sunsu_startup() 752 serial_out(up, UART_LCR, serial_inp(up, UART_LCR) & ~UART_LCR_SBC); in sunsu_shutdown() 880 serial_outp(up, UART_LCR, 0xBF); in sunsu_change_speed() 883 serial_outp(up, UART_LCR, cval | UART_LCR_DLAB);/* set DLAB */ in sunsu_change_speed() 888 serial_outp(up, UART_LCR, cval); /* reset DLAB */ in sunsu_change_speed() [all …]
|
| H A D | vr41xx_siu.c | 287 lcr = siu_read(port, UART_LCR); in siu_break_ctl() 292 siu_write(port, UART_LCR, lcr); in siu_break_ctl() 454 siu_write(port, UART_LCR, UART_LCR_WLEN8); in siu_startup() 484 lcr = siu_read(port, UART_LCR); in siu_shutdown() 486 siu_write(port, UART_LCR, lcr); in siu_shutdown() 566 siu_write(port, UART_LCR, lcr | UART_LCR_DLAB); in siu_set_termios() 571 siu_write(port, UART_LCR, lcr); in siu_set_termios()
|
| H A D | pxa.c | 325 serial_out(up, UART_LCR, up->lcr); in serial_pxa_break_ctl() 369 serial_out(up, UART_LCR, UART_LCR_WLEN8); in serial_pxa_startup() 416 serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC); in serial_pxa_shutdown() 528 serial_out(up, UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in serial_pxa_set_termios() 539 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_pxa_set_termios()
|
| H A D | pch_uart.c | 323 "LCR: \t0x%02x\n", ioread8(priv->membase + UART_LCR)); in port_show_regs() 334 lcr = ioread8(priv->membase + UART_LCR); in port_show_regs() 335 iowrite8(PCH_UART_LCR_DLAB, priv->membase + UART_LCR); in port_show_regs() 340 iowrite8(lcr, priv->membase + UART_LCR); in port_show_regs() 472 iowrite8(PCH_UART_LCR_DLAB, priv->membase + UART_LCR); in pch_uart_hal_set_line() 475 iowrite8(lcr, priv->membase + UART_LCR); in pch_uart_hal_set_line() 610 lcr = ioread8(priv->membase + UART_LCR); in pch_uart_hal_set_break() 616 iowrite8(lcr, priv->membase + UART_LCR); in pch_uart_hal_set_break()
|
| /OK3568_Linux_fs/kernel/drivers/tty/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/embedded6xx/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/media/rc/ |
| H A 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()
|
| H A 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()
|
| /OK3568_Linux_fs/kernel/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() 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()
|
| /OK3568_Linux_fs/kernel/sound/drivers/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/boot/ |
| H A D | ns16550.c | 23 #define UART_LCR 3 /* Out: Line Control Register */ macro
|
| /OK3568_Linux_fs/kernel/drivers/mmc/core/ |
| H A 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()
|
| /OK3568_Linux_fs/u-boot/arch/mips/mach-au1x00/ |
| H A D | au1x00_serial.c | 55 volatile u32 *uart_lcr = (volatile u32*)(UART0_ADDR+UART_LCR); in au1x00_serial_setbrg()
|
| /OK3568_Linux_fs/kernel/arch/sh/include/asm/ |
| H A D | smc37c93x.h | 62 #define UART_LCR 0x6 /* Line Control Register */ macro
|