Home
last modified time | relevance | path

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

12

/linux/sound/usb/
A Dmixer.c263 return DIV_ROUND_UP(cval->max - cval->min, cval->res); in get_relative_value()
1237 cval->max = cval->min + 1; in get_min_max_with_quirks()
1288 if (cval->min + cval->res < cval->max) { in get_min_max_with_quirks()
1395 DIV_ROUND_UP(cval->max - cval->min, cval->res); in mixer_ctl_feature_info()
1784 if (cval->dBmin < cval->dBmax || !cval->initialized) { in __build_feature_ctl()
1794 range = (cval->max - cval->min) / cval->res; in __build_feature_ctl()
1807 cval->min, cval->max, cval->res); in __build_feature_ctl()
1812 cval->min, cval->max, cval->res); in __build_feature_ctl()
2192 cval->head.id, kctl->id.name, cval->channels, cval->min, cval->max); in build_mixer_unit_ctl()
3359 cval->control, cval->cmask, cval->channels, in snd_usb_mixer_dump_cval()
[all …]
A Dmixer.h104 int snd_usb_mixer_set_ctl_value(struct usb_mixer_elem_info *cval,
126 int snd_usb_set_cur_mix_value(struct usb_mixer_elem_info *cval, int channel,
129 int snd_usb_get_cur_mix_value(struct usb_mixer_elem_info *cval,
A Dmixer_quirks.c66 cval = kzalloc(sizeof(*cval), GFP_KERNEL); in snd_create_std_mono_ctl_offset()
67 if (!cval) in snd_create_std_mono_ctl_offset()
72 cval->channels = 1; in snd_create_std_mono_ctl_offset()
79 cval->min = 0; in snd_create_std_mono_ctl_offset()
80 cval->max = 1; in snd_create_std_mono_ctl_offset()
81 cval->res = 0; in snd_create_std_mono_ctl_offset()
82 cval->dBmin = 0; in snd_create_std_mono_ctl_offset()
83 cval->dBmax = 0; in snd_create_std_mono_ctl_offset()
88 kfree(cval); in snd_create_std_mono_ctl_offset()
3341 if (cval->min == 0 && cval->max == 50) { in snd_dragonfly_quirk_db_scale()
[all …]
/linux/arch/arm/include/asm/
A Darch_timer.h96 u64 cval; in __arch_counter_get_cntpct() local
99 asm volatile("mrrc p15, 0, %Q0, %R0, c14" : "=r" (cval)); in __arch_counter_get_cntpct()
100 return cval; in __arch_counter_get_cntpct()
110 u64 cval; in __arch_counter_get_cntvct() local
113 asm volatile("mrrc p15, 1, %Q0, %R0, c14" : "=r" (cval)); in __arch_counter_get_cntvct()
114 return cval; in __arch_counter_get_cntvct()
/linux/drivers/memory/tegra/
A Dtegra210-emc-cc-r21021.c126 unsigned long cval = 0; in update_clock_tree_delay() local
156 cval *= 1000000; in update_clock_tree_delay()
161 __INCREMENT_PTFV(C0D0U0, cval); in update_clock_tree_delay()
181 cval *= 1000000; in update_clock_tree_delay()
186 __INCREMENT_PTFV(C0D0U1, cval); in update_clock_tree_delay()
209 cval *= 1000000; in update_clock_tree_delay()
236 cval *= 1000000; in update_clock_tree_delay()
291 cval *= 1000000; in update_clock_tree_delay()
318 cval *= 1000000; in update_clock_tree_delay()
346 cval *= 1000000; in update_clock_tree_delay()
[all …]
/linux/arch/powerpc/platforms/embedded6xx/
A 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/sound/pci/ice1712/
A Damp.c21 unsigned short cval; in wm_put() local
22 cval = (reg << 9) | val; in wm_put()
23 snd_vt1724_write_i2c(ice, WM_DEV, cval >> 8, cval & 0xff); in wm_put()
/linux/drivers/accessibility/speakup/
A Dserialio.c51 unsigned int cval = 0; in spk_serial_init() local
64 cval = cflag & (CSIZE | CSTOPB); in spk_serial_init()
66 cval >>= 8; in spk_serial_init()
68 cval >>= 4; in spk_serial_init()
71 cval |= UART_LCR_PARITY; in spk_serial_init()
73 cval |= UART_LCR_EPAR; in spk_serial_init()
89 outb(cval | UART_LCR_DLAB, ser->port + UART_LCR); /* set DLAB */ in spk_serial_init()
92 outb(cval, ser->port + UART_LCR); /* reset DLAB */ in spk_serial_init()
/linux/drivers/video/fbdev/
A Datafb_iplan2p2.c197 u32 cval[4]; in atafb_iplan2p2_fillrect() local
203 expand8_col2mask(color, cval); in atafb_iplan2p2_fillrect()
206 fill8_col(dest8, cval); in atafb_iplan2p2_fillrect()
213 expand16_col2mask(color, cval); in atafb_iplan2p2_fillrect()
219 d = fill16_col(d, rows, cval); in atafb_iplan2p2_fillrect()
229 expand8_col2mask(color, cval); in atafb_iplan2p2_fillrect()
232 fill8_col(dest8, cval); in atafb_iplan2p2_fillrect()
A Datafb_iplan2p4.c211 u32 cval[4]; in atafb_iplan2p4_fillrect() local
217 expand8_col2mask(color, cval); in atafb_iplan2p4_fillrect()
220 fill8_col(dest8, cval); in atafb_iplan2p4_fillrect()
227 expand16_col2mask(color, cval); in atafb_iplan2p4_fillrect()
233 d = fill16_col(d, rows, cval); in atafb_iplan2p4_fillrect()
243 expand8_col2mask(color, cval); in atafb_iplan2p4_fillrect()
246 fill8_col(dest8, cval); in atafb_iplan2p4_fillrect()
A Datafb_iplan2p8.c246 u32 cval[4]; in atafb_iplan2p8_fillrect() local
252 expand8_col2mask(color, cval); in atafb_iplan2p8_fillrect()
255 fill8_col(dest8, cval); in atafb_iplan2p8_fillrect()
262 expand16_col2mask(color, cval); in atafb_iplan2p8_fillrect()
268 d = fill16_col(d, rows, cval); in atafb_iplan2p8_fillrect()
278 expand8_col2mask(color, cval); in atafb_iplan2p8_fillrect()
281 fill8_col(dest8, cval); in atafb_iplan2p8_fillrect()
/linux/arch/arm64/kvm/
A Dtrace_arm.h233 __field( unsigned long long, cval )
239 __entry->cval = timer_get_cval(ctx);
245 __entry->cval,
255 __field( unsigned long long, cval )
261 __entry->cval = timer_get_cval(ctx);
267 __entry->cval,
A Darch_timer.c113 static void timer_set_cval(struct arch_timer_context *ctxt, u64 cval) in timer_set_cval() argument
119 __vcpu_sys_reg(vcpu, CNTV_CVAL_EL0) = cval; in timer_set_cval()
122 __vcpu_sys_reg(vcpu, CNTP_CVAL_EL0) = cval; in timer_set_cval()
213 u64 cval, now; in kvm_timer_compute_delta() local
215 cval = timer_get_cval(timer_ctx); in kvm_timer_compute_delta()
218 if (now < cval) { in kvm_timer_compute_delta()
222 cval - now, in kvm_timer_compute_delta()
316 u64 cval, now; in kvm_timer_should_fire() local
347 cval = timer_get_cval(timer_ctx); in kvm_timer_should_fire()
350 return cval <= now; in kvm_timer_should_fire()
/linux/drivers/tty/serial/
A Dxilinx_uartps.c694 u32 cval = 0; in cdns_uart_set_termios() local
765 cval |= CDNS_UART_MR_CHARLEN_6_BIT; in cdns_uart_set_termios()
768 cval |= CDNS_UART_MR_CHARLEN_7_BIT; in cdns_uart_set_termios()
772 cval |= CDNS_UART_MR_CHARLEN_8_BIT; in cdns_uart_set_termios()
788 cval |= CDNS_UART_MR_PARITY_MARK; in cdns_uart_set_termios()
793 cval |= CDNS_UART_MR_PARITY_ODD; in cdns_uart_set_termios()
795 cval |= CDNS_UART_MR_PARITY_EVEN; in cdns_uart_set_termios()
798 cval |= CDNS_UART_MR_PARITY_NONE; in cdns_uart_set_termios()
800 cval |= mode_reg & 1; in cdns_uart_set_termios()
805 cval |= CDNS_UART_MODEMCR_FCM; in cdns_uart_set_termios()
[all …]
A Dpxa.c428 unsigned char cval, fcr = 0; in serial_pxa_set_termios() local
435 cval = UART_LCR_WLEN5; in serial_pxa_set_termios()
438 cval = UART_LCR_WLEN6; in serial_pxa_set_termios()
441 cval = UART_LCR_WLEN7; in serial_pxa_set_termios()
445 cval = UART_LCR_WLEN8; in serial_pxa_set_termios()
450 cval |= UART_LCR_STOP; in serial_pxa_set_termios()
452 cval |= UART_LCR_PARITY; in serial_pxa_set_termios()
454 cval |= UART_LCR_EPAR; in serial_pxa_set_termios()
528 serial_out(up, UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in serial_pxa_set_termios()
539 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_pxa_set_termios()
[all …]
A Dserial_txx9.c625 unsigned int cval, fcr = 0; in serial_txx9_set_termios() local
635 cval = sio_in(up, TXX9_SILCR); in serial_txx9_set_termios()
637 cval &= ~TXX9_SILCR_UMODE_MASK; in serial_txx9_set_termios()
640 cval |= TXX9_SILCR_UMODE_7BIT; in serial_txx9_set_termios()
646 cval |= TXX9_SILCR_UMODE_8BIT; in serial_txx9_set_termios()
650 cval &= ~TXX9_SILCR_USBL_MASK; in serial_txx9_set_termios()
652 cval |= TXX9_SILCR_USBL_2BIT; in serial_txx9_set_termios()
654 cval |= TXX9_SILCR_USBL_1BIT; in serial_txx9_set_termios()
657 cval |= TXX9_SILCR_UPEN; in serial_txx9_set_termios()
659 cval |= TXX9_SILCR_UEPS; in serial_txx9_set_termios()
[all …]
A Dsunsu.c775 unsigned char cval, fcr = 0; in sunsu_change_speed() local
780 cval = 0x00; in sunsu_change_speed()
783 cval = 0x01; in sunsu_change_speed()
786 cval = 0x02; in sunsu_change_speed()
790 cval = 0x03; in sunsu_change_speed()
795 cval |= 0x04; in sunsu_change_speed()
797 cval |= UART_LCR_PARITY; in sunsu_change_speed()
799 cval |= UART_LCR_EPAR; in sunsu_change_speed()
802 cval |= UART_LCR_SPAR; in sunsu_change_speed()
884 serial_outp(up, UART_LCR, cval); /* reset DLAB */ in sunsu_change_speed()
[all …]
/linux/drivers/hwtracing/coresight/
A Dcoresight-etm4x-cfg.c13 #define CHECKREG(cval, elem) \ argument
15 if (offset == cval) { \
22 #define CHECKREGIDX(cval, elem, off_idx, mask) \ argument
24 if (mask == cval) { \
/linux/tools/testing/selftests/kvm/include/aarch64/
A Darch_timer.h51 static inline void timer_set_cval(enum arch_timer timer, uint64_t cval) in timer_set_cval() argument
55 write_sysreg(cval, cntv_cval_el0); in timer_set_cval()
58 write_sysreg(cval, cntp_cval_el0); in timer_set_cval()
/linux/tools/testing/selftests/bpf/progs/
A Dtest_l4lb.c332 struct ctl_value *cval; in process_packet() local
427 cval = bpf_map_lookup_elem(&ctl_array, &v6_intf_pos); in process_packet()
428 if (!cval) in process_packet()
430 ifindex = cval->ifindex; in process_packet()
434 cval = bpf_map_lookup_elem(&ctl_array, &v4_intf_pos); in process_packet()
435 if (!cval) in process_packet()
437 ifindex = cval->ifindex; in process_packet()
A Dtest_l4lb_noinline.c331 struct ctl_value *cval; in process_packet() local
426 cval = bpf_map_lookup_elem(&ctl_array, &v6_intf_pos); in process_packet()
427 if (!cval) in process_packet()
429 ifindex = cval->ifindex; in process_packet()
433 cval = bpf_map_lookup_elem(&ctl_array, &v4_intf_pos); in process_packet()
434 if (!cval) in process_packet()
436 ifindex = cval->ifindex; in process_packet()
A Dtest_xdp_noinline.c278 bool encap_v6(struct xdp_md *xdp, struct ctl_value *cval, in encap_v6() argument
299 memcpy(new_eth->eth_dest, cval->mac, 6); in encap_v6()
321 bool encap_v4(struct xdp_md *xdp, struct ctl_value *cval, in encap_v4() argument
347 memcpy(new_eth->eth_dest, cval->mac, 6); in encap_v4()
705 struct ctl_value *cval; in process_packet() local
775 cval = bpf_map_lookup_elem(&ctl_array, &mac_addr_pos); in process_packet()
776 if (!cval) in process_packet()
779 if (!encap_v6(xdp, cval, &pckt, dst, pkt_bytes)) in process_packet()
782 if (!encap_v4(xdp, cval, &pckt, dst, pkt_bytes)) in process_packet()
/linux/tools/testing/selftests/kvm/aarch64/
A Darch_timer.c126 uint64_t xcnt = 0, xcnt_diff_us, cval = 0; in guest_validate_irq() local
135 cval = timer_get_cval(VIRTUAL); in guest_validate_irq()
142 cval = timer_get_cval(PHYSICAL); in guest_validate_irq()
154 GUEST_ASSERT_3(xcnt >= cval, xcnt, cval, xcnt_diff_us); in guest_validate_irq()
/linux/drivers/mmc/core/
A Dsdio_uart.c250 unsigned char cval, fcr = 0; in sdio_uart_change_speed() local
255 cval = UART_LCR_WLEN5; in sdio_uart_change_speed()
258 cval = UART_LCR_WLEN6; in sdio_uart_change_speed()
261 cval = UART_LCR_WLEN7; in sdio_uart_change_speed()
265 cval = UART_LCR_WLEN8; in sdio_uart_change_speed()
270 cval |= UART_LCR_STOP; in sdio_uart_change_speed()
272 cval |= UART_LCR_PARITY; in sdio_uart_change_speed()
274 cval |= UART_LCR_EPAR; in sdio_uart_change_speed()
335 port->lcr = cval; in sdio_uart_change_speed()
338 sdio_out(port, UART_LCR, cval | UART_LCR_DLAB); in sdio_uart_change_speed()
[all …]
/linux/sound/synth/emux/
A Demux_nrpn.c43 int i, cval; in send_converted_effect() local
46 cval = table[i].convert(val); in send_converted_effect()
48 cval, mode); in send_converted_effect()

Completed in 59 milliseconds

12