Home
last modified time | relevance | path

Searched refs:lcr (Results 1 – 25 of 44) sorted by relevance

12

/linux-6.3-rc2/drivers/tty/serial/jsm/
A Djsm_cls.c73 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
120 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control()
159 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control()
676 u8 lcr = 0; in cls_param() local
721 lcr |= UART_LCR_PARITY; in cls_param()
724 lcr |= UART_LCR_EPAR; in cls_param()
727 lcr |= UART_LCR_SPAR; in cls_param()
730 lcr |= UART_LCR_STOP; in cls_param()
743 writeb(lcr, &ch->ch_cls_uart->lcr); in cls_param()
746 if (uart_lcr != lcr) in cls_param()
[all …]
A Djsm_neo.c689 u8 temp = readb(&ch->ch_neo_uart->lcr); in neo_clear_break()
928 u8 lcr = 0; in neo_param() local
995 lcr |= UART_LCR_PARITY; in neo_param()
998 lcr |= UART_LCR_EPAR; in neo_param()
1001 lcr |= UART_LCR_SPAR; in neo_param()
1004 lcr |= UART_LCR_STOP; in neo_param()
1009 uart_lcr = readb(&ch->ch_neo_uart->lcr); in neo_param()
1017 writeb(lcr, &ch->ch_neo_uart->lcr); in neo_param()
1020 if (uart_lcr != lcr) in neo_param()
1021 writeb(lcr, &ch->ch_neo_uart->lcr); in neo_param()
[all …]
A Djsm.h263 u8 lcr; /* WR LCR - Line Control Reg */ member
318 u8 lcr; /* WR LCR - Line Control Reg */ member
/linux-6.3-rc2/drivers/usb/serial/
A Dark3116.c168 priv->lcr = UART_LCR_WLEN8; in ark3116_port_probe()
200 __u8 lcr, hcr, eval; in ark3116_set_termios() local
206 lcr |= UART_LCR_STOP; in ark3116_set_termios()
208 lcr |= UART_LCR_PARITY; in ark3116_set_termios()
210 lcr |= UART_LCR_EPAR; in ark3116_set_termios()
212 lcr |= UART_LCR_SPAR; in ark3116_set_termios()
243 lcr |= (priv->lcr & UART_LCR_SBC); in ark3116_set_termios()
257 priv->lcr = lcr; /* need to write lcr anyway */ in ark3116_set_termios()
265 lcr|UART_LCR_DLAB); in ark3116_set_termios()
278 } else if (priv->lcr != lcr) { in ark3116_set_termios()
[all …]
A Dch341.c99 u8 lcr; member
491 u8 lcr; in ch341_set_termios() local
504 lcr |= CH341_LCR_CS5; in ch341_set_termios()
507 lcr |= CH341_LCR_CS6; in ch341_set_termios()
510 lcr |= CH341_LCR_CS7; in ch341_set_termios()
513 lcr |= CH341_LCR_CS8; in ch341_set_termios()
518 lcr |= CH341_LCR_ENABLE_PAR; in ch341_set_termios()
520 lcr |= CH341_LCR_PAR_EVEN; in ch341_set_termios()
532 priv->baud_rate, lcr); in ch341_set_termios()
537 priv->lcr = lcr; in ch341_set_termios()
[all …]
A Dmct_u232.c250 unsigned char lcr) in mct_u232_set_line_ctrl() argument
259 buf[0] = lcr; in mct_u232_set_line_ctrl()
266 dev_err(&port->dev, "Set LINE CTRL 0x%x failed (error = %d)\n", lcr, rc); in mct_u232_set_line_ctrl()
267 dev_dbg(&port->dev, "set_line_ctrl: 0x%x\n", lcr); in mct_u232_set_line_ctrl()
684 unsigned char lcr; in mct_u232_break_ctl() local
688 lcr = priv->last_lcr; in mct_u232_break_ctl()
691 lcr |= MCT_U232_SET_BREAK; in mct_u232_break_ctl()
694 mct_u232_set_line_ctrl(port, lcr); in mct_u232_break_ctl()
A Dkeyspan.c2086 msg.lcr |= USA_DATABITS_5; in keyspan_usa26_send_setup()
2089 msg.lcr |= USA_DATABITS_6; in keyspan_usa26_send_setup()
2092 msg.lcr |= USA_DATABITS_7; in keyspan_usa26_send_setup()
2095 msg.lcr |= USA_DATABITS_8; in keyspan_usa26_send_setup()
2356 msg.lcr |= USA_DATABITS_5; in keyspan_usa49_send_setup()
2359 msg.lcr |= USA_DATABITS_6; in keyspan_usa49_send_setup()
2362 msg.lcr |= USA_DATABITS_7; in keyspan_usa49_send_setup()
2365 msg.lcr |= USA_DATABITS_8; in keyspan_usa49_send_setup()
2532 msg.lcr |= USA_DATABITS_5; in keyspan_usa90_send_setup()
2535 msg.lcr |= USA_DATABITS_6; in keyspan_usa90_send_setup()
[all …]
/linux-6.3-rc2/drivers/media/pci/cx18/
A Dcx18-av-vbi.c181 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-6.3-rc2/drivers/media/i2c/cx25840/
A Dcx25840-vbi.c144 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-6.3-rc2/drivers/tty/serial/
A Dvt8500_serial.c264 lcr |= VT8500_RTS; in vt8500_set_mctrl()
266 lcr &= ~VT8500_RTS; in vt8500_set_mctrl()
342 unsigned int baud, lcr; in vt8500_set_termios() local
357 lcr |= VT8500_PARENB; in vt8500_set_termios()
360 lcr |= VT8500_PARODD; in vt8500_set_termios()
364 lcr &= ~VT8500_CS8; in vt8500_set_termios()
370 lcr |= VT8500_CS8; in vt8500_set_termios()
377 lcr &= ~VT8500_CSTOPB; in vt8500_set_termios()
379 lcr |= VT8500_CSTOPB; in vt8500_set_termios()
381 lcr &= ~VT8500_SWRTSCTS; in vt8500_set_termios()
[all …]
A Dsunplus-uart.c185 unsigned int lcr; in sunplus_break_ctl() local
189 lcr = readl(port->membase + SUP_UART_LCR); in sunplus_break_ctl()
196 writel(lcr, port->membase + SUP_UART_LCR); in sunplus_break_ctl()
336 u32 ext, div, div_l, div_h, baud, lcr; in sunplus_set_termios() local
352 lcr = UART_LCR_WLEN5; in sunplus_set_termios()
355 lcr = UART_LCR_WLEN6; in sunplus_set_termios()
358 lcr = UART_LCR_WLEN7; in sunplus_set_termios()
361 lcr = UART_LCR_WLEN8; in sunplus_set_termios()
366 lcr |= UART_LCR_STOP; in sunplus_set_termios()
369 lcr |= UART_LCR_PARITY; in sunplus_set_termios()
[all …]
A Dserial-tegra.c255 unsigned long lcr; in tegra_uart_break_ctl() local
257 lcr = tup->lcr_shadow; in tegra_uart_break_ctl()
259 lcr |= UART_LCR_SBC; in tegra_uart_break_ctl()
261 lcr &= ~UART_LCR_SBC; in tegra_uart_break_ctl()
263 tup->lcr_shadow = lcr; in tegra_uart_break_ctl()
385 unsigned long lcr; in tegra_set_baudrate() local
416 lcr = tup->lcr_shadow; in tegra_set_baudrate()
417 lcr |= UART_LCR_DLAB; in tegra_set_baudrate()
423 lcr &= ~UART_LCR_DLAB; in tegra_set_baudrate()
1285 unsigned int lcr; in tegra_uart_set_termios() local
[all …]
A Dmen_z135_uart.c654 u8 lcr; in men_z135_set_termios() local
657 lcr = LCR(conf_reg); in men_z135_set_termios()
662 lcr |= MEN_Z135_WL5; in men_z135_set_termios()
665 lcr |= MEN_Z135_WL6; in men_z135_set_termios()
668 lcr |= MEN_Z135_WL7; in men_z135_set_termios()
671 lcr |= MEN_Z135_WL8; in men_z135_set_termios()
677 lcr |= MEN_Z135_NSTB2 << MEN_Z135_STB_SHIFT; in men_z135_set_termios()
681 lcr |= MEN_Z135_PAR_ENA << MEN_Z135_PEN_SHIFT; in men_z135_set_termios()
684 lcr |= MEN_Z135_PTY_ODD << MEN_Z135_PTY_SHIFT; in men_z135_set_termios()
688 lcr |= MEN_Z135_PAR_DIS << MEN_Z135_PEN_SHIFT; in men_z135_set_termios()
[all …]
A Dsprd_serial.c752 unsigned int lcr = 0, fc; in sprd_set_termios() local
763 lcr |= SPRD_LCR_DATA_LEN5; in sprd_set_termios()
766 lcr |= SPRD_LCR_DATA_LEN6; in sprd_set_termios()
769 lcr |= SPRD_LCR_DATA_LEN7; in sprd_set_termios()
773 lcr |= SPRD_LCR_DATA_LEN8; in sprd_set_termios()
780 lcr |= SPRD_LCR_STOP_2BIT; in sprd_set_termios()
782 lcr |= SPRD_LCR_STOP_1BIT; in sprd_set_termios()
785 lcr &= ~SPRD_LCR_PARITY; in sprd_set_termios()
788 lcr |= SPRD_LCR_PARITY_EN; in sprd_set_termios()
790 lcr |= SPRD_LCR_ODD_PAR; in sprd_set_termios()
[all …]
A Dsc16is7xx.c514 u8 lcr; in sc16is7xx_set_baud() local
538 lcr = sc16is7xx_port_read(port, SC16IS7XX_LCR_REG); in sc16is7xx_set_baud()
1019 unsigned int lcr, flow = 0; in sc16is7xx_set_termios() local
1031 lcr = SC16IS7XX_LCR_WORD_LEN_5; in sc16is7xx_set_termios()
1034 lcr = SC16IS7XX_LCR_WORD_LEN_6; in sc16is7xx_set_termios()
1037 lcr = SC16IS7XX_LCR_WORD_LEN_7; in sc16is7xx_set_termios()
1040 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
1043 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
1051 lcr |= SC16IS7XX_LCR_PARITY_BIT; in sc16is7xx_set_termios()
1053 lcr |= SC16IS7XX_LCR_EVENPARITY_BIT; in sc16is7xx_set_termios()
[all …]
A Dpch_uart.c303 unsigned char lcr; in port_show_regs() local
330 lcr = ioread8(priv->membase + UART_LCR); in port_show_regs()
336 iowrite8(lcr, priv->membase + UART_LCR); in port_show_regs()
434 unsigned int dll, dlm, lcr; in pch_uart_hal_set_line() local
461 lcr = parity; in pch_uart_hal_set_line()
462 lcr |= bits; in pch_uart_hal_set_line()
463 lcr |= stb; in pch_uart_hal_set_line()
466 __func__, baud, div, lcr, jiffies); in pch_uart_hal_set_line()
591 unsigned int lcr; in pch_uart_hal_set_break() local
595 lcr |= PCH_UART_LCR_SB; in pch_uart_hal_set_break()
[all …]
A Dpxa.c45 unsigned char lcr; member
300 up->lcr |= UART_LCR_SBC; in serial_pxa_break_ctl()
302 up->lcr &= ~UART_LCR_SBC; in serial_pxa_break_ctl()
303 serial_out(up, UART_LCR, up->lcr); in serial_pxa_break_ctl()
504 up->lcr = cval; /* Save LCR */ in serial_pxa_set_termios()
A Domap-serial.c132 unsigned char lcr; member
620 unsigned char mcr = 0, old_mcr, lcr; in serial_omap_set_mctrl() local
641 lcr = serial_in(up, UART_LCR); in serial_omap_set_mctrl()
648 serial_out(up, UART_LCR, lcr); in serial_omap_set_mctrl()
659 up->lcr |= UART_LCR_SBC; in serial_omap_break_ctl()
661 up->lcr &= ~UART_LCR_SBC; in serial_omap_break_ctl()
662 serial_out(up, UART_LCR, up->lcr); in serial_omap_break_ctl()
868 up->lcr = cval; in serial_omap_set_termios()
1019 serial_out(up, UART_LCR, up->lcr); in serial_omap_set_termios()
1742 serial_out(up, UART_LCR, up->lcr); in serial_omap_restore_context()
/linux-6.3-rc2/drivers/tty/serial/8250/
A D8250_dwlib.c141 u32 lcr = dw8250_readl_ext(p, DW_UART_LCR_EXT); in dw8250_rs485_set_addr() local
144 lcr |= DW_UART_LCR_EXT_DLS_E; in dw8250_rs485_set_addr()
161 lcr |= DW_UART_LCR_EXT_ADDR_MATCH; in dw8250_rs485_set_addr()
163 lcr &= ~DW_UART_LCR_EXT_ADDR_MATCH; in dw8250_rs485_set_addr()
172 lcr |= DW_UART_LCR_EXT_SEND_ADDR; in dw8250_rs485_set_addr()
175 lcr = 0; in dw8250_rs485_set_addr()
177 dw8250_writel_ext(p, DW_UART_LCR_EXT, lcr); in dw8250_rs485_set_addr()
A D8250_mtk.c159 int lcr = serial_in(up, UART_LCR); in mtk8250_dma_enable() local
177 serial_out(up, UART_LCR, lcr); in mtk8250_dma_enable()
236 int lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() local
240 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
241 lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl()
250 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
266 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
283 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
370 serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLAB); in mtk8250_set_termios()
374 serial_port_out(port, UART_LCR, up->lcr); in mtk8250_set_termios()
A D8250_pericom.c74 int lcr = serial_port_in(port, UART_LCR); in pericom_do_set_divisor() local
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()
/linux-6.3-rc2/arch/x86/boot/
A Dearly_serial_console.c104 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-6.3-rc2/drivers/clk/ingenic/
A Djz4780-cgu.c230 u32 lcr, clkgr1; in jz4780_core1_enable() local
234 lcr = readl(cgu->base + CGU_REG_LCR); in jz4780_core1_enable()
235 lcr &= ~LCR_PD_SCPU; in jz4780_core1_enable()
236 writel(lcr, cgu->base + CGU_REG_LCR); in jz4780_core1_enable()
245 retval = readl_poll_timeout(cgu->base + CGU_REG_LCR, lcr, in jz4780_core1_enable()
246 !(lcr & LCR_SCPUS), 10, timeout); in jz4780_core1_enable()
/linux-6.3-rc2/drivers/media/i2c/
A Dsaa7115.c1052 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-6.3-rc2/drivers/mmc/core/
A Dsdio_uart.c81 unsigned char lcr; member
322 port->lcr = cval; in sdio_uart_change_speed()
683 port->lcr &= ~UART_LCR_SBC; in sdio_uart_shutdown()
684 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_shutdown()
910 port->lcr |= UART_LCR_SBC; in sdio_uart_break_ctl()
912 port->lcr &= ~UART_LCR_SBC; in sdio_uart_break_ctl()
913 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_break_ctl()

Completed in 97 milliseconds

12