| /linux/tools/testing/selftests/bpf/ |
| H A D | bpf_atomic.h | 49 #define try_cmpxchg(p, pold, new) \ argument 51 __unqual_typeof(*(pold)) __o = *(pold); \ 54 *(pold) = __r; \ 58 #define try_cmpxchg_relaxed(p, pold, new) try_cmpxchg(p, pold, new) argument 60 #define try_cmpxchg_acquire(p, pold, new) try_cmpxchg(p, pold, new) argument 134 #define atomic_try_cmpxchg_relaxed(p, pold, new) \ argument 135 try_cmpxchg_relaxed(&(p)->counter, pold, new) 137 #define atomic_try_cmpxchg_acquire(p, pold, new) \ argument 138 try_cmpxchg_acquire(&(p)->counter, pold, new)
|
| /linux/arch/x86/include/asm/ |
| H A D | cmpxchg.h | 217 #define __try_cmpxchg(ptr, pold, new, size) \ argument 218 __raw_try_cmpxchg((ptr), (pold), (new), (size), LOCK_PREFIX) 220 #define __sync_try_cmpxchg(ptr, pold, new, size) \ argument 221 __raw_try_cmpxchg((ptr), (pold), (new), (size), "lock ") 223 #define __try_cmpxchg_local(ptr, pold, new, size) \ argument 224 __raw_try_cmpxchg((ptr), (pold), (new), (size), "") 226 #define arch_try_cmpxchg(ptr, pold, new) \ argument 227 __try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr))) 229 #define arch_sync_try_cmpxchg(ptr, pold, new) \ argument 230 __sync_try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr))) [all …]
|
| /linux/arch/x86/kvm/vmx/ |
| H A D | posted_intr.c | 43 static int pi_try_set_control(struct pi_desc *pi_desc, u64 *pold, u64 new) in pi_try_set_control() argument 51 if (!try_cmpxchg64(&pi_desc->control, pold, new)) in pi_try_set_control()
|
| /linux/include/net/ |
| H A D | sch_generic.h | 1275 struct Qdisc **pold) in qdisc_drop_all() 1280 old = *pold; in qdisc_drop_all() 1281 *pold = new; in qdisc_drop_all() 1229 qdisc_replace(struct Qdisc * sch,struct Qdisc * new,struct Qdisc ** pold) qdisc_replace() argument
|
| /linux/drivers/gpu/drm/amd/amdkfd/ |
| H A D | kfd_svm.c | 957 unsigned char *new, *old, *pold; in svm_range_split_array() local 962 pold = *(unsigned char **)ppold; in svm_range_split_array() 963 if (!pold) in svm_range_split_array() 968 new = svm_range_copy_array(pold, size, new_n, d, new_vram_pages); in svm_range_split_array() 972 old = svm_range_copy_array(pold, size, old_n, d, NULL); in svm_range_split_array() 977 kvfree(pold); in svm_range_split_array()
|