/linux-master/tools/testing/selftests/futex/include/ |
H A D | atomic.h | 31 * @newval: The new value to try and assign the futex 36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) argument 38 return __sync_val_compare_and_swap(&addr->val, oldval, newval); 68 * @newval: New value for the atomic_t 73 atomic_set(atomic_t *addr, int newval) argument 75 addr->val = newval; 76 return newval;
|
/linux-master/arch/sh/include/asm/ |
H A D | futex-cas.h | 7 u32 oldval, u32 newval) 27 :"+r" (err), "+r" (newval) 31 *uval = newval; 5 atomic_futex_op_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument
|
H A D | futex.h | 21 u32 oldval, u32 newval) 26 return atomic_futex_op_cmpxchg_inatomic(uval, uaddr, oldval, newval); 32 u32 oldval, newval, prev; local 42 newval = oparg; 45 newval = oldval + oparg; 48 newval = oldval | oparg; 51 newval = oldval & ~oparg; 54 newval = oldval ^ oparg; 63 ret = futex_atomic_cmpxchg_inatomic(&prev, uaddr, oldval, newval); 20 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument
|
H A D | futex-llsc.h | 7 u32 oldval, u32 newval) 36 :"r" (uaddr), "i" (-EFAULT), "r" (oldval), "r" (newval) 5 atomic_futex_op_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument
|
H A D | futex-irq.h | 7 u32 oldval, u32 newval) 17 ret = put_user(newval, uaddr); 5 atomic_futex_op_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | global_data_init.c | 8 __u8 *buff = NULL, *newval = NULL; local 24 newval = malloc(sz); 25 if (CHECK_FAIL(!newval)) 28 memset(newval, 0, sz); 30 err = bpf_map__set_initial_value(map, newval, sz - 1); 34 err = bpf_map__set_initial_value(map, newval, sz); 49 if (CHECK(!buff || err || memcmp(buff, newval, sz), 54 memset(newval, 1, sz); 56 err = bpf_map__set_initial_value(map, newval, sz); 60 free(newval); [all...] |
/linux-master/arch/s390/include/asm/ |
H A D | futex.h | 11 #define __futex_atomic_op(insn, ret, oldval, newval, uaddr, oparg) \ 22 : "=d" (ret), "=&d" (oldval), "=&d" (newval), \ 30 int oldval = 0, newval, ret; local 35 ret, oldval, newval, uaddr, oparg); 39 ret, oldval, newval, uaddr, oparg); 43 ret, oldval, newval, uaddr, oparg); 47 ret, oldval, newval, uaddr, oparg); 51 ret, oldval, newval, uaddr, oparg); 64 u32 oldval, u32 newval) 75 : "0" (-EFAULT), "d" (newval), " 63 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument [all...] |
/linux-master/drivers/net/bonding/ |
H A D | bond_options.c | 20 const struct bond_opt_value *newval); 22 const struct bond_opt_value *newval); 24 const struct bond_opt_value *newval); 26 const struct bond_opt_value *newval); 28 const struct bond_opt_value *newval); 30 const struct bond_opt_value *newval); 32 const struct bond_opt_value *newval); 36 const struct bond_opt_value *newval); 38 const struct bond_opt_value *newval); 40 const struct bond_opt_value *newval); 867 bond_option_mode_set(struct bonding *bond, const struct bond_opt_value *newval) argument 907 bond_option_active_slave_set(struct bonding *bond, const struct bond_opt_value *newval) argument 971 bond_option_miimon_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1013 _bond_option_delay_set(struct bonding *bond, const struct bond_opt_value *newval, const char *name, int *target) argument 1041 bond_option_updelay_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1048 bond_option_downdelay_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1055 bond_option_peer_notif_delay_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1064 bond_option_use_carrier_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1078 bond_option_arp_interval_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1210 bond_option_arp_ip_targets_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1261 bond_option_ns_ip6_targets_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1294 bond_option_ns_ip6_targets_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1301 bond_option_arp_validate_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1311 bond_option_arp_all_targets_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1321 bond_option_missed_max_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1331 bond_option_prio_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1352 bond_option_primary_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1400 bond_option_primary_reselect_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1414 bond_option_fail_over_mac_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1424 bond_option_xmit_hash_policy_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1434 bond_option_resend_igmp_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1444 bond_option_num_peer_notif_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1452 bond_option_all_slaves_active_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1473 bond_option_min_links_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1484 bond_option_lp_interval_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1492 bond_option_pps_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1512 bond_option_lacp_active_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1522 bond_option_lacp_rate_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1533 bond_option_ad_select_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1543 bond_option_queue_id_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1604 bond_option_slaves_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1652 bond_option_tlb_dynamic_lb_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1662 bond_option_ad_actor_sys_prio_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1674 bond_option_ad_actor_system_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1702 bond_option_ad_user_port_key_set(struct bonding *bond, const struct bond_opt_value *newval) argument 1712 bond_option_coupled_control_set(struct bonding *bond, const struct bond_opt_value *newval) argument [all...] |
H A D | bond_netlink.c | 152 struct bond_opt_value newval; local 165 bond_opt_initstr(&newval, queue_id_str); 166 err = __bond_opt_set(bond, BOND_OPT_QUEUE_ID, &newval, 175 bond_opt_slave_initval(&newval, &slave_dev, prio); 176 err = __bond_opt_set(bond, BOND_OPT_PRIO, &newval, 190 struct bond_opt_value newval; local 200 bond_opt_initval(&newval, mode); 201 err = __bond_opt_set(bond, BOND_OPT_MODE, &newval, 218 bond_opt_initstr(&newval, active_slave); 219 err = __bond_opt_set(bond, BOND_OPT_ACTIVE_SLAVE, &newval, [all...] |
/linux-master/arch/xtensa/include/asm/ |
H A D | futex.h | 28 "2: s32ex %[newval], %[addr]\n" \ 29 " getex %[newval]\n" \ 30 " beqz %[newval], 1b\n" \ 31 " movi %[newval], 0\n" \ 37 " movi %[newval], %[fault]\n" \ 43 : [oldval] "=&r" (old), [newval] "=&r" (ret) \ 53 "2: s32c1i %[newval], %[mem]\n" \ 54 " bne %[newval], %[oldval], 1b\n" \ 55 " movi %[newval], 0\n" \ 61 " movi %[newval], 117 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument [all...] |
/linux-master/arch/sparc/include/asm/ |
H A D | futex_64.h | 69 u32 oldval, u32 newval) 86 : "+r" (ret), "=r" (newval) 87 : "1" (newval), "r" (oldval), "r" (uaddr), "i" (-EFAULT) 90 *uval = newval; 68 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument
|
/linux-master/arch/um/include/asm/ |
H A D | futex.h | 12 u32 oldval, u32 newval);
|
/linux-master/include/asm-generic/ |
H A D | futex.h | 16 #define futex_atomic_cmpxchg_inatomic(uval, uaddr, oldval, newval) \ 17 futex_atomic_cmpxchg_inatomic_local(uval, uaddr, oldval, newval) 86 * uaddr with newval if the current value is 91 * @newval: new value to store to @uaddr 100 u32 oldval, u32 newval) 110 if (val == oldval && unlikely(put_user(newval, uaddr) != 0)) { 99 futex_atomic_cmpxchg_inatomic_local(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument
|
/linux-master/tools/include/asm-generic/ |
H A D | atomic-gcc.h | 65 #define cmpxchg(ptr, oldval, newval) \ 66 __sync_val_compare_and_swap(ptr, oldval, newval) 68 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) argument 70 return cmpxchg(&(v)->counter, oldval, newval);
|
/linux-master/arch/sparc/kernel/ |
H A D | auxio_64.c | 36 u8 regval, newval; local 43 newval = regval | bits_on; 44 newval &= ~bits_off; 46 newval &= ~AUXIO_AUX1_MASK; 48 writel((u32) newval, auxio_register); 50 sbus_writeb(newval, auxio_register);
|
/linux-master/arch/m68k/include/asm/ |
H A D | syscalls.h | 10 asmlinkage int sys_atomic_cmpxchg_32(unsigned long newval, int oldval, int d3,
|
/linux-master/net/dccp/ccids/lib/ |
H A D | tfrc.h | 49 static inline u32 tfrc_ewma(const u32 avg, const u32 newval, const u8 weight) argument 51 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval;
|
/linux-master/arch/powerpc/include/asm/book3s/64/ |
H A D | tlbflush.h | 162 unsigned long newval) 164 unsigned long delta = oldval ^ newval; 178 VM_WARN_ON_ONCE(newval & _PAGE_PRIVILEGED); 180 VM_WARN_ON_ONCE(!(newval & _PAGE_PTE)); 182 VM_WARN_ON_ONCE(!(newval & _PAGE_PRESENT)); 161 __pte_flags_need_flush(unsigned long oldval, unsigned long newval) argument
|
/linux-master/arch/arm/include/asm/ |
H A D | futex.h | 47 u32 oldval, u32 newval) 70 : "r" (oldval), "r" (newval), "r" (uaddr), "Ir" (-EFAULT) 101 u32 oldval, u32 newval) 120 : "r" (oldval), "r" (newval), "r" (uaddr), "Ir" (-EFAULT) 46 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument 100 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument
|
/linux-master/arch/mips/include/asm/ |
H A D | futex.h | 133 u32 oldval, u32 newval) 168 : GCC_OFF_SMALL_ASM() (*uaddr), "Jr" (oldval), "Jr" (newval), 198 : GCC_OFF_SMALL_ASM() (*uaddr), "Jr" (oldval), "Jr" (newval), 202 return futex_atomic_cmpxchg_inatomic_local(uval, uaddr, oldval, newval); 132 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument
|
/linux-master/drivers/hwmon/ |
H A D | asc7621.c | 472 u8 currval, newval = 0; local 483 newval = i; 488 newval = (newval & param->mask[0]) << param->shift[0]; 490 newval |= (currval & ~(param->mask[0] << param->shift[0])); 491 data->reg[param->msb[0]] = newval; 492 write_byte(client, param->msb[0], newval); 522 u8 currval, config, altbit, newval; local 548 newval = config | (currval & ~(param->mask[0] << param->shift[0])); 549 newval 560 u8 config, altbit, minoff, val, newval; local 590 u8 currval, config, altbit, newval, minoff = 255; local 663 u8 currval, newval = 255; local 712 u8 currval, newval = 255; local 759 u8 currval, newval = 255; local [all...] |
/linux-master/arch/openrisc/include/asm/ |
H A D | futex.h | 69 u32 oldval, u32 newval) 94 : "r" (oldval), "r" (newval), "i" (-EFAULT) \ 68 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument
|
/linux-master/arch/microblaze/include/asm/ |
H A D | futex.h | 68 u32 oldval, u32 newval) 91 : "r" (uaddr), "r" (oldval), "r" (newval), "i" (-EFAULT)); 67 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument
|
/linux-master/arch/alpha/include/asm/ |
H A D | futex.h | 65 u32 oldval, u32 newval) 87 : "r"(uaddr), "r"((long)(int)oldval), "r"(newval) 64 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument
|
/linux-master/arch/powerpc/include/asm/ |
H A D | futex.h | 67 u32 oldval, u32 newval) 90 : "r" (uaddr), "r" (oldval), "r" (newval), "i" (-EFAULT) 66 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) argument
|