Home
last modified time | relevance | path

Searched refs:old_value (Results 1 – 23 of 23) sorted by relevance

/linux/tools/lib/bpf/
H A Dhashmap.c156 long *old_key, long *old_value) in hashmap_insert() argument
164 if (old_value) in hashmap_insert()
165 *old_value = 0; in hashmap_insert()
172 if (old_value) in hashmap_insert()
173 *old_value = entry->value; in hashmap_insert()
221 long *old_key, long *old_value) in hashmap_delete() argument
232 if (old_value) in hashmap_delete()
233 *old_value = entry->value; in hashmap_delete()
/linux/tools/perf/util/
H A Dhashmap.c156 long *old_key, long *old_value) in hashmap_insert() argument
164 if (old_value) in hashmap_insert()
165 *old_value = 0; in hashmap_insert()
172 if (old_value) in hashmap_insert()
173 *old_value = entry->value; in hashmap_insert()
221 long *old_key, long *old_value) in hashmap_delete() argument
232 if (old_value) in hashmap_delete()
233 *old_value = entry->value; in hashmap_delete()
H A Ds390-sample-raw.c212 char *old_value = NULL, *new_value = strdup(result); in get_counter_name()
215 hashmap__set(cache, cache_key, new_value, /*old_key=*/NULL, &old_value); in get_counter_name()
220 free(old_value); in get_counter_name()
211 char *old_value = NULL, *new_value = strdup(result); get_counter_name() local
/linux/drivers/xen/xen-pciback/
H A Dconf_space_capability.c118 u16 old_value; in pm_ctrl_write() local
121 err = pci_read_config_word(dev, offset, &old_value); in pm_ctrl_write()
128 if ((old_value & PM_OK_BITS) != new_value) { in pm_ctrl_write()
129 new_value = (old_value & ~PM_OK_BITS) | new_value; in pm_ctrl_write()
220 u16 old_value; in msi_msix_flags_write() local
227 err = pci_read_config_word(dev, offset, &old_value); in msi_msix_flags_write()
231 if (new_value == old_value) in msi_msix_flags_write()
235 (new_value ^ old_value) & ~field_config->allowed_bits) in msi_msix_flags_write()
/linux/tools/include/nolibc/
H A Dtime.h140 * int timer_settime(timer_t timerid, int flags, const struct itimerspec *new_value, struct itimerspec *old_value); in nanosleep()
187 const struct itimerspec *new_value, struct itimerspec *old_value) in timer_delete()
191 return __nolibc_syscall4(__NR_timer_settime64, timerid, flags, new_value, old_value); in sys_timer_gettime()
194 return __nolibc_syscall4(__NR_timer_settime, timerid, flags, new_value, old_value); in sys_timer_gettime()
200 const struct itimerspec *new_value, struct itimerspec *old_value) in sys_timer_gettime()
202 return __sysret(_sys_timer_settime(timerid, flags, new_value, old_value)); in sys_timer_gettime()
213 sys_timer_settime(timer_t timerid,int flags,const struct itimerspec * new_value,struct itimerspec * old_value) sys_timer_settime() argument
234 timer_settime(timer_t timerid,int flags,const struct itimerspec * new_value,struct itimerspec * old_value) timer_settime() argument
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dhashmap.c262 const char *key, *value, *old_key, *old_value; in test_hashmap_ptr_iface() local
279 err = hashmap__insert(map, "a", "apple", HASHMAP_SET, &old_key, &old_value); in test_hashmap_ptr_iface()
283 CHECK_STR("hashmap__update", old_value, "apricot"); in test_hashmap_ptr_iface()
289 err = hashmap__set(map, "b", "breadfruit", &old_key, &old_value); in test_hashmap_ptr_iface()
293 CHECK_STR("hashmap__set", old_value, "banana"); in test_hashmap_ptr_iface()
295 err = hashmap__update(map, "b", "blueberry", &old_key, &old_value); in test_hashmap_ptr_iface()
299 CHECK_STR("hashmap__update", old_value, "breadfruit"); in test_hashmap_ptr_iface()
305 if (CHECK(!hashmap__delete(map, "c", &old_key, &old_value), in test_hashmap_ptr_iface()
309 CHECK_STR("hashmap__delete", old_value, "cherry"); in test_hashmap_ptr_iface()
/linux/security/ipe/
H A Dfs.c81 bool new_value, old_value; in setenforce() local
86 old_value = READ_ONCE(enforce); in setenforce()
91 if (new_value != old_value) { in setenforce()
92 ipe_audit_enforce(new_value, old_value); in setenforce()
/linux/drivers/gpio/
H A Dgpio-mpsse.c405 irq, old_value[16], irq_type[16]; in gpio_mpsse_poll()
410 old_value[offset] = -1; in gpio_mpsse_poll()
434 old_value[offset] = -1; in gpio_mpsse_poll()
447 if (old_value[offset] == -1) in gpio_mpsse_poll()
455 fire_irq = value > old_value[offset]; in gpio_mpsse_poll()
458 fire_irq = value < old_value[offset]; in gpio_mpsse_poll()
461 fire_irq = value != old_value[offset]; in gpio_mpsse_poll()
479 old_value[offset] = pin_states & BIT(offset);
402 irq, old_value[16], irq_type[16]; gpio_mpsse_poll() local
/linux/fs/xfs/scrub/
H A Dfscounters.c476 const int64_t old_value, in xchk_fscount_within_range() argument
484 old_value); in xchk_fscount_within_range()
498 min_value = min(old_value, curr_value); in xchk_fscount_within_range()
499 max_value = max(old_value, curr_value); in xchk_fscount_within_range()
H A Dtrace.h890 int64_t old_value),
891 TP_ARGS(mp, expected, curr_value, old_value),
896 __field(int64_t, old_value)
902 __entry->old_value = old_value;
908 __entry->old_value)
/linux/drivers/media/usb/gspca/m5602/
H A Dm5602_ov7660.c453 u8 old_value, ctrl_value; in ov7660_dump_registers() local
456 m5602_read_sensor(sd, address, &old_value, 1); in ov7660_dump_registers()
466 m5602_write_sensor(sd, address, &old_value, 1); in ov7660_dump_registers()
H A Dm5602_po1030.c608 u8 old_value, ctrl_value; in po1030_dump_registers() local
611 m5602_read_sensor(sd, address, &old_value, 1); in po1030_dump_registers()
621 m5602_write_sensor(sd, address, &old_value, 1); in po1030_dump_registers()
H A Dm5602_ov9650.c769 u8 old_value, ctrl_value; in ov9650_dump_registers() local
772 m5602_read_sensor(sd, address, &old_value, 1); in ov9650_dump_registers()
782 m5602_write_sensor(sd, address, &old_value, 1); in ov9650_dump_registers()
H A Dm5602_s5k4aa.c740 u8 old_value, ctrl_value, test_value = 0xff; in s5k4aa_dump_registers() local
742 m5602_read_sensor(sd, address, &old_value, 1); in s5k4aa_dump_registers()
754 m5602_write_sensor(sd, address, &old_value, 1); in s5k4aa_dump_registers()
/linux/drivers/net/wan/
H A Dwanxl.c476 u32 old_value = readl(card->plx + PLX_CONTROL) & ~PLX_CTL_RESET; in wanxl_reset() local
479 writel(old_value | PLX_CTL_RESET, card->plx + PLX_CONTROL); in wanxl_reset()
482 writel(old_value, card->plx + PLX_CONTROL); in wanxl_reset()
/linux/sound/usb/
H A Dmixer_quirks.c335 int old_value = kcontrol->private_value >> 8; in snd_audigy2nx_led_put() local
341 if (value == old_value) in snd_audigy2nx_led_put()
3030 int old_value, pv, val; in snd_bbfpro_ctl_put() local
3038 old_value = (pv >> SND_BBFPRO_CTL_VAL_SHIFT) & SND_BBFPRO_CTL_VAL_MASK; in snd_bbfpro_ctl_put()
3053 if (val == old_value) in snd_bbfpro_ctl_put()
3136 int pv, channel, old_value, value, err; in snd_bbfpro_gain_put() local
3144 old_value = pv & SND_BBFPRO_GAIN_VAL_MASK; in snd_bbfpro_gain_put()
3158 if (value == old_value) in snd_bbfpro_gain_put()
3232 u32 new_val, old_value, uvalue; in snd_bbfpro_vol_put() local
3238 old_value = kcontrol->private_value >> SND_BBFPRO_MIXER_VAL_SHIFT; in snd_bbfpro_vol_put()
[all …]
/linux/drivers/ps3/
H A Dps3-lpm.c366 u64 old_value; in ps3_write_pm07_control() local
375 &old_value); in ps3_write_pm07_control()
/linux/tools/testing/selftests/kvm/s390/
H A Dmemop.c51 u8 old_value[16]; member
89 memcpy(desc->old_value, desc->old, desc->size); in ksmo_from_desc()
184 int diff = memcmp(desc->old_value, desc->old, desc->size); in memop_ioctl()
/linux/security/selinux/
H A Dselinuxfs.c139 bool old_value, new_value; in sel_write_enforce()
158 old_value = enforcing_enabled(); in sel_write_enforce()
159 if (new_value != old_value) { in sel_write_enforce()
168 new_value, old_value, in sel_write_enforce()
141 bool old_value, new_value; sel_write_enforce() local
/linux/drivers/net/
H A Dnetconsole.c1417 char old_value[MAX_EXTRADATA_VALUE_LEN]; in userdatum_value_store() local
1428 strscpy(old_value, udm->value, sizeof(old_value)); in userdatum_value_store()
1438 strscpy(udm->value, old_value, sizeof(udm->value)); in userdatum_value_store()
/linux/net/ipv4/
H A Ddevinet.c2203 int old_value = ipv4_devconf_get(in_dev, nla_type(a)); in inet_set_link_af() local
2208 old_value, dev->ifindex)) in inet_set_link_af()
2572 int old_value = *(int *)ctl->data; in devinet_conf_proc() local
2601 old_value, ifindex)) in devinet_conf_proc()
/linux/arch/x86/kvm/svm/
H A Dsvm.c2654 unsigned long old_value, new_value; in cr_interception()
2663 old_value = kvm_read_cr0(vcpu); in cr_trap()
2666 kvm_post_set_cr0(vcpu, old_value, new_value); in cr_trap()
2669 old_value = kvm_read_cr4(vcpu); in cr_trap()
2672 kvm_post_set_cr4(vcpu, old_value, new_value); in cr_trap()
2664 unsigned long old_value, new_value; cr_trap() local
/linux/drivers/nvme/host/
H A Dpci.c566 u16 old_value, event_idx; in nvme_dbbuf_update_and_check_event() local
574 old_value = le32_to_cpu(*dbbuf_db); in nvme_dbbuf_update_and_check_event()
586 if (!nvme_dbbuf_need_event(event_idx, value, old_value)) in nvme_dbbuf_update_and_check_event()