Home
last modified time | relevance | path

Searched refs:oldp (Results 1 – 14 of 14) sorted by relevance

/linux/include/linux/
H A Drefcount.h140 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 …]
H A Dnodemask.h356 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/arch/x86/include/asm/
H A Dcmpxchg_64.h82 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/arch/xtensa/mm/
H A Dinit.c172 char *oldp; in parse_memmap_one() local
178 oldp = p; in parse_memmap_one()
180 if (p == oldp) in parse_memmap_one()
/linux/scripts/atomic/
H A Dgen-atomic-instrumented.sh104 typeof(oldp) __ai_oldp = (oldp); \\
/linux/security/selinux/ss/
H A Dservices.h34 struct policydb *oldp; member
H A Dmls.h42 int mls_convert_context(struct policydb *oldp, struct policydb *newp,
H A Dservices.c2077 sym_name(args->oldp, SYM_USERS, oldc->user - 1)); in services_convert_context()
2084 sym_name(args->oldp, SYM_ROLES, oldc->role - 1)); in services_convert_context()
2091 sym_name(args->oldp, SYM_TYPES, oldc->type - 1)); in services_convert_context()
2097 if (args->oldp->mls_enabled && args->newp->mls_enabled) { in services_convert_context()
2098 rc = mls_convert_context(args->oldp, args->newp, oldc, newc); in services_convert_context()
2101 } else if (!args->oldp->mls_enabled && args->newp->mls_enabled) { in services_convert_context()
2124 rc = convert_context_handle_invalid_context(args->oldp, oldc); in services_convert_context()
2132 rc = context_struct_to_string(args->oldp, oldc, &s, &len); in services_convert_context()
2342 convert_data->args.oldp = &oldpolicy->policydb; in security_load_policy()
/linux/arch/mips/kernel/
H A Dsetup.c379 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 Datomic_t.txt280 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 Dproton-pack.c39 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 De820.c922 char *oldp; in parse_memmap_one() local
934 oldp = p; in parse_memmap_one()
936 if (p == oldp) in parse_memmap_one()
/linux/drivers/net/arcnet/
H A Darcnet.c1157 *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 Dmemblock.c2335 char *oldp; in reserve_mem() local
2345 oldp = p; in reserve_mem()
2347 if (!size || p == oldp) in reserve_mem()