/linux-6.3-rc2/kernel/ |
A D | task_work.c | 55 } while (!try_cmpxchg(&task->task_works, &head, work)); in task_work_add() 108 } else if (try_cmpxchg(pprev, &work, work->next)) in task_work_cancel_match() 165 } while (!try_cmpxchg(&task->task_works, &work, head)); in task_work_run()
|
/linux-6.3-rc2/lib/ |
A 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()
|
A D | genalloc.c | 52 } while (!try_cmpxchg(addr, &val, val | mask_to_set)); in set_bits_ll() 66 } while (!try_cmpxchg(addr, &val, val & ~mask_to_clear)); in clear_bits_ll()
|
/linux-6.3-rc2/include/linux/ |
A D | bitops.h | 353 } while (!try_cmpxchg(ptr, &old__, new__)); \ 370 } while (!try_cmpxchg(ptr, &old__, new__)); \
|
A D | mm.h | 1641 } while (unlikely(!try_cmpxchg(&page->flags, &old_flags, flags))); in page_kasan_tag_set()
|
/linux-6.3-rc2/mm/ |
A D | mmzone.c | 108 } while (unlikely(!try_cmpxchg(&page->flags, &old_flags, flags))); in page_cpupid_xchg_last()
|
A D | swap.c | 440 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags)); in folio_inc_refs()
|
/linux-6.3-rc2/mm/kasan/ |
A D | tags.c | 120 if (!try_cmpxchg(&entry->ptr, &old_ptr, STACK_RING_BUSY_PTR)) in save_stack_info()
|
/linux-6.3-rc2/scripts/atomic/ |
A D | atomics.tbl | 32 try_cmpxchg B v p:old i:new
|
/linux-6.3-rc2/Documentation/ |
A 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.3-rc2/drivers/gpu/drm/i915/gt/ |
A D | intel_gt_requests.c | 107 while (!try_cmpxchg(&engine->retire, &first, tl)); in add_retire()
|
/linux-6.3-rc2/arch/x86/kernel/acpi/ |
A D | boot.c | 1861 } while (!try_cmpxchg(lock, &old, new)); in __acpi_acquire_global_lock() 1872 } while (!try_cmpxchg(lock, &old, new)); in __acpi_release_global_lock()
|
/linux-6.3-rc2/arch/x86/mm/pat/ |
A D | memtype.c | 165 } while (!try_cmpxchg(&pg->flags, &old_flags, new_flags)); in set_page_memtype()
|
/linux-6.3-rc2/arch/x86/kernel/ |
A D | kvm.c | 669 if (try_cmpxchg(&src->preempted, &state, in kvm_flush_tlb_multi()
|
/linux-6.3-rc2/block/ |
A D | blk-core.c | 953 if (likely(try_cmpxchg(&part->bd_stamp, &stamp, now))) in update_io_ticks()
|
/linux-6.3-rc2/fs/ |
A D | posix_acl.c | 178 if (unlikely(!try_cmpxchg(p, &sentinel, acl))) in __get_acl()
|
A D | eventpoll.c | 1070 if (!try_cmpxchg(&new->next, &new, head)) in list_add_tail_lockless()
|
A D | buffer.c | 1506 } while (!try_cmpxchg(&bh->b_state, &b_state, in discard_buffer()
|
/linux-6.3-rc2/drivers/char/ |
A D | random.c | 717 } while (!try_cmpxchg(&input_pool.init_bits, &orig, new)); in _credit_init_bits()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/ |
A D | i915_request.c | 588 } while (!try_cmpxchg(&rq->fence.error, &old, error)); in i915_request_set_error_once()
|
/linux-6.3-rc2/drivers/nvme/target/ |
A D | core.c | 704 } while (!try_cmpxchg(&req->sq->sqhd, &old_sqhd, new_sqhd)); in nvmet_update_sq_head()
|
/linux-6.3-rc2/net/ipv4/ |
A D | tcp_output.c | 1088 } while (!try_cmpxchg(&sk->sk_tsq_flags, &flags, nflags)); in tcp_release_cb() 1166 } while (!try_cmpxchg(&sk->sk_tsq_flags, &oval, nval)); in tcp_wfree()
|
/linux-6.3-rc2/include/linux/atomic/ |
A D | atomic-instrumented.h | 1971 #define try_cmpxchg(ptr, oldp, ...) \ macro
|
/linux-6.3-rc2/net/core/ |
A D | dev.c | 5994 } while (!try_cmpxchg(&n->state, &val, new)); in napi_schedule_prep() 6076 } while (!try_cmpxchg(&n->state, &val, new)); in napi_complete_done() 6406 } while (!try_cmpxchg(&n->state, &val, new)); in napi_disable() 6431 } while (!try_cmpxchg(&n->state, &val, new)); in napi_enable()
|
/linux-6.3-rc2/drivers/md/ |
A D | raid5-cache.c | 1573 } while (!try_cmpxchg(&log->reclaim_target, &target, new)); in r5l_wake_reclaim()
|