/kernel/linux/linux-5.10/arch/arm/kernel/ |
H A D | ftrace.c | 77 static int ftrace_modify_code(unsigned long pc, unsigned long old, in ftrace_modify_code() argument 83 old = __opcode_to_mem_thumb32(old); in ftrace_modify_code() 85 old = __opcode_to_mem_arm(old); in ftrace_modify_code() 92 if (replaced != old) in ftrace_modify_code() 126 unsigned long new, old; in ftrace_make_call() local 135 old = ftrace_nop_replace(rec); in ftrace_make_call() 145 return ftrace_modify_code(rec->ip, old, new, true); in ftrace_make_call() 153 unsigned long new, old; in ftrace_modify_call() local 170 unsigned long old; ftrace_make_nop() local 208 unsigned long old; prepare_ftrace_return() local 234 unsigned long old = enable ? nop : branch; __ftrace_modify_caller() local [all...] |
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
H A D | atomic_ops.h | 16 op_type old; \ 19 op_string " %[old],%[val],%[ptr]\n" \ 21 : [old] "=d" (old), [ptr] "+Q" (*ptr) \ 23 return old; \ 67 int old, new; \ 70 "0: lr %[new],%[old]\n" \ 72 " cs %[old],%[new],%[ptr]\n" \ 74 : [old] "=d" (old), [ne 123 __atomic_cmpxchg(int *ptr, int old, int new) __atomic_cmpxchg() argument 128 __atomic_cmpxchg_bool(int *ptr, int old, int new) __atomic_cmpxchg_bool() argument 133 __atomic64_cmpxchg(long *ptr, long old, long new) __atomic64_cmpxchg() argument 138 __atomic64_cmpxchg_bool(long *ptr, long old, long new) __atomic64_cmpxchg_bool() argument [all...] |
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | ftrace.c | 26 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) in ftrace_modify_code() argument 32 "1: cas [%[ip]], %[old], %[new]\n" in ftrace_modify_code() 47 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip) in ftrace_modify_code() 50 if (replaced != old && replaced != new) in ftrace_modify_code() 59 u32 old, new; in ftrace_make_nop() local 61 old = ftrace_call_replace(ip, addr); in ftrace_make_nop() 63 return ftrace_modify_code(ip, old, new); in ftrace_make_nop() 69 u32 old, new; in ftrace_make_call() local 71 old in ftrace_make_call() 79 u32 old, new; ftrace_update_ftrace_func() local 100 u32 old, new; ftrace_enable_ftrace_graph_caller() local 110 u32 old, new; ftrace_disable_ftrace_graph_caller() local [all...] |
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | ftrace.c | 26 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) in ftrace_modify_code() argument 32 "1: cas [%[ip]], %[old], %[new]\n" in ftrace_modify_code() 47 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip) in ftrace_modify_code() 50 if (replaced != old && replaced != new) in ftrace_modify_code() 59 u32 old, new; in ftrace_make_nop() local 61 old = ftrace_call_replace(ip, addr); in ftrace_make_nop() 63 return ftrace_modify_code(ip, old, new); in ftrace_make_nop() 69 u32 old, new; in ftrace_make_call() local 71 old in ftrace_make_call() 79 u32 old, new; ftrace_update_ftrace_func() local 95 u32 old, new; ftrace_enable_ftrace_graph_caller() local 105 u32 old, new; ftrace_disable_ftrace_graph_caller() local [all...] |
/kernel/linux/linux-5.10/arch/ia64/include/asm/ |
H A D | acenv.h | 22 unsigned int old, new, val; in ia64_acpi_acquire_global_lock() local 24 old = *lock; in ia64_acpi_acquire_global_lock() 25 new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1)); in ia64_acpi_acquire_global_lock() 26 val = ia64_cmpxchg4_acq(lock, new, old); in ia64_acpi_acquire_global_lock() 27 } while (unlikely (val != old)); in ia64_acpi_acquire_global_lock() 34 unsigned int old, new, val; in ia64_acpi_release_global_lock() local 36 old = *lock; in ia64_acpi_release_global_lock() 37 new = old & ~0x3; in ia64_acpi_release_global_lock() 38 val = ia64_cmpxchg4_acq(lock, new, old); in ia64_acpi_release_global_lock() [all...] |
/kernel/linux/linux-6.6/arch/ia64/include/asm/ |
H A D | acenv.h | 22 unsigned int old, new, val; in ia64_acpi_acquire_global_lock() local 24 old = *lock; in ia64_acpi_acquire_global_lock() 25 new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1)); in ia64_acpi_acquire_global_lock() 26 val = ia64_cmpxchg4_acq(lock, new, old); in ia64_acpi_acquire_global_lock() 27 } while (unlikely (val != old)); in ia64_acpi_acquire_global_lock() 34 unsigned int old, new, val; in ia64_acpi_release_global_lock() local 36 old = *lock; in ia64_acpi_release_global_lock() 37 new = old & ~0x3; in ia64_acpi_release_global_lock() 38 val = ia64_cmpxchg4_acq(lock, new, old); in ia64_acpi_release_global_lock() [all...] |
H A D | atomic.h | 34 __s32 old, new; \ 39 old = arch_atomic_read(v); \ 40 new = old c_op i; \ 41 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic_t)) != old); \ 49 __s32 old, new; \ 54 old = arch_atomic_read(v); \ 55 new = old c_op i; \ 56 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic_t)) != old); \ [all...] |
/kernel/linux/linux-5.10/security/safesetid/ |
H A D | lsm.c | 153 * Check whether a caller with old credentials @old is allowed to switch to 156 static bool id_permitted_for_cred(const struct cred *old, kid_t new_id, enum setid_type new_type) in id_permitted_for_cred() argument 160 /* If our old creds already had this ID in it, it's fine. */ in id_permitted_for_cred() 162 if (uid_eq(new_id.uid, old->uid) || uid_eq(new_id.uid, old->euid) || in id_permitted_for_cred() 163 uid_eq(new_id.uid, old->suid)) in id_permitted_for_cred() 166 if (gid_eq(new_id.gid, old->gid) || gid_eq(new_id.gid, old->egid) || in id_permitted_for_cred() 167 gid_eq(new_id.gid, old in id_permitted_for_cred() 199 safesetid_task_fix_setuid(struct cred *new, const struct cred *old, int flags) safesetid_task_fix_setuid() argument 223 safesetid_task_fix_setgid(struct cred *new, const struct cred *old, int flags) safesetid_task_fix_setgid() argument [all...] |
/kernel/linux/linux-5.10/drivers/input/joystick/iforce/ |
H A D | iforce-ff.c | 182 struct ff_effect *old, in need_condition_modifier() 195 ret |= old->u.condition[i].right_saturation != new->u.condition[i].right_saturation in need_condition_modifier() 196 || old->u.condition[i].left_saturation != new->u.condition[i].left_saturation in need_condition_modifier() 197 || old->u.condition[i].right_coeff != new->u.condition[i].right_coeff in need_condition_modifier() 198 || old->u.condition[i].left_coeff != new->u.condition[i].left_coeff in need_condition_modifier() 199 || old->u.condition[i].deadband != new->u.condition[i].deadband in need_condition_modifier() 200 || old->u.condition[i].center != new->u.condition[i].center; in need_condition_modifier() 210 struct ff_effect *old, in need_magnitude_modifier() 219 return old->u.constant.level != effect->u.constant.level; in need_magnitude_modifier() 226 static int need_envelope_modifier(struct iforce *iforce, struct ff_effect *old, in need_envelope_modifier() argument 181 need_condition_modifier(struct iforce *iforce, struct ff_effect *old, struct ff_effect *new) need_condition_modifier() argument 209 need_magnitude_modifier(struct iforce *iforce, struct ff_effect *old, struct ff_effect *effect) need_magnitude_modifier() argument 258 need_period_modifier(struct iforce *iforce, struct ff_effect *old, struct ff_effect *new) need_period_modifier() argument 276 need_core(struct ff_effect *old, struct ff_effect *new) need_core() argument 338 iforce_upload_periodic(struct iforce *iforce, struct ff_effect *effect, struct ff_effect *old) iforce_upload_periodic() argument 409 iforce_upload_constant(struct iforce *iforce, struct ff_effect *effect, struct ff_effect *old) iforce_upload_constant() argument 465 iforce_upload_condition(struct iforce *iforce, struct ff_effect *effect, struct ff_effect *old) iforce_upload_condition() argument [all...] |
/kernel/linux/linux-6.6/drivers/input/joystick/iforce/ |
H A D | iforce-ff.c | 182 struct ff_effect *old, in need_condition_modifier() 195 ret |= old->u.condition[i].right_saturation != new->u.condition[i].right_saturation in need_condition_modifier() 196 || old->u.condition[i].left_saturation != new->u.condition[i].left_saturation in need_condition_modifier() 197 || old->u.condition[i].right_coeff != new->u.condition[i].right_coeff in need_condition_modifier() 198 || old->u.condition[i].left_coeff != new->u.condition[i].left_coeff in need_condition_modifier() 199 || old->u.condition[i].deadband != new->u.condition[i].deadband in need_condition_modifier() 200 || old->u.condition[i].center != new->u.condition[i].center; in need_condition_modifier() 210 struct ff_effect *old, in need_magnitude_modifier() 219 return old->u.constant.level != effect->u.constant.level; in need_magnitude_modifier() 226 static int need_envelope_modifier(struct iforce *iforce, struct ff_effect *old, in need_envelope_modifier() argument 181 need_condition_modifier(struct iforce *iforce, struct ff_effect *old, struct ff_effect *new) need_condition_modifier() argument 209 need_magnitude_modifier(struct iforce *iforce, struct ff_effect *old, struct ff_effect *effect) need_magnitude_modifier() argument 258 need_period_modifier(struct iforce *iforce, struct ff_effect *old, struct ff_effect *new) need_period_modifier() argument 276 need_core(struct ff_effect *old, struct ff_effect *new) need_core() argument 338 iforce_upload_periodic(struct iforce *iforce, struct ff_effect *effect, struct ff_effect *old) iforce_upload_periodic() argument 409 iforce_upload_constant(struct iforce *iforce, struct ff_effect *effect, struct ff_effect *old) iforce_upload_constant() argument 465 iforce_upload_condition(struct iforce *iforce, struct ff_effect *effect, struct ff_effect *old) iforce_upload_condition() argument [all...] |
/kernel/linux/linux-5.10/arch/s390/lib/ |
H A D | spinlock.c | 84 static inline int arch_cmpxchg_niai8(int *lock, int old, int new) in arch_cmpxchg_niai8() argument 86 int expected = old; in arch_cmpxchg_niai8() 91 : "=d" (old), "=Q" (*lock) in arch_cmpxchg_niai8() 92 : "0" (old), "d" (new), "Q" (*lock) in arch_cmpxchg_niai8() 94 return expected == old; in arch_cmpxchg_niai8() 120 int lockval, ix, node_id, tail_id, old, new, owner, count; in arch_spin_lock_queued() local 131 old = READ_ONCE(lp->lock); in arch_spin_lock_queued() 132 if ((old & _Q_LOCK_CPU_MASK) == 0 && in arch_spin_lock_queued() 133 (old & _Q_LOCK_STEAL_MASK) != _Q_LOCK_STEAL_MASK) { in arch_spin_lock_queued() 141 new = (old in arch_spin_lock_queued() 213 int lockval, old, new, owner, count; arch_spin_lock_classic() local 292 int old; arch_write_lock_wait() local [all...] |
/kernel/linux/linux-6.6/arch/s390/lib/ |
H A D | spinlock.c | 84 static inline int arch_cmpxchg_niai8(int *lock, int old, int new) in arch_cmpxchg_niai8() argument 86 int expected = old; in arch_cmpxchg_niai8() 91 : "=d" (old), "=Q" (*lock) in arch_cmpxchg_niai8() 92 : "0" (old), "d" (new), "Q" (*lock) in arch_cmpxchg_niai8() 94 return expected == old; in arch_cmpxchg_niai8() 120 int lockval, ix, node_id, tail_id, old, new, owner, count; in arch_spin_lock_queued() local 131 old = READ_ONCE(lp->lock); in arch_spin_lock_queued() 132 if ((old & _Q_LOCK_CPU_MASK) == 0 && in arch_spin_lock_queued() 133 (old & _Q_LOCK_STEAL_MASK) != _Q_LOCK_STEAL_MASK) { in arch_spin_lock_queued() 141 new = (old in arch_spin_lock_queued() 213 int lockval, old, new, owner, count; arch_spin_lock_classic() local 292 int old; arch_write_lock_wait() local [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | cred.c | 205 const struct cred *old; in prepare_creds() local 214 old = task->cred; in prepare_creds() 215 memcpy(new, old, sizeof(struct cred)); in prepare_creds() 238 if (security_prepare_creds(new, old, GFP_KERNEL_ACCOUNT) < 0) in prepare_creds() 380 * the old set. Both the objective and the subjective credentials pointers are 392 const struct cred *old = task->real_cred; in commit_creds() local 398 BUG_ON(task->cred != old); in commit_creds() 404 if (!uid_eq(old->euid, new->euid) || in commit_creds() 405 !gid_eq(old->egid, new->egid) || in commit_creds() 406 !uid_eq(old in commit_creds() 487 const struct cred *old = current->cred; override_creds() local 516 revert_creds(const struct cred *old) revert_creds() argument 630 const struct cred *old; prepare_kernel_cred() local [all...] |
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
H A D | cmpxchg_64.h | 11 __cmpxchg_u32(volatile int *m, int old, int new) in __cmpxchg_u32() argument 15 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u32() 78 /* Read the old value */ in xchg16() 115 __cmpxchg_u64(volatile long *m, unsigned long old, unsigned long new) in __cmpxchg_u64() argument 119 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u64() 131 __cmpxchg_u8(volatile unsigned char *m, unsigned char old, unsigned char new) in __cmpxchg_u8() argument 142 old32 = (load32 & ~mask) | (old << bit_shift); in __cmpxchg_u8() 145 return old; in __cmpxchg_u8() 147 } while (load == old); in __cmpxchg_u8() 157 __cmpxchg(volatile void *ptr, unsigned long old, unsigne argument 184 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument [all...] |
/kernel/linux/linux-6.6/arch/sparc/include/asm/ |
H A D | cmpxchg_64.h | 11 __cmpxchg_u32(volatile int *m, int old, int new) in __cmpxchg_u32() argument 15 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u32() 78 /* Read the old value */ in xchg16() 115 __cmpxchg_u64(volatile long *m, unsigned long old, unsigned long new) in __cmpxchg_u64() argument 119 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u64() 131 __cmpxchg_u8(volatile unsigned char *m, unsigned char old, unsigned char new) in __cmpxchg_u8() argument 142 old32 = (load32 & ~mask) | (old << bit_shift); in __cmpxchg_u8() 145 return old; in __cmpxchg_u8() 147 } while (load == old); in __cmpxchg_u8() 157 __cmpxchg(volatile void *ptr, unsigned long old, unsigne argument 184 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | cred.c | 254 const struct cred *old; in prepare_creds() local 265 old = task->cred; in prepare_creds() 266 memcpy(new, old, sizeof(struct cred)); in prepare_creds() 286 if (security_prepare_creds(new, old, GFP_KERNEL_ACCOUNT) < 0) in prepare_creds() 429 * the old set. Both the objective and the subjective credentials pointers are 441 const struct cred *old = task->real_cred; in commit_creds() local 448 BUG_ON(task->cred != old); in commit_creds() 450 BUG_ON(read_cred_subscribers(old) < 2); in commit_creds() 451 validate_creds(old); in commit_creds() 459 if (!uid_eq(old in commit_creds() 548 const struct cred *old = current->cred; override_creds() local 587 revert_creds(const struct cred *old) revert_creds() argument 686 const struct cred *old; prepare_kernel_cred() local [all...] |
/kernel/linux/linux-6.6/arch/arm/kernel/ |
H A D | ftrace.c | 98 static int ftrace_modify_code(unsigned long pc, unsigned long old, in ftrace_modify_code() argument 104 old = __opcode_to_mem_thumb32(old); in ftrace_modify_code() 106 old = __opcode_to_mem_arm(old); in ftrace_modify_code() 113 if (replaced != old) in ftrace_modify_code() 147 unsigned long new, old; in ftrace_make_call() local 156 old = ftrace_nop_replace(rec); in ftrace_make_call() 166 return ftrace_modify_code(rec->ip, old, new, true); in ftrace_make_call() 174 unsigned long new, old; in ftrace_modify_call() local 191 unsigned long old; ftrace_make_nop() local 232 unsigned long old; prepare_ftrace_return() local 275 unsigned long old = enable ? nop : branch; __ftrace_modify_caller() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | iversion.h | 126 u64 cur, old; in inode_set_max_iversion_raw() local 132 old = atomic64_cmpxchg(&inode->i_version, cur, val); in inode_set_max_iversion_raw() 133 if (likely(old == cur)) in inode_set_max_iversion_raw() 135 cur = old; in inode_set_max_iversion_raw() 200 u64 cur, old, new; in inode_maybe_inc_iversion() local 222 old = atomic64_cmpxchg(&inode->i_version, cur, new); in inode_maybe_inc_iversion() 223 if (likely(old == cur)) in inode_maybe_inc_iversion() 225 cur = old; in inode_maybe_inc_iversion() 307 u64 cur, old, new; in inode_query_iversion() local 323 old in inode_query_iversion() 340 inode_eq_iversion_raw(const struct inode *inode, u64 old) inode_eq_iversion_raw() argument 357 inode_eq_iversion(const struct inode *inode, u64 old) inode_eq_iversion() argument [all...] |
/kernel/linux/linux-5.10/arch/sh/kernel/ |
H A D | ftrace.c | 102 int old = atomic_read(&nmi_running); in clear_mod_flag() local 105 int new = old & ~MOD_CODE_WRITE_FLAG; in clear_mod_flag() 107 if (old == new) in clear_mod_flag() 110 old = atomic_cmpxchg(&nmi_running, old, new); in clear_mod_flag() 225 unsigned char old[MCOUNT_INSN_SIZE], *new; in ftrace_update_ftrace_func() local 227 memcpy(old, (unsigned char *)ip, MCOUNT_INSN_SIZE); in ftrace_update_ftrace_func() 230 return ftrace_modify_code(ip, old, new); in ftrace_update_ftrace_func() 236 unsigned char *new, *old; in ftrace_make_nop() local 239 old in ftrace_make_nop() 247 unsigned char *new, *old; ftrace_make_call() local 323 unsigned long old; prepare_ftrace_return() local [all...] |
/kernel/linux/linux-6.6/arch/sh/kernel/ |
H A D | ftrace.c | 102 int old = atomic_read(&nmi_running); in clear_mod_flag() local 105 int new = old & ~MOD_CODE_WRITE_FLAG; in clear_mod_flag() 107 if (old == new) in clear_mod_flag() 110 old = atomic_cmpxchg(&nmi_running, old, new); in clear_mod_flag() 225 unsigned char old[MCOUNT_INSN_SIZE], *new; in ftrace_update_ftrace_func() local 227 memcpy(old, (unsigned char *)ip, MCOUNT_INSN_SIZE); in ftrace_update_ftrace_func() 230 return ftrace_modify_code(ip, old, new); in ftrace_update_ftrace_func() 236 unsigned char *new, *old; in ftrace_make_nop() local 239 old in ftrace_make_nop() 247 unsigned char *new, *old; ftrace_make_call() local 318 unsigned long old; prepare_ftrace_return() local [all...] |
/third_party/ffmpeg/compat/atomics/suncc/ |
H A D | stdatomic.h | 110 intptr_t old = *expected; in atomic_compare_exchange_strong() local 111 *expected = (intptr_t)atomic_cas_ptr(object, (void *)old, (void *)desired); in atomic_compare_exchange_strong() 112 return *expected == old; in atomic_compare_exchange_strong() 134 intptr_t old; in atomic_fetch_or() local 136 old = atomic_load(object); in atomic_fetch_or() 137 } while (!atomic_compare_exchange_strong(object, old, old | operand)); in atomic_fetch_or() 138 return old; in atomic_fetch_or() 143 intptr_t old; in atomic_fetch_xor() local 145 old in atomic_fetch_xor() 152 intptr_t old; atomic_fetch_and() local [all...] |
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/ |
H A D | exception.c | 94 unsigned long sctlr, vbar, old, new, mode; in enter_exception64() local 126 old = *vcpu_cpsr(vcpu); in enter_exception64() 129 new |= (old & PSR_N_BIT); in enter_exception64() 130 new |= (old & PSR_Z_BIT); in enter_exception64() 131 new |= (old & PSR_C_BIT); in enter_exception64() 132 new |= (old & PSR_V_BIT); in enter_exception64() 137 new |= (old & PSR_DIT_BIT); in enter_exception64() 145 new |= (old & PSR_PAN_BIT); in enter_exception64() 171 __vcpu_write_spsr(vcpu, target_mode, old); in enter_exception64() 195 unsigned long old, ne in get_except32_cpsr() local [all...] |
/third_party/python/Include/internal/ |
H A D | pycore_atomic_funcs.h | 47 __int64 old; in _Py_atomic_size_get() local 49 old = *volatile_var; in _Py_atomic_size_get() 50 } while(_InterlockedCompareExchange64(volatile_var, old, old) != old); in _Py_atomic_size_get() 54 long old; in _Py_atomic_size_get() 56 old = *volatile_var; in _Py_atomic_size_get() 57 } while(_InterlockedCompareExchange(volatile_var, old, old) != old); in _Py_atomic_size_get() [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | lockref.c | 8 * Note that the "cmpxchg()" reloads the "old" value for the 13 struct lockref old; \ 14 BUILD_BUG_ON(sizeof(old) != 8); \ 15 old.lock_count = READ_ONCE(lockref->lock_count); \ 16 while (likely(arch_spin_value_unlocked(old.lock.rlock.raw_lock))) { \ 17 struct lockref new = old, prev = old; \ 19 old.lock_count = cmpxchg64_relaxed(&lockref->lock_count, \ 20 old.lock_count, \ 22 if (likely(old [all...] |
/kernel/linux/linux-5.10/include/asm-generic/bitops/ |
H A D | lock.h | 10 * test_and_set_bit_lock - Set a bit and return its old value, for lock 21 long old; in test_and_set_bit_lock() local 28 old = atomic_long_fetch_or_acquire(mask, (atomic_long_t *)p); in test_and_set_bit_lock() 29 return !!(old & mask); in test_and_set_bit_lock() 60 unsigned long old; in __clear_bit_unlock() local 63 old = READ_ONCE(*p); in __clear_bit_unlock() 64 old &= ~BIT_MASK(nr); in __clear_bit_unlock() 65 atomic_long_set_release((atomic_long_t *)p, old); in __clear_bit_unlock() 81 long old; in clear_bit_unlock_is_negative_byte() local 85 old in clear_bit_unlock_is_negative_byte() [all...] |