Home
last modified time | relevance | path

Searched refs:val2 (Results 1 – 25 of 560) sorted by relevance

12345678910>>...23

/linux-6.1.9/drivers/iio/light/
Dlv0104cs.c48 int val2; member
161 int *val, int *val2) in lv0104cs_get_lux() argument
203 *val2 = 0; in lv0104cs_get_lux()
208 *val2 = 0; in lv0104cs_get_lux()
213 *val2 = (adc_output % 2) * 500000; in lv0104cs_get_lux()
218 *val2 = (adc_output % 8) * 125000; in lv0104cs_get_lux()
228 int *val, int *val2, long mask) in lv0104cs_read_raw() argument
240 ret = lv0104cs_get_lux(lv0104cs, val, val2); in lv0104cs_read_raw()
248 *val2 = lv0104cs_calibscales[lv0104cs->calibscale].val2; in lv0104cs_read_raw()
254 *val2 = lv0104cs_scales[lv0104cs->scale].val2; in lv0104cs_read_raw()
[all …]
Dveml6030.c215 int *val, int *val2) in veml6030_get_intgrn_tm() argument
229 *val2 = 100000; in veml6030_get_intgrn_tm()
232 *val2 = 200000; in veml6030_get_intgrn_tm()
235 *val2 = 400000; in veml6030_get_intgrn_tm()
238 *val2 = 800000; in veml6030_get_intgrn_tm()
241 *val2 = 50000; in veml6030_get_intgrn_tm()
244 *val2 = 25000; in veml6030_get_intgrn_tm()
255 int val, int val2) in veml6030_set_intgrn_tm() argument
263 switch (val2) { in veml6030_set_intgrn_tm()
316 int *val, int *val2) in veml6030_read_persistence() argument
[all …]
Dopt3001.c97 int val2; member
103 .val2 = 950000,
107 .val2 = 900000,
111 .val2 = 800000,
115 .val2 = 600000,
119 .val2 = 200000,
123 .val2 = 400000,
127 .val2 = 800000,
131 .val2 = 600000,
135 .val2 = 200000,
[all …]
Dcm3232.c43 int val2; member
133 static int cm3232_read_als_it(struct cm3232_chip *chip, int *val, int *val2) in cm3232_read_als_it() argument
144 *val2 = cm3232_als_it_scales[i].val2; in cm3232_read_als_it()
162 static int cm3232_write_als_it(struct cm3232_chip *chip, int val, int val2) in cm3232_write_als_it() argument
171 val2 == cm3232_als_it_scales[i].val2) { in cm3232_write_als_it()
204 int val, val2; in cm3232_get_lux() local
209 ret = cm3232_read_als_it(chip, &val, &val2); in cm3232_get_lux()
212 als_it = val * 1000000 + val2; in cm3232_get_lux()
237 int *val, int *val2, long mask) in cm3232_read_raw() argument
254 return cm3232_read_als_it(chip, val, val2); in cm3232_read_raw()
[all …]
Dnoa1305.c65 static int noa1305_scale(struct noa1305_priv *priv, int *val, int *val2) in noa1305_scale() argument
83 *val2 = 77 * 8; in noa1305_scale()
87 *val2 = 77 * 4; in noa1305_scale()
91 *val2 = 77 * 2; in noa1305_scale()
95 *val2 = 77; in noa1305_scale()
99 *val2 = 77 * 5; in noa1305_scale()
103 *val2 = 77 * 25; in noa1305_scale()
107 *val2 = 77 * 125; in noa1305_scale()
111 *val2 = 77 * 625; in noa1305_scale()
130 int *val, int *val2, long mask) in noa1305_read_raw() argument
[all …]
Dzopt2201.c256 int *val, int *val2, long mask) in zopt2201_read_raw() argument
289 *val2 = 1000000; in zopt2201_read_raw()
290 *val2 *= (1 << (zopt2201_resolution[data->res].bits - 13)); in zopt2201_read_raw()
291 tmp = div_s64(*val * 1000000ULL, *val2); in zopt2201_read_raw()
292 *val = div_s64_rem(tmp, 1000000, val2); in zopt2201_read_raw()
297 *val2 = zopt2201_resolution[data->res].us; in zopt2201_read_raw()
320 int val, int val2) in zopt2201_write_resolution() argument
328 if (val2 == zopt2201_resolution[i].us) { in zopt2201_write_resolution()
368 int val, int val2) in zopt2201_write_scale_als() argument
374 val2 == zopt2201_scale_als[i].uscale) { in zopt2201_write_scale_als()
[all …]
Dltr501.c188 int len, int val, int val2) in ltr501_match_samp_freq() argument
192 freq = val * 1000000 + val2; in ltr501_match_samp_freq()
203 int *val, int *val2) in ltr501_als_read_samp_freq() argument
215 *val2 = ltr501_als_samp_table[i].freq_val % 1000000; in ltr501_als_read_samp_freq()
221 int *val, int *val2) in ltr501_ps_read_samp_freq() argument
233 *val2 = ltr501_ps_samp_table[i].freq_val % 1000000; in ltr501_ps_read_samp_freq()
239 int val, int val2) in ltr501_als_write_samp_freq() argument
245 val, val2); in ltr501_als_write_samp_freq()
258 int val, int val2) in ltr501_ps_write_samp_freq() argument
264 val, val2); in ltr501_ps_write_samp_freq()
[all …]
Dtsl4531.c76 int *val, int *val2, long mask) in tsl4531_read_raw() argument
95 *val2 = 400000; in tsl4531_read_raw()
97 *val2 = 200000; in tsl4531_read_raw()
99 *val2 = 100000; in tsl4531_read_raw()
111 int val, int val2, long mask) in tsl4531_write_raw() argument
120 if (val2 == 400000) in tsl4531_write_raw()
122 else if (val2 == 200000) in tsl4531_write_raw()
124 else if (val2 == 100000) in tsl4531_write_raw()
Dcm3323.c36 int val2; member
116 static int cm3323_set_it_bits(struct cm3323_data *data, int val, int val2) in cm3323_set_it_bits() argument
123 val2 == cm3323_int_time[i].val2) { in cm3323_set_it_bits()
157 int *val2, long mask) in cm3323_read_raw() argument
183 *val2 = cm3323_int_time[ret].val2; in cm3323_read_raw()
194 int val2, long mask) in cm3323_write_raw() argument
202 ret = cm3323_set_it_bits(data, val, val2); in cm3323_write_raw()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_core_autosize.c15 unsigned int val2; member
24 unsigned long val2; member
34 long val2; member
42 unsigned int val2; member
53 .val2 = 0x0a0b0c0d,
94 val2_samesized = in->val2; in handle_samesize()
100 out->val2 = in->val2; in handle_samesize()
115 val2_downsized = in->val2; in handle_downsize()
121 out->val2 = in->val2; in handle_downsize()
153 bpf_core_read_int(&tmp, bpf_core_field_size(in->val2), &in->val2); in handle_probed()
[all …]
/linux-6.1.9/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c51 register u16 val1, val2; in pdacf_transfer_mono32() local
55 val2 = inw(rdp_port); in pdacf_transfer_mono32()
57 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_mono32()
71 register u16 val1, val2, val3; in pdacf_transfer_stereo32() local
75 val2 = inw(rdp_port); in pdacf_transfer_stereo32()
77 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_stereo32()
78 *dst++ = (((u32)val3 << 16) | (val2 & 0xff00)) ^ xor; in pdacf_transfer_stereo32()
92 register u16 val1, val2; in pdacf_transfer_mono32sw() local
96 val2 = inw(rdp_port); in pdacf_transfer_mono32sw()
98 *dst++ = swab32((((val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor); in pdacf_transfer_mono32sw()
[all …]
/linux-6.1.9/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c93 static void split_micro_fraction(unsigned int no, int exp, int *val1, int *val2) in split_micro_fraction() argument
98 *val2 = no % divisor * int_pow(10, 6 - exp); in split_micro_fraction()
110 int *val1, int *val2) in convert_from_vtf_format() argument
121 *val2 = 0; in convert_from_vtf_format()
123 split_micro_fraction(value, -exp, val1, val2); in convert_from_vtf_format()
127 *val2 = sign * (*val2); in convert_from_vtf_format()
131 static u32 convert_to_vtf_format(int size, int exp, int val1, int val2) in convert_to_vtf_format() argument
137 if (val1 < 0 || val2 < 0) in convert_to_vtf_format()
143 value += abs(val2) / divisor; in convert_to_vtf_format()
175 int *val1, int *val2) in hid_sensor_read_samp_freq_value() argument
[all …]
/linux-6.1.9/drivers/iio/adc/
Daxp20x_adc.c280 static int axp20x_adc_scale_voltage(int channel, int *val, int *val2) in axp20x_adc_scale_voltage() argument
286 *val2 = 700000; in axp20x_adc_scale_voltage()
292 *val2 = 500000; in axp20x_adc_scale_voltage()
297 *val2 = 100000; in axp20x_adc_scale_voltage()
302 *val2 = 400000; in axp20x_adc_scale_voltage()
308 *val2 = 800000; in axp20x_adc_scale_voltage()
316 static int axp22x_adc_scale_voltage(int channel, int *val, int *val2) in axp22x_adc_scale_voltage() argument
322 *val2 = 100000; in axp22x_adc_scale_voltage()
328 *val2 = 800000; in axp22x_adc_scale_voltage()
335 static int axp813_adc_scale_voltage(int channel, int *val, int *val2) in axp813_adc_scale_voltage() argument
[all …]
/linux-6.1.9/arch/arm/probes/kprobes/
Dtest-core.h239 #define TEST_RR(code1, reg1, val1, code2, reg2, val2, code3) \ argument
242 TEST_ARG_REG(reg2, val2) \
247 #define TEST_RRR(code1, reg1, val1, code2, reg2, val2, code3, reg3, val3, code4)\ argument
250 TEST_ARG_REG(reg2, val2) \
256 #define TEST_RRRR(code1, reg1, val1, code2, reg2, val2, code3, reg3, val3, code4, reg4, val4) \ argument
259 TEST_ARG_REG(reg2, val2) \
273 #define TEST_PR(code1, reg1, val1, code2, reg2, val2, code3) \ argument
276 TEST_ARG_REG(reg2, val2) \
281 #define TEST_RP(code1, reg1, val1, code2, reg2, val2, code3) \ argument
284 TEST_ARG_PTR(reg2, val2) \
[all …]
/linux-6.1.9/lib/
Dtest_ubsan.c17 volatile int val2 = 0; in test_ubsan_divrem_overflow() local
20 val /= val2; in test_ubsan_divrem_overflow()
27 int val2 = INT_MAX; in test_ubsan_shift_out_of_bounds() local
33 val2 <<= wrap; in test_ubsan_shift_out_of_bounds()
61 bool val, val2, *ptr; in test_ubsan_load_invalid_value() local
70 ptr = &val2; in test_ubsan_load_invalid_value()
71 val2 = val; in test_ubsan_load_invalid_value()
/linux-6.1.9/arch/sh/boards/mach-dreamcast/
Drtc.c35 unsigned long val1, val2; in aica_rtc_gettimeofday() local
42 val2 = ((__raw_readl(AICA_RTC_SECS_H) & 0xffff) << 16) | in aica_rtc_gettimeofday()
44 } while (val1 != val2); in aica_rtc_gettimeofday()
63 unsigned long val1, val2; in aica_rtc_settimeofday() local
74 val2 = ((__raw_readl(AICA_RTC_SECS_H) & 0xffff) << 16) | in aica_rtc_settimeofday()
76 } while (val1 != val2); in aica_rtc_settimeofday()
/linux-6.1.9/drivers/iio/proximity/
Disl29501.c658 int *val, int *val2) in isl29501_get_scale() argument
667 *val2 = 6553600; in isl29501_get_scale()
673 *val2 = 95874; in isl29501_get_scale()
679 *val2 = 10000; in isl29501_get_scale()
694 *val2 = 0; in isl29501_get_scale()
699 *val2 = isl29501_current_scale_table[current_scale - 1][1]; in isl29501_get_scale()
705 *val2 = 100000; in isl29501_get_scale()
732 int *val, int *val2) in isl29501_get_inttime() argument
745 *val2 = isl29501_int_time[inttime][1]; in isl29501_get_inttime()
751 int *val, int *val2) in isl29501_get_freq() argument
[all …]
/linux-6.1.9/drivers/iio/afe/
Diio-rescale.c23 int *val, int *val2) in rescale_process_scale() argument
36 *val2 = rescale->denominator; in rescale_process_scale()
45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) { in rescale_process_scale()
47 *val2 = _val2; in rescale_process_scale()
63 tmp = *val2; in rescale_process_scale()
65 tmp = ULL(1) << *val2; in rescale_process_scale()
70 *val2 = rem / (int)tmp; in rescale_process_scale()
72 *val2 += div_s64((s64)rem2 * 1000000000LL, tmp); in rescale_process_scale()
84 neg = *val < 0 || *val2 < 0; in rescale_process_scale()
89 tmp = (s64)rem * mult + (s64)abs(*val2) * abs(rescale->numerator); in rescale_process_scale()
[all …]
/linux-6.1.9/drivers/iio/dac/
Ddpot-dac.c54 int *val, int *val2, long mask) in dpot_dac_read_raw() argument
65 ret = iio_read_channel_scale(dac->dpot, val, val2); in dpot_dac_read_raw()
79 *val2 = 1; in dpot_dac_read_raw()
85 *val2 *= dac->max_ohms; in dpot_dac_read_raw()
113 int val, int val2, long mask) in dpot_dac_write_raw() argument
138 int val2; in dpot_dac_channel_max_ohms() local
147 switch (iio_read_channel_scale(dac->dpot, &val, &val2)) { in dpot_dac_channel_max_ohms()
152 do_div(tmp, val2); in dpot_dac_channel_max_ohms()
155 tmp = val * 1000000000LL * max >> val2; in dpot_dac_channel_max_ohms()
/linux-6.1.9/tools/testing/selftests/proc/
Dproc-uptime.h27 uint64_t val1, val2; in proc_uptime() local
45 val2 = (p[1] - '0') * 10 + p[2] - '0'; in proc_uptime()
46 *uptime = val1 * 100 + val2; in proc_uptime()
56 val2 = (p[1] - '0') * 10 + p[2] - '0'; in proc_uptime()
57 *idle = val1 * 100 + val2; in proc_uptime()
/linux-6.1.9/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_accel.c217 int *val, int *val2) in inv_icm42600_accel_read_scale() argument
224 *val2 = inv_icm42600_accel_scale[2 * idx + 1]; in inv_icm42600_accel_read_scale()
229 int val, int val2) in inv_icm42600_accel_write_scale() argument
238 val2 == inv_icm42600_accel_scale[idx + 1]) in inv_icm42600_accel_write_scale()
290 int *val, int *val2) in inv_icm42600_accel_read_odr() argument
305 *val2 = inv_icm42600_accel_odr[2 * i + 1]; in inv_icm42600_accel_read_odr()
311 int val, int val2) in inv_icm42600_accel_write_odr() argument
322 val2 == inv_icm42600_accel_odr[idx + 1]) in inv_icm42600_accel_write_odr()
364 int *val, int *val2) in inv_icm42600_accel_read_offset() argument
433 *val2 = bias % 1000000L; in inv_icm42600_accel_read_offset()
[all …]
Dinv_icm42600_gyro.c229 int *val, int *val2) in inv_icm42600_gyro_read_scale() argument
236 *val2 = inv_icm42600_gyro_scale[2 * idx + 1]; in inv_icm42600_gyro_read_scale()
241 int val, int val2) in inv_icm42600_gyro_write_scale() argument
250 val2 == inv_icm42600_gyro_scale[idx + 1]) in inv_icm42600_gyro_write_scale()
302 int *val, int *val2) in inv_icm42600_gyro_read_odr() argument
317 *val2 = inv_icm42600_gyro_odr[2 * i + 1]; in inv_icm42600_gyro_read_odr()
323 int val, int val2) in inv_icm42600_gyro_write_odr() argument
334 val2 == inv_icm42600_gyro_odr[idx + 1]) in inv_icm42600_gyro_write_odr()
376 int *val, int *val2) in inv_icm42600_gyro_read_offset() argument
445 *val2 = bias % 1000000000L; in inv_icm42600_gyro_read_offset()
[all …]
/linux-6.1.9/drivers/iio/humidity/
Dhdc100x.c147 static int hdc100x_set_it_time(struct hdc100x_data *data, int chan, int val2) in hdc100x_set_it_time() argument
154 if (val2 && val2 == hdc100x_int_time[chan][i]) { in hdc100x_set_it_time()
159 data->adc_int_us[chan] = val2; in hdc100x_set_it_time()
201 int *val2, long mask) in hdc100x_read_raw() argument
232 *val2 = data->adc_int_us[chan->address]; in hdc100x_read_raw()
237 *val2 = 65536; in hdc100x_read_raw()
241 *val2 = 65536; in hdc100x_read_raw()
247 *val2 = 515151; in hdc100x_read_raw()
256 int val, int val2, long mask) in hdc100x_write_raw() argument
267 ret = hdc100x_set_it_time(data, chan->address, val2); in hdc100x_write_raw()
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/display/
Ddvo_tfp410.c268 u8 val, val2; in tfp410_dump_regs() local
287 tfp410_readb(dvo, TFP410_DE_CNT_HI, &val2); in tfp410_dump_regs()
288 DRM_DEBUG_KMS("TFP410_DE_CNT: 0x%02X%02X\n", val2, val); in tfp410_dump_regs()
290 tfp410_readb(dvo, TFP410_DE_LIN_HI, &val2); in tfp410_dump_regs()
291 DRM_DEBUG_KMS("TFP410_DE_LIN: 0x%02X%02X\n", val2, val); in tfp410_dump_regs()
293 tfp410_readb(dvo, TFP410_H_RES_HI, &val2); in tfp410_dump_regs()
294 DRM_DEBUG_KMS("TFP410_H_RES: 0x%02X%02X\n", val2, val); in tfp410_dump_regs()
296 tfp410_readb(dvo, TFP410_V_RES_HI, &val2); in tfp410_dump_regs()
297 DRM_DEBUG_KMS("TFP410_V_RES: 0x%02X%02X\n", val2, val); in tfp410_dump_regs()
/linux-6.1.9/sound/isa/cs423x/
Dcs4236_lib.c549 unsigned short val1, val2; in snd_cs4236_put_double() local
552 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double()
555 val2 = mask - val2; in snd_cs4236_put_double()
558 val2 <<= shift_right; in snd_cs4236_put_double()
562 val2 = (chip->eimage[CS4236_REG(right_reg)] & ~(mask << shift_right)) | val2; in snd_cs4236_put_double()
563 …change = val1 != chip->eimage[CS4236_REG(left_reg)] || val2 != chip->eimage[CS4236_REG(right_reg)]; in snd_cs4236_put_double()
565 snd_cs4236_ext_out(chip, right_reg, val2); in snd_cs4236_put_double()
567 …hip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_cs4236_put_double()
625 unsigned short val1, val2; in snd_cs4236_put_double1() local
628 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double1()
[all …]

12345678910>>...23