Home
last modified time | relevance | path

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

12

/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 …]
/drivers/s390/crypto/
Dzcrypt_pcica.c159 struct type4_lcr *lcr = ap_msg->message; in ICACRT_msg_to_type4CRT_msg() local
160 memset(lcr, 0, sizeof(*lcr)); in ICACRT_msg_to_type4CRT_msg()
161 ap_msg->length = sizeof(*lcr); in ICACRT_msg_to_type4CRT_msg()
162 lcr->header.msg_type_code = TYPE4_TYPE_CODE; in ICACRT_msg_to_type4CRT_msg()
163 lcr->header.request_code = TYPE4_REQU_CODE; in ICACRT_msg_to_type4CRT_msg()
164 lcr->header.msg_fmt = TYPE4_LCR_FMT; in ICACRT_msg_to_type4CRT_msg()
165 lcr->header.msg_len = sizeof(*lcr); in ICACRT_msg_to_type4CRT_msg()
166 p = lcr->p + sizeof(lcr->p) - long_len; in ICACRT_msg_to_type4CRT_msg()
167 q = lcr->q + sizeof(lcr->q) - short_len; in ICACRT_msg_to_type4CRT_msg()
168 dp = lcr->dp + sizeof(lcr->dp) - long_len; in ICACRT_msg_to_type4CRT_msg()
[all …]
/drivers/staging/dgnc/
Ddgnc_cls.c98 unsigned char lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
107 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
118 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
142 unsigned char lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control()
151 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control()
168 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control()
190 unsigned char lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control()
199 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control()
210 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_no_output_flow_control()
236 unsigned char lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_rts_flow_control()
[all …]
Ddgnc_neo.c385 unsigned char temp = readb(&ch->ch_neo_uart->lcr); in neo_clear_break()
387 writeb((temp & ~UART_LCR_SBC), &ch->ch_neo_uart->lcr); in neo_clear_break()
612 unsigned char lcr = 0; in neo_param() local
739 lcr |= UART_LCR_PARITY; in neo_param()
742 lcr |= UART_LCR_EPAR; in neo_param()
750 lcr |= UART_LCR_SPAR; in neo_param()
754 lcr |= UART_LCR_STOP; in neo_param()
758 lcr |= UART_LCR_WLEN5; in neo_param()
761 lcr |= UART_LCR_WLEN6; in neo_param()
764 lcr |= UART_LCR_WLEN7; in neo_param()
[all …]
/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()
689 unsigned char lcr; in mct_u232_break_ctl() local
693 lcr = priv->last_lcr; in mct_u232_break_ctl()
696 lcr |= MCT_U232_SET_BREAK; in mct_u232_break_ctl()
699 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 …]
/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.c226 unsigned long lcr; in tegra_uart_break_ctl() local
228 lcr = tup->lcr_shadow; in tegra_uart_break_ctl()
230 lcr |= UART_LCR_SBC; in tegra_uart_break_ctl()
232 lcr &= ~UART_LCR_SBC; in tegra_uart_break_ctl()
233 tegra_uart_write(tup, lcr, UART_LCR); in tegra_uart_break_ctl()
234 tup->lcr_shadow = lcr; in tegra_uart_break_ctl()
274 unsigned long lcr; in tegra_set_baudrate() local
294 lcr = tup->lcr_shadow; in tegra_set_baudrate()
295 lcr |= UART_LCR_DLAB; in tegra_set_baudrate()
296 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 …]
Dmen_z135_uart.c610 u8 lcr; in men_z135_set_termios() local
613 lcr = LCR(conf_reg); in men_z135_set_termios()
618 lcr |= MEN_Z135_WL5; in men_z135_set_termios()
621 lcr |= MEN_Z135_WL6; in men_z135_set_termios()
624 lcr |= MEN_Z135_WL7; in men_z135_set_termios()
627 lcr |= MEN_Z135_WL8; in men_z135_set_termios()
633 lcr |= MEN_Z135_NSTB2 << MEN_Z135_STB_SHIFT; in men_z135_set_termios()
637 lcr |= MEN_Z135_PAR_ENA << MEN_Z135_PEN_SHIFT; in men_z135_set_termios()
640 lcr |= MEN_Z135_PTY_ODD << MEN_Z135_PTY_SHIFT; in men_z135_set_termios()
642 lcr |= MEN_Z135_PTY_EVN << MEN_Z135_PTY_SHIFT; in men_z135_set_termios()
[all …]
Dbfin_uart.c581 u32 lcr = UART_GET_LCR(uart); in bfin_serial_break_ctl() local
583 lcr |= SB; in bfin_serial_break_ctl()
585 lcr &= ~SB; in bfin_serial_break_ctl()
586 UART_PUT_LCR(uart, lcr); in bfin_serial_break_ctl()
786 unsigned int ier, lcr = 0; in bfin_serial_set_termios() local
798 lcr = WLS(8); in bfin_serial_set_termios()
801 lcr = WLS(7); in bfin_serial_set_termios()
804 lcr = WLS(6); in bfin_serial_set_termios()
807 lcr = WLS(5); in bfin_serial_set_termios()
822 lcr |= STB; in bfin_serial_set_termios()
[all …]
Dsc16is7xx.c426 u8 lcr; in sc16is7xx_set_baud() local
435 lcr = sc16is7xx_port_read(port, SC16IS7XX_LCR_REG); in sc16is7xx_set_baud()
448 sc16is7xx_port_write(port, SC16IS7XX_LCR_REG, lcr); in sc16is7xx_set_baud()
465 sc16is7xx_port_write(port, SC16IS7XX_LCR_REG, lcr); in sc16is7xx_set_baud()
747 unsigned int lcr, flow = 0; in sc16is7xx_set_termios() local
756 lcr = SC16IS7XX_LCR_WORD_LEN_5; in sc16is7xx_set_termios()
759 lcr = SC16IS7XX_LCR_WORD_LEN_6; in sc16is7xx_set_termios()
762 lcr = SC16IS7XX_LCR_WORD_LEN_7; in sc16is7xx_set_termios()
765 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
768 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
[all …]
Dpnx8xxx_uart.c352 unsigned int lcr; in pnx8xxx_break_ctl() local
355 lcr = serial_in(sport, PNX8XXX_LCR); in pnx8xxx_break_ctl()
357 lcr |= PNX8XXX_UART_LCR_TXBREAK; in pnx8xxx_break_ctl()
359 lcr &= ~PNX8XXX_UART_LCR_TXBREAK; in pnx8xxx_break_ctl()
360 serial_out(sport, PNX8XXX_LCR, lcr); in pnx8xxx_break_ctl()
401 int lcr; in pnx8xxx_shutdown() local
416 lcr = serial_in(sport, PNX8XXX_LCR); in pnx8xxx_shutdown()
417 lcr &= ~PNX8XXX_UART_LCR_TXBREAK; in pnx8xxx_shutdown()
418 lcr |= PNX8XXX_UART_LCR_TX_RST | PNX8XXX_UART_LCR_RX_RST; in pnx8xxx_shutdown()
419 serial_out(sport, PNX8XXX_LCR, lcr); in pnx8xxx_shutdown()
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.c796 unsigned int lcr, flow = 0; in max310x_set_termios() local
805 lcr = MAX310X_LCR_WORD_LEN_5; in max310x_set_termios()
808 lcr = MAX310X_LCR_WORD_LEN_6; in max310x_set_termios()
811 lcr = MAX310X_LCR_WORD_LEN_7; in max310x_set_termios()
815 lcr = MAX310X_LCR_WORD_LEN_8; in max310x_set_termios()
821 lcr |= MAX310X_LCR_PARITY_BIT; in max310x_set_termios()
823 lcr |= MAX310X_LCR_EVENPARITY_BIT; in max310x_set_termios()
828 lcr |= MAX310X_LCR_STOPLEN_BIT; /* 2 stops */ in max310x_set_termios()
831 max310x_port_write(port, MAX310X_LCR_REG, lcr); in max310x_set_termios()
/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()
/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()
/drivers/tty/serial/jsm/
Djsm_neo.c705 u8 temp = readb(&ch->ch_neo_uart->lcr); in neo_clear_break()
706 writeb((temp & ~UART_LCR_SBC), &ch->ch_neo_uart->lcr); in neo_clear_break()
942 u8 lcr = 0; in neo_param() local
1009 lcr |= UART_LCR_PARITY; in neo_param()
1012 lcr |= UART_LCR_EPAR; in neo_param()
1020 lcr |= UART_LCR_SPAR; in neo_param()
1024 lcr |= UART_LCR_STOP; in neo_param()
1028 lcr |= UART_LCR_WLEN5; in neo_param()
1031 lcr |= UART_LCR_WLEN6; in neo_param()
1034 lcr |= UART_LCR_WLEN7; in neo_param()
[all …]
/drivers/tty/serial/8250/
D8250_early.c109 unsigned char lcr, dll, dlm; in probe_baud() local
112 lcr = serial8250_early_in(port, UART_LCR); in probe_baud()
113 serial8250_early_out(port, UART_LCR, lcr | UART_LCR_DLAB); in probe_baud()
116 serial8250_early_out(port, UART_LCR, lcr); in probe_baud()
/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 …]
/drivers/bluetooth/
Dbtuart_cs.c349 int lcr; /* Line control reg */ in btuart_change_speed() local
380 lcr = UART_LCR_WLEN8; in btuart_change_speed()
382 outb(UART_LCR_DLAB | lcr, iobase + UART_LCR); /* Set DLAB */ in btuart_change_speed()
385 outb(lcr, iobase + UART_LCR); /* Set 8N1 */ in btuart_change_speed()
/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()

12