Home
last modified time | relevance | path

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

12

/linux/drivers/usb/serial/
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 Dkeyspan_usa26msg.h136 lcr, // BOTH: use PARITY, STOPBITS, DATABITS below member
H A Dkeyspan_usa67msg.h136 lcr, // use PARITY, STOPBITS, DATABITS below member
H A Dkeyspan_usa49msg.h149 lcr, // use PARITY, STOPBITS, DATABITS below member
H A Dkeyspan_usa90msg.h63 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()
398 unsigned long lcr; in tegra_set_baudrate() local
429 lcr = tup->lcr_shadow; in tegra_set_baudrate()
430 lcr |= UART_LCR_DLAB; in tegra_set_baudrate()
431 tegra_uart_write(tup, lcr, UART_LCR); in tegra_set_baudrate()
[all …]
H A Dma35d1_serial.c153 u8 lcr; member
365 u32 lcr; in ma35d1serial_break_ctl() local
368 lcr = serial_in(up, MA35_LCR_REG); in ma35d1serial_break_ctl()
370 lcr |= MA35_LCR_BREAK; in ma35d1serial_break_ctl()
372 lcr &= ~MA35_LCR_BREAK; in ma35d1serial_break_ctl()
373 serial_out(up, MA35_LCR_REG, lcr); in ma35d1serial_break_ctl()
420 u32 lcr = 0; in ma35d1serial_set_termios() local
422 lcr = UART_LCR_WLEN(tty_get_char_size(termios->c_cflag)); in ma35d1serial_set_termios()
425 lcr |= MA35_LCR_NSB; in ma35d1serial_set_termios()
427 lcr |= MA35_LCR_PBE; in ma35d1serial_set_termios()
[all …]
H A Dsc16is7xx.c1013 unsigned int lcr, flow = 0; in sc16is7xx_set_termios() local
1025 lcr = SC16IS7XX_LCR_WORD_LEN_5; in sc16is7xx_set_termios()
1028 lcr = SC16IS7XX_LCR_WORD_LEN_6; in sc16is7xx_set_termios()
1031 lcr = SC16IS7XX_LCR_WORD_LEN_7; in sc16is7xx_set_termios()
1034 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
1037 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
1045 lcr |= SC16IS7XX_LCR_PARITY_BIT; in sc16is7xx_set_termios()
1047 lcr |= SC16IS7XX_LCR_EVENPARITY_BIT; in sc16is7xx_set_termios()
1052 lcr |= SC16IS7XX_LCR_STOPLEN_BIT; /* 2 stops */ in sc16is7xx_set_termios()
1082 sc16is7xx_port_write(port, SC16IS7XX_LCR_REG, lcr); in sc16is7xx_set_termios()
H A Dmax310x.c937 unsigned int lcr = 0, flow = 0; in max310x_set_termios() local
948 lcr = MAX310X_LCR_LENGTH0_BIT; in max310x_set_termios()
951 lcr = MAX310X_LCR_LENGTH1_BIT; in max310x_set_termios()
955 lcr = MAX310X_LCR_LENGTH1_BIT | MAX310X_LCR_LENGTH0_BIT; in max310x_set_termios()
961 lcr |= MAX310X_LCR_PARITY_BIT; in max310x_set_termios()
963 lcr |= MAX310X_LCR_EVENPARITY_BIT; in max310x_set_termios()
968 lcr |= MAX310X_LCR_STOPLEN_BIT; /* 2 stops */ in max310x_set_termios()
971 max310x_port_write(port, MAX310X_LCR_REG, lcr); in max310x_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/arch/x86/boot/
H A Dearly_serial_console.c101 unsigned char lcr, dll, dlh; in probe_baud() local
104 lcr = inb(port + LCR); in probe_baud()
105 outb(lcr | DLAB, port + LCR); in probe_baud()
108 outb(lcr, port + LCR); in probe_baud()
/linux/drivers/tty/serial/8250/
H A D8250_em.c86 unsigned int ier, fcr, lcr, mcr, hcr0; in serial8250_em_reg_update() local
90 lcr = serial8250_em_serial_in(p, UART_LCR); in serial8250_em_reg_update()
107 lcr = value; in serial8250_em_reg_update()
117 serial8250_em_serial_out_helper(p, UART_LCR, lcr); in serial8250_em_reg_update()
H A D8250_port.c681 unsigned char lcr = 0, efr = 0; in serial8250_set_sleep() local
692 lcr = serial_in(p, UART_LCR); in serial8250_set_sleep()
702 serial_out(p, UART_LCR, lcr); in serial8250_set_sleep()
1983 up->lcr |= UART_LCR_SBC; in serial8250_do_break_ctl()
1985 up->lcr &= ~UART_LCR_SBC; in serial8250_do_break_ctl()
1986 serial_port_out(port, UART_LCR, up->lcr); in serial8250_do_break_ctl()
2416 u32 lcr; in serial8250_do_shutdown() local
2445 lcr = serial_port_in(port, UART_LCR); in serial8250_do_shutdown()
2446 lcr &= ~UART_LCR_SBC; in serial8250_do_shutdown()
2447 serial_port_out(port, UART_LCR, lcr); in serial8250_do_shutdown()
[all …]
H A D8250_dw.c198 serial_port_out(p, UART_LCR, up->lcr | UART_LCR_DLAB); in dw8250_set_divisor()
203 serial_port_out(p, UART_LCR, up->lcr); in dw8250_set_divisor()
218 u32 lcr; in dw8250_check_lcr() local
224 lcr = serial_port_in(p, UART_LCR); in dw8250_check_lcr()
227 if ((value & ~UART_LCR_SPAR) == (lcr & ~UART_LCR_SPAR)) in dw8250_check_lcr()
256 u32 lcr; in dw8250_can_skip_reg_write() local
261 lcr = serial_port_in(p, offset); in dw8250_can_skip_reg_write()
262 return lcr == value; in dw8250_can_skip_reg_write()
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()
H A D8250_keba.c79 u8 lcr, efr; in kuart_enhanced_mode() local
82 lcr = serial_in(up, UART_LCR); in kuart_enhanced_mode()
96 serial_out(up, UART_LCR, lcr); in kuart_enhanced_mode()
H A D8250_omap.c187 u8 lcr; in __omap8250_set_mctrl() local
196 lcr = serial_in(up, UART_LCR); in __omap8250_set_mctrl()
203 serial_out(up, UART_LCR, lcr); in __omap8250_set_mctrl()
350 serial_out(up, UART_LCR, up->lcr); in omap8250_restore_regs()
436 up->lcr = cval; in omap_8250_set_termios_atomic()
791 if (up->lcr & UART_LCR_SBC) in omap_8250_shutdown()
792 serial_out(up, UART_LCR, up->lcr & ~UART_LCR_SBC); in omap_8250_shutdown()
H A D8250_loongson.c101 serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLAB); in loongson_frac_set_divisor()
/linux/drivers/i2c/busses/
H A Di2c-k1.c189 u32 lv, lcr, mask; in spacemit_i2c_clk_set_rate() local
196 lcr = readl(i2c->base + SPACEMIT_ILCR); in spacemit_i2c_clk_set_rate()
197 lcr &= ~mask; in spacemit_i2c_clk_set_rate()
198 lcr |= field_prep(mask, lv); in spacemit_i2c_clk_set_rate()
199 writel(lcr, i2c->base + SPACEMIT_ILCR); in spacemit_i2c_clk_set_rate()
221 u32 lcr, lv = 0; in spacemit_i2c_clk_recalc_rate() local
223 lcr = readl(i2c->base + SPACEMIT_ILCR); in spacemit_i2c_clk_recalc_rate()
226 lv = FIELD_GET(SPACEMIT_LCR_LV_STANDARD_MASK, lcr); in spacemit_i2c_clk_recalc_rate()
230 lv = FIELD_GET(SPACEMIT_LCR_LV_FAST_MASK, lcr); in spacemit_i2c_clk_recalc_rate()
/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
323 port->lcr = cval; in sdio_uart_change_speed()
682 port->lcr &= ~UART_LCR_SBC; in sdio_uart_shutdown()
683 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_shutdown()
909 port->lcr |= UART_LCR_SBC; in sdio_uart_break_ctl()
911 port->lcr &= ~UART_LCR_SBC; in sdio_uart_break_ctl()
912 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
/linux/arch/sh/include/asm/
H A Dsmc37c93x.h75 volatile __u16 lcr; member

12