/linux/tools/include/nolibc/sys/ |
H A D | timerfd.h | 59 const struct itimerspec *new_value, struct itimerspec *old_value) in sys_timerfd_settime() argument 62 return my_syscall4(__NR_timerfd_settime, fd, flags, new_value, old_value); in sys_timerfd_settime() 70 if (old_value) { in sys_timerfd_settime() 71 __nolibc_timespec_kernel_to_user(&kold_value.it_interval, &old_value->it_interval); in sys_timerfd_settime() 72 __nolibc_timespec_kernel_to_user(&kold_value.it_value, &old_value->it_value); in sys_timerfd_settime() 76 return __nolibc_enosys(__func__, fd, flags, new_value, old_value); in sys_timerfd_settime() 82 const struct itimerspec *new_value, struct itimerspec *old_value) in timerfd_settime() argument 84 return __sysret(sys_timerfd_settime(fd, flags, new_value, old_value)); in timerfd_settime()
|
/linux/tools/perf/util/ |
H A D | hashmap.h | 126 * through old_key and old_value to allow calling code do proper memory 131 long *old_key, long *old_value); 133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument 136 hashmap_cast_ptr(old_value)) 141 #define hashmap__set(map, key, value, old_key, old_value) \ argument 142 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value)) 144 #define hashmap__update(map, key, value, old_key, old_value) \ argument 145 hashmap__insert((map), (key), (value), HASHMAP_UPDATE, (old_key), (old_value)) 150 bool hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value); 152 #define hashmap__delete(map, key, old_key, old_value) \ argument [all...] |
H A D | hashmap.c | 156 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 D | threads.c | 145 struct thread *old_value; in threads__remove_all_threads() local 147 hashmap__delete(&table->shard, cur->key, /*old_key=*/NULL, &old_value); in threads__remove_all_threads() 148 thread__put(old_value); in threads__remove_all_threads() 157 struct thread *old_value; in threads__remove() local 163 hashmap__delete(&table->shard, thread__tid(thread), /*old_key=*/NULL, &old_value); in threads__remove() 164 thread__put(old_value); in threads__remove()
|
/linux/tools/lib/bpf/ |
H A D | hashmap.h | 126 * through old_key and old_value to allow calling code do proper memory 131 long *old_key, long *old_value); 133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument 136 hashmap_cast_ptr(old_value)) 141 #define hashmap__set(map, key, value, old_key, old_value) \ argument 142 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value)) 144 #define hashmap__update(map, key, value, old_key, old_value) \ argument 145 hashmap__insert((map), (key), (value), HASHMAP_UPDATE, (old_key), (old_value)) 150 bool hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value); 152 #define hashmap__delete(map, key, old_key, old_value) \ argument [all...] |
H A D | hashmap.c | 156 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/drivers/xen/xen-pciback/ |
H A D | conf_space_capability.c | 118 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 D | time.h | 169 * int timer_settime(timer_t timerid, int flags, const struct itimerspec *new_value, struct itimerspec *old_value); 222 const struct itimerspec *new_value, struct itimerspec *old_value) in sys_timer_settime() argument 225 return my_syscall4(__NR_timer_settime, timerid, flags, new_value, old_value); in sys_timer_settime() 233 if (old_value) { in sys_timer_settime() 234 __nolibc_timespec_kernel_to_user(&kold_value.it_interval, &old_value->it_interval); in sys_timer_settime() 235 __nolibc_timespec_kernel_to_user(&kold_value.it_value, &old_value->it_value); in sys_timer_settime() 239 return __nolibc_enosys(__func__, timerid, flags, new_value, old_value); in sys_timer_settime() 245 const struct itimerspec *new_value, struct itimerspec *old_value) in timer_settime() argument 247 return __sysret(sys_timer_settime(timerid, flags, new_value, old_value)); in timer_settime()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | hashmap.c | 262 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 D | fs.c | 81 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/sound/drivers/opl4/ |
H A D | opl4_mixer.c | 39 u8 value, old_value; in snd_opl4_ctl_put() local 44 old_value = snd_opl4_read(opl4, reg); in snd_opl4_ctl_put() 47 return value != old_value; in snd_opl4_ctl_put()
|
/linux/drivers/gpio/ |
H A D | gpio-mpsse.c | 291 irq, old_value[16], irq_type[16]; in gpio_mpsse_poll() local 296 old_value[offset] = -1; in gpio_mpsse_poll() 311 old_value[offset] = -1; in gpio_mpsse_poll() 324 if (old_value[offset] == -1) in gpio_mpsse_poll() 332 fire_irq = value > old_value[offset]; in gpio_mpsse_poll() 335 fire_irq = value < old_value[offset]; in gpio_mpsse_poll() 338 fire_irq = value != old_value[offset]; in gpio_mpsse_poll() 356 old_value[offset] = pin_states & BIT(offset); in gpio_mpsse_poll()
|
/linux/fs/xfs/scrub/ |
H A D | fscounters.c | 463 * could have changed. We know the @old_value of the summation of the counter 476 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()
|
/linux/drivers/mmc/host/ |
H A D | sdhci-of-esdhc.c | 230 * @old_value: 32bit eSDHC register value on spec_reg address 240 int spec_reg, u32 value, u32 old_value) in esdhc_writel_fixup() argument 258 int spec_reg, u16 value, u32 old_value) in esdhc_writew_fixup() argument 271 return old_value; in esdhc_writew_fixup() 277 ret = old_value & (~(0xffff << shift)); in esdhc_writew_fixup() 292 int spec_reg, u8 value, u32 old_value) in esdhc_writeb_fixup() argument 304 return old_value; in esdhc_writeb_fixup() 315 return old_value; in esdhc_writeb_fixup() 319 ret = (old_value & (~(SDHCI_CTRL_DMA_MASK << 5))) | dma_bits; in esdhc_writeb_fixup() 321 (old_value in esdhc_writeb_fixup() [all...] |
/linux/fs/xfs/libxfs/ |
H A D | xfs_inode_util.c | 442 xfs_agino_t old_value; in xfs_iunlink_update_bucket() local 447 old_value = be32_to_cpu(agi->agi_unlinked[bucket_index]); in xfs_iunlink_update_bucket() 448 trace_xfs_iunlink_update_bucket(pag, bucket_index, old_value, in xfs_iunlink_update_bucket() 456 if (old_value == new_agino) { in xfs_iunlink_update_bucket()
|
/linux/drivers/media/usb/gspca/m5602/ |
H A D | m5602_ov7660.c | 453 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 D | m5602_po1030.c | 608 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 D | m5602_ov9650.c | 769 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 D | m5602_s5k4aa.c | 740 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/clocksource/ |
H A D | sh_cmt.c | 251 u32 old_value = sh_cmt_read_cmstr(ch); in sh_cmt_write_cmstr() local 253 if (value != old_value) { in sh_cmt_write_cmstr() 271 u32 old_value = sh_cmt_read_cmcsr(ch); in sh_cmt_write_cmcsr() local 273 if (value != old_value) { in sh_cmt_write_cmcsr() 305 u32 old_value = ch->cmt->info->read_count(ch->ioctrl, CMCOR); in sh_cmt_write_cmcor() local 307 if (value != old_value) { in sh_cmt_write_cmcor()
|
/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ethtool.c | 4213 bool old_value, new_value; in i40e_print_input_set() local 4216 old_value = !!(old & I40E_L3_SRC_MASK); in i40e_print_input_set() 4218 if (old_value != new_value) in i40e_print_input_set() 4220 old_value ? "ON" : "OFF", in i40e_print_input_set() 4223 old_value = !!(old & I40E_L3_DST_MASK); in i40e_print_input_set() 4225 if (old_value != new_value) in i40e_print_input_set() 4227 old_value ? "ON" : "OFF", in i40e_print_input_set() 4230 old_value = !!(old & I40E_L4_SRC_MASK); in i40e_print_input_set() 4232 if (old_value != new_value) in i40e_print_input_set() 4234 old_value in i40e_print_input_set() [all...] |
/linux/drivers/net/wan/ |
H A D | wanxl.c | 493 u32 old_value = readl(card->plx + PLX_CONTROL) & ~PLX_CTL_RESET; in wanxl_reset() local 496 writel(old_value | PLX_CTL_RESET, card->plx + PLX_CONTROL); in wanxl_reset() 499 writel(old_value, card->plx + PLX_CONTROL); in wanxl_reset()
|
/linux/sound/usb/ |
H A D | mixer_quirks.c | 341 int old_value = kcontrol->private_value >> 8; in snd_audigy2nx_led_put() local 346 if (value == old_value) in snd_audigy2nx_led_put() 2928 int old_value, pv, val; in snd_bbfpro_ctl_put() local 2936 old_value = (pv >> SND_BBFPRO_CTL_VAL_SHIFT) & SND_BBFPRO_CTL_VAL_MASK; in snd_bbfpro_ctl_put() 2951 if (val == old_value) in snd_bbfpro_ctl_put() 3036 int pv, channel, old_value, value, err; in snd_bbfpro_gain_put() local 3044 old_value = pv & SND_BBFPRO_GAIN_VAL_MASK; in snd_bbfpro_gain_put() 3058 if (value == old_value) in snd_bbfpro_gain_put() 3136 u32 new_val, old_value, uvalue; in snd_bbfpro_vol_put() local 3142 old_value in snd_bbfpro_vol_put() [all...] |
/linux/drivers/ps3/ |
H A D | ps3-lpm.c | 366 u64 old_value; in ps3_write_pm07_control() local 375 &old_value); in ps3_write_pm07_control()
|
/linux/net/ipv4/ |
H A D | devinet.c | 2472 int old_value = *(int *)ctl->data; in devinet_conf_proc() local 2488 if ((new_value == 0) && (old_value != 0)) in devinet_conf_proc() 2492 new_value != old_value) in devinet_conf_proc() 2496 new_value != old_value) { in devinet_conf_proc() 2503 new_value != old_value) { in devinet_conf_proc() 2510 new_value != old_value) { in devinet_conf_proc()
|