Home
last modified time | relevance | path

Searched refs:try_cmpxchg (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.3-rc2/kernel/
A Dtask_work.c55 } 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 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()
A Dgenalloc.c52 } 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 Dbitops.h353 } while (!try_cmpxchg(ptr, &old__, new__)); \
370 } while (!try_cmpxchg(ptr, &old__, new__)); \
A Dmm.h1641 } while (unlikely(!try_cmpxchg(&page->flags, &old_flags, flags))); in page_kasan_tag_set()
/linux-6.3-rc2/mm/
A Dmmzone.c108 } while (unlikely(!try_cmpxchg(&page->flags, &old_flags, flags))); in page_cpupid_xchg_last()
A Dswap.c440 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags)); in folio_inc_refs()
/linux-6.3-rc2/mm/kasan/
A Dtags.c120 if (!try_cmpxchg(&entry->ptr, &old_ptr, STACK_RING_BUSY_PTR)) in save_stack_info()
/linux-6.3-rc2/scripts/atomic/
A Datomics.tbl32 try_cmpxchg B v p:old i:new
/linux-6.3-rc2/Documentation/
A Datomic_t.txt148 - 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 Dintel_gt_requests.c107 while (!try_cmpxchg(&engine->retire, &first, tl)); in add_retire()
/linux-6.3-rc2/arch/x86/kernel/acpi/
A Dboot.c1861 } 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 Dmemtype.c165 } while (!try_cmpxchg(&pg->flags, &old_flags, new_flags)); in set_page_memtype()
/linux-6.3-rc2/arch/x86/kernel/
A Dkvm.c669 if (try_cmpxchg(&src->preempted, &state, in kvm_flush_tlb_multi()
/linux-6.3-rc2/block/
A Dblk-core.c953 if (likely(try_cmpxchg(&part->bd_stamp, &stamp, now))) in update_io_ticks()
/linux-6.3-rc2/fs/
A Dposix_acl.c178 if (unlikely(!try_cmpxchg(p, &sentinel, acl))) in __get_acl()
A Deventpoll.c1070 if (!try_cmpxchg(&new->next, &new, head)) in list_add_tail_lockless()
A Dbuffer.c1506 } while (!try_cmpxchg(&bh->b_state, &b_state, in discard_buffer()
/linux-6.3-rc2/drivers/char/
A Drandom.c717 } while (!try_cmpxchg(&input_pool.init_bits, &orig, new)); in _credit_init_bits()
/linux-6.3-rc2/drivers/gpu/drm/i915/
A Di915_request.c588 } while (!try_cmpxchg(&rq->fence.error, &old, error)); in i915_request_set_error_once()
/linux-6.3-rc2/drivers/nvme/target/
A Dcore.c704 } while (!try_cmpxchg(&req->sq->sqhd, &old_sqhd, new_sqhd)); in nvmet_update_sq_head()
/linux-6.3-rc2/net/ipv4/
A Dtcp_output.c1088 } 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 Datomic-instrumented.h1971 #define try_cmpxchg(ptr, oldp, ...) \ macro
/linux-6.3-rc2/net/core/
A Ddev.c5994 } 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 Draid5-cache.c1573 } while (!try_cmpxchg(&log->reclaim_target, &target, new)); in r5l_wake_reclaim()

Completed in 88 milliseconds

12