Searched refs:try_cmpxchg (Results 1 – 22 of 22) sorted by relevance
/Linux-v6.1/kernel/ |
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-v6.1/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()
|
/Linux-v6.1/include/linux/ |
D | bitops.h | 353 } while (!try_cmpxchg(ptr, &old__, new__)); \ 370 } while (!try_cmpxchg(ptr, &old__, new__)); \
|
D | mm.h | 1459 } while (unlikely(!try_cmpxchg(&page->flags, &old_flags, flags))); in page_kasan_tag_set()
|
D | netdevice.h | 564 } while (!try_cmpxchg(&n->state, &val, new)); in napi_if_scheduled_mark_missed()
|
/Linux-v6.1/mm/ |
D | mmzone.c | 108 } while (unlikely(!try_cmpxchg(&page->flags, &old_flags, flags))); in page_cpupid_xchg_last()
|
D | swap.c | 457 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags)); in folio_inc_refs()
|
D | vmscan.c | 3665 } 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()
|
D | page_alloc.c | 625 } while (!try_cmpxchg(&bitmap[word_bitidx], &word, (word & ~mask) | flags)); in set_pfnblock_flags_mask()
|
/Linux-v6.1/mm/kasan/ |
D | tags.c | 120 if (!try_cmpxchg(&entry->ptr, &old_ptr, STACK_RING_BUSY_PTR)) in save_stack_info()
|
/Linux-v6.1/scripts/atomic/ |
D | atomics.tbl | 32 try_cmpxchg B v p:old i:new
|
/Linux-v6.1/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-v6.1/drivers/gpu/drm/i915/gt/ |
D | intel_gt_requests.c | 107 while (!try_cmpxchg(&engine->retire, &first, tl)); in add_retire()
|
/Linux-v6.1/arch/x86/kernel/ |
D | kvm.c | 669 if (try_cmpxchg(&src->preempted, &state, in kvm_flush_tlb_multi()
|
/Linux-v6.1/block/ |
D | blk-core.c | 921 if (likely(try_cmpxchg(&part->bd_stamp, &stamp, now))) in update_io_ticks()
|
/Linux-v6.1/drivers/char/ |
D | random.c | 660 } while (!try_cmpxchg(&input_pool.init_bits, &orig, new)); in _credit_init_bits()
|
/Linux-v6.1/drivers/gpu/drm/i915/ |
D | i915_request.c | 587 } while (!try_cmpxchg(&rq->fence.error, &old, error)); in i915_request_set_error_once()
|
/Linux-v6.1/fs/ |
D | eventpoll.c | 1068 if (!try_cmpxchg(&new->next, &new, head)) in list_add_tail_lockless()
|
D | buffer.c | 1463 } while (!try_cmpxchg(&bh->b_state, &b_state, in discard_buffer()
|
/Linux-v6.1/include/linux/atomic/ |
D | atomic-instrumented.h | 1971 #define try_cmpxchg(ptr, oldp, ...) \ macro
|
/Linux-v6.1/drivers/infiniband/ulp/rtrs/ |
D | rtrs-clt.c | 2297 if (try_cmpxchg((struct rtrs_clt_path **)ppcpu_path, &clt_path, in rtrs_clt_remove_path_from_arr()
|
/Linux-v6.1/kernel/sched/ |
D | core.c | 873 } while (!try_cmpxchg(_ptr, &_val, _val | _mask)); \ 905 if (try_cmpxchg(&ti->flags, &val, val | _TIF_NEED_RESCHED)) in set_nr_if_polling()
|