Home
last modified time | relevance | path

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

123

/openbmc/linux/sound/usb/
H A Dmixer.c129 #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 Dmixer_quirks.c64 struct usb_mixer_elem_info *cval; in snd_create_std_mono_ctl_offset() local
67 cval = kzalloc(sizeof(*cval), GFP_KERNEL); in snd_create_std_mono_ctl_offset()
68 if (!cval) in snd_create_std_mono_ctl_offset()
71 snd_usb_mixer_elem_init_std(&cval->head, mixer, unitid); in snd_create_std_mono_ctl_offset()
72 cval->val_type = val_type; in snd_create_std_mono_ctl_offset()
73 cval->channels = 1; in snd_create_std_mono_ctl_offset()
74 cval->control = control; in snd_create_std_mono_ctl_offset()
75 cval->cmask = cmask; in snd_create_std_mono_ctl_offset()
76 cval->idx_off = idx_off; in snd_create_std_mono_ctl_offset()
80 cval->min = 0; in snd_create_std_mono_ctl_offset()
[all …]
H A Dmixer.h105 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,
/openbmc/u-boot/drivers/power/
H A Dpalmas.c82 u8 cval = 0, vval = 0; /* Off by default */ in twl603x_mmc1_set_ldo9() local
89 cval = LDO9_BYP_EN | RSC_MODE_SLEEP | RSC_MODE_ACTIVE; in twl603x_mmc1_set_ldo9()
92 cval = RSC_MODE_SLEEP | RSC_MODE_ACTIVE; in twl603x_mmc1_set_ldo9()
102 err = palmas_i2c_write_u8(TWL603X_CHIP_P1, LDO9_CTRL, cval); in twl603x_mmc1_set_ldo9()
105 cval ? "on" : "off", err); in twl603x_mmc1_set_ldo9()
116 u8 cval = 0, vval = 0, c32k = 0; in twl603x_audio_power() local
121 cval = SMPS_MODE_SLP_AUTO | SMPS_MODE_ACT_AUTO; in twl603x_audio_power()
132 err = palmas_i2c_write_u8(TWL603X_CHIP_P1, SMPS9_CTRL, cval); in twl603x_audio_power()
135 cval ? "on" : "off", err); in twl603x_audio_power()
/openbmc/linux/arch/arm/include/asm/
H 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()
/openbmc/u-boot/drivers/video/
H A Dsandbox_osd.c93 char cval; in sandbox_osd_print() local
102 cval = 'k'; in sandbox_osd_print()
105 cval = 'w'; in sandbox_osd_print()
108 cval = 'r'; in sandbox_osd_print()
111 cval = 'g'; in sandbox_osd_print()
114 cval = 'b'; in sandbox_osd_print()
124 priv->buf[pos++] = make_memval(*(p++), cval); in sandbox_osd_print()
/openbmc/linux/arch/powerpc/platforms/embedded6xx/
H A Dls_uart.c61 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()
/openbmc/linux/drivers/memory/tegra/
H A Dtegra210-emc-cc-r21021.c126 unsigned long cval = 0; in update_clock_tree_delay() local
155 cval = tegra210_emc_actual_osc_clocks(last->run_clocks); in update_clock_tree_delay()
156 cval *= 1000000; in update_clock_tree_delay()
157 cval /= last_timing_rate_mhz * 2 * temp[0][0]; in update_clock_tree_delay()
161 __INCREMENT_PTFV(C0D0U0, cval); in update_clock_tree_delay()
165 __WEIGHTED_UPDATE_PTFV(C0D0U0, cval); in update_clock_tree_delay()
180 cval = tegra210_emc_actual_osc_clocks(last->run_clocks); in update_clock_tree_delay()
181 cval *= 1000000; in update_clock_tree_delay()
182 cval /= last_timing_rate_mhz * 2 * temp[0][1]; in update_clock_tree_delay()
186 __INCREMENT_PTFV(C0D0U1, cval); in update_clock_tree_delay()
[all …]
/openbmc/linux/sound/pci/ice1712/
H 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()
/openbmc/linux/drivers/accessibility/speakup/
H 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()
/openbmc/linux/drivers/video/fbdev/
H 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()
H 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()
H 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()
/openbmc/qemu/tests/tcg/hexagon/
H A Dpreg_alias.c63 static inline void creg_alias(uint32_t cval, PRegs *pregs) in creg_alias() argument
72 : "r"(cval) in creg_alias()
76 static inline void creg_alias_pair(uint32_t cval, PRegs *pregs) in creg_alias_pair() argument
78 uint64_t cval_pair = (0xdeadbeefULL << 32) | cval; in creg_alias_pair()
/openbmc/linux/tools/testing/selftests/kvm/include/aarch64/
H 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()
/openbmc/linux/drivers/hwtracing/coresight/
H 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) { \
/openbmc/linux/drivers/tty/serial/
H A Dxilinx_uartps.c681 u32 cval = 0; in cdns_uart_set_termios() local
752 cval |= CDNS_UART_MR_CHARLEN_6_BIT; in cdns_uart_set_termios()
755 cval |= CDNS_UART_MR_CHARLEN_7_BIT; in cdns_uart_set_termios()
759 cval |= CDNS_UART_MR_CHARLEN_8_BIT; in cdns_uart_set_termios()
767 cval |= CDNS_UART_MR_STOPMODE_2_BIT; /* 2 STOP bits */ in cdns_uart_set_termios()
769 cval |= CDNS_UART_MR_STOPMODE_1_BIT; /* 1 STOP bit */ in cdns_uart_set_termios()
775 cval |= CDNS_UART_MR_PARITY_MARK; in cdns_uart_set_termios()
777 cval |= CDNS_UART_MR_PARITY_SPACE; in cdns_uart_set_termios()
780 cval |= CDNS_UART_MR_PARITY_ODD; in cdns_uart_set_termios()
782 cval |= CDNS_UART_MR_PARITY_EVEN; in cdns_uart_set_termios()
[all …]
H A Dserial_txx9.c576 unsigned int cval, fcr = 0; in serial_txx9_set_termios() local
586 cval = sio_in(up, TXX9_SILCR); in serial_txx9_set_termios()
588 cval &= ~TXX9_SILCR_UMODE_MASK; in serial_txx9_set_termios()
591 cval |= TXX9_SILCR_UMODE_7BIT; in serial_txx9_set_termios()
597 cval |= TXX9_SILCR_UMODE_8BIT; in serial_txx9_set_termios()
603 cval &= ~TXX9_SILCR_USBL_MASK; in serial_txx9_set_termios()
605 cval |= TXX9_SILCR_USBL_2BIT; in serial_txx9_set_termios()
607 cval |= TXX9_SILCR_USBL_1BIT; in serial_txx9_set_termios()
608 cval &= ~(TXX9_SILCR_UPEN | TXX9_SILCR_UEPS); in serial_txx9_set_termios()
610 cval |= TXX9_SILCR_UPEN; in serial_txx9_set_termios()
[all …]
H A Dpxa.c406 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()
/openbmc/linux/arch/arm64/kvm/
H A Darch_timer.c141 static void timer_set_cval(struct arch_timer_context *ctxt, u64 cval) in timer_set_cval() argument
147 __vcpu_sys_reg(vcpu, CNTV_CVAL_EL0) = cval; in timer_set_cval()
150 __vcpu_sys_reg(vcpu, CNTP_CVAL_EL0) = cval; in timer_set_cval()
153 __vcpu_sys_reg(vcpu, CNTHV_CVAL_EL2) = cval; in timer_set_cval()
156 __vcpu_sys_reg(vcpu, CNTHP_CVAL_EL2) = cval; in timer_set_cval()
383 u64 cval, now; in kvm_timer_should_fire() local
416 cval = timer_get_cval(timer_ctx); in kvm_timer_should_fire()
419 return cval <= now; in kvm_timer_should_fire()
510 u64 cval; in timer_save_state() local
541 cval = read_sysreg_el0(SYS_CNTP_CVAL); in timer_save_state()
[all …]
H A Dtrace_arm.h238 __field( unsigned long long, cval )
244 __entry->cval = timer_get_cval(ctx);
250 __entry->cval,
260 __field( unsigned long long, cval )
266 __entry->cval = timer_get_cval(ctx);
272 __entry->cval,
/openbmc/linux/tools/testing/selftests/bpf/progs/
H 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()
H 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()
H A Dtest_l4lb_noinline_dynptr.c336 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 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()
663 struct ctl_value *cval; in process_packet() local
732 cval = bpf_map_lookup_elem(&ctl_array, &mac_addr_pos); in process_packet()
733 if (!cval) in process_packet()
736 if (!encap_v6(xdp, cval, &pckt, dst, pkt_bytes)) in process_packet()
739 if (!encap_v4(xdp, cval, &pckt, dst, pkt_bytes)) in process_packet()

123