Home
last modified time | relevance | path

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

12

/Linux-v4.19/arch/powerpc/kernel/
Dudbg_16550.c24 #define UART_LCR 3 macro
33 #define UART_DLAB UART_LCR
114 udbg_uart_out(UART_LCR, 0x00); in udbg_uart_setup()
117 udbg_uart_out(UART_LCR, LCR_DLAB); in udbg_uart_setup()
121 udbg_uart_out(UART_LCR, 0x3); in udbg_uart_setup()
133 old_lcr = udbg_uart_in(UART_LCR); in udbg_probe_uart_speed()
136 udbg_uart_out(UART_LCR, old_lcr | LCR_DLAB); in udbg_probe_uart_speed()
150 udbg_uart_out(UART_LCR, old_lcr); in udbg_probe_uart_speed()
/Linux-v4.19/drivers/tty/serial/
Domap-serial.c687 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 …]
Dsunsu.c615 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 …]
Dvr41xx_siu.c291 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()
Dpxa.c329 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-v4.19/drivers/tty/serial/8250/
D8250_port.c522 p->serial_in(p, UART_LCR); /* safe, no side-effects */ in serial_port_out_sync()
728 lcr = serial_in(p, UART_LCR); in serial8250_set_sleep()
730 serial_out(p, UART_LCR, UART_LCR_CONF_MODE_B); in serial8250_set_sleep()
732 serial_out(p, UART_LCR, 0); 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, lcr); in serial8250_set_sleep()
824 old_lcr = serial_in(up, UART_LCR); in size_fifo()
825 serial_out(up, UART_LCR, 0); in size_fifo()
831 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in size_fifo()
834 serial_out(up, UART_LCR, 0x03); in size_fifo()
[all …]
D8250_early.c119 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()
D8250_dw.c110 void __iomem *offset = p->membase + (UART_LCR << p->regshift); in dw8250_check_lcr()
115 unsigned int lcr = p->serial_in(p, UART_LCR); in dw8250_check_lcr()
166 if (offset == UART_LCR) in dw8250_serial_out38x()
171 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out38x()
182 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out()
210 __raw_readq(p->membase + (UART_LCR << p->regshift)); in dw8250_serial_outq()
212 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_outq()
223 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out32()
240 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out32be()
D8250_omap.c143 lcr = serial_in(up, UART_LCR); in omap8250_set_mctrl()
144 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_set_mctrl()
150 serial_out(up, UART_LCR, lcr); in omap8250_set_mctrl()
281 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs()
284 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in omap8250_restore_regs()
290 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs()
298 serial_out(up, UART_LCR, 0); in omap8250_restore_regs()
304 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs()
310 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs()
314 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.c79 case UART_LCR: in uniphier_serial_in()
111 case UART_LCR: in uniphier_serial_out()
D8250_mtk.c80 serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLAB); in mtk8250_set_termios()
84 serial_port_out(port, UART_LCR, up->lcr); in mtk8250_set_termios()
/Linux-v4.19/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-v4.19/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-v4.19/arch/powerpc/boot/
Dvirtex.c21 #define UART_LCR 3 /* Out: Line Control Register */ macro
58 out_8(reg_base + (UART_LCR << reg_shift), UART_LCR_DLAB); in virtex_ns16550_console_init()
65 out_8(reg_base + (UART_LCR << reg_shift), UART_LCR_WLEN8); in virtex_ns16550_console_init()
Dns16550.c22 #define UART_LCR 3 /* Out: Line Control Register */ macro
/Linux-v4.19/drivers/media/rc/
Dserial_ir.c430 soutp(UART_LCR, sinp(UART_LCR) & (~UART_LCR_DLAB)); in hardware_init_port()
458 soutp(UART_LCR, sinp(UART_LCR) | UART_LCR_DLAB); in hardware_init_port()
463 soutp(UART_LCR, UART_LCR_WLEN7); in hardware_init_port()
618 soutp(UART_LCR, sinp(UART_LCR) & (~UART_LCR_DLAB)); in serial_ir_open()
634 soutp(UART_LCR, sinp(UART_LCR) & (~UART_LCR_DLAB)); in serial_ir_close()
697 soutp(UART_LCR, sinp(UART_LCR) & (~UART_LCR_DLAB)); in serial_ir_suspend()
Dsir_ir.c301 outb(UART_LCR_DLAB | UART_LCR_WLEN7, io + UART_LCR); in init_hardware()
304 outb(UART_LCR_WLEN7, io + UART_LCR); in init_hardware()
/Linux-v4.19/arch/mips/pmcs-msp71xx/
Dmsp_serial.c50 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-v4.19/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()
290 ark3116_write_reg(serial, UART_LCR, in ark3116_set_termios()
296 ark3116_write_reg(serial, UART_LCR, lcr); in ark3116_set_termios()
306 ark3116_write_reg(serial, UART_LCR, lcr); in ark3116_set_termios()
509 ark3116_write_reg(port->serial, UART_LCR, priv->lcr); in ark3116_break_ctl()
/Linux-v4.19/sound/drivers/
Dserial-u16550.c349 outb(UART_LCR_WLEN8, io_base + UART_LCR); /* Line Control Register */ in snd_uart16550_detect()
396 uart->old_line_ctrl_reg = inb(uart->base + UART_LCR); in snd_uart16550_do_open()
398 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_open()
413 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_open()
504 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_close()
511 ,uart->base + UART_LCR); /* Line Control Register */ in snd_uart16550_do_close()
/Linux-v4.19/drivers/isdn/hisax/
Delsa_ser.c135 serial_outp(cs, UART_LCR, cval | UART_LCR_DLAB);/* set DLAB */ in change_speed()
138 serial_outp(cs, UART_LCR, cval); /* reset DLAB */ in change_speed()
172 serial_outp(cs, UART_LCR, UART_LCR_WLEN8); /* reset DLAB */ in mstartup()
225 serial_outp(cs, UART_LCR, serial_inp(cs, UART_LCR) & ~UART_LCR_SBC); in mshutdown()
/Linux-v4.19/drivers/staging/speakup/
Dserialio.c87 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-v4.19/arch/sh/include/asm/
Dsmc37c93x.h62 #define UART_LCR 0x6 /* Line Control Register */ macro
/Linux-v4.19/drivers/mmc/core/
Dsdio_uart.c342 sdio_out(port, UART_LCR, cval | UART_LCR_DLAB); in sdio_uart_change_speed()
345 sdio_out(port, UART_LCR, cval); in sdio_uart_change_speed()
642 sdio_out(port, UART_LCR, UART_LCR_WLEN8); in sdio_uart_activate()
702 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_shutdown()
931 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_break_ctl()

12