Home
last modified time | relevance | path

Searched refs:UART_LCR (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v5.10/arch/powerpc/kernel/
Dudbg_16550.c20 #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.10/drivers/tty/serial/8250/
D8250_mtk.c150 int lcr = serial_in(up, UART_LCR); in mtk8250_dma_enable()
166 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_dma_enable()
168 serial_out(up, UART_LCR, lcr); in mtk8250_dma_enable()
227 int lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl()
229 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_set_flow_ctrl()
231 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
232 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()
241 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
250 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_set_flow_ctrl()
[all …]
D8250_port.c520 p->serial_in(p, UART_LCR); /* safe, no side-effects */ in serial_port_out_sync()
754 lcr = serial_in(p, UART_LCR); in serial8250_set_sleep()
756 serial_out(p, UART_LCR, UART_LCR_CONF_MODE_B); in serial8250_set_sleep()
758 serial_out(p, UART_LCR, 0); in serial8250_set_sleep()
762 serial_out(p, UART_LCR, UART_LCR_CONF_MODE_B); in serial8250_set_sleep()
764 serial_out(p, UART_LCR, lcr); in serial8250_set_sleep()
850 old_lcr = serial_in(up, UART_LCR); in size_fifo()
851 serial_out(up, UART_LCR, 0); in size_fifo()
857 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in size_fifo()
860 serial_out(up, UART_LCR, 0x03); in size_fifo()
[all …]
D8250_early.c141 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()
D8250_dw.c94 void __iomem *offset = p->membase + (UART_LCR << p->regshift); in dw8250_check_lcr()
99 unsigned int lcr = p->serial_in(p, UART_LCR); in dw8250_check_lcr()
150 if (offset == UART_LCR) in dw8250_serial_out38x()
155 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out38x()
166 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out()
194 __raw_readq(p->membase + (UART_LCR << p->regshift)); in dw8250_serial_outq()
196 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_outq()
207 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out32()
224 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out32be()
D8250_omap.c163 lcr = serial_in(up, UART_LCR); in omap8250_set_mctrl()
164 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_set_mctrl()
170 serial_out(up, UART_LCR, lcr); in omap8250_set_mctrl()
302 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs()
305 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in omap8250_restore_regs()
311 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs()
319 serial_out(up, UART_LCR, 0); in omap8250_restore_regs()
325 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs()
331 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs()
335 serial_out(up, UART_LCR, up->lcr); in omap8250_restore_regs()
[all …]
D8250_ingenic.c113 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()
D8250_uniphier.c76 case UART_LCR: in uniphier_serial_in()
108 case UART_LCR: in uniphier_serial_out()
D8250_pci.c1136 LCR = inb(base + UART_LCR); in pci_quatech_rqopr()
1137 outb(0xBF, base + UART_LCR); in pci_quatech_rqopr()
1139 outb(LCR, base + UART_LCR); in pci_quatech_rqopr()
1148 LCR = inb(base + UART_LCR); in pci_quatech_wqopr()
1149 outb(0xBF, base + UART_LCR); in pci_quatech_wqopr()
1152 outb(LCR, base + UART_LCR); in pci_quatech_wqopr()
1160 LCR = inb(base + UART_LCR); in pci_quatech_rqmcr()
1161 outb(0xBF, base + UART_LCR); in pci_quatech_rqmcr()
1166 outb(LCR, base + UART_LCR); in pci_quatech_rqmcr()
1176 LCR = inb(base + UART_LCR); in pci_quatech_wqmcr()
[all …]
D8250_em.c35 case UART_LCR: /* LCR @ 0x10 (+1) */ in serial8250_em_serial_out()
/Linux-v5.10/drivers/tty/serial/
Domap-serial.c681 lcr = serial_in(up, UART_LCR); in serial_omap_set_mctrl()
682 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in serial_omap_set_mctrl()
688 serial_out(up, UART_LCR, lcr); in serial_omap_set_mctrl()
706 serial_out(up, UART_LCR, up->lcr); in serial_omap_break_ctl()
756 serial_out(up, UART_LCR, UART_LCR_WLEN8); in serial_omap_startup()
809 serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC); in serial_omap_shutdown()
932 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_omap_set_termios()
942 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in serial_omap_set_termios()
945 serial_out(up, UART_LCR, 0); in serial_omap_set_termios()
947 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in serial_omap_set_termios()
[all …]
Dsunsu.c611 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 …]
Dvr41xx_siu.c287 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()
Dpxa.c325 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()
Dpch_uart.c323 "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()
/Linux-v5.10/drivers/tty/
Dmxser.c293 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.10/arch/powerpc/platforms/embedded6xx/
Dls_uart.c66 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.10/drivers/media/rc/
Dserial_ir.c422 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()
Dsir_ir.c297 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.10/drivers/usb/serial/
Dark3116.c161 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.10/sound/drivers/
Dserial-u16550.c336 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.10/arch/powerpc/boot/
Dns16550.c22 #define UART_LCR 3 /* Out: Line Control Register */ macro
/Linux-v5.10/drivers/accessibility/speakup/
Dserialio.c89 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-v5.10/arch/sh/include/asm/
Dsmc37c93x.h62 #define UART_LCR 0x6 /* Line Control Register */ macro
/Linux-v5.10/drivers/mmc/core/
Dsdio_uart.c338 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()

12