Home
last modified time | relevance | path

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

12

/linux-6.1.9/arch/powerpc/kernel/
Dudbg_16550.c21 #define UART_LCR 3 macro
30 #define UART_DLAB UART_LCR
111 udbg_uart_out(UART_LCR, 0x00); in udbg_uart_setup()
114 udbg_uart_out(UART_LCR, LCR_DLAB); in udbg_uart_setup()
118 udbg_uart_out(UART_LCR, 0x3); in udbg_uart_setup()
130 old_lcr = udbg_uart_in(UART_LCR); in udbg_probe_uart_speed()
133 udbg_uart_out(UART_LCR, old_lcr | LCR_DLAB); in udbg_probe_uart_speed()
147 udbg_uart_out(UART_LCR, old_lcr); in udbg_probe_uart_speed()
/linux-6.1.9/drivers/tty/serial/
Domap-serial.c663 lcr = serial_in(up, UART_LCR); in serial_omap_set_mctrl()
664 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in serial_omap_set_mctrl()
670 serial_out(up, UART_LCR, lcr); in serial_omap_set_mctrl()
684 serial_out(up, UART_LCR, up->lcr); in serial_omap_break_ctl()
732 serial_out(up, UART_LCR, UART_LCR_WLEN8); in serial_omap_startup()
782 serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC); in serial_omap_shutdown()
889 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_omap_set_termios()
899 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in serial_omap_set_termios()
902 serial_out(up, UART_LCR, 0); in serial_omap_set_termios()
904 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in serial_omap_set_termios()
[all …]
Dsunsu.c608 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 …]
Dpxa.c326 serial_out(up, UART_LCR, up->lcr); in serial_pxa_break_ctl()
370 serial_out(up, UART_LCR, UART_LCR_WLEN8); in serial_pxa_startup()
417 serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC); in serial_pxa_shutdown()
515 serial_out(up, UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in serial_pxa_set_termios()
526 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_pxa_set_termios()
Dpch_uart.c319 "LCR: \t0x%02x\n", ioread8(priv->membase + UART_LCR)); in port_show_regs()
330 lcr = ioread8(priv->membase + UART_LCR); in port_show_regs()
331 iowrite8(PCH_UART_LCR_DLAB, priv->membase + UART_LCR); in port_show_regs()
336 iowrite8(lcr, priv->membase + UART_LCR); in port_show_regs()
467 iowrite8(PCH_UART_LCR_DLAB, priv->membase + UART_LCR); in pch_uart_hal_set_line()
470 iowrite8(lcr, priv->membase + UART_LCR); in pch_uart_hal_set_line()
593 lcr = ioread8(priv->membase + UART_LCR); in pch_uart_hal_set_break()
599 iowrite8(lcr, priv->membase + UART_LCR); in pch_uart_hal_set_break()
/linux-6.1.9/drivers/tty/serial/8250/
D8250_mtk.c159 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 …]
D8250_port.c344 [UART_LCR] = 5,
355 [UART_LCR] = 5,
533 p->serial_in(p, UART_LCR); /* safe, no side-effects */ in serial_port_out_sync()
740 lcr = serial_in(p, UART_LCR); 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, 0); in serial8250_set_sleep()
748 serial_out(p, UART_LCR, UART_LCR_CONF_MODE_B); in serial8250_set_sleep()
750 serial_out(p, UART_LCR, lcr); in serial8250_set_sleep()
844 old_lcr = serial_in(up, UART_LCR); in size_fifo()
845 serial_out(up, UART_LCR, 0); in size_fifo()
[all …]
D8250_early.c139 serial8250_early_out(port, UART_LCR, 0x3); /* 8n1 */ in init_port()
147 c = serial8250_early_in(port, UART_LCR); in init_port()
148 serial8250_early_out(port, UART_LCR, c | UART_LCR_DLAB); in init_port()
151 serial8250_early_out(port, UART_LCR, c & ~UART_LCR_DLAB); in init_port()
D8250_dw.c106 void __iomem *offset = p->membase + (UART_LCR << p->regshift); in dw8250_check_lcr()
111 unsigned int lcr = p->serial_in(p, UART_LCR); in dw8250_check_lcr()
166 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out()
173 if (offset == UART_LCR) in dw8250_serial_out38x()
203 __raw_readq(p->membase + (UART_LCR << p->regshift)); in dw8250_serial_outq()
205 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_outq()
216 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out32()
233 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out32be()
D8250_omap.c177 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 …]
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_pericom.c74 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()
D8250_uniphier.c76 case UART_LCR: in uniphier_serial_in()
108 case UART_LCR: in uniphier_serial_out()
D8250_pci.c1307 LCR = inb(base + UART_LCR); in pci_quatech_rqopr()
1308 outb(0xBF, base + UART_LCR); in pci_quatech_rqopr()
1310 outb(LCR, base + UART_LCR); in pci_quatech_rqopr()
1319 LCR = inb(base + UART_LCR); in pci_quatech_wqopr()
1320 outb(0xBF, base + UART_LCR); in pci_quatech_wqopr()
1323 outb(LCR, base + UART_LCR); in pci_quatech_wqopr()
1331 LCR = inb(base + UART_LCR); in pci_quatech_rqmcr()
1332 outb(0xBF, base + UART_LCR); in pci_quatech_rqmcr()
1337 outb(LCR, base + UART_LCR); in pci_quatech_rqmcr()
1347 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-6.1.9/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-6.1.9/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()
/linux-6.1.9/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()
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()
449 ark3116_write_reg(port->serial, UART_LCR, priv->lcr); in ark3116_break_ctl()
/linux-6.1.9/drivers/tty/
Dmxser.c302 oldlcr = inb(baseio + UART_LCR); in __mxser_must_set_EFR()
303 outb(MOXA_MUST_ENTER_ENHANCED, baseio + UART_LCR); in __mxser_must_set_EFR()
312 outb(oldlcr, baseio + UART_LCR); in __mxser_must_set_EFR()
327 outb(oldlcr, baseio + UART_LCR); in mxser_set_must_xon1_value()
334 outb(oldlcr, baseio + UART_LCR); in mxser_set_must_xoff1_value()
343 outb(oldlcr, info->ioaddr + UART_LCR); in mxser_set_must_fifo_value()
350 outb(oldlcr, baseio + UART_LCR); in mxser_set_must_enum_value()
357 outb(oldlcr, baseio + UART_LCR); in mxser_get_must_hardware_id()
396 outb(0, io + UART_LCR); in mxser_must_get_hwid()
523 cval = inb(info->ioaddr + UART_LCR); in mxser_set_baud()
[all …]
/linux-6.1.9/sound/drivers/
Dserial-u16550.c333 outb(UART_LCR_WLEN8, io_base + UART_LCR); /* Line Control Register */ in snd_uart16550_detect()
380 uart->old_line_ctrl_reg = inb(uart->base + UART_LCR); in snd_uart16550_do_open()
382 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_open()
397 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_open()
488 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_close()
495 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_close()
/linux-6.1.9/arch/powerpc/boot/
Dns16550.c23 #define UART_LCR 3 /* Out: Line Control Register */ macro
/linux-6.1.9/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-6.1.9/arch/sh/include/asm/
Dsmc37c93x.h62 #define UART_LCR 0x6 /* Line Control Register */ macro
/linux-6.1.9/drivers/mmc/core/
Dsdio_uart.c325 sdio_out(port, UART_LCR, cval | UART_LCR_DLAB); in sdio_uart_change_speed()
328 sdio_out(port, UART_LCR, cval); in sdio_uart_change_speed()
625 sdio_out(port, UART_LCR, UART_LCR_WLEN8); in sdio_uart_activate()
685 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_shutdown()
914 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_break_ctl()
/linux-6.1.9/include/uapi/linux/
Dserial_reg.h99 #define UART_LCR 3 /* Out: Line Control Register */ macro

12