| /linux-6.15/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-6.15/arch/x86/include/asm/ |
| H A D | cmpxchg.h | 221 #define __try_cmpxchg(ptr, pold, new, size) \ argument 224 #define __sync_try_cmpxchg(ptr, pold, new, size) \ argument 225 __raw_try_cmpxchg((ptr), (pold), (new), (size), "lock ") 227 #define __try_cmpxchg_local(ptr, pold, new, size) \ argument 228 __raw_try_cmpxchg((ptr), (pold), (new), (size), "") 230 #define arch_try_cmpxchg(ptr, pold, new) \ argument 231 __try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr))) 233 #define arch_sync_try_cmpxchg(ptr, pold, new) \ argument 234 __sync_try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr))) 236 #define arch_try_cmpxchg_local(ptr, pold, new) \ argument [all …]
|
| /linux-6.15/arch/x86/kvm/vmx/ |
| H A D | posted_intr.c | 41 static int pi_try_set_control(struct pi_desc *pi_desc, u64 *pold, u64 new) in pi_try_set_control() argument 49 if (!try_cmpxchg64(&pi_desc->control, pold, new)) in pi_try_set_control()
|
| /linux-6.15/drivers/input/ |
| H A D | input.c | 161 int *pold; in input_handle_abs_event() local 177 pold = &dev->absinfo[code].value; in input_handle_abs_event() 179 pold = &mt->slots[mt->slot].abs[code - ABS_MT_FIRST]; in input_handle_abs_event() 186 pold = NULL; in input_handle_abs_event() 189 if (pold) { in input_handle_abs_event() 190 *pval = input_defuzz_abs_event(*pval, *pold, in input_handle_abs_event() 192 if (*pold == *pval) in input_handle_abs_event() 195 *pold = *pval; in input_handle_abs_event()
|
| /linux-6.15/include/net/ |
| H A D | sch_generic.h | 1224 struct Qdisc **pold) in qdisc_replace() argument 1229 old = *pold; in qdisc_replace() 1230 *pold = new; in qdisc_replace()
|
| /linux-6.15/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()
|