Home
last modified time | relevance | path

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

12

/openbmc/linux/arch/powerpc/kernel/
H A 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()
/openbmc/linux/drivers/tty/serial/
H A Domap-serial.c634 lcr = serial_in(up, UART_LCR); in serial_omap_set_mctrl()
641 serial_out(up, UART_LCR, lcr); in serial_omap_set_mctrl()
655 serial_out(up, UART_LCR, up->lcr); in serial_omap_break_ctl()
753 serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC); in serial_omap_shutdown()
873 serial_out(up, UART_LCR, 0); in serial_omap_set_termios()
927 serial_out(up, UART_LCR, 0); in serial_omap_set_termios()
934 serial_out(up, UART_LCR, 0); in serial_omap_set_termios()
939 serial_out(up, UART_LCR, cval); in serial_omap_set_termios()
1012 serial_out(up, UART_LCR, up->lcr); in serial_omap_set_termios()
1032 serial_out(up, UART_LCR, 0); in serial_omap_pm()
[all …]
H A Dsunsu.c607 serial_out(up, UART_LCR, up->lcr); in sunsu_break_ctl()
621 serial_outp(up, UART_LCR, 0xBF); in sunsu_startup()
624 serial_outp(up, UART_LCR, 0); in sunsu_startup()
626 serial_outp(up, UART_LCR, 0xBF); in sunsu_startup()
628 serial_outp(up, UART_LCR, 0); in sunsu_startup()
748 serial_out(up, UART_LCR, serial_inp(up, UART_LCR) & ~UART_LCR_SBC); in sunsu_shutdown()
874 serial_outp(up, UART_LCR, 0xBF); in sunsu_change_speed()
1070 save_lcr = serial_in(up, UART_LCR); in sunsu_autoconfig()
1090 serial_outp(up, UART_LCR, 0); in sunsu_autoconfig()
1113 serial_outp(up, UART_LCR, 0xBF); in sunsu_autoconfig()
[all …]
H A Dpxa.c303 serial_out(up, UART_LCR, up->lcr); in serial_pxa_break_ctl()
347 serial_out(up, UART_LCR, UART_LCR_WLEN8); in serial_pxa_startup()
394 serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC); in serial_pxa_shutdown()
492 serial_out(up, UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in serial_pxa_set_termios()
503 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_pxa_set_termios()
H A 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()
/openbmc/linux/drivers/tty/serial/8250/
H A 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()
246 int lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl()
251 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_set_flow_ctrl()
253 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
254 lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl()
263 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
279 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
296 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
[all …]
H A D8250_port.c698 serial_out(p, UART_LCR, 0); in serial8250_set_sleep()
800 serial_out(up, UART_LCR, 0); in size_fifo()
1008 serial_out(up, UART_LCR, 0); in autoconfig_16550a()
1014 serial_out(up, UART_LCR, 0); in autoconfig_16550a()
1043 serial_out(up, UART_LCR, 0); in autoconfig_16550a()
1049 serial_out(up, UART_LCR, 0); in autoconfig_16550a()
1053 serial_out(up, UART_LCR, 0); in autoconfig_16550a()
1067 serial_out(up, UART_LCR, 0); in autoconfig_16550a()
1082 serial_out(up, UART_LCR, 0); in autoconfig_16550a()
1092 serial_out(up, UART_LCR, 0); in autoconfig_16550a()
[all …]
H A D8250_em.c43 case UART_LCR: /* LCR @ 0x10 (+1) */ in serial8250_em_serial_out_helper()
67 case UART_LCR: /* LCR @ 0x10 (+1) */ in serial8250_em_serial_in()
91 lcr = serial8250_em_serial_in(p, UART_LCR); in serial8250_em_reg_update()
107 case UART_LCR: in serial8250_em_reg_update()
118 serial8250_em_serial_out_helper(p, UART_LCR, lcr); in serial8250_em_reg_update()
135 case UART_LCR: in serial8250_em_serial_out()
H A D8250_early.c131 serial8250_early_out(port, UART_LCR, UART_LCR_WLEN8); /* 8n1 */ in init_port()
139 c = serial8250_early_in(port, UART_LCR); in init_port()
140 serial8250_early_out(port, UART_LCR, c | UART_LCR_DLAB); in init_port()
143 serial8250_early_out(port, UART_LCR, c & ~UART_LCR_DLAB); in init_port()
H A D8250_rt288x.c22 [UART_LCR] = 5,
32 [UART_LCR] = 5,
H A D8250_ingenic.c110 early_out(port, UART_LCR, UART_LCR_DLAB | UART_LCR_WLEN8); in ingenic_earlycon_setup_tail()
113 early_out(port, UART_LCR, UART_LCR_WLEN8); in ingenic_earlycon_setup_tail()
118 early_out(port, UART_LCR, UART_LCR_DLAB | UART_LCR_WLEN8); in ingenic_earlycon_setup_tail()
121 early_out(port, UART_LCR, UART_LCR_WLEN8); in ingenic_earlycon_setup_tail()
H A D8250_dw.c133 void __iomem *offset = p->membase + (UART_LCR << p->regshift); in dw8250_check_lcr()
138 unsigned int lcr = p->serial_in(p, UART_LCR); in dw8250_check_lcr()
193 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out()
200 if (offset == UART_LCR) in dw8250_serial_out38x()
230 __raw_readq(p->membase + (UART_LCR << p->regshift)); in dw8250_serial_outq()
232 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_outq()
243 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out32()
260 if (offset == UART_LCR && !d->uart_16550_compatible) in dw8250_serial_out32be()
H A D8250_omap.c189 lcr = serial_in(up, UART_LCR); in __omap8250_set_mctrl()
190 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in __omap8250_set_mctrl()
196 serial_out(up, UART_LCR, lcr); in __omap8250_set_mctrl()
324 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs()
327 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); in omap8250_restore_regs()
333 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs()
341 serial_out(up, UART_LCR, 0); in omap8250_restore_regs()
358 serial_out(up, UART_LCR, up->lcr); in omap8250_restore_regs()
541 serial_out(up, UART_LCR, 0); in omap_8250_pm()
546 serial_out(up, UART_LCR, 0); in omap_8250_pm()
[all …]
H A 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()
H A D8250_uniphier.c76 case UART_LCR: in uniphier_serial_in()
108 case UART_LCR: in uniphier_serial_out()
/openbmc/linux/arch/powerpc/platforms/embedded6xx/
H A Dls_uart.c67 out_8(avr_addr + UART_LCR, cval); /* initialise UART */ in avr_uart_configure()
73 out_8(avr_addr + UART_LCR, cval); /* Set character format */ in avr_uart_configure()
75 out_8(avr_addr + UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in avr_uart_configure()
78 out_8(avr_addr + UART_LCR, cval); /* reset DLAB */ in avr_uart_configure()
/openbmc/linux/drivers/media/rc/
H A 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()
/openbmc/linux/drivers/usb/serial/
H A 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()
450 ret = ark3116_write_reg(port->serial, UART_LCR, priv->lcr); in ark3116_break_ctl()
/openbmc/linux/drivers/tty/
H A Dmxser.c302 oldlcr = inb(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()
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()
524 cval = inb(info->ioaddr + UART_LCR); in mxser_set_baud()
683 outb(cval, info->ioaddr + UART_LCR); in mxser_change_speed()
1469 lcr = inb(info->ioaddr + UART_LCR); in mxser_rs_break()
[all …]
/openbmc/linux/sound/drivers/
H A 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()
/openbmc/linux/arch/powerpc/boot/
H A Dns16550.c23 #define UART_LCR 3 /* Out: Line Control Register */ macro
/openbmc/linux/drivers/accessibility/speakup/
H A 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()
/openbmc/linux/arch/sh/include/asm/
H A Dsmc37c93x.h62 #define UART_LCR 0x6 /* Line Control Register */ macro
/openbmc/linux/drivers/mmc/core/
H A 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()
624 sdio_out(port, UART_LCR, UART_LCR_WLEN8); in sdio_uart_activate()
684 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_shutdown()
913 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_break_ctl()
/openbmc/u-boot/include/linux/
H A Dserial_reg.h89 #define UART_LCR 3 /* Out: Line Control Register */ macro

12