/linux-6.1.9/drivers/iio/common/hid-sensors/ |
D | hid-sensor-attributes.c | 93 static void split_micro_fraction(unsigned int no, int exp, int *val1, int *val2) in split_micro_fraction() argument 97 *val1 = no / divisor; in split_micro_fraction() 110 int *val1, int *val2) in convert_from_vtf_format() argument 120 *val1 = sign * value * int_pow(10, exp); in convert_from_vtf_format() 123 split_micro_fraction(value, -exp, val1, val2); in convert_from_vtf_format() 124 if (*val1) in convert_from_vtf_format() 125 *val1 = sign * (*val1); 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() 142 value = abs(val1) * int_pow(10, -exp); in convert_to_vtf_format() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
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-6.1.9/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_irq.c | 51 register u16 val1, val2; in pdacf_transfer_mono32() local 54 val1 = 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 74 val1 = inw(rdp_port); in pdacf_transfer_stereo32() 77 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_stereo32() 92 register u16 val1, val2; in pdacf_transfer_mono32sw() local 95 val1 = inw(rdp_port); in pdacf_transfer_mono32sw() 98 *dst++ = swab32((((val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor); in pdacf_transfer_mono32sw() 112 register u16 val1, val2, val3; in pdacf_transfer_stereo32sw() local [all …]
|
/linux-6.1.9/arch/ia64/lib/ |
D | copy_user.S | 80 .rotr val1[PIPE_DEPTH],val2[PIPE_DEPTH] 115 EX(.failure_in_pipe1,(p16) ld1 val1[0]=[src1],1) 116 EX(.failure_out,(EPI) st1 [dst1]=val1[PIPE_DEPTH-1],1) 197 EX(.failure_in_pipe2,(p16) ld1 val1[0]=[src1],1) 198 EX(.failure_out,(EPI) st1 [dst1]=val1[PIPE_DEPTH-1],1) 242 (EPI_1) shrp tmp=val1[PIPE_DEPTH-2],val1[PIPE_DEPTH-1],rshift; \ 243 EX(3f,(p16) ld8 val1[1]=[src1],8); \ 244 (p16) mov val1[0]=r0; \ 250 (EPI_1) shrp tmp=val1[PIPE_DEPTH-2],val1[PIPE_DEPTH-1],rshift; \ 252 (p16) mov val1[1]=r0; \ [all …]
|
D | strlen.S | 80 #define val1 r22 macro 115 czx1.r val1=v[1] // search 0 byte from right 119 cmp.eq.and p6,p0=8,val1 // p6 = p6 and val1==8 130 cmp.eq p8,p9=8,val1 // p6 = val1 had zero (disambiguate) 131 tnat.nz p6,p7=val1 // test NaT on val1 137 cmp.eq.and p7,p0=8,val1// val1==8? 141 (p8) mov val1=val2 // the other test got us out of the loop 146 sub tmp=8,val1 // which byte in word 182 czx1.r val1=val // search 0 byte from right 184 cmp.eq p6,p0=8,val1 // val1==8 ? [all …]
|
/linux-6.1.9/arch/arm/probes/kprobes/ |
D | test-core.h | 239 #define TEST_RR(code1, reg1, val1, code2, reg2, val2, code3) \ argument 241 TEST_ARG_REG(reg1, val1) \ 247 #define TEST_RRR(code1, reg1, val1, code2, reg2, val2, code3, reg3, val3, code4)\ argument 249 TEST_ARG_REG(reg1, val1) \ 256 #define TEST_RRRR(code1, reg1, val1, code2, reg2, val2, code3, reg3, val3, code4, reg4, val4) \ argument 258 TEST_ARG_REG(reg1, val1) \ 266 #define TEST_P(code1, reg1, val1, code2) \ argument 268 TEST_ARG_PTR(reg1, val1) \ 273 #define TEST_PR(code1, reg1, val1, code2, reg2, val2, code3) \ argument 275 TEST_ARG_PTR(reg1, val1) \ [all …]
|
/linux-6.1.9/arch/sh/boards/mach-dreamcast/ |
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-6.1.9/sound/i2c/ |
D | tea6330t.c | 99 unsigned char val1, val2; in snd_tea6330t_put_master_volume() local 101 val1 = (ucontrol->value.integer.value[0] % 44) + 0x14; in snd_tea6330t_put_master_volume() 104 change = val1 != tea->mleft || val2 != tea->mright; in snd_tea6330t_put_master_volume() 105 tea->mleft = val1; in snd_tea6330t_put_master_volume() 151 unsigned char oval1, oval2, val1, val2; in snd_tea6330t_put_master_switch() local 153 val1 = ucontrol->value.integer.value[0] & 1; in snd_tea6330t_put_master_switch() 158 change = val1 != oval1 || val2 != oval2; in snd_tea6330t_put_master_switch() 159 tea->regs[TEA6330T_SADDR_VOLUME_LEFT] = val1 ? tea->mleft : 0; in snd_tea6330t_put_master_switch() 203 unsigned char val1; in snd_tea6330t_put_bass() local 205 val1 = ucontrol->value.integer.value[0] % (tea->max_bass + 1); in snd_tea6330t_put_bass() [all …]
|
/linux-6.1.9/tools/testing/selftests/proc/ |
D | proc-uptime.h | 27 uint64_t val1, val2; in proc_uptime() local 39 val1 = xstrtoull(p, &p); in proc_uptime() 46 *uptime = val1 * 100 + val2; in proc_uptime() 50 val1 = xstrtoull(p, &p); in proc_uptime() 57 *idle = val1 * 100 + val2; in proc_uptime()
|
/linux-6.1.9/sound/isa/cs423x/ |
D | cs4236_lib.c | 549 unsigned short val1, val2; in snd_cs4236_put_double() local 551 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4236_put_double() 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() 563 …change = val1 != chip->eimage[CS4236_REG(left_reg)] || val2 != chip->eimage[CS4236_REG(right_reg)]; in snd_cs4236_put_double() 564 snd_cs4236_ext_out(chip, left_reg, val1); in snd_cs4236_put_double() 567 …val1 = (chip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | va… in snd_cs4236_put_double() 568 change = val1 != chip->eimage[CS4236_REG(left_reg)]; in snd_cs4236_put_double() 569 snd_cs4236_ext_out(chip, left_reg, val1); in snd_cs4236_put_double() [all …]
|
/linux-6.1.9/include/linux/ |
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-6.1.9/sound/i2c/other/ |
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-6.1.9/drivers/power/supply/ |
D | axp20x_battery.c | 189 int ret = 0, reg, val1; in axp20x_battery_get_prop() local 214 &val1); in axp20x_battery_get_prop() 218 if (val1) { in axp20x_battery_get_prop() 223 ret = regmap_read(axp20x_batt->regmap, AXP20X_FG_RES, &val1); in axp20x_battery_get_prop() 231 if ((val1 & AXP209_FG_PERCENT) == 100) in axp20x_battery_get_prop() 239 &val1); in axp20x_battery_get_prop() 243 if (val1 & AXP20X_PWR_OP_BATT_ACTIVATED) { in axp20x_battery_get_prop() 271 ret = iio_read_channel_processed(axp20x_batt->batt_dischrg_i, &val1); in axp20x_battery_get_prop() 272 val->intval = -val1; in axp20x_battery_get_prop() 443 int val1 = (min_voltage - 2600000) / 100000; in axp20x_set_voltage_min_design() local [all …]
|
/linux-6.1.9/drivers/gpu/drm/i915/ |
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-6.1.9/include/linux/mtd/ |
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 301 if (((val1).x[i] & (val2).x[i]) != (val3).x[i]) { \ [all …]
|
/linux-6.1.9/sound/isa/sb/ |
D | emu8000.c | 842 unsigned short val1; in mixer_bass_treble_put() local 844 val1 = ucontrol->value.integer.value[0] % 12; in mixer_bass_treble_put() 847 change = val1 != emu->treble_level; in mixer_bass_treble_put() 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 907 val1 = ucontrol->value.integer.value[0] % SNDRV_EMU8000_CHORUS_NUMBERS; in mixer_chorus_reverb_put() 908 change = val1 != emu->chorus_mode; in mixer_chorus_reverb_put() 909 emu->chorus_mode = val1; in mixer_chorus_reverb_put() [all …]
|
/linux-6.1.9/drivers/iio/pressure/ |
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() 295 p_lut[0] = lut_lower + (int32_t)div_s64(val1, inv_quadr_factor); 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() 300 p_lut[2] = lut_upper + (int32_t)div_s64(val1, inv_quadr_factor); 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() [all …]
|
/linux-6.1.9/sound/isa/gus/ |
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-6.1.9/include/trace/events/ |
D | scmi.h | 11 TP_PROTO(u8 protocol_id, u8 msg_id, u32 res_id, u32 val1, u32 val2), 12 TP_ARGS(protocol_id, msg_id, res_id, val1, val2), 18 __field(u32, val1) 26 __entry->val1 = val1; 32 __entry->res_id, __entry->val1, __entry->val2)
|
/linux-6.1.9/drivers/iio/adc/ |
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-6.1.9/sound/isa/es1688/ |
D | es1688_lib.c | 875 unsigned char val1, val2, oval1, oval2; in snd_es1688_put_double() local 877 val1 = ucontrol->value.integer.value[0] & mask; in snd_es1688_put_double() 880 val1 = mask - val1; in snd_es1688_put_double() 883 val1 <<= shift_left; in snd_es1688_put_double() 895 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_es1688_put_double() 897 change = val1 != oval1 || val2 != oval2; in snd_es1688_put_double() 900 snd_es1688_mixer_write(chip, left_reg, val1); in snd_es1688_put_double() 902 snd_es1688_write(chip, left_reg, val1); in snd_es1688_put_double() 904 snd_es1688_mixer_write(chip, right_reg, val1); in snd_es1688_put_double() 906 snd_es1688_write(chip, right_reg, val1); in snd_es1688_put_double() [all …]
|
/linux-6.1.9/drivers/scsi/fnic/ |
D | fnic_trace.c | 206 struct timespec64 val1, val2; in fnic_get_stats_data() local 208 ktime_get_real_ts64(&val1); in fnic_get_stats_data() 220 (s64)val1.tv_sec, val1.tv_nsec, in fnic_get_stats_data() 225 (s64)timespec64_sub(val1, stats->stats_timestamps.last_reset_time).tv_sec, in fnic_get_stats_data() 226 timespec64_sub(val1, stats->stats_timestamps.last_reset_time).tv_nsec, in fnic_get_stats_data() 227 (s64)timespec64_sub(val1, stats->stats_timestamps.last_read_time).tv_sec, in fnic_get_stats_data() 228 timespec64_sub(val1, stats->stats_timestamps.last_read_time).tv_nsec); in fnic_get_stats_data() 230 stats->stats_timestamps.last_read_time = val1; in fnic_get_stats_data() 392 jiffies_to_timespec64(stats->misc_stats.last_isr_time, &val1); in fnic_get_stats_data() 417 (s64)val1.tv_sec, val1.tv_nsec, in fnic_get_stats_data()
|
/linux-6.1.9/sound/soc/sh/rcar/ |
D | ssiu.c | 150 u32 val1, val2; in rsnd_ssiu_init() local 166 val1 = rsnd_mod_read(mod, SSI_MODE1); in rsnd_ssiu_init() 181 val1 |= (1 << 20); in rsnd_ssiu_init() 184 val1 |= (1 << 4); in rsnd_ssiu_init() 192 val1 |= is_clk_master ? 0x2 : 0x1; in rsnd_ssiu_init() 196 val1 |= is_clk_master ? 0x2 << 2 : in rsnd_ssiu_init() 200 val1 |= is_clk_master ? 0x2 << 16 : in rsnd_ssiu_init() 206 rsnd_mod_bset(mod, SSI_MODE1, 0x0013001f, val1); in rsnd_ssiu_init()
|
/linux-6.1.9/arch/alpha/kernel/ |
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-6.1.9/sound/pci/ice1712/ |
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()
|