| /linux-6.15/include/linux/ |
| H A D | refcount.h | 183 if (oldp) in __refcount_add_not_zero() 184 *oldp = old; in __refcount_add_not_zero() 226 if (oldp) 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() 285 if (oldp) in __refcount_add() 286 *oldp = old; in __refcount_add() 391 if (oldp) in __refcount_sub_and_test() 392 *oldp = old; in __refcount_sub_and_test() 457 if (oldp) in __refcount_dec() [all …]
|
| H A D | nodemask.h | 362 const nodemask_t *oldp, const nodemask_t *newp, int nbits) in __node_remap() argument 364 return bitmap_bitremap(oldbit, oldp->bits, newp->bits, nbits); in __node_remap() 370 const nodemask_t *oldp, const nodemask_t *newp, int nbits) in __nodes_remap() argument 372 bitmap_remap(dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits); in __nodes_remap()
|
| /linux-6.15/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-6.15/include/linux/atomic/ |
| H A D | atomic-instrumented.h | 4876 typeof(oldp) __ai_oldp = (oldp); \ 4886 typeof(oldp) __ai_oldp = (oldp); \ 4895 typeof(oldp) __ai_oldp = (oldp); \ 4905 typeof(oldp) __ai_oldp = (oldp); \ 4914 typeof(oldp) __ai_oldp = (oldp); \ 4924 typeof(oldp) __ai_oldp = (oldp); \ 4933 typeof(oldp) __ai_oldp = (oldp); \ 4943 typeof(oldp) __ai_oldp = (oldp); \ 4952 typeof(oldp) __ai_oldp = (oldp); \ 4962 typeof(oldp) __ai_oldp = (oldp); \ [all …]
|
| /linux-6.15/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-6.15/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-6.15/scripts/atomic/ |
| H A D | gen-atomic-instrumented.sh | 104 typeof(oldp) __ai_oldp = (oldp); \\
|
| /linux-6.15/security/selinux/ss/ |
| H A D | mls.c | 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 | 2078 sym_name(args->oldp, SYM_USERS, oldc->user - 1)); in services_convert_context() 2085 sym_name(args->oldp, SYM_ROLES, oldc->role - 1)); in services_convert_context() 2092 sym_name(args->oldp, SYM_TYPES, oldc->type - 1)); in services_convert_context() 2098 if (args->oldp->mls_enabled && args->newp->mls_enabled) { in services_convert_context() 2099 rc = mls_convert_context(args->oldp, args->newp, oldc, newc); in services_convert_context() 2102 } else if (!args->oldp->mls_enabled && args->newp->mls_enabled) { in services_convert_context() 2125 rc = convert_context_handle_invalid_context(args->oldp, oldc); in services_convert_context() 2133 rc = context_struct_to_string(args->oldp, oldc, &s, &len); in services_convert_context() 2343 convert_data->args.oldp = &oldpolicy->policydb; in security_load_policy()
|
| /linux-6.15/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-6.15/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-6.15/arch/x86/boot/compressed/ |
| H A D | kaslr.c | 121 char *oldp; in parse_memmap() local 130 oldp = p; in parse_memmap() 132 if (p == oldp) in parse_memmap()
|
| /linux-6.15/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-6.15/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-6.15/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-6.15/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-6.15/mm/ |
| H A D | memblock.c | 2396 char *oldp; in reserve_mem() local 2406 oldp = p; in reserve_mem() 2408 if (!size || p == oldp) in reserve_mem()
|