Home
last modified time | relevance | path

Searched refs:try_cmpxchg (Results 1 - 25 of 44) sorted by relevance

12

/kernel/linux/linux-6.6/kernel/
H A Dtask_work.c55 } while (!try_cmpxchg(&task->task_works, &head, work)); in task_work_add()
109 } else if (try_cmpxchg(pprev, &work, work->next)) in task_work_cancel_match()
166 } while (!try_cmpxchg(&task->task_works, &work, head)); in task_work_run()
/kernel/linux/linux-6.6/lib/
H A Dllist.c33 } while (!try_cmpxchg(&head->first, &first, new_first)); in llist_add_batch()
62 } while (!try_cmpxchg(&head->first, &entry, next)); in llist_del_first()
H A Dgenalloc.c54 } while (!try_cmpxchg(addr, &val, val | mask_to_set)); in set_bits_ll()
68 } while (!try_cmpxchg(addr, &val, val & ~mask_to_clear)); in clear_bits_ll()
/kernel/linux/linux-6.6/include/linux/
H A Dbitops.h353 } while (!try_cmpxchg(ptr, &old__, new__)); \
370 } while (!try_cmpxchg(ptr, &old__, new__)); \
/kernel/linux/linux-6.6/mm/
H A Dmmzone.c108 } while (unlikely(!try_cmpxchg(&page->flags, &old_flags, flags))); in page_cpupid_xchg_last()
H A Dswap.c447 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags)); in folio_inc_refs()
/kernel/linux/linux-6.6/mm/kasan/
H A Dtags.c120 if (!try_cmpxchg(&entry->ptr, &old_ptr, STACK_RING_BUSY_PTR)) in save_stack_info()
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Datomic.h202 return try_cmpxchg(&v->counter, old, new); in arch_atomic_try_cmpxchg()
H A Datomic64_64.h190 return try_cmpxchg(&v->counter, old, new); in arch_atomic64_try_cmpxchg()
H A Dcmpxchg.h224 #define try_cmpxchg(ptr, pold, new) \ macro
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
H A Dintel_gt_requests.c107 while (!try_cmpxchg(&engine->retire, &first, tl)); in add_retire()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/
H A Dintel_gt_requests.c107 while (!try_cmpxchg(&engine->retire, &first, tl)); in add_retire()
/kernel/linux/linux-6.6/fs/gfs2/
H A Dutil.c337 } while (unlikely(!try_cmpxchg(&sdp->sd_flags, &old, new))); in gfs2_withdraw()
/kernel/linux/linux-6.6/arch/x86/kernel/acpi/
H A Dboot.c1870 } while (!try_cmpxchg(lock, &old, new)); in __acpi_acquire_global_lock()
1885 } while (!try_cmpxchg(lock, &old, new)); in __acpi_release_global_lock()
/kernel/linux/linux-6.6/arch/x86/include/asm/
H A Dpgtable.h1322 } while (!try_cmpxchg((long *)&ptep->pte, (long *)&old_pte, *(long *)&new_pte)); in ptep_set_wrprotect()
1384 } while (!try_cmpxchg((long *)pmdp, (long *)&old_pmd, *(long *)&new_pmd)); in pmdp_set_wrprotect()
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dkvm.c699 if (try_cmpxchg(&src->preempted, &state, in kvm_flush_tlb_others()
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dkvm.c669 if (try_cmpxchg(&src->preempted, &state, in kvm_flush_tlb_multi()
/kernel/linux/linux-6.6/fs/
H A Dposix_acl.c178 if (unlikely(!try_cmpxchg(p, &sentinel, acl))) in __get_acl()
/kernel/linux/linux-6.6/arch/x86/mm/pat/
H A Dmemtype.c165 } while (!try_cmpxchg(&pg->flags, &old_flags, new_flags)); in set_page_memtype()
/kernel/linux/linux-6.6/block/
H A Dblk-core.c952 if (likely(try_cmpxchg(&part->bd_stamp, &stamp, now))) in update_io_ticks()
/kernel/linux/linux-6.6/kernel/sched/
H A Dcore.c901 } while (!try_cmpxchg(_ptr, &_val, _val | _mask)); \
933 if (try_cmpxchg(&ti->flags, &val, val | _TIF_NEED_RESCHED)) in set_nr_if_polling()
12517 if (!try_cmpxchg(&src_pcpu_cid->cid, &src_cid, lazy_cid)) in __sched_mm_cid_migrate_from_try_steal_cid()
12554 if (!try_cmpxchg(&src_pcpu_cid->cid, &lazy_cid, MM_CID_UNSET)) in __sched_mm_cid_migrate_from_try_steal_cid()
12636 if (!try_cmpxchg(&pcpu_cid->cid, &cid, lazy_cid)) in sched_mm_cid_remote_clear()
12671 if (try_cmpxchg(&pcpu_cid->cid, &lazy_cid, MM_CID_UNSET)) in sched_mm_cid_remote_clear()
12751 if (!try_cmpxchg(&mm->mm_cid_next_scan, &old_scan, next_scan)) in task_mm_cid_work()
H A Dsched.h3520 * State transitions synchronized with cmpxchg or try_cmpxchg need to be
3532 !try_cmpxchg(&this_cpu_ptr(pcpu_cid)->cid, &cid, MM_CID_UNSET)) in mm_cid_put_lazy()
3669 if (try_cmpxchg(&this_cpu_ptr(pcpu_cid)->cid, &cid, MM_CID_UNSET)) in mm_cid_get()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
H A Di915_request.c513 } while (!try_cmpxchg(&rq->fence.error, &old, error)); in i915_request_set_error_once()
/kernel/linux/linux-6.6/drivers/char/
H A Drandom.c717 } while (!try_cmpxchg(&input_pool.init_bits, &orig, new)); in _credit_init_bits()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/
H A Di915_request.c584 } while (!try_cmpxchg(&rq->fence.error, &old, error)); in i915_request_set_error_once()

Completed in 62 milliseconds

12