Home
last modified time | relevance | path

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

123

/Linux-v4.19/arch/mips/include/asm/netlogic/xlp-hal/
Duart.h105 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-v4.19/drivers/video/fbdev/
Dtmiofb.c205 void __iomem *lcr; member
222 unsigned int bbisc = tmio_ioread16(par->lcr + LCR_BBISC); in tmiofb_irq()
225 tmio_iowrite16(bbisc, par->lcr + LCR_BBISC); in tmiofb_irq()
258 tmio_iowrite16(0, par->lcr + LCR_GM); in tmiofb_hw_stop()
260 tmio_iowrite16(0x0010, par->lcr + LCR_LCDCCRC); in tmiofb_hw_stop()
299 tmio_iowrite16(base >> 16, par->lcr + LCR_CFSAH); in tmiofb_hw_init()
300 tmio_iowrite16(base, par->lcr + LCR_CFSAL); in tmiofb_hw_init()
301 tmio_iowrite16(TMIOFB_FIFO_SIZE - 1, par->lcr + LCR_CFS); in tmiofb_hw_init()
302 tmio_iowrite16(1, par->lcr + LCR_CFC); in tmiofb_hw_init()
303 tmio_iowrite16(1, par->lcr + LCR_BBIE); in tmiofb_hw_init()
[all …]
/Linux-v4.19/drivers/tty/serial/jsm/
Djsm_cls.c54 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 …]
Djsm_neo.c688 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 …]
/Linux-v4.19/drivers/staging/dgnc/
Ddgnc_cls.c22 unsigned char lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
30 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
41 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
63 unsigned char lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control()
71 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control()
88 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control()
108 unsigned char lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control()
116 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control()
127 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control()
151 unsigned char lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_rts_flow_control()
[all …]
/Linux-v4.19/drivers/usb/serial/
Dark3116.c66 __u32 lcr; /* line control register value */ member
168 priv->lcr = UART_LCR_WLEN8; in ark3116_port_probe()
212 __u8 lcr, hcr, eval; in ark3116_set_termios() local
217 lcr = UART_LCR_WLEN5; in ark3116_set_termios()
220 lcr = UART_LCR_WLEN6; in ark3116_set_termios()
223 lcr = UART_LCR_WLEN7; in ark3116_set_termios()
227 lcr = UART_LCR_WLEN8; in ark3116_set_termios()
231 lcr |= UART_LCR_STOP; in ark3116_set_termios()
233 lcr |= UART_LCR_PARITY; in ark3116_set_termios()
235 lcr |= UART_LCR_EPAR; in ark3116_set_termios()
[all …]
Dch341.c95 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 …]
Dmct_u232.c249 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()
Dkeyspan.c2098 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-v4.19/drivers/tty/serial/
Dserial_ks8695.c310 unsigned int lcr; in ks8695uart_break_ctl() local
312 lcr = UART_GET_LCR(port); in ks8695uart_break_ctl()
315 lcr |= URLC_URSBC; in ks8695uart_break_ctl()
317 lcr &= ~URLC_URSBC; in ks8695uart_break_ctl()
319 UART_PUT_LCR(port, lcr); in ks8695uart_break_ctl()
379 unsigned int lcr, fcr = 0; in ks8695uart_set_termios() local
391 lcr = URCL_5; in ks8695uart_set_termios()
394 lcr = URCL_6; in ks8695uart_set_termios()
397 lcr = URCL_7; in ks8695uart_set_termios()
400 lcr = URCL_8; in ks8695uart_set_termios()
[all …]
Dserial-tegra.c210 unsigned long lcr; in tegra_uart_break_ctl() local
212 lcr = tup->lcr_shadow; in tegra_uart_break_ctl()
214 lcr |= UART_LCR_SBC; in tegra_uart_break_ctl()
216 lcr &= ~UART_LCR_SBC; in tegra_uart_break_ctl()
217 tegra_uart_write(tup, lcr, UART_LCR); in tegra_uart_break_ctl()
218 tup->lcr_shadow = lcr; in tegra_uart_break_ctl()
278 unsigned long lcr; in tegra_set_baudrate() local
298 lcr = tup->lcr_shadow; in tegra_set_baudrate()
299 lcr |= UART_LCR_DLAB; in tegra_set_baudrate()
300 tegra_uart_write(tup, lcr, UART_LCR); in tegra_set_baudrate()
[all …]
Dvt8500_serial.c288 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 …]
Dvr41xx_siu.c287 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 …]
Dsprd_serial.c369 unsigned int lcr = 0, fc; in sprd_set_termios() local
380 lcr |= SPRD_LCR_DATA_LEN5; in sprd_set_termios()
383 lcr |= SPRD_LCR_DATA_LEN6; in sprd_set_termios()
386 lcr |= SPRD_LCR_DATA_LEN7; in sprd_set_termios()
390 lcr |= SPRD_LCR_DATA_LEN8; in sprd_set_termios()
395 lcr &= ~(SPRD_LCR_STOP_1BIT | SPRD_LCR_STOP_2BIT); in sprd_set_termios()
397 lcr |= SPRD_LCR_STOP_2BIT; in sprd_set_termios()
399 lcr |= SPRD_LCR_STOP_1BIT; in sprd_set_termios()
402 lcr &= ~SPRD_LCR_PARITY; in sprd_set_termios()
405 lcr |= SPRD_LCR_PARITY_EN; in sprd_set_termios()
[all …]
Dmen_z135_uart.c658 u8 lcr; in men_z135_set_termios() local
661 lcr = LCR(conf_reg); in men_z135_set_termios()
666 lcr |= MEN_Z135_WL5; in men_z135_set_termios()
669 lcr |= MEN_Z135_WL6; in men_z135_set_termios()
672 lcr |= MEN_Z135_WL7; in men_z135_set_termios()
675 lcr |= MEN_Z135_WL8; in men_z135_set_termios()
681 lcr |= MEN_Z135_NSTB2 << MEN_Z135_STB_SHIFT; in men_z135_set_termios()
685 lcr |= MEN_Z135_PAR_ENA << MEN_Z135_PEN_SHIFT; in men_z135_set_termios()
688 lcr |= MEN_Z135_PTY_ODD << MEN_Z135_PTY_SHIFT; in men_z135_set_termios()
690 lcr |= MEN_Z135_PTY_EVN << MEN_Z135_PTY_SHIFT; in men_z135_set_termios()
[all …]
Dpnx8xxx_uart.c355 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()
Dsc16is7xx.c493 u8 lcr; in sc16is7xx_set_baud() local
502 lcr = sc16is7xx_port_read(port, SC16IS7XX_LCR_REG); in sc16is7xx_set_baud()
515 sc16is7xx_port_write(port, SC16IS7XX_LCR_REG, lcr); in sc16is7xx_set_baud()
532 sc16is7xx_port_write(port, SC16IS7XX_LCR_REG, lcr); in sc16is7xx_set_baud()
842 unsigned int lcr, flow = 0; in sc16is7xx_set_termios() local
851 lcr = SC16IS7XX_LCR_WORD_LEN_5; in sc16is7xx_set_termios()
854 lcr = SC16IS7XX_LCR_WORD_LEN_6; in sc16is7xx_set_termios()
857 lcr = SC16IS7XX_LCR_WORD_LEN_7; in sc16is7xx_set_termios()
860 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
863 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
[all …]
Dioc3_serial.c310 int lcr, prediv; in set_baud() local
337 lcr = readb(&uart->iu_lcr); in set_baud()
339 writeb(lcr | UART_LCR_DLAB, &uart->iu_lcr); in set_baud()
343 writeb((unsigned char)lcr, &uart->iu_lcr); in set_baud()
590 char lcr, sizebits; in config_port() local
631 lcr = readb(&port->ip_uart_regs->iu_lcr); in config_port()
632 lcr &= ~(LCR_MASK_BITS_CHAR | UART_LCR_EPAR | in config_port()
636 lcr |= sizebits; in config_port()
640 lcr |= UART_LCR_PARITY; in config_port()
642 lcr |= UART_LCR_EPAR; in config_port()
[all …]
Dpch_uart.c311 unsigned char lcr; in port_show_regs() local
338 lcr = ioread8(priv->membase + UART_LCR); in port_show_regs()
344 iowrite8(lcr, priv->membase + UART_LCR); in port_show_regs()
443 unsigned int dll, dlm, lcr; in pch_uart_hal_set_line() local
470 lcr = parity; in pch_uart_hal_set_line()
471 lcr |= bits; in pch_uart_hal_set_line()
472 lcr |= stb; in pch_uart_hal_set_line()
475 __func__, baud, div, lcr, jiffies); in pch_uart_hal_set_line()
479 iowrite8(lcr, priv->membase + UART_LCR); in pch_uart_hal_set_line()
616 unsigned int lcr; in pch_uart_hal_set_break() local
[all …]
/Linux-v4.19/drivers/media/pci/cx18/
Dcx18-av-vbi.c190 u8 lcr[24]; in cx18_av_s_sliced_fmt() local
193 lcr[x] = 0x00; in cx18_av_s_sliced_fmt()
223 lcr[i] |= 1 << (4 * x); in cx18_av_s_sliced_fmt()
226 lcr[i] |= 4 << (4 * x); in cx18_av_s_sliced_fmt()
229 lcr[i] |= 6 << (4 * x); in cx18_av_s_sliced_fmt()
232 lcr[i] |= 9 << (4 * x); in cx18_av_s_sliced_fmt()
240 cx18_av_write(cx, i, lcr[6 + x]); in cx18_av_s_sliced_fmt()
243 cx18_av_write(cx, i, lcr[9 + x]); in cx18_av_s_sliced_fmt()
/Linux-v4.19/drivers/media/i2c/cx25840/
Dcx25840-vbi.c151 u8 lcr[24]; in cx25840_s_sliced_fmt() local
154 lcr[x] = 0x00; in cx25840_s_sliced_fmt()
185 lcr[i] |= 1 << (4 * x); in cx25840_s_sliced_fmt()
188 lcr[i] |= 4 << (4 * x); in cx25840_s_sliced_fmt()
191 lcr[i] |= 6 << (4 * x); in cx25840_s_sliced_fmt()
194 lcr[i] |= 9 << (4 * x); in cx25840_s_sliced_fmt()
203 cx25840_write(client, i, lcr[6 + x]); in cx25840_s_sliced_fmt()
207 cx25840_write(client, i, lcr[9 + x]); in cx25840_s_sliced_fmt()
/Linux-v4.19/arch/x86/boot/
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-v4.19/drivers/clk/ingenic/
Djz4740-cgu.c235 uint32_t lcr = readl(cgu->base + CGU_REG_LCR); in jz4740_clock_set_wait_mode() local
239 lcr &= ~LCR_SLEEP; in jz4740_clock_set_wait_mode()
243 lcr |= LCR_SLEEP; in jz4740_clock_set_wait_mode()
247 writel(lcr, cgu->base + CGU_REG_LCR); in jz4740_clock_set_wait_mode()
/Linux-v4.19/arch/s390/kernel/vdso32/
Dgettimeofday.S44 lcr %r0,%r0 /* negative TOD offset */
45 lcr %r1,%r1
/Linux-v4.19/drivers/media/i2c/
Dsaa7115.c1046 u8 lcr[24]; in saa711x_set_lcr() local
1061 lcr[i] = 0xff; in saa711x_set_lcr()
1067 lcr[i] = 0xdd; in saa711x_set_lcr()
1070 lcr[i] = 0xdd; in saa711x_set_lcr()
1090 lcr[i] = 0; in saa711x_set_lcr()
1094 lcr[i] |= 0xf << (4 * x); in saa711x_set_lcr()
1097 lcr[i] |= 1 << (4 * x); in saa711x_set_lcr()
1100 lcr[i] |= 4 << (4 * x); in saa711x_set_lcr()
1103 lcr[i] |= 5 << (4 * x); in saa711x_set_lcr()
1106 lcr[i] |= 7 << (4 * x); in saa711x_set_lcr()
[all …]

123