Home
last modified time | relevance | path

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

12

/linux/drivers/video/fbdev/
A Dtmiofb.c197 void __iomem *lcr; member
250 tmio_iowrite16(0, par->lcr + LCR_GM); in tmiofb_hw_stop()
294 tmio_iowrite16(1, par->lcr + LCR_CFC); in tmiofb_hw_init()
295 tmio_iowrite16(1, par->lcr + LCR_BBIE); in tmiofb_hw_init()
296 tmio_iowrite16(0, par->lcr + LCR_CFWS); in tmiofb_hw_init()
312 tmio_iowrite16(0, par->lcr + LCR_GM); in tmiofb_hw_mode()
719 info->fix.mmio_start = lcr->start; in tmiofb_probe()
732 if (!par->lcr) { in tmiofb_probe()
792 iounmap(par->lcr); in tmiofb_probe()
819 iounmap(par->lcr); in tmiofb_remove()
[all …]
/linux/drivers/tty/serial/jsm/
A Djsm_cls.c678 u8 lcr = 0; in cls_param() local
726 lcr |= UART_LCR_EPAR; in cls_param()
734 lcr |= UART_LCR_SPAR; in cls_param()
738 lcr |= UART_LCR_STOP; in cls_param()
742 lcr |= UART_LCR_WLEN5; in cls_param()
745 lcr |= UART_LCR_WLEN6; in cls_param()
748 lcr |= UART_LCR_WLEN7; in cls_param()
752 lcr |= UART_LCR_WLEN8; in cls_param()
765 writeb(lcr, &ch->ch_cls_uart->lcr); in cls_param()
768 if (uart_lcr != lcr) in cls_param()
[all …]
A Djsm_neo.c927 u8 lcr = 0; in neo_param() local
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 |= UART_LCR_WLEN7; in neo_param()
1023 lcr |= UART_LCR_WLEN8; in neo_param()
1036 writeb(lcr, &ch->ch_neo_uart->lcr); in neo_param()
1039 if (uart_lcr != lcr) in neo_param()
[all …]
A Djsm.h263 u8 lcr; /* WR LCR - Line Control Reg */ member
318 u8 lcr; /* WR LCR - Line Control Reg */ member
/linux/drivers/usb/serial/
A Dark3116.c200 __u8 lcr, hcr, eval; in ark3116_set_termios() local
205 lcr = UART_LCR_WLEN5; in ark3116_set_termios()
208 lcr = UART_LCR_WLEN6; in ark3116_set_termios()
211 lcr = UART_LCR_WLEN7; in ark3116_set_termios()
215 lcr = UART_LCR_WLEN8; in ark3116_set_termios()
219 lcr |= UART_LCR_STOP; in ark3116_set_termios()
223 lcr |= UART_LCR_EPAR; in ark3116_set_termios()
257 lcr |= (priv->lcr & UART_LCR_SBC); in ark3116_set_termios()
271 priv->lcr = lcr; /* need to write lcr anyway */ in ark3116_set_termios()
292 } else if (priv->lcr != lcr) { in ark3116_set_termios()
[all …]
A Dch341.c99 u8 lcr; member
478 u8 lcr; in ch341_set_termios() local
491 lcr |= CH341_LCR_CS5; in ch341_set_termios()
494 lcr |= CH341_LCR_CS6; in ch341_set_termios()
497 lcr |= CH341_LCR_CS7; in ch341_set_termios()
500 lcr |= CH341_LCR_CS8; in ch341_set_termios()
505 lcr |= CH341_LCR_ENABLE_PAR; in ch341_set_termios()
507 lcr |= CH341_LCR_PAR_EVEN; in ch341_set_termios()
519 priv->baud_rate, lcr); in ch341_set_termios()
524 priv->lcr = lcr; in ch341_set_termios()
[all …]
A Dmct_u232.c249 unsigned char lcr) in mct_u232_set_line_ctrl() argument
258 buf[0] = lcr; in mct_u232_set_line_ctrl()
265 dev_err(&port->dev, "Set LINE CTRL 0x%x failed (error = %d)\n", lcr, rc); in mct_u232_set_line_ctrl()
266 dev_dbg(&port->dev, "set_line_ctrl: 0x%x\n", lcr); in mct_u232_set_line_ctrl()
683 unsigned char lcr; in mct_u232_break_ctl() local
687 lcr = priv->last_lcr; in mct_u232_break_ctl()
690 lcr |= MCT_U232_SET_BREAK; in mct_u232_break_ctl()
693 mct_u232_set_line_ctrl(port, lcr); in mct_u232_break_ctl()
A Dkeyspan.c2085 msg.lcr |= USA_DATABITS_5; in keyspan_usa26_send_setup()
2088 msg.lcr |= USA_DATABITS_6; in keyspan_usa26_send_setup()
2091 msg.lcr |= USA_DATABITS_7; in keyspan_usa26_send_setup()
2094 msg.lcr |= USA_DATABITS_8; in keyspan_usa26_send_setup()
2355 msg.lcr |= USA_DATABITS_5; in keyspan_usa49_send_setup()
2358 msg.lcr |= USA_DATABITS_6; in keyspan_usa49_send_setup()
2361 msg.lcr |= USA_DATABITS_7; in keyspan_usa49_send_setup()
2364 msg.lcr |= USA_DATABITS_8; in keyspan_usa49_send_setup()
2531 msg.lcr |= USA_DATABITS_5; in keyspan_usa90_send_setup()
2534 msg.lcr |= USA_DATABITS_6; in keyspan_usa90_send_setup()
[all …]
/linux/drivers/media/i2c/cx25840/
A Dcx25840-vbi.c144 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/media/pci/cx18/
A Dcx18-av-vbi.c181 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()
/linux/drivers/tty/serial/
A Dvt8500_serial.c285 lcr |= VT8500_RTS; in vt8500_set_mctrl()
287 lcr &= ~VT8500_RTS; in vt8500_set_mctrl()
363 unsigned int baud, lcr; in vt8500_set_termios() local
378 lcr |= VT8500_PARENB; in vt8500_set_termios()
381 lcr |= VT8500_PARODD; in vt8500_set_termios()
385 lcr &= ~VT8500_CS8; in vt8500_set_termios()
391 lcr |= VT8500_CS8; in vt8500_set_termios()
398 lcr &= ~VT8500_CSTOPB; in vt8500_set_termios()
400 lcr |= VT8500_CSTOPB; in vt8500_set_termios()
402 lcr &= ~VT8500_SWRTSCTS; in vt8500_set_termios()
[all …]
A Dvr41xx_siu.c283 uint8_t lcr; in siu_break_ctl() local
289 lcr |= UART_LCR_SBC; in siu_break_ctl()
291 lcr &= ~UART_LCR_SBC; in siu_break_ctl()
473 uint8_t lcr; in siu_shutdown() local
485 lcr &= ~UART_LCR_SBC; in siu_shutdown()
502 uint8_t lcr, fcr, ier; in siu_set_termios() local
509 lcr = UART_LCR_WLEN5; in siu_set_termios()
512 lcr = UART_LCR_WLEN6; in siu_set_termios()
515 lcr = UART_LCR_WLEN7; in siu_set_termios()
518 lcr = UART_LCR_WLEN8; in siu_set_termios()
[all …]
A Dserial-tegra.c255 unsigned long lcr; in tegra_uart_break_ctl() local
257 lcr = tup->lcr_shadow; in tegra_uart_break_ctl()
259 lcr |= UART_LCR_SBC; in tegra_uart_break_ctl()
261 lcr &= ~UART_LCR_SBC; in tegra_uart_break_ctl()
263 tup->lcr_shadow = lcr; in tegra_uart_break_ctl()
385 unsigned long lcr; in tegra_set_baudrate() local
416 lcr = tup->lcr_shadow; in tegra_set_baudrate()
417 lcr |= UART_LCR_DLAB; in tegra_set_baudrate()
423 lcr &= ~UART_LCR_DLAB; in tegra_set_baudrate()
1279 unsigned int lcr; in tegra_uart_set_termios() local
[all …]
A Dmen_z135_uart.c657 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()
691 lcr |= MEN_Z135_PAR_DIS << MEN_Z135_PEN_SHIFT; in men_z135_set_termios()
[all …]
A Dsc16is7xx.c494 u8 lcr; in sc16is7xx_set_baud() local
518 lcr = sc16is7xx_port_read(port, SC16IS7XX_LCR_REG); in sc16is7xx_set_baud()
864 unsigned int lcr, flow = 0; in sc16is7xx_set_termios() local
873 lcr = SC16IS7XX_LCR_WORD_LEN_5; in sc16is7xx_set_termios()
876 lcr = SC16IS7XX_LCR_WORD_LEN_6; in sc16is7xx_set_termios()
879 lcr = SC16IS7XX_LCR_WORD_LEN_7; in sc16is7xx_set_termios()
882 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
885 lcr = SC16IS7XX_LCR_WORD_LEN_8; in sc16is7xx_set_termios()
893 lcr |= SC16IS7XX_LCR_PARITY_BIT; in sc16is7xx_set_termios()
895 lcr |= SC16IS7XX_LCR_EVENPARITY_BIT; in sc16is7xx_set_termios()
[all …]
A Dsprd_serial.c779 unsigned int lcr = 0, fc; in sprd_set_termios() local
790 lcr |= SPRD_LCR_DATA_LEN5; in sprd_set_termios()
793 lcr |= SPRD_LCR_DATA_LEN6; in sprd_set_termios()
796 lcr |= SPRD_LCR_DATA_LEN7; in sprd_set_termios()
800 lcr |= SPRD_LCR_DATA_LEN8; in sprd_set_termios()
807 lcr |= SPRD_LCR_STOP_2BIT; in sprd_set_termios()
809 lcr |= SPRD_LCR_STOP_1BIT; in sprd_set_termios()
812 lcr &= ~SPRD_LCR_PARITY; in sprd_set_termios()
815 lcr |= SPRD_LCR_PARITY_EN; in sprd_set_termios()
817 lcr |= SPRD_LCR_ODD_PAR; in sprd_set_termios()
[all …]
A Dpch_uart.c304 unsigned char lcr; in port_show_regs() local
331 lcr = ioread8(priv->membase + UART_LCR); in port_show_regs()
337 iowrite8(lcr, priv->membase + UART_LCR); in port_show_regs()
435 unsigned int dll, dlm, lcr; in pch_uart_hal_set_line() local
462 lcr = parity; in pch_uart_hal_set_line()
463 lcr |= bits; in pch_uart_hal_set_line()
464 lcr |= stb; in pch_uart_hal_set_line()
467 __func__, baud, div, lcr, jiffies); in pch_uart_hal_set_line()
604 unsigned int lcr; in pch_uart_hal_set_break() local
608 lcr |= PCH_UART_LCR_SB; in pch_uart_hal_set_break()
[all …]
A Dmax310x.c901 unsigned int lcr = 0, flow = 0; in max310x_set_termios() local
912 lcr = MAX310X_LCR_LENGTH0_BIT; in max310x_set_termios()
915 lcr = MAX310X_LCR_LENGTH1_BIT; in max310x_set_termios()
919 lcr = MAX310X_LCR_LENGTH1_BIT | MAX310X_LCR_LENGTH0_BIT; in max310x_set_termios()
925 lcr |= MAX310X_LCR_PARITY_BIT; in max310x_set_termios()
927 lcr |= MAX310X_LCR_EVENPARITY_BIT; in max310x_set_termios()
932 lcr |= MAX310X_LCR_STOPLEN_BIT; /* 2 stops */ in max310x_set_termios()
935 max310x_port_write(port, MAX310X_LCR_REG, lcr); in max310x_set_termios()
A Domap-serial.c131 unsigned char lcr; member
640 unsigned char mcr = 0, old_mcr, lcr; in serial_omap_set_mctrl() local
661 lcr = serial_in(up, UART_LCR); in serial_omap_set_mctrl()
668 serial_out(up, UART_LCR, lcr); in serial_omap_set_mctrl()
679 up->lcr |= UART_LCR_SBC; in serial_omap_break_ctl()
681 up->lcr &= ~UART_LCR_SBC; in serial_omap_break_ctl()
682 serial_out(up, UART_LCR, up->lcr); in serial_omap_break_ctl()
902 up->lcr = cval; in serial_omap_set_termios()
1053 serial_out(up, UART_LCR, up->lcr); in serial_omap_set_termios()
1776 serial_out(up, UART_LCR, up->lcr); in serial_omap_restore_context()
/linux/arch/x86/boot/
A Dearly_serial_console.c104 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/8250/
A D8250_mtk.c155 int lcr = serial_in(up, UART_LCR); in mtk8250_dma_enable() local
173 serial_out(up, UART_LCR, lcr); in mtk8250_dma_enable()
232 int lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() local
236 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
237 lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl()
246 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
262 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
279 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
366 serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLAB); in mtk8250_set_termios()
370 serial_port_out(port, UART_LCR, up->lcr); in mtk8250_set_termios()
A D8250_port.c753 unsigned char lcr = 0, efr = 0; in serial8250_set_sleep() local
759 lcr = serial_in(p, UART_LCR); in serial8250_set_sleep()
769 serial_out(p, UART_LCR, lcr); in serial8250_set_sleep()
2051 up->lcr |= UART_LCR_SBC; in serial8250_break_ctl()
2053 up->lcr &= ~UART_LCR_SBC; in serial8250_break_ctl()
2054 serial_port_out(port, UART_LCR, up->lcr); in serial8250_break_ctl()
2728 serial_port_out(port, UART_LCR, up->lcr); in serial8250_update_uartclk()
3324 serial_port_out(port, UART_LCR, up->lcr); in serial8250_console_restore()
3407 unsigned char lcr, dll, dlm; in probe_baud() local
3410 lcr = serial_port_in(port, UART_LCR); in probe_baud()
[all …]
/linux/drivers/clk/ingenic/
A Djz4780-cgu.c230 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/
A Dsaa7115.c1052 u8 lcr[24]; in saa711x_set_lcr() local
1067 lcr[i] = 0xff; in saa711x_set_lcr()
1073 lcr[i] = 0xdd; in saa711x_set_lcr()
1076 lcr[i] = 0xdd; in saa711x_set_lcr()
1096 lcr[i] = 0; in saa711x_set_lcr()
1100 lcr[i] |= 0xf << (4 * x); in saa711x_set_lcr()
1103 lcr[i] |= 1 << (4 * x); in saa711x_set_lcr()
1106 lcr[i] |= 4 << (4 * x); in saa711x_set_lcr()
1109 lcr[i] |= 5 << (4 * x); in saa711x_set_lcr()
1112 lcr[i] |= 7 << (4 * x); in saa711x_set_lcr()
[all …]
/linux/drivers/mmc/core/
A Dsdio_uart.c80 unsigned char lcr; member
335 port->lcr = cval; in sdio_uart_change_speed()
697 port->lcr &= ~UART_LCR_SBC; in sdio_uart_shutdown()
698 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_shutdown()
924 port->lcr |= UART_LCR_SBC; in sdio_uart_break_ctl()
926 port->lcr &= ~UART_LCR_SBC; in sdio_uart_break_ctl()
927 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_break_ctl()

Completed in 64 milliseconds

12