Home
last modified time | relevance | path

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

/linux-4.4.14/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-4.4.14/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-4.4.14/drivers/tty/serial/jsm/
Djsm_cls.c63 u8 lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
71 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
82 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
104 u8 lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control()
112 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control()
129 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control()
149 u8 lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control()
157 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control()
168 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control()
192 u8 lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_rts_flow_control()
[all …]
Djsm_neo.c700 u8 temp = readb(&ch->ch_neo_uart->lcr); in neo_clear_break()
701 writeb((temp & ~UART_LCR_SBC), &ch->ch_neo_uart->lcr); in neo_clear_break()
937 u8 lcr = 0; in neo_param() local
1004 lcr |= UART_LCR_PARITY; in neo_param()
1007 lcr |= UART_LCR_EPAR; in neo_param()
1015 lcr |= UART_LCR_SPAR; in neo_param()
1019 lcr |= UART_LCR_STOP; in neo_param()
1023 lcr |= UART_LCR_WLEN5; in neo_param()
1026 lcr |= UART_LCR_WLEN6; in neo_param()
1029 lcr |= UART_LCR_WLEN7; in neo_param()
[all …]
Djsm.h272 u8 lcr; /* WR LCR - Line Control Reg */ member
327 u8 lcr; /* WR LCR - Line Control Reg */ member
/linux-4.4.14/drivers/staging/dgnc/
Ddgnc_cls.c81 unsigned char lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
89 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
100 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
122 unsigned char lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control()
130 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control()
147 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control()
167 unsigned char lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control()
175 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control()
186 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control()
210 unsigned char lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_rts_flow_control()
[all …]
Ddgnc_neo.c356 unsigned char temp = readb(&ch->ch_neo_uart->lcr); in neo_clear_break()
358 writeb((temp & ~UART_LCR_SBC), &ch->ch_neo_uart->lcr); in neo_clear_break()
580 unsigned char lcr = 0; in neo_param() local
706 lcr |= UART_LCR_PARITY; in neo_param()
709 lcr |= UART_LCR_EPAR; in neo_param()
717 lcr |= UART_LCR_SPAR; in neo_param()
721 lcr |= UART_LCR_STOP; in neo_param()
725 lcr |= UART_LCR_WLEN5; in neo_param()
728 lcr |= UART_LCR_WLEN6; in neo_param()
731 lcr |= UART_LCR_WLEN7; in neo_param()
[all …]
Ddgnc_cls.h42 u8 lcr; member
Ddgnc_neo.h34 u8 lcr; /* WR LCR - Line Control Reg */ member
/linux-4.4.14/drivers/usb/serial/
Dark3116.c70 __u32 lcr; /* line control register value */ member
181 priv->lcr = UART_LCR_WLEN8; in ark3116_port_probe()
227 __u8 lcr, hcr, eval; in ark3116_set_termios() local
232 lcr = UART_LCR_WLEN5; in ark3116_set_termios()
235 lcr = UART_LCR_WLEN6; in ark3116_set_termios()
238 lcr = UART_LCR_WLEN7; in ark3116_set_termios()
242 lcr = UART_LCR_WLEN8; in ark3116_set_termios()
246 lcr |= UART_LCR_STOP; in ark3116_set_termios()
248 lcr |= UART_LCR_PARITY; in ark3116_set_termios()
250 lcr |= UART_LCR_EPAR; in ark3116_set_termios()
[all …]
Dmct_u232.c253 unsigned char lcr) in mct_u232_set_line_ctrl() argument
262 buf[0] = lcr; in mct_u232_set_line_ctrl()
269 dev_err(&port->dev, "Set LINE CTRL 0x%x failed (error = %d)\n", lcr, rc); in mct_u232_set_line_ctrl()
270 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.c1605 msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; in keyspan_usa26_send_setup()
1608 msg.lcr |= USA_DATABITS_5; in keyspan_usa26_send_setup()
1611 msg.lcr |= USA_DATABITS_6; in keyspan_usa26_send_setup()
1614 msg.lcr |= USA_DATABITS_7; in keyspan_usa26_send_setup()
1617 msg.lcr |= USA_DATABITS_8; in keyspan_usa26_send_setup()
1622 msg.lcr |= (p_priv->cflag & PARODD) ? in keyspan_usa26_send_setup()
1875 msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; in keyspan_usa49_send_setup()
1878 msg.lcr |= USA_DATABITS_5; in keyspan_usa49_send_setup()
1881 msg.lcr |= USA_DATABITS_6; in keyspan_usa49_send_setup()
1884 msg.lcr |= USA_DATABITS_7; in keyspan_usa49_send_setup()
[all …]
Df81232.c351 u8 lcr; in f81232_set_baudrate() local
358 &lcr); /* get LCR */ in f81232_set_baudrate()
366 lcr | UART_LCR_DLAB); /* Enable DLAB */ in f81232_set_baudrate()
390 lcr & ~UART_LCR_DLAB); in f81232_set_baudrate()
Dkeyspan_usa26msg.h135 lcr, // BOTH: use PARITY, STOPBITS, DATABITS below member
Dkeyspan_usa67msg.h135 lcr, // use PARITY, STOPBITS, DATABITS below member
Dkeyspan_usa49msg.h148 lcr, // use PARITY, STOPBITS, DATABITS below member
Dkeyspan_usa90msg.h62 lcr, // use PARITY, STOPBITS, DATABITS below member
Dkl5kusb105.c567 unsigned char lcr = priv->last_lcr;
573 lcr |= MCT_U232_SET_BREAK;
575 mct_u232_set_line_ctrl(serial, lcr);
Dquatech2.c165 u16 baudrate, u16 lcr) in qt2_set_port_config() argument
168 u16 index = ((u16) (lcr << 8) | (u16) (port_number)); in qt2_set_port_config()
/linux-4.4.14/drivers/tty/serial/
Dserial_ks8695.c315 unsigned int lcr; in ks8695uart_break_ctl() local
317 lcr = UART_GET_LCR(port); in ks8695uart_break_ctl()
320 lcr |= URLC_URSBC; in ks8695uart_break_ctl()
322 lcr &= ~URLC_URSBC; in ks8695uart_break_ctl()
324 UART_PUT_LCR(port, lcr); in ks8695uart_break_ctl()
384 unsigned int lcr, fcr = 0; in ks8695uart_set_termios() local
396 lcr = URCL_5; in ks8695uart_set_termios()
399 lcr = URCL_6; in ks8695uart_set_termios()
402 lcr = URCL_7; in ks8695uart_set_termios()
405 lcr = URCL_8; in ks8695uart_set_termios()
[all …]
Dserial-tegra.c223 unsigned long lcr; in tegra_uart_break_ctl() local
225 lcr = tup->lcr_shadow; in tegra_uart_break_ctl()
227 lcr |= UART_LCR_SBC; in tegra_uart_break_ctl()
229 lcr &= ~UART_LCR_SBC; in tegra_uart_break_ctl()
230 tegra_uart_write(tup, lcr, UART_LCR); in tegra_uart_break_ctl()
231 tup->lcr_shadow = lcr; in tegra_uart_break_ctl()
291 unsigned long lcr; in tegra_set_baudrate() local
311 lcr = tup->lcr_shadow; in tegra_set_baudrate()
312 lcr |= UART_LCR_DLAB; in tegra_set_baudrate()
313 tegra_uart_write(tup, lcr, UART_LCR); in tegra_set_baudrate()
[all …]
Dvt8500_serial.c297 unsigned int lcr = vt8500_read(port, VT8500_URLCR); in vt8500_set_mctrl() local
300 lcr |= VT8500_RTS; in vt8500_set_mctrl()
302 lcr &= ~VT8500_RTS; in vt8500_set_mctrl()
304 vt8500_write(port, lcr, VT8500_URLCR); in vt8500_set_mctrl()
378 unsigned int baud, lcr; in vt8500_set_termios() local
390 lcr = vt8500_read(&vt8500_port->uart, VT8500_URLCR); in vt8500_set_termios()
391 lcr &= ~(VT8500_PARENB | VT8500_PARODD); in vt8500_set_termios()
393 lcr |= VT8500_PARENB; in vt8500_set_termios()
396 lcr |= VT8500_PARODD; in vt8500_set_termios()
400 lcr &= ~VT8500_CS8; in vt8500_set_termios()
[all …]
Dvr41xx_siu.c300 uint8_t lcr; in siu_break_ctl() local
304 lcr = siu_read(port, UART_LCR); in siu_break_ctl()
306 lcr |= UART_LCR_SBC; in siu_break_ctl()
308 lcr &= ~UART_LCR_SBC; in siu_break_ctl()
309 siu_write(port, UART_LCR, lcr); in siu_break_ctl()
490 uint8_t lcr; in siu_shutdown() local
501 lcr = siu_read(port, UART_LCR); in siu_shutdown()
502 lcr &= ~UART_LCR_SBC; in siu_shutdown()
503 siu_write(port, UART_LCR, lcr); in siu_shutdown()
519 uint8_t lcr, fcr, ier; in siu_set_termios() local
[all …]
Dsprd_serial.c375 unsigned int lcr = 0, fc; in sprd_set_termios() local
386 lcr |= SPRD_LCR_DATA_LEN5; in sprd_set_termios()
389 lcr |= SPRD_LCR_DATA_LEN6; in sprd_set_termios()
392 lcr |= SPRD_LCR_DATA_LEN7; in sprd_set_termios()
396 lcr |= SPRD_LCR_DATA_LEN8; in sprd_set_termios()
401 lcr &= ~(SPRD_LCR_STOP_1BIT | SPRD_LCR_STOP_2BIT); in sprd_set_termios()
403 lcr |= SPRD_LCR_STOP_2BIT; in sprd_set_termios()
405 lcr |= SPRD_LCR_STOP_1BIT; in sprd_set_termios()
408 lcr &= ~SPRD_LCR_PARITY; in sprd_set_termios()
411 lcr |= SPRD_LCR_PARITY_EN; in sprd_set_termios()
[all …]
Dmen_z135_uart.c661 u8 lcr; in men_z135_set_termios() local
664 lcr = LCR(conf_reg); in men_z135_set_termios()
669 lcr |= MEN_Z135_WL5; in men_z135_set_termios()
672 lcr |= MEN_Z135_WL6; in men_z135_set_termios()
675 lcr |= MEN_Z135_WL7; in men_z135_set_termios()
678 lcr |= MEN_Z135_WL8; in men_z135_set_termios()
684 lcr |= MEN_Z135_NSTB2 << MEN_Z135_STB_SHIFT; in men_z135_set_termios()
688 lcr |= MEN_Z135_PAR_ENA << MEN_Z135_PEN_SHIFT; in men_z135_set_termios()
691 lcr |= MEN_Z135_PTY_ODD << MEN_Z135_PTY_SHIFT; in men_z135_set_termios()
693 lcr |= MEN_Z135_PTY_EVN << MEN_Z135_PTY_SHIFT; in men_z135_set_termios()
[all …]
Dbfin_uart.c583 u32 lcr = UART_GET_LCR(uart); in bfin_serial_break_ctl() local
585 lcr |= SB; in bfin_serial_break_ctl()
587 lcr &= ~SB; in bfin_serial_break_ctl()
588 UART_PUT_LCR(uart, lcr); in bfin_serial_break_ctl()
788 unsigned int ier, lcr = 0; in bfin_serial_set_termios() local
800 lcr = WLS(8); in bfin_serial_set_termios()
803 lcr = WLS(7); in bfin_serial_set_termios()
806 lcr = WLS(6); in bfin_serial_set_termios()
809 lcr = WLS(5); in bfin_serial_set_termios()
824 lcr |= STB; in bfin_serial_set_termios()
[all …]
Dpnx8xxx_uart.c359 unsigned int lcr; in pnx8xxx_break_ctl() local
362 lcr = serial_in(sport, PNX8XXX_LCR); in pnx8xxx_break_ctl()
364 lcr |= PNX8XXX_UART_LCR_TXBREAK; in pnx8xxx_break_ctl()
366 lcr &= ~PNX8XXX_UART_LCR_TXBREAK; in pnx8xxx_break_ctl()
367 serial_out(sport, PNX8XXX_LCR, lcr); in pnx8xxx_break_ctl()
410 int lcr; in pnx8xxx_shutdown() local
425 lcr = serial_in(sport, PNX8XXX_LCR); in pnx8xxx_shutdown()
426 lcr &= ~PNX8XXX_UART_LCR_TXBREAK; in pnx8xxx_shutdown()
427 lcr |= PNX8XXX_UART_LCR_TX_RST | PNX8XXX_UART_LCR_RX_RST; in pnx8xxx_shutdown()
428 serial_out(sport, PNX8XXX_LCR, lcr); in pnx8xxx_shutdown()
Dsc16is7xx.c490 u8 lcr; in sc16is7xx_set_baud() local
499 lcr = sc16is7xx_port_read(port, SC16IS7XX_LCR_REG); in sc16is7xx_set_baud()
512 sc16is7xx_port_write(port, SC16IS7XX_LCR_REG, lcr); in sc16is7xx_set_baud()
529 sc16is7xx_port_write(port, SC16IS7XX_LCR_REG, lcr); in sc16is7xx_set_baud()
831 unsigned int lcr, flow = 0; in sc16is7xx_set_termios() local
840 lcr = SC16IS7XX_LCR_WORD_LEN_5; in sc16is7xx_set_termios()
843 lcr = SC16IS7XX_LCR_WORD_LEN_6; in sc16is7xx_set_termios()
846 lcr = SC16IS7XX_LCR_WORD_LEN_7; in sc16is7xx_set_termios()
849 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
852 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
[all …]
Dioc3_serial.c313 int lcr, prediv; in set_baud() local
340 lcr = readb(&uart->iu_lcr); in set_baud()
342 writeb(lcr | UART_LCR_DLAB, &uart->iu_lcr); in set_baud()
346 writeb((unsigned char)lcr, &uart->iu_lcr); in set_baud()
593 char lcr, sizebits; in config_port() local
634 lcr = readb(&port->ip_uart_regs->iu_lcr); in config_port()
635 lcr &= ~(LCR_MASK_BITS_CHAR | UART_LCR_EPAR | in config_port()
639 lcr |= sizebits; in config_port()
643 lcr |= UART_LCR_PARITY; in config_port()
645 lcr |= UART_LCR_EPAR; in config_port()
[all …]
Dpch_uart.c327 unsigned char lcr; in port_show_regs() local
354 lcr = ioread8(priv->membase + UART_LCR); in port_show_regs()
360 iowrite8(lcr, priv->membase + UART_LCR); in port_show_regs()
458 unsigned int dll, dlm, lcr; in pch_uart_hal_set_line() local
485 lcr = parity; in pch_uart_hal_set_line()
486 lcr |= bits; in pch_uart_hal_set_line()
487 lcr |= stb; in pch_uart_hal_set_line()
490 __func__, baud, div, lcr, jiffies); in pch_uart_hal_set_line()
494 iowrite8(lcr, priv->membase + UART_LCR); in pch_uart_hal_set_line()
631 unsigned int lcr; in pch_uart_hal_set_break() local
[all …]
Dmax310x.c799 unsigned int lcr, flow = 0; in max310x_set_termios() local
808 lcr = MAX310X_LCR_WORD_LEN_5; in max310x_set_termios()
811 lcr = MAX310X_LCR_WORD_LEN_6; in max310x_set_termios()
814 lcr = MAX310X_LCR_WORD_LEN_7; in max310x_set_termios()
818 lcr = MAX310X_LCR_WORD_LEN_8; in max310x_set_termios()
824 lcr |= MAX310X_LCR_PARITY_BIT; in max310x_set_termios()
826 lcr |= MAX310X_LCR_EVENPARITY_BIT; in max310x_set_termios()
831 lcr |= MAX310X_LCR_STOPLEN_BIT; /* 2 stops */ in max310x_set_termios()
834 max310x_port_write(port, MAX310X_LCR_REG, lcr); in max310x_set_termios()
Dioc4_serial.c711 int lcr; in set_baud() local
729 lcr = readb(&uart->i4u_lcr); in set_baud()
730 writeb(lcr | UART_LCR_DLAB, &uart->i4u_lcr); in set_baud()
733 writeb(lcr, &uart->i4u_lcr); in set_baud()
1318 char lcr, sizebits; in config_port() local
1357 lcr = readb(&port->ip_uart_regs->i4u_lcr); in config_port()
1358 lcr &= ~(LCR_MASK_BITS_CHAR | UART_LCR_EPAR | in config_port()
1362 lcr |= sizebits; in config_port()
1366 lcr |= UART_LCR_PARITY; in config_port()
1368 lcr |= UART_LCR_EPAR; in config_port()
[all …]
Domap-serial.c142 unsigned char lcr; member
669 unsigned char mcr = 0, old_mcr, lcr; in serial_omap_set_mctrl() local
691 lcr = serial_in(up, UART_LCR); in serial_omap_set_mctrl()
698 serial_out(up, UART_LCR, lcr); in serial_omap_set_mctrl()
713 up->lcr |= UART_LCR_SBC; in serial_omap_break_ctl()
715 up->lcr &= ~UART_LCR_SBC; in serial_omap_break_ctl()
716 serial_out(up, UART_LCR, up->lcr); in serial_omap_break_ctl()
943 up->lcr = cval; in serial_omap_set_termios()
1094 serial_out(up, UART_LCR, up->lcr); in serial_omap_set_termios()
1794 serial_out(up, UART_LCR, up->lcr); in serial_omap_restore_context()
Dpxa.c53 unsigned char lcr; member
331 up->lcr |= UART_LCR_SBC; in serial_pxa_break_ctl()
333 up->lcr &= ~UART_LCR_SBC; in serial_pxa_break_ctl()
334 serial_out(up, UART_LCR, up->lcr); in serial_pxa_break_ctl()
549 up->lcr = cval; /* Save LCR */ in serial_pxa_set_termios()
Dsunsu.c92 unsigned char lcr; member
611 up->lcr |= UART_LCR_SBC; in sunsu_break_ctl()
613 up->lcr &= ~UART_LCR_SBC; in sunsu_break_ctl()
614 serial_out(up, UART_LCR, up->lcr); in sunsu_break_ctl()
892 up->lcr = cval; /* Save LCR */ in sunsu_change_speed()
Dm32r_sio.c114 unsigned char lcr; member
785 up->lcr = cval; /* Save LCR */ in m32r_sio_set_termios()
/linux-4.4.14/drivers/media/i2c/cx25840/
Dcx25840-vbi.c150 u8 lcr[24]; in cx25840_s_sliced_fmt() local
153 lcr[x] = 0x00; in cx25840_s_sliced_fmt()
181 lcr[i] |= 1 << (4 * x); in cx25840_s_sliced_fmt()
184 lcr[i] |= 4 << (4 * x); in cx25840_s_sliced_fmt()
187 lcr[i] |= 6 << (4 * x); in cx25840_s_sliced_fmt()
190 lcr[i] |= 9 << (4 * x); in cx25840_s_sliced_fmt()
198 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-4.4.14/arch/frv/kernel/
Ddebug-stub.c204 u8 lcr; in console_set_baud() local
217 lcr = __UART0(LCR); in console_set_baud()
223 __UART0(LCR) = lcr; in console_set_baud()
235 u8 lcr; in console_get_baud() local
237 lcr = __UART0(LCR); in console_get_baud()
242 __UART0(LCR) = lcr; in console_get_baud()
Dsetup.c289 unsigned long lcr = __get_LCR(loop), lsbr = __get_LSBR(loop); in dump_memory_map()
293 lcr & 0x80000000 ? 'r' : '-', in dump_memory_map()
294 lcr & 0x40000000 ? 'w' : '-', in dump_memory_map()
295 lcr & 0x08000000 ? 'b' : '-', in dump_memory_map()
296 lcr & 0x04000000 ? 'B' : '-', in dump_memory_map()
297 lcr & 0x02000000 ? 'C' : '-', in dump_memory_map()
298 lcr & 0x01000000 ? 'D' : '-', in dump_memory_map()
299 lcr & 0x00800000 ? 'W' : '-', in dump_memory_map()
300 lcr & 0x00400000 ? 'R' : '-', in dump_memory_map()
301 (lcr & 0x00030000) == 0x00000000 ? '4' : in dump_memory_map()
[all …]
Dgdb-io.c84 u8 lcr; in gdbstub_set_baud() local
97 lcr = __UART(LCR); in gdbstub_set_baud()
103 __UART(LCR) = lcr; in gdbstub_set_baud()
Dasm-offsets.c50 DEF_PTREG(REG_LCR, lcr); in foo()
Dgdb-stub.c1661 ptr = mem2hex(&__debug_frame->lcr, ptr, 4, 0); in gdbstub()
1729 ptr = hex2mem(ptr, &__debug_frame->lcr, 4); in gdbstub()
1838 __debug_user_context->i.lcr = temp; in gdbstub()
Dhead.S508 movgs gr0,lcr
Dentry.S119 movsg lcr ,gr27
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-av-vbi.c195 u8 lcr[24]; in cx18_av_s_sliced_fmt() local
198 lcr[x] = 0x00; in cx18_av_s_sliced_fmt()
228 lcr[i] |= 1 << (4 * x); in cx18_av_s_sliced_fmt()
231 lcr[i] |= 4 << (4 * x); in cx18_av_s_sliced_fmt()
234 lcr[i] |= 6 << (4 * x); in cx18_av_s_sliced_fmt()
237 lcr[i] |= 9 << (4 * x); in cx18_av_s_sliced_fmt()
245 cx18_av_write(cx, i, lcr[6 + x]); in cx18_av_s_sliced_fmt()
248 cx18_av_write(cx, i, lcr[9 + x]); in cx18_av_s_sliced_fmt()
/linux-4.4.14/arch/x86/boot/
Dearly_serial_console.c99 unsigned char lcr, dll, dlh; in probe_baud() local
102 lcr = inb(port + LCR); in probe_baud()
103 outb(lcr | DLAB, port + LCR); in probe_baud()
106 outb(lcr, port + LCR); in probe_baud()
/linux-4.4.14/arch/mn10300/kernel/
Dgdb-io-serial.c85 u8 lcr; in gdbstub_io_set_baud() local
89 lcr = GDBPORT_SERIAL_LCR; in gdbstub_io_set_baud()
93 GDBPORT_SERIAL_LCR = lcr; in gdbstub_io_set_baud()
/linux-4.4.14/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-4.4.14/drivers/tty/serial/8250/
D8250_dw.c106 unsigned int lcr = p->serial_in(p, UART_LCR); in dw8250_serial_out() local
107 if ((value & ~UART_LCR_SPAR) == (lcr & ~UART_LCR_SPAR)) in dw8250_serial_out()
147 unsigned int lcr = p->serial_in(p, UART_LCR); in dw8250_serial_outq() local
148 if ((value & ~UART_LCR_SPAR) == (lcr & ~UART_LCR_SPAR)) in dw8250_serial_outq()
170 unsigned int lcr = p->serial_in(p, UART_LCR); in dw8250_serial_out32() local
171 if ((value & ~UART_LCR_SPAR) == (lcr & ~UART_LCR_SPAR)) in dw8250_serial_out32()
D8250_port.c570 unsigned char lcr = 0, efr = 0; in serial8250_set_sleep() local
587 lcr = serial_in(p, UART_LCR); in serial8250_set_sleep()
597 serial_out(p, UART_LCR, lcr); in serial8250_set_sleep()
1700 up->lcr |= UART_LCR_SBC; in serial8250_break_ctl()
1702 up->lcr &= ~UART_LCR_SBC; in serial8250_break_ctl()
1703 serial_port_out(port, UART_LCR, up->lcr); in serial8250_break_ctl()
2221 serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLAB); in serial8250_set_divisor()
2268 up->lcr = cval; /* Save computed LCR */ in serial8250_do_set_termios()
2365 serial_port_out(port, UART_LCR, up->lcr); /* reset DLAB */ in serial8250_do_set_termios()
2824 serial_port_out(port, UART_LCR, up->lcr); in serial8250_console_restore()
[all …]
D8250_mtk.c95 serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLAB); in mtk8250_set_termios()
99 serial_port_out(port, UART_LCR, up->lcr); in mtk8250_set_termios()
D8250_omap.c127 u8 lcr; in omap8250_set_mctrl() local
135 lcr = serial_in(up, UART_LCR); in omap8250_set_mctrl()
142 serial_out(up, UART_LCR, lcr); in omap8250_set_mctrl()
306 serial_out(up, UART_LCR, up->lcr); in omap8250_restore_regs()
407 up->lcr = cval; in omap_8250_set_termios()
673 if (up->lcr & UART_LCR_SBC) in omap_8250_shutdown()
674 serial_out(up, UART_LCR, up->lcr & ~UART_LCR_SBC); in omap_8250_shutdown()
/linux-4.4.14/arch/frv/include/uapi/asm/
Dregisters.h82 unsigned long lcr; /* Loop Count Register */ member
173 unsigned long lcr; /* Loop Count Register */ member
/linux-4.4.14/drivers/media/i2c/
Dsaa7115.c1056 u8 lcr[24]; in saa711x_set_lcr() local
1071 lcr[i] = 0xff; in saa711x_set_lcr()
1077 lcr[i] = 0xdd; in saa711x_set_lcr()
1080 lcr[i] = 0xdd; in saa711x_set_lcr()
1100 lcr[i] = 0; in saa711x_set_lcr()
1104 lcr[i] |= 0xf << (4 * x); in saa711x_set_lcr()
1107 lcr[i] |= 1 << (4 * x); in saa711x_set_lcr()
1110 lcr[i] |= 4 << (4 * x); in saa711x_set_lcr()
1113 lcr[i] |= 5 << (4 * x); in saa711x_set_lcr()
1116 lcr[i] |= 7 << (4 * x); in saa711x_set_lcr()
[all …]
/linux-4.4.14/drivers/bluetooth/
Dbtuart_cs.c348 int lcr; /* Line control reg */ in btuart_change_speed() local
379 lcr = UART_LCR_WLEN8; in btuart_change_speed()
381 outb(UART_LCR_DLAB | lcr, iobase + UART_LCR); /* Set DLAB */ in btuart_change_speed()
384 outb(lcr, iobase + UART_LCR); /* Set 8N1 */ in btuart_change_speed()
/linux-4.4.14/drivers/mmc/card/
Dsdio_uart.c84 unsigned char lcr; member
341 port->lcr = cval; in sdio_uart_change_speed()
703 port->lcr &= ~UART_LCR_SBC; in sdio_uart_shutdown()
704 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_shutdown()
930 port->lcr |= UART_LCR_SBC; in sdio_uart_break_ctl()
932 port->lcr &= ~UART_LCR_SBC; in sdio_uart_break_ctl()
933 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_break_ctl()
/linux-4.4.14/arch/sh/include/asm/
Dsmc37c93x.h74 volatile __u16 lcr; member
/linux-4.4.14/include/linux/
Dserial_8250.h97 unsigned char lcr; member
/linux-4.4.14/arch/blackfin/include/asm/
Dbfin_serial.h236 __BFP(lcr);
258 __BFP(lcr);
/linux-4.4.14/drivers/net/irda/
Dbfin_sir.c97 unsigned short val, lsr, lcr; in bfin_sir_set_speed() local
101 lcr = WLS(8); in bfin_sir_set_speed()
144 UART_PUT_LCR(port, lcr); in bfin_sir_set_speed()
Dali-ircc.c1036 int lcr; /* Line control reg */ in ali_ircc_sir_change_speed() local
1078 lcr = UART_LCR_WLEN8; in ali_ircc_sir_change_speed()
1080 outb(UART_LCR_DLAB | lcr, iobase+UART_LCR); /* Set DLAB */ in ali_ircc_sir_change_speed()
1083 outb(lcr, iobase+UART_LCR); /* Set 8N1 */ in ali_ircc_sir_change_speed()
Dsmsc-ircc2.c1136 int lcr; /* Line control reg */ in smsc_ircc_set_sir_speed() local
1163 lcr = UART_LCR_WLEN8; in smsc_ircc_set_sir_speed()
1165 outb(UART_LCR_DLAB | lcr, iobase + UART_LCR); /* Set DLAB */ in smsc_ircc_set_sir_speed()
1168 outb(lcr, iobase + UART_LCR); /* Set 8N1 */ in smsc_ircc_set_sir_speed()
/linux-4.4.14/drivers/net/ethernet/sgi/
Dioc3-eth.c1161 unsigned char lcr; in ioc3_8250_register() local
1163 lcr = uart->iu_lcr; in ioc3_8250_register()
1164 uart->iu_lcr = lcr | UART_LCR_DLAB; in ioc3_8250_register()
1166 uart->iu_lcr = lcr; in ioc3_8250_register()
/linux-4.4.14/include/drm/
Ddrm_dp_mst_helper.h139 u8 lcr; member
/linux-4.4.14/drivers/gpu/drm/
Ddrm_dp_mst_topology.c148 buf[idx++] = ((hdr->lct & 0xf) << 4) | (hdr->lcr & 0xf); in drm_dp_encode_sideband_msg_hdr()
182 hdr->lcr = (buf[0] & 0xf); in drm_dp_decode_sideband_msg_hdr()
1418 hdr->lcr = mstb->lct - 1; in set_hdr_from_dst_qlock()
/linux-4.4.14/arch/blackfin/kernel/
Ddebug-mmrs.c550 __UART(LCR, lcr); in bfin_debug_mmrs_uart()
566 __UART(LCR, lcr); in bfin_debug_mmrs_uart()