/linux/sound/usb/ |
H A D | mixer.c | 129 #define filter_error(cval, err) \ argument 130 ((cval)->head.mixer->ignore_ctl_error ? 0 : (err)) 143 struct usb_mixer_elem_info *cval) in check_mapped_dB() argument 146 cval->dBmin = p->dB->min; in check_mapped_dB() 147 cval->dBmax = p->dB->max; in check_mapped_dB() 148 cval->min_mute = p->dB->min_mute; in check_mapped_dB() 149 cval->initialized = 1; in check_mapped_dB() 210 static int convert_signed_value(struct usb_mixer_elem_info *cval, int val) in convert_signed_value() argument 212 switch (cval->val_type) { in convert_signed_value() 240 static int convert_bytes_value(struct usb_mixer_elem_info *cval, int val) in convert_bytes_value() argument [all …]
|
H A D | mixer_quirks.c | 65 struct usb_mixer_elem_info *cval; in snd_create_std_mono_ctl_offset() local 68 cval = kzalloc(sizeof(*cval), GFP_KERNEL); in snd_create_std_mono_ctl_offset() 69 if (!cval) in snd_create_std_mono_ctl_offset() 72 snd_usb_mixer_elem_init_std(&cval->head, mixer, unitid); in snd_create_std_mono_ctl_offset() 73 cval->val_type = val_type; in snd_create_std_mono_ctl_offset() 74 cval->channels = 1; in snd_create_std_mono_ctl_offset() 75 cval->control = control; in snd_create_std_mono_ctl_offset() 76 cval->cmask = cmask; in snd_create_std_mono_ctl_offset() 77 cval in snd_create_std_mono_ctl_offset() 1304 struct usb_mixer_elem_info *cval; snd_emuusb_set_samplerate() local 2002 struct usb_mixer_elem_info *cval = kcontrol->private_data; realtek_ctl_connector_get() local 2063 struct usb_mixer_elem_info *cval; realtek_add_jack() local 4185 snd_dragonfly_quirk_db_scale(struct usb_mixer_interface * mixer,struct usb_mixer_elem_info * cval,struct snd_kcontrol * kctl) snd_dragonfly_quirk_db_scale() argument 4219 snd_usb_mixer_fu_apply_quirk(struct usb_mixer_interface * mixer,struct usb_mixer_elem_info * cval,int unitid,struct snd_kcontrol * kctl) snd_usb_mixer_fu_apply_quirk() argument [all...] |
H A D | mixer.h | 105 int snd_usb_mixer_set_ctl_value(struct usb_mixer_elem_info *cval, 125 int snd_usb_set_cur_mix_value(struct usb_mixer_elem_info *cval, int channel, 128 int snd_usb_get_cur_mix_value(struct usb_mixer_elem_info *cval,
|
/linux/arch/arm/include/asm/ |
H A D | arch_timer.h | 96 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/arch/powerpc/platforms/embedded6xx/ |
H A D | ls_uart.c | 61 unsigned char cval = UART_LCR_WLEN8; in avr_uart_configure() local 67 out_8(avr_addr + UART_LCR, cval); /* initialise UART */ in avr_uart_configure() 71 cval |= UART_LCR_STOP | UART_LCR_PARITY | UART_LCR_EPAR; in avr_uart_configure() 73 out_8(avr_addr + UART_LCR, cval); /* Set character format */ in avr_uart_configure() 75 out_8(avr_addr + UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in avr_uart_configure() 78 out_8(avr_addr + UART_LCR, cval); /* reset DLAB */ in avr_uart_configure()
|
/linux/tools/testing/selftests/kvm/aarch64/ |
H A D | arch_timer_edge_cases.c | 148 uint64_t cnt, cval; in guest_irq_handler() local 165 cval = timer_get_cval(timer); in guest_irq_handler() 167 timer_condition = cnt >= cval; in guest_irq_handler() 350 static void test_timer_cval(enum arch_timer timer, uint64_t cval, in test_timer_cval() argument 354 test_timer_xval(timer, cval, TIMER_CVAL, wm, reset_state, reset_cnt); in test_timer_cval() 381 static void test_cval_no_irq(enum arch_timer timer, uint64_t cval, in test_cval_no_irq() argument 384 test_xval_check_no_irq(timer, cval, usec, TIMER_CVAL, wm); in test_cval_no_irq() 507 uint64_t cval = DEF_CNT + msec_to_cycles(test_args.wait_ms); in test_basic_functionality() local 513 test_timer_cval(timer, cval, wm, true, DEF_CNT); in test_basic_functionality() 610 uint64_t cval; in test_timers_above_tval_max() local [all …]
|
H A D | arch_timer.c | 59 uint64_t xcnt = 0, xcnt_diff_us, cval = 0; in guest_validate_irq() local 89 cval = timer_get_cval(accessor); in guest_validate_irq() 97 __GUEST_ASSERT(xcnt >= cval, in guest_validate_irq() 99 xcnt, cval, xcnt_diff_us); in guest_validate_irq()
|
/linux/sound/pci/ice1712/ |
H A D | amp.c | 21 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/ |
H A D | serialio.c | 51 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/ |
H A D | atafb_iplan2p2.c | 197 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()
|
H A D | atafb_iplan2p4.c | 211 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()
|
H A D | atafb_iplan2p8.c | 246 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/drivers/hwtracing/coresight/ |
H A D | coresight-etm4x-cfg.c | 13 #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/ |
H A D | arch_timer.h | 51 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/drivers/tty/serial/ |
H A D | serial_txx9.c | 577 unsigned int cval, fcr = 0; in serial_txx9_set_termios() local 587 cval = sio_in(up, TXX9_SILCR); in serial_txx9_set_termios() 589 cval &= ~TXX9_SILCR_UMODE_MASK; in serial_txx9_set_termios() 592 cval |= TXX9_SILCR_UMODE_7BIT; in serial_txx9_set_termios() 598 cval |= TXX9_SILCR_UMODE_8BIT; in serial_txx9_set_termios() 604 cval &= ~TXX9_SILCR_USBL_MASK; in serial_txx9_set_termios() 606 cval |= TXX9_SILCR_USBL_2BIT; in serial_txx9_set_termios() 608 cval |= TXX9_SILCR_USBL_1BIT; in serial_txx9_set_termios() 609 cval &= ~(TXX9_SILCR_UPEN | TXX9_SILCR_UEPS); in serial_txx9_set_termios() 611 cval |= TXX9_SILCR_UPEN; in serial_txx9_set_termios() [all …]
|
H A D | xilinx_uartps.c | 819 u32 cval = 0; in cdns_uart_set_termios() local 890 cval |= CDNS_UART_MR_CHARLEN_6_BIT; in cdns_uart_set_termios() 893 cval |= CDNS_UART_MR_CHARLEN_7_BIT; in cdns_uart_set_termios() 897 cval |= CDNS_UART_MR_CHARLEN_8_BIT; in cdns_uart_set_termios() 905 cval |= CDNS_UART_MR_STOPMODE_2_BIT; /* 2 STOP bits */ in cdns_uart_set_termios() 907 cval |= CDNS_UART_MR_STOPMODE_1_BIT; /* 1 STOP bit */ in cdns_uart_set_termios() 913 cval |= CDNS_UART_MR_PARITY_MARK; in cdns_uart_set_termios() 915 cval |= CDNS_UART_MR_PARITY_SPACE; in cdns_uart_set_termios() 918 cval |= CDNS_UART_MR_PARITY_ODD; in cdns_uart_set_termios() 920 cval |= CDNS_UART_MR_PARITY_EVEN; in cdns_uart_set_termios() [all …]
|
H A D | pxa.c | 406 unsigned char cval, fcr = 0; in serial_pxa_set_termios() local 411 cval = UART_LCR_WLEN(tty_get_char_size(termios->c_cflag)); in serial_pxa_set_termios() 414 cval |= UART_LCR_STOP; in serial_pxa_set_termios() 416 cval |= UART_LCR_PARITY; in serial_pxa_set_termios() 418 cval |= UART_LCR_EPAR; in serial_pxa_set_termios() 492 serial_out(up, UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in serial_pxa_set_termios() 503 serial_out(up, UART_LCR, cval); /* reset DLAB */ in serial_pxa_set_termios() 504 up->lcr = cval; /* Save LCR */ in serial_pxa_set_termios()
|
H A D | sunsu.c | 776 unsigned char cval, fcr = 0; in sunsu_change_speed() local 781 cval = 0x00; in sunsu_change_speed() 784 cval = 0x01; in sunsu_change_speed() 787 cval = 0x02; in sunsu_change_speed() 791 cval = 0x03; in sunsu_change_speed() 796 cval |= 0x04; in sunsu_change_speed() 798 cval |= UART_LCR_PARITY; in sunsu_change_speed() 800 cval |= UART_LCR_EPAR; in sunsu_change_speed() 802 cval |= UART_LCR_SPAR; in sunsu_change_speed() 878 serial_outp(up, UART_LCR, cval | UART_LCR_DLAB);/* set DLAB */ in sunsu_change_speed() [all …]
|
/linux/arch/arm64/kvm/ |
H A D | trace_arm.h | 263 __field( unsigned long long, cval ) 269 __entry->cval = timer_get_cval(ctx); 275 __entry->cval, 285 __field( unsigned long long, cval ) 291 __entry->cval = timer_get_cval(ctx); 297 __entry->cval,
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_l4lb_noinline.c | 331 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()
|
H A D | test_l4lb.c | 332 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()
|
H A D | test_l4lb_noinline_dynptr.c | 336 struct ctl_value *cval; in process_packet() local 433 cval = bpf_map_lookup_elem(&ctl_array, &v6_intf_pos); in process_packet() 434 if (!cval) in process_packet() 436 ifindex = cval->ifindex; in process_packet() 440 cval = bpf_map_lookup_elem(&ctl_array, &v4_intf_pos); in process_packet() 441 if (!cval) in process_packet() 443 ifindex = cval->ifindex; in process_packet()
|
H A D | test_xdp_noinline.c | 279 bool encap_v6(struct xdp_md *xdp, struct ctl_value *cval, in encap_v6() argument 300 memcpy(new_eth->eth_dest, cval->mac, 6); in encap_v6() 330 bool encap_v4(struct xdp_md *xdp, struct ctl_value *cval, in encap_v4() argument 356 memcpy(new_eth->eth_dest, cval->mac, 6); in encap_v4() 678 struct ctl_value *cval; in process_packet() local 748 cval = bpf_map_lookup_elem(&ctl_array, &mac_addr_pos); in process_packet() 749 if (!cval) in process_packet() 752 if (!encap_v6(xdp, cval, &pckt, dst, pkt_bytes)) in process_packet() 755 if (!encap_v4(xdp, cval, &pckt, dst, pkt_bytes)) in process_packet()
|
/linux/tools/testing/selftests/kvm/include/riscv/ |
H A D | arch_timer.h | 30 static inline void timer_set_cmp(uint64_t cval) in timer_set_cmp() argument 32 csr_write(CSR_STIMECMP, cval); in timer_set_cmp()
|
/linux/tools/testing/selftests/filesystems/statmount/ |
H A D | statmount_test_ns.c | 302 char cval; in test_listmount_ns() local 325 if (read(parent_ready_pipe[0], &cval, sizeof(cval)) != sizeof(cval)) in test_listmount_ns()
|