/linux/include/linux/ |
H A D | refcount.h | 174 bool __refcount_add_not_zero(int i, refcount_t *r, int *oldp) in __refcount_add_not_zero() argument 183 if (oldp) in __refcount_add_not_zero() 184 *oldp = old; in __refcount_add_not_zero() 216 bool __refcount_add_not_zero_limited_acquire(int i, refcount_t *r, int *oldp, in __refcount_add_not_zero_limited_acquire() argument 226 if (oldp) in __refcount_add_not_zero_limited_acquire() 227 *oldp = old; in __refcount_add_not_zero_limited_acquire() 232 if (oldp) in __refcount_add_not_zero_limited_acquire() 233 *oldp = old; in __refcount_add_not_zero_limited_acquire() 242 __refcount_inc_not_zero_limited_acquire(refcount_t *r, int *oldp, int limit) in __refcount_inc_not_zero_limited_acquire() argument 244 return __refcount_add_not_zero_limited_acquire(1, r, oldp, limi in __refcount_inc_not_zero_limited_acquire() 248 __refcount_add_not_zero_acquire(int i,refcount_t * r,int * oldp) __refcount_add_not_zero_acquire() argument 281 __refcount_add(int i,refcount_t * r,int * oldp) __refcount_add() argument 315 __refcount_inc_not_zero(refcount_t * r,int * oldp) __refcount_inc_not_zero() argument 338 __refcount_inc_not_zero_acquire(refcount_t * r,int * oldp) __refcount_inc_not_zero_acquire() argument 364 __refcount_inc(refcount_t * r,int * oldp) __refcount_inc() argument 387 __refcount_sub_and_test(int i,refcount_t * r,int * oldp) __refcount_sub_and_test() argument 430 __refcount_dec_and_test(refcount_t * r,int * oldp) __refcount_dec_and_test() argument 453 __refcount_dec(refcount_t * r,int * oldp) __refcount_dec() argument [all...] |
H A D | nodemask.h | 343 const nodemask_t *oldp, const nodemask_t *newp, int nbits) in __node_remap() argument 345 return bitmap_bitremap(oldbit, oldp->bits, newp->bits, nbits); in __node_remap() 351 const nodemask_t *oldp, const nodemask_t *newp, int nbits) in __nodes_remap() argument 353 bitmap_remap(dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits); in __nodes_remap()
|
/linux/arch/x86/include/asm/ |
H A D | cmpxchg_32.h | 62 static __always_inline bool __try_cmpxchg64(volatile u64 *ptr, u64 *oldp, u64 new) in __try_cmpxchg64() argument 64 return __arch_try_cmpxchg64(ptr, oldp, new, LOCK_PREFIX); in __try_cmpxchg64() 67 static __always_inline bool __try_cmpxchg64_local(volatile u64 *ptr, u64 *oldp, u64 new) in __try_cmpxchg64_local() argument 69 return __arch_try_cmpxchg64(ptr, oldp, new,); in __try_cmpxchg64_local() 141 static __always_inline bool arch_try_cmpxchg64(volatile u64 *ptr, u64 *oldp, u64 new) in arch_try_cmpxchg64() argument 143 return __arch_try_cmpxchg64_emu(ptr, oldp, new, LOCK_PREFIX_HERE, "lock "); in arch_try_cmpxchg64() 147 static __always_inline bool arch_try_cmpxchg64_local(volatile u64 *ptr, u64 *oldp, u64 new) in arch_try_cmpxchg64_local() argument 149 return __arch_try_cmpxchg64_emu(ptr, oldp, new, ,); in arch_try_cmpxchg64_local()
|
H A D | cmpxchg_64.h | 82 static __always_inline bool arch_try_cmpxchg128(volatile u128 *ptr, u128 *oldp, u128 new) in arch_try_cmpxchg128() argument 84 return __arch_try_cmpxchg128(ptr, oldp, new, LOCK_PREFIX); in arch_try_cmpxchg128() 88 static __always_inline bool arch_try_cmpxchg128_local(volatile u128 *ptr, u128 *oldp, u128 new) in arch_try_cmpxchg128_local() argument 90 return __arch_try_cmpxchg128(ptr, oldp, new,); in arch_try_cmpxchg128_local()
|
/linux/include/linux/atomic/ |
H A D | atomic-instrumented.h | 4873 #define try_cmpxchg(ptr, oldp, ...) \ argument 4876 typeof(oldp) __ai_oldp = (oldp); \ 4883 #define try_cmpxchg_acquire(ptr, oldp, ...) \ argument 4886 typeof(oldp) __ai_oldp = (oldp); \ 4892 #define try_cmpxchg_release(ptr, oldp, ...) \ argument 4895 typeof(oldp) __ai_oldp = (oldp); \ 4902 #define try_cmpxchg_relaxed(ptr, oldp, argument 4911 try_cmpxchg64(ptr,oldp,...) global() argument 4921 try_cmpxchg64_acquire(ptr,oldp,...) global() argument 4930 try_cmpxchg64_release(ptr,oldp,...) global() argument 4940 try_cmpxchg64_relaxed(ptr,oldp,...) global() argument 4949 try_cmpxchg128(ptr,oldp,...) global() argument 4959 try_cmpxchg128_acquire(ptr,oldp,...) global() argument 4968 try_cmpxchg128_release(ptr,oldp,...) global() argument 4978 try_cmpxchg128_relaxed(ptr,oldp,...) global() argument 5016 try_cmpxchg_local(ptr,oldp,...) global() argument 5025 try_cmpxchg64_local(ptr,oldp,...) global() argument 5034 try_cmpxchg128_local(ptr,oldp,...) global() argument [all...] |
/linux/arch/s390/include/asm/ |
H A D | cmpxchg.h | 110 #define arch_try_cmpxchg(ptr, oldp, new) \ argument 112 __typeof__(ptr) __oldp = (__typeof__(ptr))(oldp); \ 155 #define arch_try_cmpxchg(ptr, oldp, new) \ argument 157 __typeof__((ptr)) __oldp = (__typeof__(ptr))(oldp); \ 256 static __always_inline bool arch_try_cmpxchg128(volatile u128 *ptr, u128 *oldp, u128 new) in arch_try_cmpxchg128() argument 262 : [old] "+d" (*oldp), [ptr] "+QS" (*ptr), "=@cc" (cc) in arch_try_cmpxchg128()
|
/linux/arch/xtensa/mm/ |
H A D | init.c | 134 char *oldp; in parse_memmap_one() local 140 oldp = p; in parse_memmap_one() 142 if (p == oldp) in parse_memmap_one()
|
/linux/scripts/atomic/ |
H A D | gen-atomic-instrumented.sh | 101 #define ${xchg}${order}(ptr, oldp, ...) \\ 104 typeof(oldp) __ai_oldp = (oldp); \\
|
/linux/security/selinux/ss/ |
H A D | mls.c | 436 * policy `oldp' to the values specified in the policy `newp', 439 int mls_convert_context(struct policydb *oldp, struct policydb *newp, in mls_convert_context() argument 448 if (!oldp->mls_enabled || !newp->mls_enabled) in mls_convert_context() 452 char *name = sym_name(oldp, SYM_LEVELS, in mls_convert_context() 467 sym_name(oldp, SYM_CATS, i)); in mls_convert_context()
|
H A D | services.h | 34 struct policydb *oldp; member
|
H A D | mls.h | 42 int mls_convert_context(struct policydb *oldp, struct policydb *newp,
|
H A D | services.c | 2052 * specified in the policy @args->oldp to the values specified in the policy 2104 sym_name(args->oldp, SYM_USERS, oldc->user - 1)); in services_convert_context() 2111 sym_name(args->oldp, SYM_ROLES, oldc->role - 1)); in services_convert_context() 2118 sym_name(args->oldp, SYM_TYPES, oldc->type - 1)); in services_convert_context() 2124 if (args->oldp->mls_enabled && args->newp->mls_enabled) { in services_convert_context() 2125 rc = mls_convert_context(args->oldp, args->newp, oldc, newc); in services_convert_context() 2128 } else if (!args->oldp->mls_enabled && args->newp->mls_enabled) { in services_convert_context() 2151 rc = convert_context_handle_invalid_context(args->oldp, oldc); in services_convert_context() 2159 rc = context_struct_to_string(args->oldp, oldc, &s, &len); in services_convert_context() 2369 convert_data->args.oldp in security_load_policy() [all...] |
/linux/fs/xfs/scrub/ |
H A D | orphanage.c | 57 struct xfs_dquot *oldu = NULL, *oldg = NULL, *oldp = NULL; in xrep_chown_orphanage() local 94 oldp = xfs_qm_vop_chown(tp, dp, &dp->i_pdquot, pdqp); in xrep_chown_orphanage() 109 xfs_qm_dqrele(oldp); in xrep_chown_orphanage()
|
/linux/arch/mips/kernel/ |
H A D | setup.c | 379 char *oldp; in early_parse_memmap() local 390 oldp = p; in early_parse_memmap() 392 if (p == oldp) in early_parse_memmap()
|
/linux/Documentation/ |
H A D | atomic_t.txt | 280 bool atomic_try_cmpxchg(atomic_t *ptr, int *oldp, int new); 285 bool atomic_try_cmpxchg(atomic_t *ptr, int *oldp, int new) 287 int ret, old = *oldp; 290 *oldp = ret;
|
/linux/arch/arm64/kernel/ |
H A D | proton-pack.c | 39 static void update_mitigation_state(enum mitigation_state *oldp, in update_mitigation_state() argument 45 state = READ_ONCE(*oldp); in update_mitigation_state() 52 } while (cmpxchg_relaxed(oldp, state, new) != state); in update_mitigation_state()
|
/linux/arch/x86/kernel/ |
H A D | e820.c | 920 char *oldp; in parse_memmap_one() local 932 oldp = p; in parse_memmap_one() 934 if (p == oldp) in parse_memmap_one()
|
/linux/drivers/net/arcnet/ |
H A D | arcnet.c | 1157 *oldp = arc_proto_map[lp->default_proto[rxdata.pkt.hard.source]], in arcnet_rx() local 1160 if (oldp != newp) { in arcnet_rx() 1164 newp->suffix, oldp->suffix); in arcnet_rx()
|
/linux/mm/ |
H A D | memblock.c | 2690 char *oldp; in reserve_mem() local 2700 oldp = p; in reserve_mem() 2702 if (!size || p == oldp) in reserve_mem()
|