/linux/drivers/iio/common/hid-sensors/ |
H A D | hid-sensor-attributes.c | 124 if (*val1) in convert_from_vtf_format() 125 *val1 = sign * (*val1); in convert_from_vtf_format() 184 *val1 = *val2 = 0; in hid_sensor_read_samp_freq_value() 247 *val1 = *val2 = 0; in hid_sensor_read_raw_hyst_value() 252 val1, val2); in hid_sensor_read_raw_hyst_value() 293 val1, val2); in hid_sensor_write_raw_hyst_value() 324 val1, val2); in hid_sensor_write_raw_hyst_rel_value() 368 *val1 = 0; in adjust_exponent_nano() 398 *val1 = scale1; in adjust_exponent_nano() 410 *val1 = 0; in hid_sensor_format_scale() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_core_autosize.c | 14 unsigned long long val1; member 23 unsigned long val1; member 33 long val1; member 43 unsigned long long val1; member 52 .val1 = 0x1020304050607080, 93 val1_samesized = in->val1; in handle_samesize() 99 out->val1 = in->val1; in handle_samesize() 114 val1_downsized = in->val1; in handle_downsize() 120 out->val1 = in->val1; in handle_downsize() 149 bpf_core_read_int(&tmp, bpf_core_field_size(in->val1), &in->val1); in handle_probed()
|
/linux/sound/pcmcia/pdaudiocf/ |
H A D | pdaudiocf_irq.c | 51 register u16 val1, val2; in pdacf_transfer_mono32() local 54 val1 = inw(rdp_port); in pdacf_transfer_mono32() 74 val1 = inw(rdp_port); in pdacf_transfer_stereo32() 92 register u16 val1, val2; in pdacf_transfer_mono32sw() local 95 val1 = inw(rdp_port); in pdacf_transfer_mono32sw() 115 val1 = inw(rdp_port); in pdacf_transfer_stereo32sw() 125 register u16 val1, val2; in pdacf_transfer_mono24le() local 129 val1 = inw(rdp_port); in pdacf_transfer_mono24le() 145 val1 = inw(rdp_port); in pdacf_transfer_mono24be() 161 val1 = inw(rdp_port); in pdacf_transfer_stereo24le() [all …]
|
/linux/arch/arm/probes/kprobes/ |
H A D | test-core.h | 241 TEST_ARG_REG(reg1, val1) \ 249 TEST_ARG_REG(reg1, val1) \ 258 TEST_ARG_REG(reg1, val1) \ 268 TEST_ARG_PTR(reg1, val1) \ 275 TEST_ARG_PTR(reg1, val1) \ 283 TEST_ARG_REG(reg1, val1) \ 291 TEST_ARG_PTR(reg1, val1) \ 300 TEST_ARG_REG(reg1, val1) \ 309 TEST_ARG_REG(reg1, val1) \ 318 TEST_ARG_PTR(reg1, val1) \ [all …]
|
/linux/arch/sh/boards/mach-dreamcast/ |
H A D | rtc.c | 35 unsigned long val1, val2; in aica_rtc_gettimeofday() local 39 val1 = ((__raw_readl(AICA_RTC_SECS_H) & 0xffff) << 16) | in aica_rtc_gettimeofday() 44 } while (val1 != val2); in aica_rtc_gettimeofday() 47 t = (u32)(val1 - TWENTY_YEARS); in aica_rtc_gettimeofday() 63 unsigned long val1, val2; in aica_rtc_settimeofday() local 71 val1 = ((__raw_readl(AICA_RTC_SECS_H) & 0xffff) << 16) | in aica_rtc_settimeofday() 76 } while (val1 != val2); in aica_rtc_settimeofday()
|
/linux/sound/i2c/ |
H A D | tea6330t.c | 96 unsigned char val1, val2; in snd_tea6330t_put_master_volume() local 102 tea->mleft = val1; in snd_tea6330t_put_master_volume() 148 unsigned char oval1, oval2, val1, val2; in snd_tea6330t_put_master_switch() local 150 val1 = ucontrol->value.integer.value[0] & 1; in snd_tea6330t_put_master_switch() 155 change = val1 != oval1 || val2 != oval2; in snd_tea6330t_put_master_switch() 200 unsigned char val1; in snd_tea6330t_put_bass() local 204 tea->bass = val1; in snd_tea6330t_put_bass() 205 val1 += tea->equalizer ? 7 : 3; in snd_tea6330t_put_bass() 248 unsigned char val1; in snd_tea6330t_put_treble() local 252 tea->treble = val1; in snd_tea6330t_put_treble() [all …]
|
/linux/drivers/iio/adc/ |
H A D | mt6370-adc.c | 133 int chan, int *val1, int *val2) in mt6370_adc_read_scale() argument 142 *val1 = 5; in mt6370_adc_read_scale() 157 *val1 = mt6370_adc_get_ibus_scale(priv); in mt6370_adc_read_scale() 160 *val1 = 5000; in mt6370_adc_read_scale() 178 *val1 = 2375; in mt6370_adc_read_scale() 184 *val1 = mt6370_adc_get_ibat_scale(priv); in mt6370_adc_read_scale() 187 *val1 = 5000; in mt6370_adc_read_scale() 195 *val1 = 25; in mt6370_adc_read_scale() 198 *val1 = 10; in mt6370_adc_read_scale() 201 *val1 = 25; in mt6370_adc_read_scale() [all …]
|
H A D | mcp3422.c | 161 struct iio_chan_spec const *channel, int *val1, in mcp3422_read_raw() argument 172 err = mcp3422_read_channel(adc, channel, val1); in mcp3422_read_raw() 179 *val1 = 0; in mcp3422_read_raw() 184 *val1 = mcp3422_sample_rates[MCP3422_SAMPLE_RATE(adc->config)]; in mcp3422_read_raw() 195 struct iio_chan_spec const *channel, int val1, in mcp3422_write_raw() argument 207 if (val1 != 0) in mcp3422_write_raw() 225 switch (val1) { in mcp3422_write_raw()
|
/linux/sound/isa/cs423x/ |
H A D | cs4236_lib.c | 549 unsigned short val1, val2; in snd_cs4236_put_double() local 554 val1 = mask - val1; in snd_cs4236_put_double() 557 val1 <<= shift_left; in snd_cs4236_put_double() 561 val1 = (chip->eimage[CS4236_REG(left_reg)] & ~(mask << shift_left)) | val1; in snd_cs4236_put_double() 625 unsigned short val1, val2; in snd_cs4236_put_double1() local 630 val1 = mask - val1; in snd_cs4236_put_double1() 633 val1 <<= shift_left; in snd_cs4236_put_double1() 636 val1 = (chip->image[left_reg] & ~(mask << shift_left)) | val1; in snd_cs4236_put_double1() 675 unsigned short val1, val2; in snd_cs4236_put_master_digital() local 680 val1 = (chip->eimage[CS4236_REG(CS4236_LEFT_MASTER)] & ~0x7f) | val1; in snd_cs4236_put_master_digital() [all …]
|
/linux/include/linux/ |
H A D | hid-sensor-hub.h | 256 int val1, int val2); 257 int hid_sensor_write_raw_hyst_rel_value(struct hid_sensor_common *st, int val1, 260 int *val1, int *val2); 262 int *val1, int *val2); 264 int val1, int val2); 266 int *val1, int *val2); 273 int *val0, int *val1);
|
/linux/sound/i2c/other/ |
H A D | pt2258.c | 98 int val0, val1; in pt2258_stereo_volume_put() local 101 val1 = 79 - ucontrol->value.integer.value[1]; in pt2258_stereo_volume_put() 102 if (val0 < 0 || val0 > 79 || val1 < 0 || val1 > 79) in pt2258_stereo_volume_put() 104 if (val0 == pt->volume[base] && val1 == pt->volume[base + 1]) in pt2258_stereo_volume_put() 115 pt->volume[base + 1] = val1; in pt2258_stereo_volume_put() 116 bytes[0] = pt2258_channel_code[2 * base + 2] | (val1 / 10); in pt2258_stereo_volume_put() 117 bytes[1] = pt2258_channel_code[2 * base + 3] | (val1 % 10); in pt2258_stereo_volume_put()
|
/linux/include/linux/mtd/ |
H A D | map.h | 259 #define map_word_equal(map, val1, val2) \ argument 263 if ((val1).x[i] != (val2).x[i]) { \ 270 #define map_word_and(map, val1, val2) \ argument 275 r.x[i] = (val1).x[i] & (val2).x[i]; \ 279 #define map_word_clr(map, val1, val2) \ argument 284 r.x[i] = (val1).x[i] & ~(val2).x[i]; \ 288 #define map_word_or(map, val1, val2) \ argument 293 r.x[i] = (val1).x[i] | (val2).x[i]; \ 297 #define map_word_andequal(map, val1, val2, val3) \ argument 309 #define map_word_bitsset(map, val1, val2) \ argument [all …]
|
/linux/sound/isa/sb/ |
H A D | emu8000.c | 842 unsigned short val1; in mixer_bass_treble_put() local 848 emu->treble_level = val1; in mixer_bass_treble_put() 850 change = val1 != emu->bass_level; in mixer_bass_treble_put() 851 emu->bass_level = val1; in mixer_bass_treble_put() 903 unsigned short val1; in mixer_chorus_reverb_put() local 908 change = val1 != emu->chorus_mode; in mixer_chorus_reverb_put() 909 emu->chorus_mode = val1; in mixer_chorus_reverb_put() 913 emu->reverb_mode = val1; in mixer_chorus_reverb_put() 970 unsigned short val1; in mixer_fm_depth_put() local 976 emu->fm_chorus_depth = val1; in mixer_fm_depth_put() [all …]
|
/linux/drivers/gpu/drm/i915/ |
H A D | intel_pcode.c | 56 u32 *val, u32 *val1, in __snb_pcode_rw() argument 72 intel_uncore_write_fw(uncore, GEN6_PCODE_DATA1, val1 ? *val1 : 0); in __snb_pcode_rw() 86 if (is_read && val1) in __snb_pcode_rw() 87 *val1 = intel_uncore_read_fw(uncore, GEN6_PCODE_DATA1); in __snb_pcode_rw() 95 int snb_pcode_read(struct intel_uncore *uncore, u32 mbox, u32 *val, u32 *val1) in snb_pcode_read() argument 100 err = __snb_pcode_rw(uncore, mbox, val, val1, 500, 20, true); in snb_pcode_read()
|
/linux/drivers/power/supply/ |
H A D | axp20x_battery.c | 278 int ret = 0, reg, val1; in axp20x_battery_get_prop() local 303 &val1); in axp20x_battery_get_prop() 307 if (val1) { in axp20x_battery_get_prop() 320 if ((val1 & AXP209_FG_PERCENT) == 100) in axp20x_battery_get_prop() 328 &val1); in axp20x_battery_get_prop() 332 if (val1 & AXP20X_PWR_OP_BATT_ACTIVATED) { in axp20x_battery_get_prop() 361 val->intval = -val1; in axp20x_battery_get_prop() 746 if (val1 < 0 || val1 > AXP20X_V_OFF_MASK) in axp20x_set_voltage_min_design() 750 AXP20X_V_OFF_MASK, val1); in axp20x_set_voltage_min_design() 758 if (val1 < 0 || val1 > AXP717_V_OFF_MASK) in axp717_set_voltage_min_design() [all …]
|
/linux/drivers/iio/pressure/ |
H A D | icp10100.c | 282 int64_t val1, val2; in icp10100_get_pressure() local 294 val1 = (int64_t)st->cal[0] * (int64_t)t_square; in icp10100_get_pressure() 296 val1 = (int64_t)st->cal[1] * (int64_t)t_square; in icp10100_get_pressure() 298 (int32_t)div_s64(val1, inv_quadr_factor); in icp10100_get_pressure() 299 val1 = (int64_t)st->cal[2] * (int64_t)t_square; in icp10100_get_pressure() 305 val1 = (int64_t)p_lut[0] * (int64_t)p_lut[1] * in icp10100_get_pressure() 314 c = div64_s64(val1, val2); in icp10100_get_pressure() 316 val1, val2, c); in icp10100_get_pressure() 317 val1 = (int64_t)p_calib[0] * (int64_t)p_lut[0] - in icp10100_get_pressure() 321 a = div64_s64(val1, val2); in icp10100_get_pressure() [all …]
|
/linux/arch/alpha/kernel/ |
H A D | sys_sable.c | 111 int port, val1, val2; in sable_ack_irq_hw() local 115 val1 = 0xE0 | (bit - 16); in sable_ack_irq_hw() 119 val1 = 0xE0 | (bit - 8); in sable_ack_irq_hw() 123 val1 = 0xE0 | (bit - 0); in sable_ack_irq_hw() 127 outb(val1, port); /* ack the slave */ in sable_ack_irq_hw()
|
/linux/tools/testing/selftests/proc/ |
H A D | proc-uptime.h | 39 uint64_t val1, val2; in proc_uptime() local 51 val1 = xstrtoull(p, &p); in proc_uptime() 59 return val1 * 100 + val2; in proc_uptime()
|
/linux/sound/soc/intel/boards/ |
H A D | bytcht_es8316.c | 468 int ret, val1, val2, dsm_quirk = 0; in byt_cht_es8316_get_quirks_from_dsm() local 473 ret = es83xx_dsm(priv->codec_dev, PLATFORM_MAINMIC_TYPE_ARG, &val1); in byt_cht_es8316_get_quirks_from_dsm() 481 if (val1 == PLATFORM_MIC_AMIC_LIN1RIN1 && val2 == PLATFORM_MIC_AMIC_LIN2RIN2) { in byt_cht_es8316_get_quirks_from_dsm() 483 } else if (val1 == PLATFORM_MIC_AMIC_LIN2RIN2 && val2 == PLATFORM_MIC_AMIC_LIN1RIN1) { in byt_cht_es8316_get_quirks_from_dsm() 487 val1, val2); in byt_cht_es8316_get_quirks_from_dsm() 491 ret = es83xx_dsm(priv->codec_dev, PLATFORM_SPK_TYPE_ARG, &val1); in byt_cht_es8316_get_quirks_from_dsm() 495 switch (val1) { in byt_cht_es8316_get_quirks_from_dsm() 502 dev_warn(priv->codec_dev, "Unknown speaker setting 0x%02x\n", val1); in byt_cht_es8316_get_quirks_from_dsm() 506 ret = es83xx_dsm(priv->codec_dev, PLATFORM_HPDET_INV_ARG, &val1); in byt_cht_es8316_get_quirks_from_dsm() 510 switch (val1) { in byt_cht_es8316_get_quirks_from_dsm() [all …]
|
/linux/sound/isa/gus/ |
H A D | gus_mixer.c | 97 unsigned char val1, val2, oval1, oval2; in snd_ics_put_double() local 99 val1 = ucontrol->value.integer.value[0] & 127; in snd_ics_put_double() 104 change = val1 != oval1 || val2 != oval2; in snd_ics_put_double() 105 gus->gf1.ics_regs[addr][0] = val1; in snd_ics_put_double() 109 swap(val1, val2); in snd_ics_put_double() 114 outb((unsigned char) val1, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
|
/linux/include/trace/events/ |
H A D | scmi.h | 13 TP_PROTO(u8 protocol_id, u8 msg_id, u32 res_id, u32 val1, u32 val2), 14 TP_ARGS(protocol_id, msg_id, res_id, val1, val2), 20 __field(u32, val1) 28 __entry->val1 = val1; 34 __entry->res_id, __entry->val1, __entry->val2)
|
/linux/drivers/scsi/fnic/ |
H A D | fnic_trace.c | 206 struct timespec64 val1, val2; in fnic_get_stats_data() local 209 ktime_get_real_ts64(&val1); in fnic_get_stats_data() 221 (s64)val1.tv_sec, val1.tv_nsec, in fnic_get_stats_data() 226 (s64)timespec64_sub(val1, stats->stats_timestamps.last_reset_time).tv_sec, in fnic_get_stats_data() 227 timespec64_sub(val1, stats->stats_timestamps.last_reset_time).tv_nsec, in fnic_get_stats_data() 228 (s64)timespec64_sub(val1, stats->stats_timestamps.last_read_time).tv_sec, in fnic_get_stats_data() 229 timespec64_sub(val1, stats->stats_timestamps.last_read_time).tv_nsec); in fnic_get_stats_data() 231 stats->stats_timestamps.last_read_time = val1; in fnic_get_stats_data() 403 jiffies_to_timespec64(stats->misc_stats.last_isr_time, &val1); in fnic_get_stats_data() 428 (s64)val1.tv_sec, val1.tv_nsec, in fnic_get_stats_data()
|
/linux/sound/isa/es1688/ |
H A D | es1688_lib.c | 878 unsigned char val1, val2, oval1, oval2; in snd_es1688_put_double() local 880 val1 = ucontrol->value.integer.value[0] & mask; in snd_es1688_put_double() 883 val1 = mask - val1; in snd_es1688_put_double() 886 val1 <<= shift_left; in snd_es1688_put_double() 898 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_es1688_put_double() 900 change = val1 != oval1 || val2 != oval2; in snd_es1688_put_double() 905 snd_es1688_write(chip, left_reg, val1); in snd_es1688_put_double() 909 snd_es1688_write(chip, right_reg, val1); in snd_es1688_put_double() 916 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_es1688_put_double() 917 change = val1 != oval1; in snd_es1688_put_double() [all …]
|
/linux/sound/pci/ice1712/ |
H A D | wm8766.c | 210 u16 val1, val2; in snd_wm8766_ctl_get() local 213 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8766_ctl_get() 215 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8766_ctl_get() 216 val1 >>= __ffs(wm->ctl[n].mask1); in snd_wm8766_ctl_get() 225 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8766_ctl_get() 229 ucontrol->value.integer.value[0] = val1; in snd_wm8766_ctl_get()
|
/linux/tools/gpio/ |
H A D | gpio-sloppy-logic-analyzer.sh | 128 mask=0; val1=0; val2=0 137 [hH]) val1=$((val1 | bit)); val2=$((val2 | bit));; 138 [fF]) val1=$((val1 | bit));; 142 trigger_bindat="$trigger_bindat$(printf '\\%o\\%o' $mask $val1)" 143 [ $val1 -ne $val2 ] && trigger_bindat="$trigger_bindat$(printf '\\%o\\%o' $mask $val2)"
|