/Linux-v4.19/drivers/iio/common/hid-sensors/ |
D | hid-sensor-attributes.c | 116 static void split_micro_fraction(unsigned int no, int exp, int *val1, int *val2) in split_micro_fraction() argument 118 *val1 = no/pow_10(exp); in split_micro_fraction() 131 int *val1, int *val2) in convert_from_vtf_format() argument 141 *val1 = sign * value * pow_10(exp); in convert_from_vtf_format() 144 split_micro_fraction(value, -exp, val1, val2); in convert_from_vtf_format() 145 if (*val1) in convert_from_vtf_format() 146 *val1 = sign * (*val1); in convert_from_vtf_format() 152 static u32 convert_to_vtf_format(int size, int exp, int val1, int val2) in convert_to_vtf_format() argument 157 if (val1 < 0 || val2 < 0) in convert_to_vtf_format() 161 value = abs(val1) * pow_10(-exp); in convert_to_vtf_format() [all …]
|
/Linux-v4.19/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_irq.c | 64 register u16 val1, val2; in pdacf_transfer_mono32() local 67 val1 = inw(rdp_port); in pdacf_transfer_mono32() 70 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_mono32() 84 register u16 val1, val2, val3; in pdacf_transfer_stereo32() local 87 val1 = inw(rdp_port); in pdacf_transfer_stereo32() 90 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_stereo32() 105 register u16 val1, val2; in pdacf_transfer_mono32sw() local 108 val1 = inw(rdp_port); in pdacf_transfer_mono32sw() 111 *dst++ = swab32((((val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor); in pdacf_transfer_mono32sw() 125 register u16 val1, val2, val3; in pdacf_transfer_stereo32sw() local [all …]
|
/Linux-v4.19/arch/sh/boards/mach-dreamcast/ |
D | rtc.c | 35 unsigned long val1, val2; in aica_rtc_gettimeofday() local 38 val1 = ((__raw_readl(AICA_RTC_SECS_H) & 0xffff) << 16) | in aica_rtc_gettimeofday() 43 } while (val1 != val2); in aica_rtc_gettimeofday() 45 ts->tv_sec = val1 - TWENTY_YEARS; in aica_rtc_gettimeofday() 59 unsigned long val1, val2; in aica_rtc_settimeofday() local 66 val1 = ((__raw_readl(AICA_RTC_SECS_H) & 0xffff) << 16) | in aica_rtc_settimeofday() 71 } while (val1 != val2); in aica_rtc_settimeofday()
|
/Linux-v4.19/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-v4.19/arch/arm/probes/kprobes/ |
D | test-core.h | 241 #define TEST_RR(code1, reg1, val1, code2, reg2, val2, code3) \ argument 243 TEST_ARG_REG(reg1, val1) \ 249 #define TEST_RRR(code1, reg1, val1, code2, reg2, val2, code3, reg3, val3, code4)\ argument 251 TEST_ARG_REG(reg1, val1) \ 258 #define TEST_RRRR(code1, reg1, val1, code2, reg2, val2, code3, reg3, val3, code4, reg4, val4) \ argument 260 TEST_ARG_REG(reg1, val1) \ 268 #define TEST_P(code1, reg1, val1, code2) \ argument 270 TEST_ARG_PTR(reg1, val1) \ 275 #define TEST_PR(code1, reg1, val1, code2, reg2, val2, code3) \ argument 277 TEST_ARG_PTR(reg1, val1) \ [all …]
|
/Linux-v4.19/sound/i2c/ |
D | tea6330t.c | 114 unsigned char val1, val2; in snd_tea6330t_put_master_volume() local 116 val1 = (ucontrol->value.integer.value[0] % 44) + 0x14; in snd_tea6330t_put_master_volume() 119 change = val1 != tea->mleft || val2 != tea->mright; in snd_tea6330t_put_master_volume() 120 tea->mleft = val1; in snd_tea6330t_put_master_volume() 165 unsigned char oval1, oval2, val1, val2; in snd_tea6330t_put_master_switch() local 167 val1 = ucontrol->value.integer.value[0] & 1; in snd_tea6330t_put_master_switch() 172 change = val1 != oval1 || val2 != oval2; in snd_tea6330t_put_master_switch() 173 tea->regs[TEA6330T_SADDR_VOLUME_LEFT] = val1 ? tea->mleft : 0; in snd_tea6330t_put_master_switch() 216 unsigned char val1; in snd_tea6330t_put_bass() local 218 val1 = ucontrol->value.integer.value[0] % (tea->max_bass + 1); in snd_tea6330t_put_bass() [all …]
|
/Linux-v4.19/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-v4.19/sound/isa/cs423x/ |
D | cs4236_lib.c | 565 unsigned short val1, val2; in snd_cs4236_put_double() local 567 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4236_put_double() 570 val1 = mask - val1; in snd_cs4236_put_double() 573 val1 <<= shift_left; in snd_cs4236_put_double() 577 val1 = (chip->eimage[CS4236_REG(left_reg)] & ~(mask << shift_left)) | val1; in snd_cs4236_put_double() 579 …change = val1 != chip->eimage[CS4236_REG(left_reg)] || val2 != chip->eimage[CS4236_REG(right_reg)]; in snd_cs4236_put_double() 580 snd_cs4236_ext_out(chip, left_reg, val1); in snd_cs4236_put_double() 583 …val1 = (chip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | va… in snd_cs4236_put_double() 584 change = val1 != chip->eimage[CS4236_REG(left_reg)]; in snd_cs4236_put_double() 585 snd_cs4236_ext_out(chip, left_reg, val1); in snd_cs4236_put_double() [all …]
|
/Linux-v4.19/sound/i2c/other/ |
D | pt2258.c | 112 int val0, val1; in pt2258_stereo_volume_put() local 115 val1 = 79 - ucontrol->value.integer.value[1]; in pt2258_stereo_volume_put() 116 if (val0 < 0 || val0 > 79 || val1 < 0 || val1 > 79) in pt2258_stereo_volume_put() 118 if (val0 == pt->volume[base] && val1 == pt->volume[base + 1]) in pt2258_stereo_volume_put() 129 pt->volume[base + 1] = val1; in pt2258_stereo_volume_put() 130 bytes[0] = pt2258_channel_code[2 * base + 2] | (val1 / 10); in pt2258_stereo_volume_put() 131 bytes[1] = pt2258_channel_code[2 * base + 3] | (val1 % 10); in pt2258_stereo_volume_put()
|
/Linux-v4.19/include/linux/mtd/ |
D | map.h | 273 #define map_word_equal(map, val1, val2) \ argument 277 if ((val1).x[i] != (val2).x[i]) { \ 284 #define map_word_and(map, val1, val2) \ argument 289 r.x[i] = (val1).x[i] & (val2).x[i]; \ 293 #define map_word_clr(map, val1, val2) \ argument 298 r.x[i] = (val1).x[i] & ~(val2).x[i]; \ 302 #define map_word_or(map, val1, val2) \ argument 307 r.x[i] = (val1).x[i] | (val2).x[i]; \ 311 #define map_word_andequal(map, val1, val2, val3) \ argument 315 if (((val1).x[i] & (val2).x[i]) != (val3).x[i]) { \ [all …]
|
/Linux-v4.19/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() 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-v4.19/sound/isa/sb/ |
D | emu8000.c | 855 unsigned short val1; in mixer_bass_treble_put() local 857 val1 = ucontrol->value.integer.value[0] % 12; in mixer_bass_treble_put() 860 change = val1 != emu->treble_level; in mixer_bass_treble_put() 861 emu->treble_level = val1; in mixer_bass_treble_put() 863 change = val1 != emu->bass_level; in mixer_bass_treble_put() 864 emu->bass_level = val1; in mixer_bass_treble_put() 916 unsigned short val1; in mixer_chorus_reverb_put() local 920 val1 = ucontrol->value.integer.value[0] % SNDRV_EMU8000_CHORUS_NUMBERS; in mixer_chorus_reverb_put() 921 change = val1 != emu->chorus_mode; in mixer_chorus_reverb_put() 922 emu->chorus_mode = val1; in mixer_chorus_reverb_put() [all …]
|
/Linux-v4.19/include/linux/ |
D | hid-sensor-hub.h | 263 int val1, int val2); 265 int *val1, int *val2); 267 int val1, int val2); 269 int *val1, int *val2); 276 int *val0, int *val1);
|
/Linux-v4.19/sound/isa/gus/ |
D | gus_mixer.c | 112 unsigned char val1, val2, oval1, oval2; in snd_ics_put_double() local 114 val1 = ucontrol->value.integer.value[0] & 127; in snd_ics_put_double() 119 change = val1 != oval1 || val2 != oval2; in snd_ics_put_double() 120 gus->gf1.ics_regs[addr][0] = val1; in snd_ics_put_double() 124 swap(val1, val2); in snd_ics_put_double() 129 outb((unsigned char) val1, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
|
/Linux-v4.19/sound/soc/sh/rcar/ |
D | ssiu.c | 30 u32 mask1, val1; in rsnd_ssiu_init() local 63 val1 = val2 = 0; in rsnd_ssiu_init() 86 val1 = rsnd_rdai_is_clk_master(rdai) ? in rsnd_ssiu_init() 100 val1 = rsnd_rdai_is_clk_master(rdai) ? in rsnd_ssiu_init() 104 val1 |= (1 << 4); in rsnd_ssiu_init() 108 rsnd_mod_bset(mod, SSI_MODE1, mask1, val1); in rsnd_ssiu_init()
|
/Linux-v4.19/drivers/spi/ |
D | spi-uniphier.c | 117 u32 val1, val2; in uniphier_spi_set_mode() local 134 val1 = SSI_CKS_CKPHS | SSI_CKS_CKDLY; in uniphier_spi_set_mode() 139 val1 = 0; in uniphier_spi_set_mode() 144 val1 = SSI_CKS_CKINIT | SSI_CKS_CKDLY; in uniphier_spi_set_mode() 149 val1 = SSI_CKS_CKPHS | SSI_CKS_CKINIT; in uniphier_spi_set_mode() 157 writel(val1, priv->base + SSI_CKS); in uniphier_spi_set_mode() 160 val1 = 0; in uniphier_spi_set_mode() 162 val1 |= FIELD_PREP(SSI_TXWDS_TDTF_MASK, 1); in uniphier_spi_set_mode() 163 writel(val1, priv->base + SSI_TXWDS); in uniphier_spi_set_mode() 164 writel(val1, priv->base + SSI_RXWDS); in uniphier_spi_set_mode()
|
/Linux-v4.19/drivers/iio/adc/ |
D | mcp3422.c | 160 struct iio_chan_spec const *channel, int *val1, in mcp3422_read_raw() argument 171 err = mcp3422_read_channel(adc, channel, val1); in mcp3422_read_raw() 178 *val1 = 0; in mcp3422_read_raw() 183 *val1 = mcp3422_sample_rates[MCP3422_SAMPLE_RATE(adc->config)]; in mcp3422_read_raw() 194 struct iio_chan_spec const *channel, int val1, in mcp3422_write_raw() argument 206 if (val1 != 0) in mcp3422_write_raw() 224 switch (val1) { in mcp3422_write_raw()
|
/Linux-v4.19/drivers/scsi/fnic/ |
D | fnic_trace.c | 220 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() 428 (s64)val1.tv_sec, val1.tv_nsec, in fnic_get_stats_data()
|
/Linux-v4.19/drivers/hwtracing/coresight/ |
D | coresight-etm4x-sysfs.c | 940 unsigned long val1, val2; in addr_range_show() local 958 val1 = (unsigned long)config->addr_val[idx]; in addr_range_show() 961 return scnprintf(buf, PAGE_SIZE, "%#lx %#lx\n", val1, val2); in addr_range_show() 969 unsigned long val1, val2; in addr_range_store() local 973 if (sscanf(buf, "%lx %lx", &val1, &val2) != 2) in addr_range_store() 976 if (val1 > val2) in addr_range_store() 994 config->addr_val[idx] = (u64)val1; in addr_range_store() 1696 unsigned long val1, val2; in ctxid_masks_show() local 1708 val1 = config->ctxid_mask0; in ctxid_masks_show() 1711 return scnprintf(buf, PAGE_SIZE, "%#lx %#lx\n", val1, val2); in ctxid_masks_show() [all …]
|
/Linux-v4.19/sound/isa/es1688/ |
D | es1688_lib.c | 915 unsigned char val1, val2, oval1, oval2; in snd_es1688_put_double() local 917 val1 = ucontrol->value.integer.value[0] & mask; in snd_es1688_put_double() 920 val1 = mask - val1; in snd_es1688_put_double() 923 val1 <<= shift_left; in snd_es1688_put_double() 935 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_es1688_put_double() 937 change = val1 != oval1 || val2 != oval2; in snd_es1688_put_double() 940 snd_es1688_mixer_write(chip, left_reg, val1); in snd_es1688_put_double() 942 snd_es1688_write(chip, left_reg, val1); in snd_es1688_put_double() 944 snd_es1688_mixer_write(chip, right_reg, val1); in snd_es1688_put_double() 946 snd_es1688_write(chip, right_reg, val1); in snd_es1688_put_double() [all …]
|
/Linux-v4.19/arch/alpha/kernel/ |
D | sys_sable.c | 112 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-v4.19/sound/pci/ice1712/ |
D | wm8766.c | 224 u16 val1, val2; in snd_wm8766_ctl_get() local 227 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8766_ctl_get() 229 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8766_ctl_get() 230 val1 >>= __ffs(wm->ctl[n].mask1); in snd_wm8766_ctl_get() 239 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8766_ctl_get() 243 ucontrol->value.integer.value[0] = val1; in snd_wm8766_ctl_get()
|
/Linux-v4.19/drivers/platform/x86/ |
D | amilo-rfkill.c | 60 u8 val1 = blocked ? M7440_RADIO_OFF1 : M7440_RADIO_ON1; in amilo_m7440_rfkill_set_block() local 63 outb(val1, M7440_PORT1); in amilo_m7440_rfkill_set_block() 67 if (inb(M7440_PORT1) != val1 || inb(M7440_PORT2) != val2) in amilo_m7440_rfkill_set_block()
|
/Linux-v4.19/drivers/misc/ |
D | fsa9480.c | 269 int val1, val2, ctrl; in fsa9480_detect_dev() local 273 val1 = fsa9480_read_reg(client, FSA9480_REG_DEV_T1); in fsa9480_detect_dev() 278 intr, val1, val2); in fsa9480_detect_dev() 285 if (val1 & DEV_T1_USB_MASK || val2 & DEV_T2_USB_MASK) { in fsa9480_detect_dev() 296 if (val1 & DEV_T1_UART_MASK || val2 & DEV_T2_UART_MASK) { in fsa9480_detect_dev() 307 if (val1 & DEV_T1_CHARGER_MASK) { in fsa9480_detect_dev() 345 usbsw->dev1 = val1; in fsa9480_detect_dev()
|