Home
last modified time | relevance | path

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

/Linux-v6.1/kernel/
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-v6.1/lib/
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()
/Linux-v6.1/include/linux/
Dbitops.h353 } while (!try_cmpxchg(ptr, &old__, new__)); \
370 } while (!try_cmpxchg(ptr, &old__, new__)); \
Dmm.h1459 } while (unlikely(!try_cmpxchg(&page->flags, &old_flags, flags))); in page_kasan_tag_set()
Dnetdevice.h564 } while (!try_cmpxchg(&n->state, &val, new)); in napi_if_scheduled_mark_missed()
/Linux-v6.1/mm/
Dmmzone.c108 } while (unlikely(!try_cmpxchg(&page->flags, &old_flags, flags))); in page_cpupid_xchg_last()
Dswap.c457 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags)); in folio_inc_refs()
Dvmscan.c3665 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags)); in folio_update_gen()
3693 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags)); in folio_inc_gen()
Dpage_alloc.c625 } while (!try_cmpxchg(&bitmap[word_bitidx], &word, (word & ~mask) | flags)); in set_pfnblock_flags_mask()
/Linux-v6.1/mm/kasan/
Dtags.c120 if (!try_cmpxchg(&entry->ptr, &old_ptr, STACK_RING_BUSY_PTR)) in save_stack_info()
/Linux-v6.1/scripts/atomic/
Datomics.tbl32 try_cmpxchg B v p:old i:new
/Linux-v6.1/Documentation/
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-v6.1/drivers/gpu/drm/i915/gt/
Dintel_gt_requests.c107 while (!try_cmpxchg(&engine->retire, &first, tl)); in add_retire()
/Linux-v6.1/arch/x86/kernel/
Dkvm.c669 if (try_cmpxchg(&src->preempted, &state, in kvm_flush_tlb_multi()
/Linux-v6.1/block/
Dblk-core.c921 if (likely(try_cmpxchg(&part->bd_stamp, &stamp, now))) in update_io_ticks()
/Linux-v6.1/drivers/char/
Drandom.c660 } while (!try_cmpxchg(&input_pool.init_bits, &orig, new)); in _credit_init_bits()
/Linux-v6.1/drivers/gpu/drm/i915/
Di915_request.c587 } while (!try_cmpxchg(&rq->fence.error, &old, error)); in i915_request_set_error_once()
/Linux-v6.1/fs/
Deventpoll.c1068 if (!try_cmpxchg(&new->next, &new, head)) in list_add_tail_lockless()
Dbuffer.c1463 } while (!try_cmpxchg(&bh->b_state, &b_state, in discard_buffer()
/Linux-v6.1/include/linux/atomic/
Datomic-instrumented.h1971 #define try_cmpxchg(ptr, oldp, ...) \ macro
/Linux-v6.1/drivers/infiniband/ulp/rtrs/
Drtrs-clt.c2297 if (try_cmpxchg((struct rtrs_clt_path **)ppcpu_path, &clt_path, in rtrs_clt_remove_path_from_arr()
/Linux-v6.1/kernel/sched/
Dcore.c873 } while (!try_cmpxchg(_ptr, &_val, _val | _mask)); \
905 if (try_cmpxchg(&ti->flags, &val, val | _TIF_NEED_RESCHED)) in set_nr_if_polling()