Home
last modified time | relevance | path

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

12

/linux/drivers/usb/serial/
H A Dark3116.c65 __u32 lcr; /* line control register value */
167 priv->lcr = UART_LCR_WLEN8; in ark3116_port_probe()
199 __u8 lcr, hcr, eval; in ark3116_set_termios()
202 lcr = UART_LCR_WLEN(tty_get_char_size(cflag)); in ark3116_set_termios()
205 lcr |= UART_LCR_STOP; in ark3116_set_termios()
207 lcr |= UART_LCR_PARITY; in ark3116_set_termios()
209 lcr |= UART_LCR_EPAR; in ark3116_set_termios()
211 lcr |= UART_LCR_SPAR; in ark3116_set_termios()
242 lcr |= (priv->lcr in ark3116_set_termios()
66 __u32 lcr; /* line control register value */ global() member
200 __u8 lcr, hcr, eval; ark3116_set_termios() local
[all...]
H A Dch341.c103 u8 lcr; member
245 speed_t baud_rate, u8 lcr) in ch341_set_baudrate_lcr() argument
283 CH341_REG_LCR2 << 8 | CH341_REG_LCR, lcr); in ch341_set_baudrate_lcr()
333 r = ch341_set_baudrate_lcr(dev, priv, priv->baud_rate, priv->lcr); in ch341_configure()
394 priv->lcr = CH341_LCR_ENABLE_RX | CH341_LCR_ENABLE_TX | CH341_LCR_CS8; in ch341_port_probe()
517 u8 lcr; in ch341_set_termios() local
526 lcr = CH341_LCR_ENABLE_RX | CH341_LCR_ENABLE_TX; in ch341_set_termios()
530 lcr |= CH341_LCR_CS5; in ch341_set_termios()
533 lcr |= CH341_LCR_CS6; in ch341_set_termios()
536 lcr |= CH341_LCR_CS7; in ch341_set_termios()
[all …]
H A Dmct_u232.c247 unsigned char lcr)
256 buf[0] = lcr; in mct_u232_set_line_ctrl()
263 dev_err(&port->dev, "Set LINE CTRL 0x%x failed (error = %d)\n", lcr, rc); in mct_u232_set_line_ctrl()
264 dev_dbg(&port->dev, "set_line_ctrl: 0x%x\n", lcr); in mct_u232_set_line_ctrl()
687 unsigned char lcr; in mct_u232_break_ctl()
691 lcr = priv->last_lcr; in mct_u232_break_ctl()
694 lcr |= MCT_U232_SET_BREAK; in mct_u232_break_ctl()
697 return mct_u232_set_line_ctrl(port, lcr); in mct_u232_break_ctl()
249 mct_u232_set_line_ctrl(struct usb_serial_port * port,unsigned char lcr) mct_u232_set_line_ctrl() argument
689 unsigned char lcr; mct_u232_break_ctl() local
H A Dkeyspan.c1514 /* force baud and lcr to be set on open */ in keyspan_open()
2087 msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; in keyspan_usa26_send_setup()
2090 msg.lcr |= USA_DATABITS_5; in keyspan_usa26_send_setup()
2093 msg.lcr |= USA_DATABITS_6; in keyspan_usa26_send_setup()
2096 msg.lcr |= USA_DATABITS_7; in keyspan_usa26_send_setup()
2099 msg.lcr |= USA_DATABITS_8; in keyspan_usa26_send_setup()
2104 msg.lcr |= (p_priv->cflag & PARODD) ? in keyspan_usa26_send_setup()
2357 msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; in keyspan_usa49_send_setup()
2360 msg.lcr |= USA_DATABITS_5; in keyspan_usa49_send_setup()
2363 msg.lcr | in keyspan_usa49_send_setup()
[all...]
H A Dkeyspan_usa26msg.h136 lcr, // BOTH: use PARITY, STOPBITS, DATABITS below member
H A Dkeyspan_usa67msg.h136 lcr, // use PARITY, STOPBITS, DATABITS below member
/linux/drivers/tty/serial/
H A Dvt8500_serial.c261 unsigned int lcr = vt8500_read(port, VT8500_URLCR); in vt8500_set_mctrl() local
264 lcr |= VT8500_RTS; in vt8500_set_mctrl()
266 lcr &= ~VT8500_RTS; in vt8500_set_mctrl()
268 vt8500_write(port, lcr, VT8500_URLCR); in vt8500_set_mctrl()
342 unsigned int baud, lcr; in vt8500_set_termios() local
354 lcr = vt8500_read(&vt8500_port->uart, VT8500_URLCR); in vt8500_set_termios()
355 lcr &= ~(VT8500_PARENB | VT8500_PARODD); in vt8500_set_termios()
357 lcr |= VT8500_PARENB; in vt8500_set_termios()
360 lcr |= VT8500_PARODD; in vt8500_set_termios()
364 lcr &= ~VT8500_CS8; in vt8500_set_termios()
[all …]
H A Dsunplus-uart.c185 unsigned int lcr; in sunplus_break_ctl() local
189 lcr = readl(port->membase + SUP_UART_LCR); in sunplus_break_ctl()
192 lcr |= SUP_UART_LCR_SBC; /* start break */ in sunplus_break_ctl()
194 lcr &= ~SUP_UART_LCR_SBC; /* stop break */ in sunplus_break_ctl()
196 writel(lcr, port->membase + SUP_UART_LCR); in sunplus_break_ctl()
338 u32 ext, div, div_l, div_h, baud, lcr; in sunplus_set_termios() local
354 lcr = UART_LCR_WLEN5; in sunplus_set_termios()
357 lcr = UART_LCR_WLEN6; in sunplus_set_termios()
360 lcr = UART_LCR_WLEN7; in sunplus_set_termios()
363 lcr = UART_LCR_WLEN8; in sunplus_set_termios()
[all …]
H A Dserial-tegra.c254 unsigned long lcr; in tegra_uart_break_ctl() local
256 lcr = tup->lcr_shadow; in tegra_uart_break_ctl()
258 lcr |= UART_LCR_SBC; in tegra_uart_break_ctl()
260 lcr &= ~UART_LCR_SBC; in tegra_uart_break_ctl()
261 tegra_uart_write(tup, lcr, UART_LCR); in tegra_uart_break_ctl()
262 tup->lcr_shadow = lcr; in tegra_uart_break_ctl()
384 unsigned long lcr; in tegra_set_baudrate() local
415 lcr = tup->lcr_shadow; in tegra_set_baudrate()
416 lcr |= UART_LCR_DLAB; in tegra_set_baudrate()
417 tegra_uart_write(tup, lcr, UART_LCR); in tegra_set_baudrate()
[all …]
H A Dsprd_serial.c777 unsigned int lcr = 0, fc; in sprd_set_termios() local
788 lcr |= SPRD_LCR_DATA_LEN5; in sprd_set_termios()
791 lcr |= SPRD_LCR_DATA_LEN6; in sprd_set_termios()
794 lcr |= SPRD_LCR_DATA_LEN7; in sprd_set_termios()
798 lcr |= SPRD_LCR_DATA_LEN8; in sprd_set_termios()
803 lcr &= ~(SPRD_LCR_STOP_1BIT | SPRD_LCR_STOP_2BIT); in sprd_set_termios()
805 lcr |= SPRD_LCR_STOP_2BIT; in sprd_set_termios()
807 lcr |= SPRD_LCR_STOP_1BIT; in sprd_set_termios()
810 lcr &= ~SPRD_LCR_PARITY; in sprd_set_termios()
813 lcr |= SPRD_LCR_PARITY_EN; in sprd_set_termios()
[all …]
H A Dpch_uart.c300 unsigned char lcr; in port_show_regs() local
327 lcr = ioread8(priv->membase + UART_LCR); in port_show_regs()
333 iowrite8(lcr, priv->membase + UART_LCR); in port_show_regs()
431 unsigned int dll, dlm, lcr; in pch_uart_hal_set_line() local
458 lcr = parity; in pch_uart_hal_set_line()
459 lcr |= bits; in pch_uart_hal_set_line()
460 lcr |= stb; in pch_uart_hal_set_line()
462 dev_dbg(priv->port.dev, "%s:baud = %u, div = %04x, lcr = %02x (%lu)\n", in pch_uart_hal_set_line()
463 __func__, baud, div, lcr, jiffies); in pch_uart_hal_set_line()
467 iowrite8(lcr, pri in pch_uart_hal_set_line()
588 unsigned int lcr; pch_uart_hal_set_break() local
[all...]
H A Dsc16is7xx.c984 unsigned int lcr, flow = 0; in sc16is7xx_set_termios() local
996 lcr = SC16IS7XX_LCR_WORD_LEN_5; in sc16is7xx_set_termios()
999 lcr = SC16IS7XX_LCR_WORD_LEN_6; in sc16is7xx_set_termios()
1002 lcr = SC16IS7XX_LCR_WORD_LEN_7; in sc16is7xx_set_termios()
1005 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
1008 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
1016 lcr |= SC16IS7XX_LCR_PARITY_BIT; in sc16is7xx_set_termios()
1018 lcr |= SC16IS7XX_LCR_EVENPARITY_BIT; in sc16is7xx_set_termios()
1023 lcr |= SC16IS7XX_LCR_STOPLEN_BIT; /* 2 stops */ in sc16is7xx_set_termios()
1053 sc16is7xx_port_write(port, SC16IS7XX_LCR_REG, lcr); in sc16is7xx_set_termios()
H A Domap-serial.c132 unsigned char lcr; member
613 unsigned char mcr = 0, old_mcr, lcr; in serial_omap_set_mctrl() local
634 lcr = serial_in(up, UART_LCR); in serial_omap_set_mctrl()
641 serial_out(up, UART_LCR, lcr); in serial_omap_set_mctrl()
652 up->lcr |= UART_LCR_SBC; in serial_omap_break_ctl()
654 up->lcr &= ~UART_LCR_SBC; in serial_omap_break_ctl()
655 serial_out(up, UART_LCR, up->lcr); in serial_omap_break_ctl()
861 up->lcr = cval; in serial_omap_set_termios()
1012 serial_out(up, UART_LCR, up->lcr); in serial_omap_set_termios()
1728 serial_out(up, UART_LCR, up->lcr); in serial_omap_restore_context()
[all...]
H 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()
/linux/drivers/media/i2c/cx25840/
H 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/drivers/tty/serial/8250/
H A D8250_dwlib.c92 u32 lcr = dw8250_readl_ext(p, DW_UART_LCR_EXT); in dw8250_set_divisor()
95 lcr |= DW_UART_LCR_EXT_DLS_E; in dw8250_do_set_termios()
112 lcr |= DW_UART_LCR_EXT_ADDR_MATCH;
114 lcr &= ~DW_UART_LCR_EXT_ADDR_MATCH;
123 lcr |= DW_UART_LCR_EXT_SEND_ADDR; in dw8250_update_rar()
126 lcr = 0; in dw8250_update_rar()
128 dw8250_writel_ext(p, DW_UART_LCR_EXT, lcr); in dw8250_update_rar()
141 u32 lcr = dw8250_readl_ext(p, DW_UART_LCR_EXT); dw8250_rs485_set_addr() local
H A D8250_mtk.c160 int lcr = serial_in(up, UART_LCR); in mtk8250_dma_enable()
178 serial_out(up, UART_LCR, lcr); in mtk8250_dma_enable()
247 int lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl()
254 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
255 lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl()
264 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
280 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
297 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
383 /* set DLAB we have cval saved in up->lcr from the call to the core */ in mtk8250_set_termios()
384 serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLA in mtk8250_set_termios()
159 int lcr = serial_in(up, UART_LCR); mtk8250_dma_enable() local
246 int lcr = serial_in(up, UART_LCR); mtk8250_set_flow_ctrl() local
[all...]
H A D8250_em.c87 unsigned int ier, fcr, lcr, mcr, hcr0; in serial8250_em_reg_update() local
91 lcr = serial8250_em_serial_in(p, UART_LCR); in serial8250_em_reg_update()
108 lcr = value; in serial8250_em_reg_update()
118 serial8250_em_serial_out_helper(p, UART_LCR, lcr); in serial8250_em_reg_update()
H A D8250_port.c679 unsigned char lcr = 0, efr = 0; in serial8250_set_sleep()
690 lcr = serial_in(p, UART_LCR); in serial8250_set_sleep()
700 serial_out(p, UART_LCR, lcr); in serial8250_set_sleep()
1961 up->lcr |= UART_LCR_SBC; in wait_for_lsr()
1963 up->lcr &= ~UART_LCR_SBC; in wait_for_lsr()
1964 serial_port_out(port, UART_LCR, up->lcr); in wait_for_lsr()
2376 u32 lcr; in serial8250_do_shutdown()
2405 lcr = serial_port_in(port, UART_LCR); in serial8250_do_shutdown()
2406 lcr &= ~UART_LCR_SBC; in serial8250_do_shutdown()
2407 serial_port_out(port, UART_LCR, lcr); in serial8250_do_shutdown()
677 unsigned char lcr = 0, efr = 0; serial8250_set_sleep() local
2363 u32 lcr; serial8250_do_shutdown() local
2500 u8 lcr = UART_LCR_WLEN(tty_get_char_size(c_cflag)); serial8250_compute_lcr() local
2764 u8 lcr; serial8250_do_set_termios() local
3394 unsigned char lcr, dll, dlm; probe_baud() local
[all...]
H A D8250_dw.c199 serial_port_out(p, UART_LCR, up->lcr | UART_LCR_DLAB); in dw8250_idle_enter()
204 serial_port_out(p, UART_LCR, up->lcr); in dw8250_idle_enter()
219 u32 lcr; in dw8250_set_divisor()
225 lcr = serial_port_in(p, UART_LCR); in dw8250_set_divisor()
228 if ((value & ~UART_LCR_SPAR) == (lcr & ~UART_LCR_SPAR)) in dw8250_set_divisor()
257 u32 lcr; in dw8250_check_lcr()
262 lcr = serial_port_in(p, offset); in dw8250_check_lcr()
263 return lcr == value; in dw8250_check_lcr()
244 u32 lcr; dw8250_check_lcr() local
282 u32 lcr; dw8250_can_skip_reg_write() local
H 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/arch/x86/boot/
H 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/drivers/clk/ingenic/
H 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/drivers/mmc/core/
H A Dsdio_uart.c81 unsigned char lcr; member
320 port->lcr = cval; in sdio_uart_change_speed()
679 port->lcr &= ~UART_LCR_SBC; in sdio_uart_shutdown()
680 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_shutdown()
906 port->lcr |= UART_LCR_SBC; in sdio_uart_break_ctl()
908 port->lcr &= ~UART_LCR_SBC; in sdio_uart_break_ctl()
909 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_break_ctl()
/linux/drivers/tty/serial/jsm/
H A Djsm.h258 u8 lcr; /* WR LCR - Line Control Reg */ member
313 u8 lcr; /* WR LCR - Line Control Reg */ member

12