/linux/drivers/usb/serial/ |
H A D | ark3116.c | 66 __u32 lcr; /* line control register value */ member 168 priv->lcr = UART_LCR_WLEN8; in ark3116_port_probe() 200 __u8 lcr, hcr, eval; in ark3116_set_termios() local 203 lcr = UART_LCR_WLEN(tty_get_char_size(cflag)); in ark3116_set_termios() 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 in ark3116_set_termios() [all...] |
H A D | ch341.c | 103 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 | in ch341_set_termios() [all...] |
H A D | keyspan_usa26msg.h | 135 setLcr, // BOTH: host requests lcr be set 136 lcr, // BOTH: use PARITY, STOPBITS, DATABITS below member 190 // defines for bits in lcr
|
H A D | keyspan_usa49msg.h | 148 setLcr, // host requests lcr be set 149 lcr, // use PARITY, STOPBITS, DATABITS below member 193 // defines for bits in lcr
|
H A D | keyspan_usa67msg.h | 135 setLcr, // host requests lcr be set 136 lcr, // use PARITY, STOPBITS, DATABITS below member 186 // defines for bits in lcr
|
/linux/drivers/media/pci/cx18/ |
H A D | cx18-av-vbi.c | 173 u8 lcr[24]; in cx18_av_s_sliced_fmt() local 176 lcr[x] = 0x00; in cx18_av_s_sliced_fmt() 206 lcr[i] |= 1 << (4 * x); in cx18_av_s_sliced_fmt() 209 lcr[i] |= 4 << (4 * x); in cx18_av_s_sliced_fmt() 212 lcr[i] |= 6 << (4 * x); in cx18_av_s_sliced_fmt() 215 lcr[i] |= 9 << (4 * x); in cx18_av_s_sliced_fmt() 223 cx18_av_write(cx, i, lcr[6 + x]); in cx18_av_s_sliced_fmt() 226 cx18_av_write(cx, i, lcr[9 + x]); in cx18_av_s_sliced_fmt()
|
/linux/drivers/media/i2c/cx25840/ |
H A 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/drivers/tty/serial/ |
H A D | vt8500_serial.c | 261 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 in vt8500_set_termios() [all...] |
H A D | sunplus-uart.c | 185 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 in sunplus_set_termios() [all...] |
H A D | serial-tegra.c | 254 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_LC in tegra_set_baudrate() 1292 unsigned int lcr; tegra_uart_set_termios() local [all...] |
H A D | men_z135_uart.c | 648 u8 lcr; in men_z135_set_termios() local 651 lcr = LCR(conf_reg); in men_z135_set_termios() 656 lcr |= MEN_Z135_WL5; in men_z135_set_termios() 659 lcr |= MEN_Z135_WL6; in men_z135_set_termios() 662 lcr |= MEN_Z135_WL7; in men_z135_set_termios() 665 lcr |= MEN_Z135_WL8; in men_z135_set_termios() 671 lcr |= MEN_Z135_NSTB2 << MEN_Z135_STB_SHIFT; in men_z135_set_termios() 675 lcr |= MEN_Z135_PAR_ENA << MEN_Z135_PEN_SHIFT; in men_z135_set_termios() 678 lcr |= MEN_Z135_PTY_ODD << MEN_Z135_PTY_SHIFT; in men_z135_set_termios() 680 lcr | in men_z135_set_termios() [all...] |
H A D | ma35d1_serial.c | 153 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 | in ma35d1serial_set_termios() [all...] |
H A D | sc16is7xx.c | 582 u8 lcr; in sc16is7xx_set_baud() local 606 lcr = sc16is7xx_port_read(port, SC16IS7XX_LCR_REG); in sc16is7xx_set_baud() 617 sc16is7xx_port_write(port, SC16IS7XX_LCR_REG, lcr); in sc16is7xx_set_baud() 1044 unsigned int lcr, flow = 0; in sc16is7xx_set_termios() local 1056 lcr = SC16IS7XX_LCR_WORD_LEN_5; in sc16is7xx_set_termios() 1059 lcr = SC16IS7XX_LCR_WORD_LEN_6; in sc16is7xx_set_termios() 1062 lcr = SC16IS7XX_LCR_WORD_LEN_7; in sc16is7xx_set_termios() 1065 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios() 1068 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios() 1076 lcr | in sc16is7xx_set_termios() [all...] |
H A D | pch_uart.c | 300 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 D | pxa.c | 45 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()
|
H A D | omap-serial.c | 132 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 D | max310x.c | 896 unsigned int lcr = 0, flow = 0; in max310x_set_termios() local 907 lcr = MAX310X_LCR_LENGTH0_BIT; in max310x_set_termios() 910 lcr = MAX310X_LCR_LENGTH1_BIT; in max310x_set_termios() 914 lcr = MAX310X_LCR_LENGTH1_BIT | MAX310X_LCR_LENGTH0_BIT; in max310x_set_termios() 920 lcr |= MAX310X_LCR_PARITY_BIT; in max310x_set_termios() 922 lcr |= MAX310X_LCR_EVENPARITY_BIT; in max310x_set_termios() 927 lcr |= MAX310X_LCR_STOPLEN_BIT; /* 2 stops */ in max310x_set_termios() 930 max310x_port_write(port, MAX310X_LCR_REG, lcr); in max310x_set_termios()
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_dwlib.c | 141 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()
|
H A D | 8250_mtk.c | 159 int lcr = serial_in(up, UART_LCR); in mtk8250_dma_enable() local 177 serial_out(up, UART_LCR, lcr); in mtk8250_dma_enable() 246 int lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() local 253 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 254 lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() 263 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 279 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 296 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 382 /* set DLAB we have cval saved in up->lcr from the call to the core */ in mtk8250_set_termios() 383 serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLA in mtk8250_set_termios() [all...] |
H A D | 8250_pericom.c | 74 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 D | 8250_port.c | 673 unsigned char lcr = 0, efr = 0; in serial8250_set_sleep() local 681 lcr = serial_in(p, UART_LCR); in serial8250_set_sleep() 691 serial_out(p, UART_LCR, lcr); in serial8250_set_sleep() 1961 up->lcr |= UART_LCR_SBC; in serial8250_break_ctl() 1963 up->lcr &= ~UART_LCR_SBC; in serial8250_break_ctl() 1964 serial_port_out(port, UART_LCR, up->lcr); in serial8250_break_ctl() 2525 u8 lcr = UART_LCR_WLEN(tty_get_char_size(c_cflag)); in serial8250_compute_lcr() local 2528 lcr |= UART_LCR_STOP; in serial8250_compute_lcr() 2530 lcr |= UART_LCR_PARITY; in serial8250_compute_lcr() 2532 lcr | in serial8250_compute_lcr() 2796 u8 lcr; serial8250_do_set_termios() local 3430 unsigned char lcr, dll, dlm; probe_baud() local [all...] |
/linux/arch/x86/boot/ |
H A 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/drivers/tty/serial/jsm/ |
H A D | jsm_neo.c | 677 u8 temp = readb(&ch->ch_neo_uart->lcr); in neo_clear_break() 678 writeb((temp & ~UART_LCR_SBC), &ch->ch_neo_uart->lcr); in neo_clear_break() 916 u8 lcr = 0; in neo_param() local 983 lcr |= UART_LCR_PARITY; in neo_param() 986 lcr |= UART_LCR_EPAR; in neo_param() 989 lcr |= UART_LCR_SPAR; in neo_param() 992 lcr |= UART_LCR_STOP; in neo_param() 994 lcr |= UART_LCR_WLEN(tty_get_char_size(ch->ch_c_cflag)); in neo_param() 997 uart_lcr = readb(&ch->ch_neo_uart->lcr); in neo_param() 1002 writeb(UART_LCR_DLAB, &ch->ch_neo_uart->lcr); in neo_param() [all...] |
/linux/drivers/clk/ingenic/ |
H A D | jz4780-cgu.c | 230 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/media/i2c/ |
H A D | saa7115.c | 1039 /* setup the sliced VBI lcr registers according to the sliced VBI format */ 1044 u8 lcr[24]; in saa711x_set_lcr() local 1059 lcr[i] = 0xff; in saa711x_set_lcr() 1065 lcr[i] = 0xdd; in saa711x_set_lcr() 1068 lcr[i] = 0xdd; in saa711x_set_lcr() 1086 /* Now set the lcr values according to the specified service */ in saa711x_set_lcr() 1088 lcr[i] = 0; in saa711x_set_lcr() 1092 lcr[i] |= 0xf << (4 * x); in saa711x_set_lcr() 1095 lcr[i] |= 1 << (4 * x); in saa711x_set_lcr() 1098 lcr[ in saa711x_set_lcr() [all...] |