Home
last modified time | relevance | path

Searched refs:lcr (Results 1 – 25 of 50) 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/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()
939 u8 lcr = 0; in neo_param() local
1006 lcr |= UART_LCR_PARITY; in neo_param()
1009 lcr |= UART_LCR_EPAR; in neo_param()
1017 lcr |= UART_LCR_SPAR; in neo_param()
1021 lcr |= UART_LCR_STOP; in neo_param()
1025 lcr |= UART_LCR_WLEN5; in neo_param()
1028 lcr |= UART_LCR_WLEN6; in neo_param()
1031 lcr |= UART_LCR_WLEN7; in neo_param()
[all …]
/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 …]
/drivers/usb/serial/
Dark3116.c70 __u32 lcr; /* line control register value */ member
188 priv->lcr = UART_LCR_WLEN8; in ark3116_port_probe()
234 __u8 lcr, hcr, eval; in ark3116_set_termios() local
239 lcr = UART_LCR_WLEN5; in ark3116_set_termios()
242 lcr = UART_LCR_WLEN6; in ark3116_set_termios()
245 lcr = UART_LCR_WLEN7; in ark3116_set_termios()
249 lcr = UART_LCR_WLEN8; in ark3116_set_termios()
253 lcr |= UART_LCR_STOP; in ark3116_set_termios()
255 lcr |= UART_LCR_PARITY; in ark3116_set_termios()
257 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.c1609 msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; in keyspan_usa26_send_setup()
1612 msg.lcr |= USA_DATABITS_5; in keyspan_usa26_send_setup()
1615 msg.lcr |= USA_DATABITS_6; in keyspan_usa26_send_setup()
1618 msg.lcr |= USA_DATABITS_7; in keyspan_usa26_send_setup()
1621 msg.lcr |= USA_DATABITS_8; in keyspan_usa26_send_setup()
1626 msg.lcr |= (p_priv->cflag & PARODD) ? in keyspan_usa26_send_setup()
1879 msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; in keyspan_usa49_send_setup()
1882 msg.lcr |= USA_DATABITS_5; in keyspan_usa49_send_setup()
1885 msg.lcr |= USA_DATABITS_6; in keyspan_usa49_send_setup()
1888 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.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.c377 unsigned int lcr = 0, fc; in sprd_set_termios() local
388 lcr |= SPRD_LCR_DATA_LEN5; in sprd_set_termios()
391 lcr |= SPRD_LCR_DATA_LEN6; in sprd_set_termios()
394 lcr |= SPRD_LCR_DATA_LEN7; in sprd_set_termios()
398 lcr |= SPRD_LCR_DATA_LEN8; in sprd_set_termios()
403 lcr &= ~(SPRD_LCR_STOP_1BIT | SPRD_LCR_STOP_2BIT); in sprd_set_termios()
405 lcr |= SPRD_LCR_STOP_2BIT; in sprd_set_termios()
407 lcr |= SPRD_LCR_STOP_1BIT; in sprd_set_termios()
410 lcr &= ~SPRD_LCR_PARITY; in sprd_set_termios()
413 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.c491 u8 lcr; in sc16is7xx_set_baud() local
515 lcr = sc16is7xx_port_read(port, SC16IS7XX_LCR_REG); in sc16is7xx_set_baud()
528 sc16is7xx_port_write(port, SC16IS7XX_LCR_REG, lcr); in sc16is7xx_set_baud()
547 sc16is7xx_port_write(port, SC16IS7XX_LCR_REG, lcr); in sc16is7xx_set_baud()
860 unsigned int lcr, flow = 0; in sc16is7xx_set_termios() local
869 lcr = SC16IS7XX_LCR_WORD_LEN_5; in sc16is7xx_set_termios()
872 lcr = SC16IS7XX_LCR_WORD_LEN_6; in sc16is7xx_set_termios()
875 lcr = SC16IS7XX_LCR_WORD_LEN_7; in sc16is7xx_set_termios()
878 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
881 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.c328 unsigned char lcr; in port_show_regs() local
355 lcr = ioread8(priv->membase + UART_LCR); in port_show_regs()
361 iowrite8(lcr, priv->membase + UART_LCR); in port_show_regs()
459 unsigned int dll, dlm, lcr; in pch_uart_hal_set_line() local
486 lcr = parity; in pch_uart_hal_set_line()
487 lcr |= bits; in pch_uart_hal_set_line()
488 lcr |= stb; in pch_uart_hal_set_line()
491 __func__, baud, div, lcr, jiffies); in pch_uart_hal_set_line()
495 iowrite8(lcr, priv->membase + UART_LCR); in pch_uart_hal_set_line()
632 unsigned int lcr; in pch_uart_hal_set_break() local
[all …]
Dmax310x.c807 unsigned int lcr, flow = 0; in max310x_set_termios() local
816 lcr = MAX310X_LCR_WORD_LEN_5; in max310x_set_termios()
819 lcr = MAX310X_LCR_WORD_LEN_6; in max310x_set_termios()
822 lcr = MAX310X_LCR_WORD_LEN_7; in max310x_set_termios()
826 lcr = MAX310X_LCR_WORD_LEN_8; in max310x_set_termios()
832 lcr |= MAX310X_LCR_PARITY_BIT; in max310x_set_termios()
834 lcr |= MAX310X_LCR_EVENPARITY_BIT; in max310x_set_termios()
839 lcr |= MAX310X_LCR_STOPLEN_BIT; /* 2 stops */ in max310x_set_termios()
842 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/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()
/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()
/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 …]

12