/linux-6.6.21/kernel/ |
D | task_work.c | 55 } 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()
|
/linux-6.6.21/lib/ |
D | llist.c | 33 } while (!try_cmpxchg(&head->first, &first, new_first)); in llist_add_batch() 62 } while (!try_cmpxchg(&head->first, &entry, next)); in llist_del_first()
|
D | genalloc.c | 54 } 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()
|
/linux-6.6.21/include/linux/ |
D | bitops.h | 353 } while (!try_cmpxchg(ptr, &old__, new__)); \ 370 } while (!try_cmpxchg(ptr, &old__, new__)); \
|
/linux-6.6.21/mm/ |
D | mmzone.c | 108 } while (unlikely(!try_cmpxchg(&page->flags, &old_flags, flags))); in page_cpupid_xchg_last()
|
D | swap.c | 440 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags)); in folio_inc_refs()
|
/linux-6.6.21/mm/kasan/ |
D | tags.c | 120 if (!try_cmpxchg(&entry->ptr, &old_ptr, STACK_RING_BUSY_PTR)) in save_stack_info()
|
/linux-6.6.21/scripts/atomic/ |
D | atomics.tbl | 32 try_cmpxchg B v p:old i:new
|
/linux-6.6.21/Documentation/ |
D | atomic_t.txt | 148 - swap operations: xchg(), cmpxchg() and try_cmpxchg() 282 Both provide the same functionality, but try_cmpxchg() can lead to more 313 NB. try_cmpxchg() also generates better code on some platforms (notably x86)
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
D | intel_gt_requests.c | 107 while (!try_cmpxchg(&engine->retire, &first, tl)); in add_retire()
|
/linux-6.6.21/fs/gfs2/ |
D | util.c | 337 } while (unlikely(!try_cmpxchg(&sdp->sd_flags, &old, new))); in gfs2_withdraw()
|
/linux-6.6.21/arch/x86/kernel/acpi/ |
D | boot.c | 1870 } while (!try_cmpxchg(lock, &old, new)); in __acpi_acquire_global_lock() 1885 } while (!try_cmpxchg(lock, &old, new)); in __acpi_release_global_lock()
|
/linux-6.6.21/arch/x86/include/asm/ |
D | pgtable.h | 1322 } 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()
|
/linux-6.6.21/arch/x86/mm/pat/ |
D | memtype.c | 165 } while (!try_cmpxchg(&pg->flags, &old_flags, new_flags)); in set_page_memtype()
|
/linux-6.6.21/arch/x86/kernel/ |
D | kvm.c | 669 if (try_cmpxchg(&src->preempted, &state, in kvm_flush_tlb_multi()
|
/linux-6.6.21/block/ |
D | blk-core.c | 952 if (likely(try_cmpxchg(&part->bd_stamp, &stamp, now))) in update_io_ticks()
|
/linux-6.6.21/fs/ |
D | posix_acl.c | 178 if (unlikely(!try_cmpxchg(p, &sentinel, acl))) in __get_acl()
|
D | splice.c | 55 } while (!try_cmpxchg(&file->f_mode, &fmode, fmode & ~FMODE_NOWAIT)); in pipe_clear_nowait()
|
D | eventpoll.c | 1101 if (!try_cmpxchg(&new->next, &new, head)) in list_add_tail_lockless()
|
/linux-6.6.21/kernel/sched/ |
D | core.c | 895 } while (!try_cmpxchg(_ptr, &_val, _val | _mask)); \ 927 if (try_cmpxchg(&ti->flags, &val, val | _TIF_NEED_RESCHED)) in set_nr_if_polling() 11753 if (!try_cmpxchg(&src_pcpu_cid->cid, &src_cid, lazy_cid)) in __sched_mm_cid_migrate_from_try_steal_cid() 11790 if (!try_cmpxchg(&src_pcpu_cid->cid, &lazy_cid, MM_CID_UNSET)) in __sched_mm_cid_migrate_from_try_steal_cid() 11872 if (!try_cmpxchg(&pcpu_cid->cid, &cid, lazy_cid)) in sched_mm_cid_remote_clear() 11907 if (try_cmpxchg(&pcpu_cid->cid, &lazy_cid, MM_CID_UNSET)) in sched_mm_cid_remote_clear() 11987 if (!try_cmpxchg(&mm->mm_cid_next_scan, &old_scan, next_scan)) in task_mm_cid_work()
|
D | sched.h | 3330 !try_cmpxchg(&this_cpu_ptr(pcpu_cid)->cid, &cid, MM_CID_UNSET)) in mm_cid_put_lazy() 3467 if (try_cmpxchg(&this_cpu_ptr(pcpu_cid)->cid, &cid, MM_CID_UNSET)) in mm_cid_get()
|
/linux-6.6.21/drivers/char/ |
D | random.c | 717 } while (!try_cmpxchg(&input_pool.init_bits, &orig, new)); in _credit_init_bits()
|
/linux-6.6.21/drivers/gpu/drm/i915/ |
D | i915_request.c | 584 } while (!try_cmpxchg(&rq->fence.error, &old, error)); in i915_request_set_error_once()
|
/linux-6.6.21/drivers/nvme/target/ |
D | core.c | 704 } while (!try_cmpxchg(&req->sq->sqhd, &old_sqhd, new_sqhd)); in nvmet_update_sq_head()
|
/linux-6.6.21/net/ipv4/ |
D | tcp_output.c | 1097 } while (!try_cmpxchg(&sk->sk_tsq_flags, &flags, nflags)); in tcp_release_cb() 1175 } while (!try_cmpxchg(&sk->sk_tsq_flags, &oval, nval)); in tcp_wfree()
|