/linux-master/lib/ |
H A D | llist.c | 33 } while (!try_cmpxchg(&head->first, &first, new_first)); 62 } while (!try_cmpxchg(&head->first, &entry, next)); 84 /* acquire ensures orderig wrt try_cmpxchg() is llist_del_first() */ 90 } while (!try_cmpxchg(&head->first, &entry, next));
|
H A D | genalloc.c | 54 } while (!try_cmpxchg(addr, &val, val | mask_to_set)); 68 } while (!try_cmpxchg(addr, &val, val & ~mask_to_clear));
|
/linux-master/kernel/ |
H A D | task_work.c | 55 } while (!try_cmpxchg(&task->task_works, &head, work)); 109 } else if (try_cmpxchg(pprev, &work, work->next)) 166 } while (!try_cmpxchg(&task->task_works, &work, head));
|
/linux-master/mm/ |
H A D | mmzone.c | 109 } while (unlikely(!try_cmpxchg(&folio->flags, &old_flags, flags)));
|
H A D | swap.c | 455 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags));
|
/linux-master/mm/kasan/ |
H A D | tags.c | 123 if (!try_cmpxchg(&entry->ptr, &old_ptr, STACK_RING_BUSY_PTR))
|
/linux-master/include/linux/ |
H A D | bitops.h | 353 } while (!try_cmpxchg(ptr, &old__, new__)); \ 370 } while (!try_cmpxchg(ptr, &old__, new__)); \
|
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | intel_gt_requests.c | 107 while (!try_cmpxchg(&engine->retire, &first, tl));
|
/linux-master/fs/gfs2/ |
H A D | util.c | 337 } while (unlikely(!try_cmpxchg(&sdp->sd_flags, &old, new)));
|
/linux-master/arch/x86/kernel/acpi/ |
H A D | boot.c | 1831 } while (!try_cmpxchg(lock, &old, new)); 1846 } while (!try_cmpxchg(lock, &old, new));
|
/linux-master/arch/x86/include/asm/ |
H A D | pgtable.h | 1316 } while (!try_cmpxchg((long *)&ptep->pte, (long *)&old_pte, *(long *)&new_pte)); 1378 } while (!try_cmpxchg((long *)pmdp, (long *)&old_pmd, *(long *)&new_pmd));
|
/linux-master/fs/ |
H A D | posix_acl.c | 177 if (unlikely(!try_cmpxchg(p, &sentinel, acl)))
|
H A D | splice.c | 55 } while (!try_cmpxchg(&file->f_mode, &fmode, fmode & ~FMODE_NOWAIT));
|
H A D | eventpoll.c | 1206 if (!try_cmpxchg(&new->next, &new, head))
|
H A D | libfs.c | 2063 if (likely(try_cmpxchg(stashed, &old, dentry)))
|
/linux-master/arch/x86/kernel/ |
H A D | kvm.c | 671 if (try_cmpxchg(&src->preempted, &state,
|
/linux-master/arch/x86/mm/pat/ |
H A D | memtype.c | 165 } while (!try_cmpxchg(&pg->flags, &old_flags, new_flags));
|
/linux-master/block/ |
H A D | blk-core.c | 991 if (likely(try_cmpxchg(&part->bd_stamp, &stamp, now)))
|
/linux-master/kernel/sched/ |
H A D | core.c | 896 } while (!try_cmpxchg(_ptr, &_val, _val | _mask)); \ 928 } while (!try_cmpxchg(&ti->flags, &val, val | _TIF_NEED_RESCHED)); 11724 if (!try_cmpxchg(&src_pcpu_cid->cid, &src_cid, lazy_cid)) 11760 if (!try_cmpxchg(&src_pcpu_cid->cid, &lazy_cid, MM_CID_UNSET)) 11841 if (!try_cmpxchg(&pcpu_cid->cid, &cid, lazy_cid)) 11874 if (try_cmpxchg(&pcpu_cid->cid, &lazy_cid, MM_CID_UNSET)) 11953 if (!try_cmpxchg(&mm->mm_cid_next_scan, &old_scan, next_scan))
|
H A D | sched.h | 3265 * State transitions synchronized with cmpxchg or try_cmpxchg need to be 3277 !try_cmpxchg(&this_cpu_ptr(pcpu_cid)->cid, &cid, MM_CID_UNSET)) 3414 if (try_cmpxchg(&this_cpu_ptr(pcpu_cid)->cid, &cid, MM_CID_UNSET))
|
/linux-master/drivers/gpu/drm/i915/ |
H A D | i915_request.c | 583 } while (!try_cmpxchg(&rq->fence.error, &old, error));
|
/linux-master/drivers/char/ |
H A D | random.c | 717 } while (!try_cmpxchg(&input_pool.init_bits, &orig, new));
|
/linux-master/kernel/trace/ |
H A D | ring_buffer.c | 1371 return try_cmpxchg(ptr, &val, (unsigned long)&new->list); 1433 if (try_cmpxchg(&cpu_buffer->tail_page, &tail_page, next_page)) 1960 if (try_cmpxchg(&prev_page->next,
|
/linux-master/include/linux/atomic/ |
H A D | atomic-instrumented.h | 4873 #define try_cmpxchg(ptr, oldp, ...) \ macro
|
/linux-master/drivers/nvme/target/ |
H A D | core.c | 716 } while (!try_cmpxchg(&req->sq->sqhd, &old_sqhd, new_sqhd));
|