/Linux-v5.4/arch/mips/include/asm/netlogic/xlp-hal/ |
D | uart.h | 105 uint32_t lcr; in nlm_uart_set_baudrate() local 107 lcr = nlm_read_uart_reg(base, UART_LINE_CTL); in nlm_uart_set_baudrate() 110 nlm_write_uart_reg(base, UART_LINE_CTL, lcr | (1 << 7)); in nlm_uart_set_baudrate() 117 nlm_write_uart_reg(base, UART_LINE_CTL, lcr); in nlm_uart_set_baudrate() 158 uint32_t lcr; in nlm_uart_init() local 160 lcr = 0; in nlm_uart_init() 162 lcr |= LCR_8BITS; in nlm_uart_init() 164 lcr |= LCR_7BITS; in nlm_uart_init() 166 lcr |= LCR_6BITS; in nlm_uart_init() 168 lcr |= LCR_5BITS; in nlm_uart_init() [all …]
|
/Linux-v5.4/drivers/video/fbdev/ |
D | tmiofb.c | 197 void __iomem *lcr; member 214 unsigned int bbisc = tmio_ioread16(par->lcr + LCR_BBISC); in tmiofb_irq() 217 tmio_iowrite16(bbisc, par->lcr + LCR_BBISC); in tmiofb_irq() 250 tmio_iowrite16(0, par->lcr + LCR_GM); in tmiofb_hw_stop() 252 tmio_iowrite16(0x0010, par->lcr + LCR_LCDCCRC); in tmiofb_hw_stop() 291 tmio_iowrite16(base >> 16, par->lcr + LCR_CFSAH); in tmiofb_hw_init() 292 tmio_iowrite16(base, par->lcr + LCR_CFSAL); in tmiofb_hw_init() 293 tmio_iowrite16(TMIOFB_FIFO_SIZE - 1, par->lcr + LCR_CFS); in tmiofb_hw_init() 294 tmio_iowrite16(1, par->lcr + LCR_CFC); in tmiofb_hw_init() 295 tmio_iowrite16(1, par->lcr + LCR_BBIE); in tmiofb_hw_init() [all …]
|
/Linux-v5.4/drivers/tty/serial/jsm/ |
D | jsm_cls.c | 54 u8 lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_cts_flow_control() 62 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control() 73 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control() 95 u8 lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control() 103 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control() 120 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control() 140 u8 lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control() 148 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control() 159 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control() 183 u8 lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_rts_flow_control() [all …]
|
D | jsm_neo.c | 688 u8 temp = readb(&ch->ch_neo_uart->lcr); in neo_clear_break() 689 writeb((temp & ~UART_LCR_SBC), &ch->ch_neo_uart->lcr); in neo_clear_break() 925 u8 lcr = 0; in neo_param() local 992 lcr |= UART_LCR_PARITY; in neo_param() 995 lcr |= UART_LCR_EPAR; in neo_param() 1003 lcr |= UART_LCR_SPAR; in neo_param() 1007 lcr |= UART_LCR_STOP; in neo_param() 1011 lcr |= UART_LCR_WLEN5; in neo_param() 1014 lcr |= UART_LCR_WLEN6; in neo_param() 1017 lcr |= UART_LCR_WLEN7; in neo_param() [all …]
|
D | jsm.h | 263 u8 lcr; /* WR LCR - Line Control Reg */ member 318 u8 lcr; /* WR LCR - Line Control Reg */ member
|
/Linux-v5.4/drivers/usb/serial/ |
D | ark3116.c | 66 __u32 lcr; /* line control register value */ member 168 priv->lcr = UART_LCR_WLEN8; in ark3116_port_probe() 202 __u8 lcr, hcr, eval; in ark3116_set_termios() local 207 lcr = UART_LCR_WLEN5; in ark3116_set_termios() 210 lcr = UART_LCR_WLEN6; in ark3116_set_termios() 213 lcr = UART_LCR_WLEN7; in ark3116_set_termios() 217 lcr = UART_LCR_WLEN8; in ark3116_set_termios() 221 lcr |= UART_LCR_STOP; in ark3116_set_termios() 223 lcr |= UART_LCR_PARITY; in ark3116_set_termios() 225 lcr |= UART_LCR_EPAR; in ark3116_set_termios() [all …]
|
D | ch341.c | 95 u8 lcr; member 148 struct ch341_private *priv, u8 lcr) in ch341_set_baudrate_lcr() argument 181 r = ch341_control_out(dev, CH341_REQ_WRITE_REG, 0x2518, lcr); in ch341_set_baudrate_lcr() 238 r = ch341_set_baudrate_lcr(dev, priv, priv->lcr); in ch341_configure() 263 priv->lcr = CH341_LCR_ENABLE_RX | CH341_LCR_ENABLE_TX | CH341_LCR_CS8; in ch341_port_probe() 360 u8 lcr; in ch341_set_termios() local 369 lcr = CH341_LCR_ENABLE_RX | CH341_LCR_ENABLE_TX; in ch341_set_termios() 373 lcr |= CH341_LCR_CS5; in ch341_set_termios() 376 lcr |= CH341_LCR_CS6; in ch341_set_termios() 379 lcr |= CH341_LCR_CS7; in ch341_set_termios() [all …]
|
D | mct_u232.c | 249 unsigned char lcr) in mct_u232_set_line_ctrl() argument 258 buf[0] = lcr; in mct_u232_set_line_ctrl() 265 dev_err(&port->dev, "Set LINE CTRL 0x%x failed (error = %d)\n", lcr, rc); in mct_u232_set_line_ctrl() 266 dev_dbg(&port->dev, "set_line_ctrl: 0x%x\n", lcr); in mct_u232_set_line_ctrl() 685 unsigned char lcr; in mct_u232_break_ctl() local 689 lcr = priv->last_lcr; in mct_u232_break_ctl() 692 lcr |= MCT_U232_SET_BREAK; in mct_u232_break_ctl() 695 mct_u232_set_line_ctrl(port, lcr); in mct_u232_break_ctl()
|
D | keyspan.c | 2098 msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; in keyspan_usa26_send_setup() 2101 msg.lcr |= USA_DATABITS_5; in keyspan_usa26_send_setup() 2104 msg.lcr |= USA_DATABITS_6; in keyspan_usa26_send_setup() 2107 msg.lcr |= USA_DATABITS_7; in keyspan_usa26_send_setup() 2110 msg.lcr |= USA_DATABITS_8; in keyspan_usa26_send_setup() 2115 msg.lcr |= (p_priv->cflag & PARODD) ? in keyspan_usa26_send_setup() 2368 msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; in keyspan_usa49_send_setup() 2371 msg.lcr |= USA_DATABITS_5; in keyspan_usa49_send_setup() 2374 msg.lcr |= USA_DATABITS_6; in keyspan_usa49_send_setup() 2377 msg.lcr |= USA_DATABITS_7; in keyspan_usa49_send_setup() [all …]
|
/Linux-v5.4/drivers/media/pci/cx18/ |
D | cx18-av-vbi.c | 181 u8 lcr[24]; in cx18_av_s_sliced_fmt() local 184 lcr[x] = 0x00; in cx18_av_s_sliced_fmt() 214 lcr[i] |= 1 << (4 * x); in cx18_av_s_sliced_fmt() 217 lcr[i] |= 4 << (4 * x); in cx18_av_s_sliced_fmt() 220 lcr[i] |= 6 << (4 * x); in cx18_av_s_sliced_fmt() 223 lcr[i] |= 9 << (4 * x); in cx18_av_s_sliced_fmt() 231 cx18_av_write(cx, i, lcr[6 + x]); in cx18_av_s_sliced_fmt() 234 cx18_av_write(cx, i, lcr[9 + x]); in cx18_av_s_sliced_fmt()
|
/Linux-v5.4/drivers/media/i2c/cx25840/ |
D | cx25840-vbi.c | 144 u8 lcr[24]; in cx25840_s_sliced_fmt() local 147 lcr[x] = 0x00; in cx25840_s_sliced_fmt() 179 lcr[i] |= 1 << (4 * x); in cx25840_s_sliced_fmt() 182 lcr[i] |= 4 << (4 * x); in cx25840_s_sliced_fmt() 185 lcr[i] |= 6 << (4 * x); in cx25840_s_sliced_fmt() 188 lcr[i] |= 9 << (4 * x); in cx25840_s_sliced_fmt() 197 cx25840_write(client, i, lcr[6 + x]); in cx25840_s_sliced_fmt() 201 cx25840_write(client, i, lcr[9 + x]); in cx25840_s_sliced_fmt()
|
/Linux-v5.4/drivers/tty/serial/ |
D | vt8500_serial.c | 288 unsigned int lcr = vt8500_read(port, VT8500_URLCR); in vt8500_set_mctrl() local 291 lcr |= VT8500_RTS; in vt8500_set_mctrl() 293 lcr &= ~VT8500_RTS; in vt8500_set_mctrl() 295 vt8500_write(port, lcr, VT8500_URLCR); in vt8500_set_mctrl() 369 unsigned int baud, lcr; in vt8500_set_termios() local 381 lcr = vt8500_read(&vt8500_port->uart, VT8500_URLCR); in vt8500_set_termios() 382 lcr &= ~(VT8500_PARENB | VT8500_PARODD); in vt8500_set_termios() 384 lcr |= VT8500_PARENB; in vt8500_set_termios() 387 lcr |= VT8500_PARODD; in vt8500_set_termios() 391 lcr &= ~VT8500_CS8; in vt8500_set_termios() [all …]
|
D | vr41xx_siu.c | 287 uint8_t lcr; in siu_break_ctl() local 291 lcr = siu_read(port, UART_LCR); in siu_break_ctl() 293 lcr |= UART_LCR_SBC; in siu_break_ctl() 295 lcr &= ~UART_LCR_SBC; in siu_break_ctl() 296 siu_write(port, UART_LCR, lcr); in siu_break_ctl() 477 uint8_t lcr; in siu_shutdown() local 488 lcr = siu_read(port, UART_LCR); in siu_shutdown() 489 lcr &= ~UART_LCR_SBC; in siu_shutdown() 490 siu_write(port, UART_LCR, lcr); in siu_shutdown() 506 uint8_t lcr, fcr, ier; in siu_set_termios() local [all …]
|
D | serial-tegra.c | 249 unsigned long lcr; in tegra_uart_break_ctl() local 251 lcr = tup->lcr_shadow; in tegra_uart_break_ctl() 253 lcr |= UART_LCR_SBC; in tegra_uart_break_ctl() 255 lcr &= ~UART_LCR_SBC; in tegra_uart_break_ctl() 256 tegra_uart_write(tup, lcr, UART_LCR); in tegra_uart_break_ctl() 257 tup->lcr_shadow = lcr; in tegra_uart_break_ctl() 379 unsigned long lcr; in tegra_set_baudrate() local 410 lcr = tup->lcr_shadow; in tegra_set_baudrate() 411 lcr |= UART_LCR_DLAB; in tegra_set_baudrate() 412 tegra_uart_write(tup, lcr, UART_LCR); in tegra_set_baudrate() [all …]
|
D | men_z135_uart.c | 657 u8 lcr; in men_z135_set_termios() local 660 lcr = LCR(conf_reg); in men_z135_set_termios() 665 lcr |= MEN_Z135_WL5; in men_z135_set_termios() 668 lcr |= MEN_Z135_WL6; in men_z135_set_termios() 671 lcr |= MEN_Z135_WL7; in men_z135_set_termios() 674 lcr |= MEN_Z135_WL8; in men_z135_set_termios() 680 lcr |= MEN_Z135_NSTB2 << MEN_Z135_STB_SHIFT; in men_z135_set_termios() 684 lcr |= MEN_Z135_PAR_ENA << MEN_Z135_PEN_SHIFT; in men_z135_set_termios() 687 lcr |= MEN_Z135_PTY_ODD << MEN_Z135_PTY_SHIFT; in men_z135_set_termios() 689 lcr |= MEN_Z135_PTY_EVN << MEN_Z135_PTY_SHIFT; in men_z135_set_termios() [all …]
|
D | pnx8xxx_uart.c | 355 unsigned int lcr; in pnx8xxx_break_ctl() local 358 lcr = serial_in(sport, PNX8XXX_LCR); in pnx8xxx_break_ctl() 360 lcr |= PNX8XXX_UART_LCR_TXBREAK; in pnx8xxx_break_ctl() 362 lcr &= ~PNX8XXX_UART_LCR_TXBREAK; in pnx8xxx_break_ctl() 363 serial_out(sport, PNX8XXX_LCR, lcr); in pnx8xxx_break_ctl() 406 int lcr; in pnx8xxx_shutdown() local 421 lcr = serial_in(sport, PNX8XXX_LCR); in pnx8xxx_shutdown() 422 lcr &= ~PNX8XXX_UART_LCR_TXBREAK; in pnx8xxx_shutdown() 423 lcr |= PNX8XXX_UART_LCR_TX_RST | PNX8XXX_UART_LCR_RX_RST; in pnx8xxx_shutdown() 424 serial_out(sport, PNX8XXX_LCR, lcr); in pnx8xxx_shutdown()
|
D | sc16is7xx.c | 494 u8 lcr; in sc16is7xx_set_baud() local 518 lcr = sc16is7xx_port_read(port, SC16IS7XX_LCR_REG); in sc16is7xx_set_baud() 531 sc16is7xx_port_write(port, SC16IS7XX_LCR_REG, lcr); in sc16is7xx_set_baud() 550 sc16is7xx_port_write(port, SC16IS7XX_LCR_REG, lcr); in sc16is7xx_set_baud() 871 unsigned int lcr, flow = 0; in sc16is7xx_set_termios() local 880 lcr = SC16IS7XX_LCR_WORD_LEN_5; in sc16is7xx_set_termios() 883 lcr = SC16IS7XX_LCR_WORD_LEN_6; in sc16is7xx_set_termios() 886 lcr = SC16IS7XX_LCR_WORD_LEN_7; in sc16is7xx_set_termios() 889 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios() 892 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios() [all …]
|
D | sprd_serial.c | 780 unsigned int lcr = 0, fc; in sprd_set_termios() local 791 lcr |= SPRD_LCR_DATA_LEN5; in sprd_set_termios() 794 lcr |= SPRD_LCR_DATA_LEN6; in sprd_set_termios() 797 lcr |= SPRD_LCR_DATA_LEN7; in sprd_set_termios() 801 lcr |= SPRD_LCR_DATA_LEN8; in sprd_set_termios() 806 lcr &= ~(SPRD_LCR_STOP_1BIT | SPRD_LCR_STOP_2BIT); in sprd_set_termios() 808 lcr |= SPRD_LCR_STOP_2BIT; in sprd_set_termios() 810 lcr |= SPRD_LCR_STOP_1BIT; in sprd_set_termios() 813 lcr &= ~SPRD_LCR_PARITY; in sprd_set_termios() 816 lcr |= SPRD_LCR_PARITY_EN; in sprd_set_termios() [all …]
|
D | pch_uart.c | 309 unsigned char lcr; in port_show_regs() local 336 lcr = ioread8(priv->membase + UART_LCR); in port_show_regs() 342 iowrite8(lcr, priv->membase + UART_LCR); in port_show_regs() 441 unsigned int dll, dlm, lcr; in pch_uart_hal_set_line() local 468 lcr = parity; in pch_uart_hal_set_line() 469 lcr |= bits; in pch_uart_hal_set_line() 470 lcr |= stb; in pch_uart_hal_set_line() 473 __func__, baud, div, lcr, jiffies); in pch_uart_hal_set_line() 477 iowrite8(lcr, priv->membase + UART_LCR); in pch_uart_hal_set_line() 614 unsigned int lcr; in pch_uart_hal_set_break() local [all …]
|
D | max310x.c | 901 unsigned int lcr = 0, flow = 0; in max310x_set_termios() local 912 lcr = MAX310X_LCR_LENGTH0_BIT; in max310x_set_termios() 915 lcr = MAX310X_LCR_LENGTH1_BIT; in max310x_set_termios() 919 lcr = MAX310X_LCR_LENGTH1_BIT | MAX310X_LCR_LENGTH0_BIT; in max310x_set_termios() 925 lcr |= MAX310X_LCR_PARITY_BIT; in max310x_set_termios() 927 lcr |= MAX310X_LCR_EVENPARITY_BIT; in max310x_set_termios() 932 lcr |= MAX310X_LCR_STOPLEN_BIT; /* 2 stops */ in max310x_set_termios() 935 max310x_port_write(port, MAX310X_LCR_REG, lcr); in max310x_set_termios()
|
/Linux-v5.4/arch/x86/boot/ |
D | early_serial_console.c | 104 unsigned char lcr, dll, dlh; in probe_baud() local 107 lcr = inb(port + LCR); in probe_baud() 108 outb(lcr | DLAB, port + LCR); in probe_baud() 111 outb(lcr, port + LCR); in probe_baud()
|
/Linux-v5.4/drivers/tty/serial/8250/ |
D | 8250_mtk.c | 149 int lcr = serial_in(up, UART_LCR); in mtk8250_dma_enable() local 167 serial_out(up, UART_LCR, lcr); in mtk8250_dma_enable() 226 int lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() local 230 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 231 lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() 240 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 256 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 273 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 342 serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLAB); in mtk8250_set_termios() 346 serial_port_out(port, UART_LCR, up->lcr); in mtk8250_set_termios()
|
/Linux-v5.4/arch/s390/kernel/vdso32/ |
D | gettimeofday.S | 45 lcr %r0,%r0 /* negative TOD offset */ 46 lcr %r1,%r1
|
/Linux-v5.4/drivers/media/i2c/ |
D | saa7115.c | 1052 u8 lcr[24]; in saa711x_set_lcr() local 1067 lcr[i] = 0xff; in saa711x_set_lcr() 1073 lcr[i] = 0xdd; in saa711x_set_lcr() 1076 lcr[i] = 0xdd; in saa711x_set_lcr() 1096 lcr[i] = 0; in saa711x_set_lcr() 1100 lcr[i] |= 0xf << (4 * x); in saa711x_set_lcr() 1103 lcr[i] |= 1 << (4 * x); in saa711x_set_lcr() 1106 lcr[i] |= 4 << (4 * x); in saa711x_set_lcr() 1109 lcr[i] |= 5 << (4 * x); in saa711x_set_lcr() 1112 lcr[i] |= 7 << (4 * x); in saa711x_set_lcr() [all …]
|
/Linux-v5.4/drivers/mmc/core/ |
D | sdio_uart.c | 80 unsigned char lcr; member 335 port->lcr = cval; in sdio_uart_change_speed() 697 port->lcr &= ~UART_LCR_SBC; in sdio_uart_shutdown() 698 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_shutdown() 924 port->lcr |= UART_LCR_SBC; in sdio_uart_break_ctl() 926 port->lcr &= ~UART_LCR_SBC; in sdio_uart_break_ctl() 927 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_break_ctl()
|