/kernel/linux/linux-6.6/drivers/iio/position/ |
H A D | hid-sensor-custom-intel-hinge.c | 110 struct iio_chan_spec const *chan, int *val, int *val2, in hinge_read_raw() 129 *val = sensor_hub_input_attr_get_raw_value(st->common_attributes.hsdev, in hinge_read_raw() 138 *val = st->scale_pre_decml; in hinge_read_raw() 142 *val = st->value_offset; in hinge_read_raw() 146 val, val2); in hinge_read_raw() 149 val, val2); in hinge_read_raw() 157 struct iio_chan_spec const *chan, int val, int val2, in hinge_write_raw() 165 val, val2); in hinge_write_raw() 168 val, val2); in hinge_write_raw() 109 hinge_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int *val, int *val2, long mask) hinge_read_raw() argument 156 hinge_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int val, int val2, long mask) hinge_write_raw() argument
|
/kernel/linux/linux-6.6/drivers/macintosh/ |
H A D | windfarm_core.c | 164 s32 val = 0; in wf_show_control() local 167 err = ctrl->ops->get_value(ctrl, &val); in wf_show_control() 183 return sprintf(buf, "%d%s\n", val, typestr); in wf_show_control() 192 int val; in wf_store_control() local 196 val = simple_strtoul(buf, &endp, 0); in wf_store_control() 201 err = ctrl->ops->set_value(ctrl, val); in wf_store_control() 293 s32 val = 0; in wf_show_sensor() local 296 err = sens->ops->get_value(sens, &val); in wf_show_sensor() 299 return sprintf(buf, "%d.%03d\n", FIX32TOPRINT(val)); in wf_show_sensor()
|
/kernel/linux/linux-6.6/drivers/input/keyboard/ |
H A D | iqs62x-keys.c | 49 unsigned int val; in iqs62x_keys_parse_prop() local 76 ret = fwnode_property_read_u32(child, "linux,code", &val); in iqs62x_keys_parse_prop() 83 iqs62x_keys->switches[i].code = val; in iqs62x_keys_parse_prop() 105 unsigned int event_reg, val; in iqs62x_keys_init() local 131 &val); in iqs62x_keys_init() 152 (val & iqs62x_events[flag].mask) == in iqs62x_keys_init() 153 iqs62x_events[flag].val); in iqs62x_keys_init() 173 &val); in iqs62x_keys_init() 177 iqs62x_keys->interval = val; in iqs62x_keys_init()
|
H A D | tca6416-keypad.c | 55 static int tca6416_write_reg(struct tca6416_keypad_chip *chip, int reg, u16 val) in tca6416_write_reg() argument 60 i2c_smbus_write_word_data(chip->client, reg << 1, val) : in tca6416_write_reg() 61 i2c_smbus_write_byte_data(chip->client, reg, val); in tca6416_write_reg() 64 "%s failed, reg: %d, val: %d, error: %d\n", in tca6416_write_reg() 65 __func__, reg, val, error); in tca6416_write_reg() 72 static int tca6416_read_reg(struct tca6416_keypad_chip *chip, int reg, u16 *val) in tca6416_read_reg() argument 85 *val = (u16)retval; in tca6416_read_reg() 92 u16 reg_val, val; in tca6416_keys_scan() local 102 val = reg_val ^ chip->reg_input; in tca6416_keys_scan() 106 if (val in tca6416_keys_scan() [all...] |
/kernel/linux/linux-6.6/drivers/media/cec/platform/cec-gpio/ |
H A D | cec-gpio.c | 74 int val = gpiod_get_value(cec->v5_gpio); in cec_5v_gpio_irq_handler() local 75 bool is_high = val > 0; in cec_5v_gpio_irq_handler() 77 if (val < 0 || is_high == cec->v5_is_high) in cec_5v_gpio_irq_handler() 95 int val = gpiod_get_value(cec->hpd_gpio); in cec_hpd_gpio_irq_handler() local 96 bool is_high = val > 0; in cec_hpd_gpio_irq_handler() 98 if (val < 0 || is_high == cec->hpd_is_high) in cec_hpd_gpio_irq_handler() 108 int val = gpiod_get_value(cec->cec_gpio); in cec_gpio_irq_handler() local 110 if (val >= 0) in cec_gpio_irq_handler() 111 cec_pin_changed(cec->adap, val > 0); in cec_gpio_irq_handler()
|
/kernel/linux/linux-6.6/sound/synth/emux/ |
H A D | emux_effect.c | 91 effect = fx->val[type]; in effect_set_byte() 112 effect = *(unsigned short*)&fx->val[type]; in effect_set_word() 130 addr = (short)fx->val[hi]; in effect_get_offset() 133 addr += (short)fx->val[lo]; in effect_get_offset() 143 struct snd_midi_channel *chan, int type, int val) in snd_emux_send_effect_oss() 155 snd_emux_send_effect(port, chan, type, val, mode); in snd_emux_send_effect_oss() 164 int type, int val, int mode) in snd_emux_send_effect() 180 fx->val[type] = val; in snd_emux_send_effect() 142 snd_emux_send_effect_oss(struct snd_emux_port *port, struct snd_midi_channel *chan, int type, int val) snd_emux_send_effect_oss() argument 163 snd_emux_send_effect(struct snd_emux_port *port, struct snd_midi_channel *chan, int type, int val, int mode) snd_emux_send_effect() argument
|
/kernel/linux/linux-6.6/drivers/s390/cio/ |
H A D | blacklist.c | 77 static int pure_hex(char **cp, unsigned int *val, int min_digit, in pure_hex() argument 83 *val = 0; in pure_hex() 90 *val = *val * 16 + value; in pure_hex() 95 if ((diff < min_digit) || (diff > max_digit) || (*val > max_val)) in pure_hex() 105 int val, rc, ret; in parse_busid() local 114 val = simple_strtoul(str, &str_work, 16); in parse_busid() 117 if (val <= __MAX_SUBCHANNEL) { in parse_busid() 118 *devno = val; in parse_busid()
|
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | trace_branch.c | 31 probe_likely_condition(struct ftrace_likely_data *f, int val, int expect) in probe_likely_condition() argument 83 entry->correct = val == expect; in probe_likely_condition() 94 void trace_likely_condition(struct ftrace_likely_data *f, int val, int expect) in trace_likely_condition() argument 99 probe_likely_condition(f, val, expect); in trace_likely_condition() 200 void trace_likely_condition(struct ftrace_likely_data *f, int val, int expect) in trace_likely_condition() argument 205 void ftrace_likely_update(struct ftrace_likely_data *f, int val, in ftrace_likely_update() argument 213 val = expect; in ftrace_likely_update() 221 trace_likely_condition(f, val, expect); in ftrace_likely_update() 224 if (val == expect) in ftrace_likely_update()
|
/kernel/liteos_m/arch/arm/arm9/gcc/ |
H A D | los_interrupt.c | 327 UINT32 val;
in HalHwiInit() local 330 for (val = OS_SYS_VECTOR_CNT; val < OS_VECTOR_CNT; val++) {
in HalHwiInit() 332 hwiForm[val].pfnHook = HalHwiDefaultHandler;
in HalHwiInit() 333 hwiForm[val].uwParam = 0;
in HalHwiInit() 335 hwiForm[val] = (HWI_PROC_FUNC)HalHwiDefaultHandler;
in HalHwiInit() 339 val = OS_INT_IRQ_ENABLE | OS_INT_FIQ_ENABLE;
in HalHwiInit() 341 reg |= val;
in HalHwiInit()
|
/foundation/resourceschedule/ffrt/src/internal_inc/ |
H A D | osal.h | 38 char* val = std::getenv(name); in GetEnv() local 39 if (val == nullptr) { in GetEnv() 42 return val; in GetEnv()
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
H A D | archrandom.h | 56 unsigned long val; in arch_get_random_seed_int() local 57 bool ok = arch_get_random_seed_long(&val); in arch_get_random_seed_int() 59 *v = val; in arch_get_random_seed_int()
|
/kernel/linux/linux-5.10/arch/alpha/include/asm/ |
H A D | word-at-a-time.h | 21 /* Return nonzero if val has a zero */ 22 static inline unsigned long has_zero(unsigned long val, unsigned long *bits, const struct word_at_a_time *c) in has_zero() argument 24 unsigned long zero_locations = __kernel_cmpbge(0, val); in has_zero() 29 static inline unsigned long prep_zero_mask(unsigned long val, unsigned long bits, const struct word_at_a_time *c) in prep_zero_mask() argument
|
/kernel/linux/linux-5.10/arch/h8300/include/asm/ |
H A D | flat.h | 22 u32 val = get_unaligned((__force u32 *)rp); in flat_get_addr_from_rp() local 24 val &= 0x00ffffff; in flat_get_addr_from_rp() 25 *addr = val; in flat_get_addr_from_rp()
|
/kernel/linux/linux-5.10/arch/powerpc/boot/ |
H A D | ep8248e.c | 22 u64 val; in platform_fixups() local 27 if (!planetcore_get_decimal(table, PLANETCORE_KEY_CRYSTAL_HZ, &val)) { in platform_fixups() 32 pq2_fixup_clocks(val); in platform_fixups()
|
H A D | ep88xc.c | 20 u64 val; in platform_fixups() local 25 if (!planetcore_get_decimal(table, PLANETCORE_KEY_CRYSTAL_HZ, &val)) { in platform_fixups() 30 mpc885_fixup_clocks(val); in platform_fixups()
|
/kernel/linux/linux-5.10/arch/arm/boot/ |
H A D | deflate_xip_data.sh | 31 local val=$($NM "$VMLINUX" 2>/dev/null | sed -n "/ $1\$/{s/ .*$//p;q}") 32 [ "$val" ] || { echo "can't find $1 in $VMLINUX" 1>&2; exit 1; } 34 echo $((0x$val))
|
/kernel/linux/linux-6.6/arch/arm/boot/ |
H A D | deflate_xip_data.sh | 31 local val=$($NM "$VMLINUX" 2>/dev/null | sed -n "/ $1\$/{s/ .*$//p;q}") 32 [ "$val" ] || { echo "can't find $1 in $VMLINUX" 1>&2; exit 1; } 34 echo $((0x$val))
|
/kernel/linux/linux-6.6/arch/csky/abiv2/inc/abi/ |
H A D | pgtable-bits.h | 45 #define __swp_type(x) (((x).val >> 2) & 0x1f) 46 #define __swp_offset(x) ((((x).val >> 8) & 0x1) | \ 47 (((x).val >> 10) & 0x3ffffe))
|
/kernel/linux/linux-6.6/arch/csky/abiv1/inc/abi/ |
H A D | pgtable-bits.h | 45 #define __swp_type(x) ((((x).val >> 2) & 0xf) | \ 46 (((x).val >> 4) & 0x10)) 47 #define __swp_offset(x) ((x).val >> 10)
|
/kernel/linux/linux-6.6/arch/powerpc/boot/ |
H A D | ep8248e.c | 22 u64 val; in platform_fixups() local 27 if (!planetcore_get_decimal(table, PLANETCORE_KEY_CRYSTAL_HZ, &val)) { in platform_fixups() 32 pq2_fixup_clocks(val); in platform_fixups()
|
H A D | ep88xc.c | 20 u64 val; in platform_fixups() local 25 if (!planetcore_get_decimal(table, PLANETCORE_KEY_CRYSTAL_HZ, &val)) { in platform_fixups() 30 mpc885_fixup_clocks(val); in platform_fixups()
|
/kernel/linux/linux-6.6/arch/alpha/include/asm/ |
H A D | word-at-a-time.h | 21 /* Return nonzero if val has a zero */ 22 static inline unsigned long has_zero(unsigned long val, unsigned long *bits, const struct word_at_a_time *c) in has_zero() argument 24 unsigned long zero_locations = __kernel_cmpbge(0, val); in has_zero() 29 static inline unsigned long prep_zero_mask(unsigned long val, unsigned long bits, const struct word_at_a_time *c) in prep_zero_mask() argument
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_bpf_sk_storage_map.c | 24 __u32 *val = ctx->value; in dump_bpf_sk_storage_map() local 26 if (sk == (void *)0 || val == (void *)0) in dump_bpf_sk_storage_map() 32 val_sum += *val; in dump_bpf_sk_storage_map()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | range.h | 30 static inline resource_size_t cap_resource(u64 val) in cap_resource() argument 32 if (val > MAX_RESOURCE) in cap_resource() 35 return val; in cap_resource()
|
/kernel/linux/linux-5.10/scripts/dtc/libfdt/ |
H A D | fdt_strerror.c | 18 #define FDT_ERRTABENT(val) \ 19 [(val)] = { .str = #val, }
|