Home
last modified time | relevance | path

Searched refs:cval (Results 1 – 23 of 23) sorted by relevance

/drivers/staging/speakup/
Dserialio.c29 unsigned int cval = 0; in spk_serial_init() local
42 cval = cflag & (CSIZE | CSTOPB); in spk_serial_init()
44 cval >>= 8; in spk_serial_init()
46 cval >>= 4; in spk_serial_init()
49 cval |= UART_LCR_PARITY; in spk_serial_init()
51 cval |= UART_LCR_EPAR; in spk_serial_init()
67 outb(cval | UART_LCR_DLAB, ser->port + UART_LCR); /* set DLAB */ in spk_serial_init()
70 outb(cval, ser->port + UART_LCR); /* reset DLAB */ in spk_serial_init()
/drivers/video/fbdev/
Datafb_iplan2p2.c198 u32 cval[4]; in atafb_iplan2p2_fillrect() local
204 expand8_col2mask(color, cval); in atafb_iplan2p2_fillrect()
207 fill8_col(dest8, cval); in atafb_iplan2p2_fillrect()
214 expand16_col2mask(color, cval); in atafb_iplan2p2_fillrect()
220 d = fill16_col(d, rows, cval); in atafb_iplan2p2_fillrect()
230 expand8_col2mask(color, cval); in atafb_iplan2p2_fillrect()
233 fill8_col(dest8, cval); in atafb_iplan2p2_fillrect()
Datafb_iplan2p4.c212 u32 cval[4]; in atafb_iplan2p4_fillrect() local
218 expand8_col2mask(color, cval); in atafb_iplan2p4_fillrect()
221 fill8_col(dest8, cval); in atafb_iplan2p4_fillrect()
228 expand16_col2mask(color, cval); in atafb_iplan2p4_fillrect()
234 d = fill16_col(d, rows, cval); in atafb_iplan2p4_fillrect()
244 expand8_col2mask(color, cval); in atafb_iplan2p4_fillrect()
247 fill8_col(dest8, cval); in atafb_iplan2p4_fillrect()
Datafb_iplan2p8.c247 u32 cval[4]; in atafb_iplan2p8_fillrect() local
253 expand8_col2mask(color, cval); in atafb_iplan2p8_fillrect()
256 fill8_col(dest8, cval); in atafb_iplan2p8_fillrect()
263 expand16_col2mask(color, cval); in atafb_iplan2p8_fillrect()
269 d = fill16_col(d, rows, cval); in atafb_iplan2p8_fillrect()
279 expand8_col2mask(color, cval); in atafb_iplan2p8_fillrect()
282 fill8_col(dest8, cval); in atafb_iplan2p8_fillrect()
/drivers/tty/serial/
Dpxa.c437 unsigned char cval, fcr = 0; in serial_pxa_set_termios() local
444 cval = UART_LCR_WLEN5; in serial_pxa_set_termios()
447 cval = UART_LCR_WLEN6; in serial_pxa_set_termios()
450 cval = UART_LCR_WLEN7; in serial_pxa_set_termios()
454 cval = UART_LCR_WLEN8; in serial_pxa_set_termios()
459 cval |= UART_LCR_STOP; in serial_pxa_set_termios()
461 cval |= UART_LCR_PARITY; in serial_pxa_set_termios()
463 cval |= UART_LCR_EPAR; in serial_pxa_set_termios()
537 serial_out(up, UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in serial_pxa_set_termios()
548 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_pxa_set_termios()
[all …]
Dxilinx_uartps.c631 unsigned int cval = 0; in cdns_uart_set_termios() local
707 cval |= CDNS_UART_MR_CHARLEN_6_BIT; in cdns_uart_set_termios()
710 cval |= CDNS_UART_MR_CHARLEN_7_BIT; in cdns_uart_set_termios()
714 cval |= CDNS_UART_MR_CHARLEN_8_BIT; in cdns_uart_set_termios()
722 cval |= CDNS_UART_MR_STOPMODE_2_BIT; /* 2 STOP bits */ in cdns_uart_set_termios()
724 cval |= CDNS_UART_MR_STOPMODE_1_BIT; /* 1 STOP bit */ in cdns_uart_set_termios()
730 cval |= CDNS_UART_MR_PARITY_MARK; in cdns_uart_set_termios()
732 cval |= CDNS_UART_MR_PARITY_SPACE; in cdns_uart_set_termios()
735 cval |= CDNS_UART_MR_PARITY_ODD; in cdns_uart_set_termios()
737 cval |= CDNS_UART_MR_PARITY_EVEN; in cdns_uart_set_termios()
[all …]
Dserial_txx9.c633 unsigned int cval, fcr = 0; in serial_txx9_set_termios() local
643 cval = sio_in(up, TXX9_SILCR); in serial_txx9_set_termios()
645 cval &= ~TXX9_SILCR_UMODE_MASK; in serial_txx9_set_termios()
648 cval |= TXX9_SILCR_UMODE_7BIT; in serial_txx9_set_termios()
654 cval |= TXX9_SILCR_UMODE_8BIT; in serial_txx9_set_termios()
658 cval &= ~TXX9_SILCR_USBL_MASK; in serial_txx9_set_termios()
660 cval |= TXX9_SILCR_USBL_2BIT; in serial_txx9_set_termios()
662 cval |= TXX9_SILCR_USBL_1BIT; in serial_txx9_set_termios()
663 cval &= ~(TXX9_SILCR_UPEN | TXX9_SILCR_UEPS); in serial_txx9_set_termios()
665 cval |= TXX9_SILCR_UPEN; in serial_txx9_set_termios()
[all …]
Dm32r_sio.c694 unsigned char cval = 0; in m32r_sio_set_termios() local
700 cval = UART_LCR_WLEN5; in m32r_sio_set_termios()
703 cval = UART_LCR_WLEN6; in m32r_sio_set_termios()
706 cval = UART_LCR_WLEN7; in m32r_sio_set_termios()
710 cval = UART_LCR_WLEN8; in m32r_sio_set_termios()
715 cval |= UART_LCR_STOP; in m32r_sio_set_termios()
717 cval |= UART_LCR_PARITY; in m32r_sio_set_termios()
719 cval |= UART_LCR_EPAR; in m32r_sio_set_termios()
722 cval |= UART_LCR_SPAR; in m32r_sio_set_termios()
785 up->lcr = cval; /* Save LCR */ in m32r_sio_set_termios()
Dsunsu.c782 unsigned char cval, fcr = 0; in sunsu_change_speed() local
787 cval = 0x00; in sunsu_change_speed()
790 cval = 0x01; in sunsu_change_speed()
793 cval = 0x02; in sunsu_change_speed()
797 cval = 0x03; in sunsu_change_speed()
802 cval |= 0x04; in sunsu_change_speed()
804 cval |= UART_LCR_PARITY; in sunsu_change_speed()
806 cval |= UART_LCR_EPAR; in sunsu_change_speed()
809 cval |= UART_LCR_SPAR; in sunsu_change_speed()
886 serial_outp(up, UART_LCR, cval | UART_LCR_DLAB);/* set DLAB */ in sunsu_change_speed()
[all …]
Domap-serial.c847 unsigned char cval = 0; in serial_omap_set_termios() local
853 cval = UART_LCR_WLEN5; in serial_omap_set_termios()
856 cval = UART_LCR_WLEN6; in serial_omap_set_termios()
859 cval = UART_LCR_WLEN7; in serial_omap_set_termios()
863 cval = UART_LCR_WLEN8; in serial_omap_set_termios()
868 cval |= UART_LCR_STOP; in serial_omap_set_termios()
870 cval |= UART_LCR_PARITY; in serial_omap_set_termios()
872 cval |= UART_LCR_EPAR; in serial_omap_set_termios()
874 cval |= UART_LCR_SPAR; in serial_omap_set_termios()
942 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_omap_set_termios()
[all …]
/drivers/mmc/card/
Dsdio_uart.c256 unsigned char cval, fcr = 0; in sdio_uart_change_speed() local
261 cval = UART_LCR_WLEN5; in sdio_uart_change_speed()
264 cval = UART_LCR_WLEN6; in sdio_uart_change_speed()
267 cval = UART_LCR_WLEN7; in sdio_uart_change_speed()
271 cval = UART_LCR_WLEN8; in sdio_uart_change_speed()
276 cval |= UART_LCR_STOP; in sdio_uart_change_speed()
278 cval |= UART_LCR_PARITY; in sdio_uart_change_speed()
280 cval |= UART_LCR_EPAR; in sdio_uart_change_speed()
341 port->lcr = cval; in sdio_uart_change_speed()
344 sdio_out(port, UART_LCR, cval | UART_LCR_DLAB); in sdio_uart_change_speed()
[all …]
/drivers/tty/serial/8250/
D8250_omap.c319 unsigned char cval = 0; in omap_8250_set_termios() local
324 cval = UART_LCR_WLEN5; in omap_8250_set_termios()
327 cval = UART_LCR_WLEN6; in omap_8250_set_termios()
330 cval = UART_LCR_WLEN7; in omap_8250_set_termios()
334 cval = UART_LCR_WLEN8; in omap_8250_set_termios()
339 cval |= UART_LCR_STOP; in omap_8250_set_termios()
341 cval |= UART_LCR_PARITY; in omap_8250_set_termios()
343 cval |= UART_LCR_EPAR; in omap_8250_set_termios()
345 cval |= UART_LCR_SPAR; in omap_8250_set_termios()
402 up->lcr = cval; in omap_8250_set_termios()
D8250_port.c2175 unsigned char cval; in serial8250_compute_lcr() local
2179 cval = UART_LCR_WLEN5; in serial8250_compute_lcr()
2182 cval = UART_LCR_WLEN6; in serial8250_compute_lcr()
2185 cval = UART_LCR_WLEN7; in serial8250_compute_lcr()
2189 cval = UART_LCR_WLEN8; in serial8250_compute_lcr()
2194 cval |= UART_LCR_STOP; in serial8250_compute_lcr()
2196 cval |= UART_LCR_PARITY; in serial8250_compute_lcr()
2201 cval |= UART_LCR_EPAR; in serial8250_compute_lcr()
2204 cval |= UART_LCR_SPAR; in serial8250_compute_lcr()
2207 return cval; in serial8250_compute_lcr()
[all …]
/drivers/tty/
Dmxser.c575 unsigned char cval; in mxser_set_baud() local
608 cval = inb(info->ioaddr + UART_LCR); in mxser_set_baud()
610 outb(cval | UART_LCR_DLAB, info->ioaddr + UART_LCR); /* set DLAB */ in mxser_set_baud()
614 outb(cval, info->ioaddr + UART_LCR); /* reset DLAB */ in mxser_set_baud()
642 unsigned cflag, cval, fcr; in mxser_change_speed() local
656 cval = 0x00; in mxser_change_speed()
659 cval = 0x01; in mxser_change_speed()
662 cval = 0x02; in mxser_change_speed()
665 cval = 0x03; in mxser_change_speed()
668 cval = 0x00; in mxser_change_speed()
[all …]
Damiserial.c663 unsigned cflag, cval = 0; in change_speed() local
671 cval = 3; bits = 10; in change_speed()
673 cval |= 0x04; in change_speed()
677 cval |= UART_LCR_PARITY; in change_speed()
681 cval |= UART_LCR_EPAR; in change_speed()
684 cval |= UART_LCR_SPAR; in change_speed()
786 if(cval & UART_LCR_PARITY) in change_speed()
/drivers/tty/serial/cpm_uart/
Dcpm_uart_core.c512 u16 cval, scval, prev_mode; in cpm_uart_set_termios() local
545 cval = 0; in cpm_uart_set_termios()
570 cval |= SMCMR_SL; /* Two stops */ in cpm_uart_set_termios()
576 cval |= SMCMR_PEN; in cpm_uart_set_termios()
580 cval |= SMCMR_PM_EVEN; in cpm_uart_set_termios()
649 out_be16(&smcp->smc_smcmr, smcr_mk_clen(bits) | cval | in cpm_uart_set_termios()
/drivers/isdn/hisax/
Delsa_ser.c111 unsigned cval, fcr = 0; in change_speed() local
115 cval = 0x03; in change_speed()
135 serial_outp(cs, UART_LCR, cval | UART_LCR_DLAB);/* set DLAB */ in change_speed()
138 serial_outp(cs, UART_LCR, cval); /* reset DLAB */ in change_speed()
/drivers/isdn/hardware/avm/
Dc4.c784 static int queue_sendconfig(avmcard *card, char cval[4]) in queue_sendconfig()
800 _put_byte(&p, cval[0]); in queue_sendconfig()
801 _put_byte(&p, cval[1]); in queue_sendconfig()
802 _put_byte(&p, cval[2]); in queue_sendconfig()
803 _put_byte(&p, cval[3]); in queue_sendconfig()
/drivers/isdn/act2000/
Dcapi.h67 unsigned cval:7; /* Cause value */ member
/drivers/media/usb/pvrusb2/
Dpvrusb2-hdw.c5014 u32 cval,nval; in pvr2_hdw_gpio_chg_dir() local
5017 ret = pvr2_read_register(hdw,PVR2_GPIO_DIR,&cval); in pvr2_hdw_gpio_chg_dir()
5019 nval = (cval & ~msk) | (val & msk); in pvr2_hdw_gpio_chg_dir()
5023 msk,val,cval,nval); in pvr2_hdw_gpio_chg_dir()
5035 u32 cval,nval; in pvr2_hdw_gpio_chg_out() local
5038 ret = pvr2_read_register(hdw,PVR2_GPIO_OUT,&cval); in pvr2_hdw_gpio_chg_out()
5040 nval = (cval & ~msk) | (val & msk); in pvr2_hdw_gpio_chg_out()
5043 msk,val,cval,nval); in pvr2_hdw_gpio_chg_out()
/drivers/isdn/i4l/
Disdn_tty.c1006 cval, in isdn_tty_change_speed() local
1039 cval = cflag & (CSIZE | CSTOPB); in isdn_tty_change_speed()
1040 cval >>= 4; in isdn_tty_change_speed()
1042 cval |= UART_LCR_PARITY; in isdn_tty_change_speed()
1044 cval |= UART_LCR_EPAR; in isdn_tty_change_speed()
/drivers/gpu/drm/gma500/
Dpsb_intel_sdvo.c230 u32 bval = val, cval = val; in psb_intel_sdvo_write_sdvox() local
236 cval = REG_READ_WITH_AUX(SDVOC, j); in psb_intel_sdvo_write_sdvox()
248 REG_WRITE_WITH_AUX(SDVOC, cval, j); in psb_intel_sdvo_write_sdvox()
/drivers/gpu/drm/i915/
Dintel_sdvo.c245 u32 bval = val, cval = val; in intel_sdvo_write_sdvox() local
263 cval = I915_READ(GEN3_SDVOC); in intel_sdvo_write_sdvox()
276 I915_WRITE(GEN3_SDVOC, cval); in intel_sdvo_write_sdvox()