/linux-6.12.1/include/linux/ |
D | refcount.h | 140 bool __refcount_add_not_zero(int i, refcount_t *r, int *oldp) in __refcount_add_not_zero() argument 149 if (oldp) in __refcount_add_not_zero() 150 *oldp = old; in __refcount_add_not_zero() 182 void __refcount_add(int i, refcount_t *r, int *oldp) in __refcount_add() argument 186 if (oldp) in __refcount_add() 187 *oldp = old; in __refcount_add() 216 static inline __must_check bool __refcount_inc_not_zero(refcount_t *r, int *oldp) in __refcount_inc_not_zero() argument 218 return __refcount_add_not_zero(1, r, oldp); in __refcount_inc_not_zero() 239 static inline void __refcount_inc(refcount_t *r, int *oldp) in __refcount_inc() argument 241 __refcount_add(1, r, oldp); in __refcount_inc() [all …]
|
D | nodemask.h | 356 const nodemask_t *oldp, const nodemask_t *newp, int nbits) in __node_remap() argument 358 return bitmap_bitremap(oldbit, oldp->bits, newp->bits, nbits); in __node_remap() 364 const nodemask_t *oldp, const nodemask_t *newp, int nbits) in __nodes_remap() argument 366 bitmap_remap(dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits); in __nodes_remap()
|
/linux-6.12.1/arch/x86/include/asm/ |
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() 137 static __always_inline bool arch_try_cmpxchg64(volatile u64 *ptr, u64 *oldp, u64 new) in arch_try_cmpxchg64() argument 139 return __arch_try_cmpxchg64_emu(ptr, oldp, new, LOCK_PREFIX_HERE, "lock; "); in arch_try_cmpxchg64() 143 static __always_inline bool arch_try_cmpxchg64_local(volatile u64 *ptr, u64 *oldp, u64 new) in arch_try_cmpxchg64_local() argument 145 return __arch_try_cmpxchg64_emu(ptr, oldp, new, ,); in arch_try_cmpxchg64_local()
|
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.12.1/include/linux/atomic/ |
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 4905 typeof(oldp) __ai_oldp = (oldp); \ 4911 #define try_cmpxchg64(ptr, oldp, ...) \ argument 4914 typeof(oldp) __ai_oldp = (oldp); \ [all …]
|
/linux-6.12.1/arch/xtensa/mm/ |
D | init.c | 172 char *oldp; in parse_memmap_one() local 178 oldp = p; in parse_memmap_one() 180 if (p == oldp) in parse_memmap_one()
|
/linux-6.12.1/scripts/atomic/ |
D | gen-atomic-instrumented.sh | 104 typeof(oldp) __ai_oldp = (oldp); \\
|
/linux-6.12.1/security/selinux/ss/ |
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()
|
D | services.h | 34 struct policydb *oldp; member
|
D | mls.h | 42 int mls_convert_context(struct policydb *oldp, struct policydb *newp,
|
D | services.c | 2049 sym_name(args->oldp, SYM_USERS, oldc->user - 1)); in services_convert_context() 2056 sym_name(args->oldp, SYM_ROLES, oldc->role - 1)); in services_convert_context() 2063 sym_name(args->oldp, SYM_TYPES, oldc->type - 1)); in services_convert_context() 2069 if (args->oldp->mls_enabled && args->newp->mls_enabled) { in services_convert_context() 2070 rc = mls_convert_context(args->oldp, args->newp, oldc, newc); in services_convert_context() 2073 } else if (!args->oldp->mls_enabled && args->newp->mls_enabled) { in services_convert_context() 2096 rc = convert_context_handle_invalid_context(args->oldp, oldc); in services_convert_context() 2104 rc = context_struct_to_string(args->oldp, oldc, &s, &len); in services_convert_context() 2314 convert_data->args.oldp = &oldpolicy->policydb; in security_load_policy()
|
/linux-6.12.1/fs/xfs/scrub/ |
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.12.1/arch/mips/kernel/ |
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.12.1/Documentation/ |
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.12.1/arch/x86/boot/compressed/ |
D | kaslr.c | 125 char *oldp; in parse_memmap() local 134 oldp = p; in parse_memmap() 136 if (p == oldp) in parse_memmap()
|
/linux-6.12.1/arch/arm64/kernel/ |
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.12.1/arch/x86/kernel/ |
D | e820.c | 922 char *oldp; in parse_memmap_one() local 934 oldp = p; in parse_memmap_one() 936 if (p == oldp) in parse_memmap_one()
|
/linux-6.12.1/drivers/net/arcnet/ |
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.12.1/mm/ |
D | memblock.c | 2315 char *oldp; in reserve_mem() local 2325 oldp = p; in reserve_mem() 2327 if (!size || p == oldp) in reserve_mem()
|