Home
last modified time | relevance | path

Searched refs:val1 (Results 1 – 25 of 123) sorted by relevance

12345

/Linux-v5.4/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c98 static void split_micro_fraction(unsigned int no, int exp, int *val1, int *val2) in split_micro_fraction() argument
102 *val1 = no / divisor; in split_micro_fraction()
115 int *val1, int *val2) in convert_from_vtf_format() argument
125 *val1 = sign * value * int_pow(10, exp); in convert_from_vtf_format()
128 split_micro_fraction(value, -exp, val1, val2); in convert_from_vtf_format()
129 if (*val1) in convert_from_vtf_format()
130 *val1 = sign * (*val1); in convert_from_vtf_format()
136 static u32 convert_to_vtf_format(int size, int exp, int val1, int val2) in convert_to_vtf_format() argument
142 if (val1 < 0 || val2 < 0) in convert_to_vtf_format()
147 value = abs(val1) * int_pow(10, -exp); in convert_to_vtf_format()
[all …]
/Linux-v5.4/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c51 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-v5.4/arch/ia64/lib/
Dcopy_user.S80 .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 …]
Dstrlen.S80 #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-v5.4/arch/arm/probes/kprobes/
Dtest-core.h238 #define TEST_RR(code1, reg1, val1, code2, reg2, val2, code3) \ argument
240 TEST_ARG_REG(reg1, val1) \
246 #define TEST_RRR(code1, reg1, val1, code2, reg2, val2, code3, reg3, val3, code4)\ argument
248 TEST_ARG_REG(reg1, val1) \
255 #define TEST_RRRR(code1, reg1, val1, code2, reg2, val2, code3, reg3, val3, code4, reg4, val4) \ argument
257 TEST_ARG_REG(reg1, val1) \
265 #define TEST_P(code1, reg1, val1, code2) \ argument
267 TEST_ARG_PTR(reg1, val1) \
272 #define TEST_PR(code1, reg1, val1, code2, reg2, val2, code3) \ argument
274 TEST_ARG_PTR(reg1, val1) \
[all …]
/Linux-v5.4/arch/sh/boards/mach-dreamcast/
Drtc.c35 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-v5.4/sound/i2c/
Dtea6330t.c99 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()
150 unsigned char oval1, oval2, val1, val2; in snd_tea6330t_put_master_switch() local
152 val1 = ucontrol->value.integer.value[0] & 1; in snd_tea6330t_put_master_switch()
157 change = val1 != oval1 || val2 != oval2; in snd_tea6330t_put_master_switch()
158 tea->regs[TEA6330T_SADDR_VOLUME_LEFT] = val1 ? tea->mleft : 0; in snd_tea6330t_put_master_switch()
201 unsigned char val1; in snd_tea6330t_put_bass() local
203 val1 = ucontrol->value.integer.value[0] % (tea->max_bass + 1); in snd_tea6330t_put_bass()
[all …]
/Linux-v5.4/tools/testing/selftests/proc/
Dproc-uptime.h27 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-v5.4/sound/isa/cs423x/
Dcs4236_lib.c551 unsigned short val1, val2; in snd_cs4236_put_double() local
553 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4236_put_double()
556 val1 = mask - val1; in snd_cs4236_put_double()
559 val1 <<= shift_left; in snd_cs4236_put_double()
563 val1 = (chip->eimage[CS4236_REG(left_reg)] & ~(mask << shift_left)) | val1; in snd_cs4236_put_double()
565 …change = val1 != chip->eimage[CS4236_REG(left_reg)] || val2 != chip->eimage[CS4236_REG(right_reg)]; in snd_cs4236_put_double()
566 snd_cs4236_ext_out(chip, left_reg, val1); in snd_cs4236_put_double()
569val1 = (chip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | va… in snd_cs4236_put_double()
570 change = val1 != chip->eimage[CS4236_REG(left_reg)]; in snd_cs4236_put_double()
571 snd_cs4236_ext_out(chip, left_reg, val1); in snd_cs4236_put_double()
[all …]
/Linux-v5.4/sound/i2c/other/
Dpt2258.c98 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-v5.4/include/linux/mtd/
Dmap.h259 #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-v5.4/drivers/power/supply/
Daxp20x_battery.c189 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()
443 int val1 = (min_voltage - 2600000) / 100000; in axp20x_set_voltage_min_design() local
445 if (val1 < 0 || val1 > AXP20X_V_OFF_MASK) in axp20x_set_voltage_min_design()
449 AXP20X_V_OFF_MASK, val1); in axp20x_set_voltage_min_design()
/Linux-v5.4/sound/isa/sb/
Demu8000.c842 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-v5.4/include/linux/
Dhid-sensor-hub.h252 int val1, int val2);
254 int *val1, int *val2);
256 int val1, int val2);
258 int *val1, int *val2);
265 int *val0, int *val1);
/Linux-v5.4/sound/isa/gus/
Dgus_mixer.c97 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-v5.4/sound/soc/sh/rcar/
Dssiu.c67 u32 val1, val2; in rsnd_ssiu_init() local
97 val1 = rsnd_mod_read(mod, SSI_MODE1); in rsnd_ssiu_init()
112 val1 |= (1 << 20); in rsnd_ssiu_init()
115 val1 |= (1 << 4); in rsnd_ssiu_init()
123 val1 |= is_clk_master ? 0x2 : 0x1; in rsnd_ssiu_init()
127 val1 |= is_clk_master ? 0x2 << 2 : in rsnd_ssiu_init()
131 val1 |= is_clk_master ? 0x2 << 16 : in rsnd_ssiu_init()
137 rsnd_mod_bset(mod, SSI_MODE1, 0x0013001f, val1); in rsnd_ssiu_init()
/Linux-v5.4/drivers/spi/
Dspi-uniphier.c119 u32 val1, val2; in uniphier_spi_set_mode() local
136 val1 = SSI_CKS_CKPHS | SSI_CKS_CKDLY; in uniphier_spi_set_mode()
141 val1 = 0; in uniphier_spi_set_mode()
146 val1 = SSI_CKS_CKINIT | SSI_CKS_CKDLY; in uniphier_spi_set_mode()
151 val1 = SSI_CKS_CKPHS | SSI_CKS_CKINIT; in uniphier_spi_set_mode()
159 writel(val1, priv->base + SSI_CKS); in uniphier_spi_set_mode()
162 val1 = 0; in uniphier_spi_set_mode()
164 val1 |= FIELD_PREP(SSI_TXWDS_TDTF_MASK, 1); in uniphier_spi_set_mode()
165 writel(val1, priv->base + SSI_TXWDS); in uniphier_spi_set_mode()
166 writel(val1, priv->base + SSI_RXWDS); in uniphier_spi_set_mode()
/Linux-v5.4/drivers/iio/adc/
Dmcp3422.c156 struct iio_chan_spec const *channel, int *val1, in mcp3422_read_raw() argument
167 err = mcp3422_read_channel(adc, channel, val1); in mcp3422_read_raw()
174 *val1 = 0; in mcp3422_read_raw()
179 *val1 = mcp3422_sample_rates[MCP3422_SAMPLE_RATE(adc->config)]; in mcp3422_read_raw()
190 struct iio_chan_spec const *channel, int val1, in mcp3422_write_raw() argument
202 if (val1 != 0) in mcp3422_write_raw()
220 switch (val1) { in mcp3422_write_raw()
/Linux-v5.4/drivers/scsi/fnic/
Dfnic_trace.c220 struct timespec64 val1, val2; in fnic_get_stats_data() local
222 ktime_get_real_ts64(&val1); in fnic_get_stats_data()
234 (s64)val1.tv_sec, val1.tv_nsec, in fnic_get_stats_data()
239 (s64)timespec64_sub(val1, stats->stats_timestamps.last_reset_time).tv_sec, in fnic_get_stats_data()
240 timespec64_sub(val1, stats->stats_timestamps.last_reset_time).tv_nsec, in fnic_get_stats_data()
241 (s64)timespec64_sub(val1, stats->stats_timestamps.last_read_time).tv_sec, in fnic_get_stats_data()
242 timespec64_sub(val1, stats->stats_timestamps.last_read_time).tv_nsec); in fnic_get_stats_data()
244 stats->stats_timestamps.last_read_time = val1; in fnic_get_stats_data()
406 jiffies_to_timespec64(stats->misc_stats.last_isr_time, &val1); in fnic_get_stats_data()
431 (s64)val1.tv_sec, val1.tv_nsec, in fnic_get_stats_data()
/Linux-v5.4/drivers/hwtracing/coresight/
Dcoresight-etm4x-sysfs.c937 unsigned long val1, val2; in addr_range_show() local
955 val1 = (unsigned long)config->addr_val[idx]; in addr_range_show()
958 return scnprintf(buf, PAGE_SIZE, "%#lx %#lx\n", val1, val2); in addr_range_show()
966 unsigned long val1, val2; in addr_range_store() local
970 if (sscanf(buf, "%lx %lx", &val1, &val2) != 2) in addr_range_store()
973 if (val1 > val2) in addr_range_store()
991 config->addr_val[idx] = (u64)val1; in addr_range_store()
1691 unsigned long val1, val2; in ctxid_masks_show() local
1703 val1 = config->ctxid_mask0; in ctxid_masks_show()
1706 return scnprintf(buf, PAGE_SIZE, "%#lx %#lx\n", val1, val2); in ctxid_masks_show()
[all …]
/Linux-v5.4/sound/isa/es1688/
Des1688_lib.c898 unsigned char val1, val2, oval1, oval2; in snd_es1688_put_double() local
900 val1 = ucontrol->value.integer.value[0] & mask; in snd_es1688_put_double()
903 val1 = mask - val1; in snd_es1688_put_double()
906 val1 <<= shift_left; in snd_es1688_put_double()
918 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_es1688_put_double()
920 change = val1 != oval1 || val2 != oval2; in snd_es1688_put_double()
923 snd_es1688_mixer_write(chip, left_reg, val1); in snd_es1688_put_double()
925 snd_es1688_write(chip, left_reg, val1); in snd_es1688_put_double()
927 snd_es1688_mixer_write(chip, right_reg, val1); in snd_es1688_put_double()
929 snd_es1688_write(chip, right_reg, val1); in snd_es1688_put_double()
[all …]
/Linux-v5.4/arch/alpha/kernel/
Dsys_sable.c112 int port, val1, val2; in sable_ack_irq_hw() local
116 val1 = 0xE0 | (bit - 16); in sable_ack_irq_hw()
120 val1 = 0xE0 | (bit - 8); in sable_ack_irq_hw()
124 val1 = 0xE0 | (bit - 0); in sable_ack_irq_hw()
128 outb(val1, port); /* ack the slave */ in sable_ack_irq_hw()
/Linux-v5.4/sound/pci/ice1712/
Dwm8766.c210 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-v5.4/drivers/gpu/drm/i915/
Dintel_sideband.c375 u32 mbox, u32 *val, u32 *val1, in __sandybridge_pcode_rw() argument
394 intel_uncore_write_fw(uncore, GEN6_PCODE_DATA1, val1 ? *val1 : 0); in __sandybridge_pcode_rw()
408 if (is_read && val1) in __sandybridge_pcode_rw()
409 *val1 = intel_uncore_read_fw(uncore, GEN6_PCODE_DATA1); in __sandybridge_pcode_rw()
418 u32 *val, u32 *val1) in sandybridge_pcode_read() argument
423 err = __sandybridge_pcode_rw(i915, mbox, val, val1, in sandybridge_pcode_read()
/Linux-v5.4/drivers/platform/x86/
Damilo-rfkill.c56 u8 val1 = blocked ? M7440_RADIO_OFF1 : M7440_RADIO_ON1; in amilo_m7440_rfkill_set_block() local
59 outb(val1, M7440_PORT1); in amilo_m7440_rfkill_set_block()
63 if (inb(M7440_PORT1) != val1 || inb(M7440_PORT2) != val2) in amilo_m7440_rfkill_set_block()

12345