/kernel/linux/linux-5.10/arch/mips/include/asm/netlogic/xlp-hal/ |
H A D | uart.h | 105 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() 116 /* restore default lcr */ 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 | in nlm_uart_init() [all...] |
/kernel/linux/linux-5.10/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() 202 __u8 lcr, hcr, eval; in ark3116_set_termios() local 207 lcr = UART_LCR_WLEN5; in ark3116_set_termios() 210 lcr = UART_LCR_WLEN6; in ark3116_set_termios() 213 lcr = UART_LCR_WLEN7; in ark3116_set_termios() 217 lcr = UART_LCR_WLEN8; in ark3116_set_termios() 221 lcr |= UART_LCR_STOP; in ark3116_set_termios() 223 lcr |= UART_LCR_PARITY; in ark3116_set_termios() 225 lcr | in ark3116_set_termios() [all...] |
H A D | ch341.c | 99 u8 lcr; member 247 speed_t baud_rate, u8 lcr) in ch341_set_baudrate_lcr() 285 CH341_REG_LCR2 << 8 | CH341_REG_LCR, lcr); in ch341_set_baudrate_lcr() 344 r = ch341_set_baudrate_lcr(dev, priv, priv->baud_rate, priv->lcr); in ch341_configure() 417 priv->lcr = CH341_LCR_ENABLE_RX | CH341_LCR_ENABLE_TX | CH341_LCR_CS8; in ch341_port_probe() 519 u8 lcr; in ch341_set_termios() local 528 lcr = CH341_LCR_ENABLE_RX | CH341_LCR_ENABLE_TX; in ch341_set_termios() 532 lcr |= CH341_LCR_CS5; in ch341_set_termios() 535 lcr |= CH341_LCR_CS6; in ch341_set_termios() 538 lcr | in ch341_set_termios() 245 ch341_set_baudrate_lcr(struct usb_device *dev, struct ch341_private *priv, speed_t baud_rate, u8 lcr) ch341_set_baudrate_lcr() argument [all...] |
/kernel/linux/linux-5.10/drivers/tty/serial/jsm/ |
H A D | jsm_cls.c | 54 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() 680 u8 lcr = 0; cls_param() local [all...] |
H A D | jsm_neo.c | 688 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() 927 u8 lcr = 0; in neo_param() local 994 lcr |= UART_LCR_PARITY; in neo_param() 997 lcr |= UART_LCR_EPAR; in neo_param() 1005 lcr |= UART_LCR_SPAR; in neo_param() 1009 lcr |= UART_LCR_STOP; in neo_param() 1013 lcr |= UART_LCR_WLEN5; in neo_param() 1016 lcr |= UART_LCR_WLEN6; in neo_param() 1019 lcr | in neo_param() [all...] |
/kernel/linux/linux-6.6/drivers/tty/serial/jsm/ |
H A D | jsm_cls.c | 54 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() 676 u8 lcr = 0; cls_param() local [all...] |
/kernel/linux/linux-6.6/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 | 99 u8 lcr; member 241 speed_t baud_rate, u8 lcr) in ch341_set_baudrate_lcr() 279 CH341_REG_LCR2 << 8 | CH341_REG_LCR, lcr); in ch341_set_baudrate_lcr() 329 r = ch341_set_baudrate_lcr(dev, priv, priv->baud_rate, priv->lcr); in ch341_configure() 390 priv->lcr = CH341_LCR_ENABLE_RX | CH341_LCR_ENABLE_TX | CH341_LCR_CS8; in ch341_port_probe() 491 u8 lcr; in ch341_set_termios() local 500 lcr = CH341_LCR_ENABLE_RX | CH341_LCR_ENABLE_TX; in ch341_set_termios() 504 lcr |= CH341_LCR_CS5; in ch341_set_termios() 507 lcr |= CH341_LCR_CS6; in ch341_set_termios() 510 lcr | in ch341_set_termios() 239 ch341_set_baudrate_lcr(struct usb_device *dev, struct ch341_private *priv, speed_t baud_rate, u8 lcr) ch341_set_baudrate_lcr() argument [all...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
H A D | tmiofb.c | 197 void __iomem *lcr; member 214 unsigned int bbisc = tmio_ioread16(par->lcr + LCR_BBISC); in tmiofb_irq() 217 tmio_iowrite16(bbisc, par->lcr + LCR_BBISC); in tmiofb_irq() 250 tmio_iowrite16(0, par->lcr + LCR_GM); in tmiofb_hw_stop() 252 tmio_iowrite16(0x0010, par->lcr + LCR_LCDCCRC); in tmiofb_hw_stop() 291 tmio_iowrite16(base >> 16, par->lcr + LCR_CFSAH); in tmiofb_hw_init() 292 tmio_iowrite16(base, par->lcr + LCR_CFSAL); in tmiofb_hw_init() 293 tmio_iowrite16(TMIOFB_FIFO_SIZE - 1, par->lcr + LCR_CFS); in tmiofb_hw_init() 294 tmio_iowrite16(1, par->lcr + LCR_CFC); in tmiofb_hw_init() 295 tmio_iowrite16(1, par->lcr in tmiofb_hw_init() 675 struct resource *lcr = platform_get_resource(dev, IORESOURCE_MEM, 0); tmiofb_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/tty/serial/ |
H A D | vt8500_serial.c | 284 unsigned int lcr = vt8500_read(port, VT8500_URLCR); in vt8500_set_mctrl() local 287 lcr |= VT8500_RTS; in vt8500_set_mctrl() 289 lcr &= ~VT8500_RTS; in vt8500_set_mctrl() 291 vt8500_write(port, lcr, VT8500_URLCR); in vt8500_set_mctrl() 365 unsigned int baud, lcr; in vt8500_set_termios() local 377 lcr = vt8500_read(&vt8500_port->uart, VT8500_URLCR); in vt8500_set_termios() 378 lcr &= ~(VT8500_PARENB | VT8500_PARODD); in vt8500_set_termios() 380 lcr |= VT8500_PARENB; in vt8500_set_termios() 383 lcr |= VT8500_PARODD; in vt8500_set_termios() 387 lcr in vt8500_set_termios() [all...] |
H A D | vr41xx_siu.c | 283 uint8_t lcr; in siu_break_ctl() local 287 lcr = siu_read(port, UART_LCR); in siu_break_ctl() 289 lcr |= UART_LCR_SBC; in siu_break_ctl() 291 lcr &= ~UART_LCR_SBC; in siu_break_ctl() 292 siu_write(port, UART_LCR, lcr); in siu_break_ctl() 473 uint8_t lcr; in siu_shutdown() local 484 lcr = siu_read(port, UART_LCR); in siu_shutdown() 485 lcr &= ~UART_LCR_SBC; in siu_shutdown() 486 siu_write(port, UART_LCR, lcr); in siu_shutdown() 502 uint8_t lcr, fc in siu_set_termios() local [all...] |
H A D | men_z135_uart.c | 657 u8 lcr; in men_z135_set_termios() local 660 lcr = LCR(conf_reg); in men_z135_set_termios() 665 lcr |= MEN_Z135_WL5; in men_z135_set_termios() 668 lcr |= MEN_Z135_WL6; in men_z135_set_termios() 671 lcr |= MEN_Z135_WL7; in men_z135_set_termios() 674 lcr |= MEN_Z135_WL8; in men_z135_set_termios() 680 lcr |= MEN_Z135_NSTB2 << MEN_Z135_STB_SHIFT; in men_z135_set_termios() 684 lcr |= MEN_Z135_PAR_ENA << MEN_Z135_PEN_SHIFT; in men_z135_set_termios() 687 lcr |= MEN_Z135_PTY_ODD << MEN_Z135_PTY_SHIFT; in men_z135_set_termios() 689 lcr | in men_z135_set_termios() [all...] |
H A D | serial-tegra.c | 250 unsigned long lcr; in tegra_uart_break_ctl() local 252 lcr = tup->lcr_shadow; in tegra_uart_break_ctl() 254 lcr |= UART_LCR_SBC; in tegra_uart_break_ctl() 256 lcr &= ~UART_LCR_SBC; in tegra_uart_break_ctl() 257 tegra_uart_write(tup, lcr, UART_LCR); in tegra_uart_break_ctl() 258 tup->lcr_shadow = lcr; in tegra_uart_break_ctl() 380 unsigned long lcr; in tegra_set_baudrate() local 411 lcr = tup->lcr_shadow; in tegra_set_baudrate() 412 lcr |= UART_LCR_DLAB; in tegra_set_baudrate() 413 tegra_uart_write(tup, lcr, UART_LC in tegra_set_baudrate() 1279 unsigned int lcr; tegra_uart_set_termios() local [all...] |
H A D | pnx8xxx_uart.c | 349 unsigned int lcr; in pnx8xxx_break_ctl() local 352 lcr = serial_in(sport, PNX8XXX_LCR); in pnx8xxx_break_ctl() 354 lcr |= PNX8XXX_UART_LCR_TXBREAK; in pnx8xxx_break_ctl() 356 lcr &= ~PNX8XXX_UART_LCR_TXBREAK; in pnx8xxx_break_ctl() 357 serial_out(sport, PNX8XXX_LCR, lcr); in pnx8xxx_break_ctl() 400 int lcr; in pnx8xxx_shutdown() local 415 lcr = serial_in(sport, PNX8XXX_LCR); in pnx8xxx_shutdown() 416 lcr &= ~PNX8XXX_UART_LCR_TXBREAK; in pnx8xxx_shutdown() 417 lcr |= PNX8XXX_UART_LCR_TX_RST | PNX8XXX_UART_LCR_RX_RST; in pnx8xxx_shutdown() 418 serial_out(sport, PNX8XXX_LCR, lcr); in pnx8xxx_shutdown() [all...] |
/kernel/linux/linux-6.6/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() 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 in sunplus_set_termios() [all...] |
H A D | men_z135_uart.c | 654 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() 686 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...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/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() 242 int lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() local 249 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 250 lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() 259 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 275 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 292 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl() 378 /* set DLAB we have cval saved in up->lcr from the call to the core */ in mtk8250_set_termios() 379 serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLA in mtk8250_set_termios() [all...] |
/kernel/linux/linux-5.10/drivers/tty/serial/8250/ |
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() 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() 369 /* set DLAB we have cval saved in up->lcr from the call to the core */ in mtk8250_set_termios() 370 serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLA in mtk8250_set_termios() [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/media/pci/cx18/ |
H A D | cx18-av-vbi.c | 181 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()
|