Home
last modified time | relevance | path

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

/linux-4.1.27/sound/usb/
Dmixer.c140 #define filter_error(cval, err) \ argument
141 ((cval)->head.mixer->ignore_ctl_error ? 0 : (err))
154 struct usb_mixer_elem_info *cval) in check_mapped_dB() argument
157 cval->dBmin = p->dB->min; in check_mapped_dB()
158 cval->dBmax = p->dB->max; in check_mapped_dB()
159 cval->initialized = 1; in check_mapped_dB()
213 static int convert_signed_value(struct usb_mixer_elem_info *cval, int val) in convert_signed_value() argument
215 switch (cval->val_type) { in convert_signed_value()
243 static int convert_bytes_value(struct usb_mixer_elem_info *cval, int val) in convert_bytes_value() argument
245 switch (cval->val_type) { in convert_bytes_value()
[all …]
Dmixer_quirks.c73 struct usb_mixer_elem_info *cval; in snd_create_std_mono_ctl_offset() local
76 cval = kzalloc(sizeof(*cval), GFP_KERNEL); in snd_create_std_mono_ctl_offset()
77 if (!cval) in snd_create_std_mono_ctl_offset()
80 snd_usb_mixer_elem_init_std(&cval->head, mixer, unitid); in snd_create_std_mono_ctl_offset()
81 cval->val_type = val_type; in snd_create_std_mono_ctl_offset()
82 cval->channels = 1; in snd_create_std_mono_ctl_offset()
83 cval->control = control; in snd_create_std_mono_ctl_offset()
84 cval->cmask = cmask; in snd_create_std_mono_ctl_offset()
85 cval->idx_off = idx_off; in snd_create_std_mono_ctl_offset()
89 cval->min = 0; in snd_create_std_mono_ctl_offset()
[all …]
Dmixer.h76 int snd_usb_mixer_set_ctl_value(struct usb_mixer_elem_info *cval,
94 int snd_usb_set_cur_mix_value(struct usb_mixer_elem_info *cval, int channel,
97 int snd_usb_get_cur_mix_value(struct usb_mixer_elem_info *cval,
Dmixer_quirks.h13 struct usb_mixer_elem_info *cval, int unitid,
/linux-4.1.27/arch/arm/include/asm/
Darch_timer.h83 u64 cval; in arch_counter_get_cntpct() local
86 asm volatile("mrrc p15, 0, %Q0, %R0, c14" : "=r" (cval)); in arch_counter_get_cntpct()
87 return cval; in arch_counter_get_cntpct()
92 u64 cval; in arch_counter_get_cntvct() local
95 asm volatile("mrrc p15, 1, %Q0, %R0, c14" : "=r" (cval)); in arch_counter_get_cntvct()
96 return cval; in arch_counter_get_cntvct()
/linux-4.1.27/kernel/time/
Ditimer.c48 cputime_t cval, cinterval; in get_cpu_itimer() local
53 cval = it->expires; in get_cpu_itimer()
55 if (cval) { in get_cpu_itimer()
66 if (cval < t) in get_cpu_itimer()
68 cval = cputime_one_jiffy; in get_cpu_itimer()
70 cval = cval - t; in get_cpu_itimer()
75 cputime_to_timeval(cval, &value->it_value); in get_cpu_itimer()
147 cputime_t cval, nval, cinterval, ninterval; in set_cpu_itimer() local
162 cval = it->expires; in set_cpu_itimer()
164 if (cval || nval) { in set_cpu_itimer()
[all …]
/linux-4.1.27/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()
66 outb(cval | UART_LCR_DLAB, ser->port + UART_LCR); /* set DLAB */ in spk_serial_init()
69 outb(cval, ser->port + UART_LCR); /* reset DLAB */ in spk_serial_init()
/linux-4.1.27/arch/powerpc/platforms/embedded6xx/
Dls_uart.c60 unsigned char cval = UART_LCR_WLEN8; in avr_uart_configure() local
66 out_8(avr_addr + UART_LCR, cval); /* initialise UART */ in avr_uart_configure()
70 cval |= UART_LCR_STOP | UART_LCR_PARITY | UART_LCR_EPAR; in avr_uart_configure()
72 out_8(avr_addr + UART_LCR, cval); /* Set character format */ in avr_uart_configure()
74 out_8(avr_addr + UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in avr_uart_configure()
77 out_8(avr_addr + UART_LCR, cval); /* reset DLAB */ in avr_uart_configure()
/linux-4.1.27/sound/pci/ice1712/
Damp.c35 unsigned short cval; in wm_put() local
36 cval = (reg << 9) | val; in wm_put()
37 snd_vt1724_write_i2c(ice, WM_DEV, cval >> 8, cval & 0xff); in wm_put()
Dpontis.c93 unsigned short cval; in wm_put_nocache() local
94 cval = (reg << 9) | val; in wm_put_nocache()
95 snd_vt1724_write_i2c(ice, WM_DEV, cval >> 8, cval & 0xff); in wm_put_nocache()
Dprodigy_hifi.c139 unsigned short cval; in wm_put_nocache() local
140 cval = (reg << 9) | val; in wm_put_nocache()
141 snd_vt1724_write_i2c(ice, WM_DEV, cval >> 8, cval & 0xff); in wm_put_nocache()
Dice1712.c2038 unsigned int val, cval; in snd_ice1712_pro_route_analog_get() local
2042 cval = inl(ICEMT(ice, ROUTE_CAPTURE)); in snd_ice1712_pro_route_analog_get()
2047 cval >>= ((idx / 2) * 8) + ((idx % 2) * 4); in snd_ice1712_pro_route_analog_get()
2051 ucontrol->value.enumerated.item[0] = (cval & 7) + 1; in snd_ice1712_pro_route_analog_get()
2053 ucontrol->value.enumerated.item[0] = ((cval >> 3) & 1) + 9; in snd_ice1712_pro_route_analog_get()
2114 unsigned int val, cval; in snd_ice1712_pro_route_spdif_get() local
2116 cval = (val >> (idx * 4 + 8)) & 0x0f; in snd_ice1712_pro_route_spdif_get()
2121 ucontrol->value.enumerated.item[0] = (cval & 7) + 1; in snd_ice1712_pro_route_spdif_get()
2123 ucontrol->value.enumerated.item[0] = ((cval >> 3) & 1) + 9; in snd_ice1712_pro_route_spdif_get()
/linux-4.1.27/net/irda/ircomm/
Dircomm_tty_ioctl.c56 unsigned int cflag, cval; in ircomm_tty_change_speed() local
66 case CS5: cval = IRCOMM_WSIZE_5; break; in ircomm_tty_change_speed()
67 case CS6: cval = IRCOMM_WSIZE_6; break; in ircomm_tty_change_speed()
68 case CS7: cval = IRCOMM_WSIZE_7; break; in ircomm_tty_change_speed()
69 case CS8: cval = IRCOMM_WSIZE_8; break; in ircomm_tty_change_speed()
70 default: cval = IRCOMM_WSIZE_5; break; in ircomm_tty_change_speed()
73 cval |= IRCOMM_2_STOP_BIT; in ircomm_tty_change_speed()
76 cval |= IRCOMM_PARITY_ENABLE; in ircomm_tty_change_speed()
78 cval |= IRCOMM_PARITY_EVEN; in ircomm_tty_change_speed()
131 self->settings.data_format = cval; in ircomm_tty_change_speed()
/linux-4.1.27/arch/arm64/include/asm/
Darch_timer.h119 u64 cval; in arch_counter_get_cntvct() local
122 asm volatile("mrs %0, cntvct_el0" : "=r" (cval)); in arch_counter_get_cntvct()
124 return cval; in arch_counter_get_cntvct()
/linux-4.1.27/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()
/linux-4.1.27/virt/kvm/arm/
Darch_timer.c117 cycle_t cval, now; in kvm_timer_should_fire() local
123 cval = timer->cntv_cval; in kvm_timer_should_fire()
126 return cval <= now; in kvm_timer_should_fire()
165 cycle_t cval, now; in kvm_timer_sync_hwstate() local
179 cval = timer->cntv_cval; in kvm_timer_sync_hwstate()
182 ns = cyclecounter_cyc2ns(timecounter->cc, cval - now, timecounter->mask, in kvm_timer_sync_hwstate()
/linux-4.1.27/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.c865 unsigned char cval = 0; in serial_omap_set_termios() local
871 cval = UART_LCR_WLEN5; in serial_omap_set_termios()
874 cval = UART_LCR_WLEN6; in serial_omap_set_termios()
877 cval = UART_LCR_WLEN7; in serial_omap_set_termios()
881 cval = UART_LCR_WLEN8; in serial_omap_set_termios()
886 cval |= UART_LCR_STOP; in serial_omap_set_termios()
888 cval |= UART_LCR_PARITY; in serial_omap_set_termios()
890 cval |= UART_LCR_EPAR; in serial_omap_set_termios()
892 cval |= UART_LCR_SPAR; in serial_omap_set_termios()
960 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_omap_set_termios()
[all …]
/linux-4.1.27/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 …]
/linux-4.1.27/sound/synth/emux/
Demux_nrpn.c56 int i, cval; in send_converted_effect() local
59 cval = table[i].convert(val); in send_converted_effect()
61 cval, mode); in send_converted_effect()
/linux-4.1.27/fs/nls/
Dnls_base.c30 int cval; member
66 if ((c0 & t->cmask) == t->cval) { in utf8_to_utf32()
104 *s = (u8) (t->cval | (l >> c)); in utf32_to_utf8()
/linux-4.1.27/drivers/tty/serial/8250/
D8250_omap.c302 unsigned char cval = 0; in omap_8250_set_termios() local
307 cval = UART_LCR_WLEN5; in omap_8250_set_termios()
310 cval = UART_LCR_WLEN6; in omap_8250_set_termios()
313 cval = UART_LCR_WLEN7; in omap_8250_set_termios()
317 cval = UART_LCR_WLEN8; in omap_8250_set_termios()
322 cval |= UART_LCR_STOP; in omap_8250_set_termios()
324 cval |= UART_LCR_PARITY; in omap_8250_set_termios()
326 cval |= UART_LCR_EPAR; in omap_8250_set_termios()
328 cval |= UART_LCR_SPAR; in omap_8250_set_termios()
385 up->lcr = cval; in omap_8250_set_termios()
D8250_core.c2496 unsigned char cval; in serial8250_compute_lcr() local
2500 cval = UART_LCR_WLEN5; in serial8250_compute_lcr()
2503 cval = UART_LCR_WLEN6; in serial8250_compute_lcr()
2506 cval = UART_LCR_WLEN7; in serial8250_compute_lcr()
2510 cval = UART_LCR_WLEN8; in serial8250_compute_lcr()
2515 cval |= UART_LCR_STOP; in serial8250_compute_lcr()
2517 cval |= UART_LCR_PARITY; in serial8250_compute_lcr()
2522 cval |= UART_LCR_EPAR; in serial8250_compute_lcr()
2525 cval |= UART_LCR_SPAR; in serial8250_compute_lcr()
2528 return cval; in serial8250_compute_lcr()
[all …]
/linux-4.1.27/tools/testing/selftests/breakpoints/
Dbreakpoint_test.c175 char cval; short sval; int ival; long long lval; in read_var() local
181 cval = *(char *)&dummy_var[i]; in read_var()
/linux-4.1.27/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()
/linux-4.1.27/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()
/linux-4.1.27/drivers/tty/serial/cpm_uart/
Dcpm_uart_core.c503 u16 cval, scval, prev_mode; in cpm_uart_set_termios() local
536 cval = 0; in cpm_uart_set_termios()
561 cval |= SMCMR_SL; /* Two stops */ in cpm_uart_set_termios()
567 cval |= SMCMR_PEN; in cpm_uart_set_termios()
571 cval |= SMCMR_PM_EVEN; in cpm_uart_set_termios()
640 out_be16(&smcp->smc_smcmr, smcr_mk_clen(bits) | cval | in cpm_uart_set_termios()
/linux-4.1.27/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()
/linux-4.1.27/drivers/isdn/act2000/
Dcapi.h67 unsigned cval:7; /* Cause value */ member
/linux-4.1.27/sound/pci/ac97/
Dac97_patch.c2348 unsigned short cval; in snd_ac97_ad1986_vrefout_put() local
2358 cval = 0; in snd_ac97_ad1986_vrefout_put()
2363 cval = AC97_AD1986_CVREF2; in snd_ac97_ad1986_vrefout_put()
2368 cval = AC97_AD1986_CVREF0; in snd_ac97_ad1986_vrefout_put()
2373 cval = AC97_AD1986_CVREF1; in snd_ac97_ad1986_vrefout_put()
2382 AC97_AD1986_CVREF_MASK, cval); in snd_ac97_ad1986_vrefout_put()
/linux-4.1.27/drivers/media/usb/pvrusb2/
Dpvrusb2-hdw.c5003 u32 cval,nval; in pvr2_hdw_gpio_chg_dir() local
5006 ret = pvr2_read_register(hdw,PVR2_GPIO_DIR,&cval); in pvr2_hdw_gpio_chg_dir()
5008 nval = (cval & ~msk) | (val & msk); in pvr2_hdw_gpio_chg_dir()
5012 msk,val,cval,nval); in pvr2_hdw_gpio_chg_dir()
5024 u32 cval,nval; in pvr2_hdw_gpio_chg_out() local
5027 ret = pvr2_read_register(hdw,PVR2_GPIO_OUT,&cval); in pvr2_hdw_gpio_chg_out()
5029 nval = (cval & ~msk) | (val & msk); in pvr2_hdw_gpio_chg_out()
5032 msk,val,cval,nval); in pvr2_hdw_gpio_chg_out()
/linux-4.1.27/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()
/linux-4.1.27/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()
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_sdvo.c240 u32 bval = val, cval = val; in intel_sdvo_write_sdvox() local
250 cval = I915_READ(GEN3_SDVOC); in intel_sdvo_write_sdvox()
263 I915_WRITE(GEN3_SDVOC, cval); in intel_sdvo_write_sdvox()