/kernel/linux/linux-5.10/include/linux/ |
H A D | refcount.h | 150 static inline __must_check bool __refcount_add_not_zero(int i, refcount_t *r, int *oldp) in __refcount_add_not_zero() argument 159 if (oldp) in __refcount_add_not_zero() 160 *oldp = old; in __refcount_add_not_zero() 191 static inline void __refcount_add(int i, refcount_t *r, int *oldp) in __refcount_add() argument 195 if (oldp) in __refcount_add() 196 *oldp = old; in __refcount_add() 225 static inline __must_check bool __refcount_inc_not_zero(refcount_t *r, int *oldp) in __refcount_inc_not_zero() argument 227 return __refcount_add_not_zero(1, r, oldp); in __refcount_inc_not_zero() 248 static inline void __refcount_inc(refcount_t *r, int *oldp) in __refcount_inc() argument 250 __refcount_add(1, r, oldp); in __refcount_inc() 270 __refcount_sub_and_test(int i, refcount_t *r, int *oldp) __refcount_sub_and_test() argument 313 __refcount_dec_and_test(refcount_t *r, int *oldp) __refcount_dec_and_test() argument 336 __refcount_dec(refcount_t *r, int *oldp) __refcount_dec() argument [all...] |
H A D | nodemask.h | 348 const nodemask_t *oldp, const nodemask_t *newp, int nbits) in __node_remap() 350 return bitmap_bitremap(oldbit, oldp->bits, newp->bits, nbits); in __node_remap() 356 const nodemask_t *oldp, const nodemask_t *newp, int nbits) in __nodes_remap() 358 bitmap_remap(dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits); in __nodes_remap() 347 __node_remap(int oldbit, const nodemask_t *oldp, const nodemask_t *newp, int nbits) __node_remap() argument 355 __nodes_remap(nodemask_t *dstp, const nodemask_t *srcp, const nodemask_t *oldp, const nodemask_t *newp, int nbits) __nodes_remap() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | refcount.h | 150 static inline __must_check bool __refcount_add_not_zero(int i, refcount_t *r, int *oldp) in __refcount_add_not_zero() argument 159 if (oldp) in __refcount_add_not_zero() 160 *oldp = old; in __refcount_add_not_zero() 191 static inline void __refcount_add(int i, refcount_t *r, int *oldp) in __refcount_add() argument 195 if (oldp) in __refcount_add() 196 *oldp = old; in __refcount_add() 225 static inline __must_check bool __refcount_inc_not_zero(refcount_t *r, int *oldp) in __refcount_inc_not_zero() argument 227 return __refcount_add_not_zero(1, r, oldp); in __refcount_inc_not_zero() 248 static inline void __refcount_inc(refcount_t *r, int *oldp) in __refcount_inc() argument 250 __refcount_add(1, r, oldp); in __refcount_inc() 270 __refcount_sub_and_test(int i, refcount_t *r, int *oldp) __refcount_sub_and_test() argument 313 __refcount_dec_and_test(refcount_t *r, int *oldp) __refcount_dec_and_test() argument 336 __refcount_dec(refcount_t *r, int *oldp) __refcount_dec() argument [all...] |
H A D | nodemask.h | 356 const nodemask_t *oldp, const nodemask_t *newp, int nbits) in __node_remap() 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() 366 bitmap_remap(dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits); in __nodes_remap() 355 __node_remap(int oldbit, const nodemask_t *oldp, const nodemask_t *newp, int nbits) __node_remap() argument 363 __nodes_remap(nodemask_t *dstp, const nodemask_t *srcp, const nodemask_t *oldp, const nodemask_t *newp, int nbits) __nodes_remap() argument
|
/kernel/linux/linux-6.6/include/linux/atomic/ |
H A D | atomic-instrumented.h | 4831 #define try_cmpxchg(ptr, oldp, ...) \ 4834 typeof(oldp) __ai_oldp = (oldp); \ 4841 #define try_cmpxchg_acquire(ptr, oldp, ...) \ 4844 typeof(oldp) __ai_oldp = (oldp); \ 4850 #define try_cmpxchg_release(ptr, oldp, ...) \ 4853 typeof(oldp) __ai_oldp = (oldp); \ 4860 #define try_cmpxchg_relaxed(ptr, oldp, [all...] |
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | cmpxchg_64.h | 76 static __always_inline bool arch_try_cmpxchg128(volatile u128 *ptr, u128 *oldp, u128 new) in arch_try_cmpxchg128() argument 78 return __arch_try_cmpxchg128(ptr, oldp, new, LOCK_PREFIX); in arch_try_cmpxchg128() 82 static __always_inline bool arch_try_cmpxchg128_local(volatile u128 *ptr, u128 *oldp, u128 new) in arch_try_cmpxchg128_local() argument 84 return __arch_try_cmpxchg128(ptr, oldp, new,); in arch_try_cmpxchg128_local()
|
/kernel/linux/linux-5.10/arch/xtensa/mm/ |
H A D | init.c | 173 char *oldp; in parse_memmap_one() local 179 oldp = p; in parse_memmap_one() 181 if (p == oldp) in parse_memmap_one()
|
/kernel/linux/linux-6.6/arch/xtensa/mm/ |
H A 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()
|
/kernel/linux/linux-6.6/scripts/atomic/ |
H A D | gen-atomic-instrumented.sh | 101 #define ${xchg}${order}(ptr, oldp, ...) \\ 104 typeof(oldp) __ai_oldp = (oldp); \\
|
/kernel/linux/linux-5.10/security/selinux/ss/ |
H A D | mls.c | 444 * policy `oldp' to the values specified in the policy `newp', 447 int mls_convert_context(struct policydb *oldp, in mls_convert_context() argument 457 if (!oldp->mls_enabled || !newp->mls_enabled) in mls_convert_context() 461 char *name = sym_name(oldp, SYM_LEVELS, in mls_convert_context() 475 sym_name(oldp, SYM_CATS, i)); in mls_convert_context()
|
H A D | mls.h | 50 int mls_convert_context(struct policydb *oldp,
|
H A D | services.c | 71 struct policydb *oldp; member 2009 * in the policy `p->oldp' to the values specified 2066 sym_name(args->oldp, in convert_context() 2075 sym_name(args->oldp, SYM_ROLES, oldc->role - 1)); in convert_context() 2083 sym_name(args->oldp, in convert_context() 2090 if (args->oldp->mls_enabled && args->newp->mls_enabled) { in convert_context() 2091 rc = mls_convert_context(args->oldp, args->newp, oldc, newc); in convert_context() 2094 } else if (!args->oldp->mls_enabled && args->newp->mls_enabled) { in convert_context() 2119 args->oldp, in convert_context() 2128 rc = context_struct_to_string(args->oldp, old in convert_context() [all...] |
/kernel/linux/linux-6.6/security/selinux/ss/ |
H A D | mls.c | 444 * policy `oldp' to the values specified in the policy `newp', 447 int mls_convert_context(struct policydb *oldp, in mls_convert_context() argument 458 if (!oldp->mls_enabled || !newp->mls_enabled) in mls_convert_context() 462 char *name = sym_name(oldp, SYM_LEVELS, in mls_convert_context() 476 sym_name(oldp, SYM_CATS, i)); in mls_convert_context()
|
H A D | services.h | 33 struct policydb *oldp; member
|
H A D | mls.h | 50 int mls_convert_context(struct policydb *oldp,
|
H A D | services.c | 1985 * specified in the policy @args->oldp to the values specified in the policy 2037 sym_name(args->oldp, SYM_USERS, oldc->user - 1)); in services_convert_context() 2044 sym_name(args->oldp, SYM_ROLES, oldc->role - 1)); in services_convert_context() 2051 sym_name(args->oldp, SYM_TYPES, oldc->type - 1)); in services_convert_context() 2057 if (args->oldp->mls_enabled && args->newp->mls_enabled) { in services_convert_context() 2058 rc = mls_convert_context(args->oldp, args->newp, oldc, newc); in services_convert_context() 2061 } else if (!args->oldp->mls_enabled && args->newp->mls_enabled) { in services_convert_context() 2084 rc = convert_context_handle_invalid_context(args->oldp, oldc); in services_convert_context() 2092 rc = context_struct_to_string(args->oldp, oldc, &s, &len); in services_convert_context() 2302 convert_data->args.oldp in security_load_policy() [all...] |
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | setup.c | 371 char *oldp; in early_parse_memmap() local 382 oldp = p; in early_parse_memmap() 384 if (p == oldp) in early_parse_memmap()
|
/kernel/linux/linux-5.10/arch/x86/boot/compressed/ |
H A D | kaslr.c | 134 char *oldp; in parse_memmap() local 143 oldp = p; in parse_memmap() 145 if (p == oldp) in parse_memmap()
|
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | setup.c | 383 char *oldp; in early_parse_memmap() local 394 oldp = p; in early_parse_memmap() 396 if (p == oldp) in early_parse_memmap()
|
/kernel/linux/linux-6.6/arch/x86/boot/compressed/ |
H A D | kaslr.c | 130 char *oldp; in parse_memmap() local 139 oldp = p; in parse_memmap() 141 if (p == oldp) in parse_memmap()
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | proton-pack.c | 38 static void update_mitigation_state(enum mitigation_state *oldp, in update_mitigation_state() argument 44 state = READ_ONCE(*oldp); in update_mitigation_state() 51 } while (cmpxchg_relaxed(oldp, state, new) != state); in update_mitigation_state()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/net/arcnet/ |
H A D | arcnet.c | 1160 *oldp = arc_proto_map[lp->default_proto[rxdata.pkt.hard.source]], in arcnet_rx() local 1163 if (oldp != newp) { in arcnet_rx() 1167 newp->suffix, oldp->suffix); in arcnet_rx()
|