try_cmpxchg
} while (!try_cmpxchg(&ic->val, &old.val, new.val));
} while (!try_cmpxchg(&ic->val, &old.val, new.val));
} while (!try_cmpxchg(&ic->val, &old.val, new.val));
} while (!try_cmpxchg(&ic->val, &old.val, new.val));
} while (!try_cmpxchg(&gisa->u64.word[0], &word, _word));
} while (!try_cmpxchg(&gisa->u64.word[0], &word, _word));
} while (!try_cmpxchg(&gi->origin->u64.word[0], &word, _word));
} while (!try_cmpxchg(&sca->utility.val, &old.val, new.val));
if (try_cmpxchg(nb->owners + i, &tmp, NULL))
if (try_cmpxchg(&ctx->events[i], &tmp, event)) {
if (try_cmpxchg(&ctx->events[i], &tmp, NULL))
} while (!try_cmpxchg((long *)&ptep->pte, (long *)&old_pte, *(long *)&new_pte));
} while (!try_cmpxchg((long *)pmdp, (long *)&old_pmd, *(long *)&new_pmd));
} while (!try_cmpxchg(lock, &old, new));
} while (!try_cmpxchg(lock, &old, new));
if (try_cmpxchg(&src->preempted, &state,
!try_cmpxchg(p_irr, &prev_irr_val, irr_val));
} while (!try_cmpxchg(&pg->flags.f, &old_flags, new_flags));
if (try_cmpxchg(top_mfn_p, &missing_mfn, mid_mfn_mfn)) {
likely(try_cmpxchg(&part->bd_stamp, &stamp, now)) &&
} while (!try_cmpxchg(&input_pool.init_bits, &orig, new));
while (!try_cmpxchg(&engine->retire, &first, tl));
return try_cmpxchg(__active_fence_slot(active), &fence, NULL);
} while (!try_cmpxchg(&rq->fence.error, &old, error));
if (!try_cmpxchg(&msg->header.message_type,
if (!try_cmpxchg(&vp->vp_register_page->interrupt_vectors.as_uint64,
if (try_cmpxchg((struct rtrs_clt_path **)ppcpu_path, &clt_path,
} while (!try_cmpxchg(&log->reclaim_target, &target, new));
} while (!try_cmpxchg(&req->sq->sqhd, &old_sqhd, new_sqhd));
if (!(n & 1) && try_cmpxchg(&dir->i_dir_seq, &n, n + 1))
} while (unlikely(!try_cmpxchg(&bh->b_state, &old_state, new_state)));
if (try_cmpxchg(&inode->i_ctime_nsec, &cur, now.tv_nsec)) {
if (try_cmpxchg(&inode->i_ctime_nsec, &cur, update.tv_nsec)) {
if (!try_cmpxchg(&kn->iattr, &attr, ret))
if (likely(try_cmpxchg(stashed, &old, dentry)))
if (unlikely(!try_cmpxchg(p, &sentinel, acl)))
} while (!try_cmpxchg(&file->f_mode, &fmode, fmode & ~FMODE_NOWAIT));
if (!try_cmpxchg(&sb->s_dio_done_wq, &old, wq)) {
} while (!try_cmpxchg(ptr, &old__, new__)); \
} while (!try_cmpxchg(ptr, &old__, new__)); \
} while (!try_cmpxchg(&head->first, &first, new_first));
} while (unlikely(!try_cmpxchg(&page->flags.f, &old_flags, flags)));
} while (!try_cmpxchg(&n->state, &val, new));
} while (unlikely(!try_cmpxchg(&page->flags.f, &old_flags, flags)));
if (try_cmpxchg(&net->vsock.child_ns_mode_locked,
if (likely(try_cmpxchg(&da_mon->curr_state, &curr_state, next_state))) {
if (likely(try_cmpxchg(&da_mon->curr_state, &curr_state, next_state))) {
} while (!try_cmpxchg(&ctx->work_llist.first, &head,
if (!try_cmpxchg(&rstatc->lnode.next, &self, NULL))
if (try_cmpxchg(&task->perf_ctx_data, &old, cd)) {
if (try_cmpxchg(&task->perf_ctx_data, &cd, NULL))
if (try_cmpxchg((struct perf_ctx_data **)&p->perf_ctx_data, &cd, NULL))
if (try_cmpxchg(&hprobe->state, &hstate, uprobe ? HPROBE_STABLE : HPROBE_GONE)) {
if (try_cmpxchg(&he->lock, &old, lock)) {
!try_cmpxchg(&rcu_barrier_last_throttle, &old, j)) {
} while (!try_cmpxchg(&ti->flags, &val, val | _TIF_NEED_RESCHED));
} while (!try_cmpxchg(_ptr, &_val, _val | _mask)); \
if (!try_cmpxchg(&mm->numa_next_scan, &migrate, next_scan))
} else if (try_cmpxchg(pprev, &work, work->next))
} while (!try_cmpxchg(&task->task_works, &work, head));
} while (!try_cmpxchg(&task->task_works, &head, work));
return try_cmpxchg(ptr, &val, (unsigned long)&new->list);
if (try_cmpxchg(&cpu_buffer->tail_page, &tail_page, next_page))
if (try_cmpxchg(&prev_page->next,
return try_cmpxchg(&info->id.cnt, &old, cnt);
} while (!try_cmpxchg(addr, &val, val | mask_to_set));
} while (!try_cmpxchg(addr, &val, val & ~mask_to_clear));
} while (!try_cmpxchg(&head->first, &entry, next));
} while (!try_cmpxchg(&head->first, &entry, next));
if (!try_cmpxchg(&entry->ptr, &old_ptr, STACK_RING_BUSY_PTR))
} while (!try_cmpxchg(¤t->objcg, &old, objcg));
} while (unlikely(!try_cmpxchg(&folio->flags.f, &old_flags, flags)));
} while (!try_cmpxchg(bitmap_word, &word, (word & ~mask) | flags));
} while (!try_cmpxchg(&folio->flags.f, &old_flags, new_flags));
} while (!try_cmpxchg(&folio->flags.f, &old_flags, new_flags));
} while (!try_cmpxchg(&folio->flags.f, &old_flags, new_flags));
} while (!try_cmpxchg(&q->defer_list.first, &first_n, &skb->ll_node));
} while (!try_cmpxchg(&n->state, &val, new));
} while (!try_cmpxchg(&n->state, &val, new));
if (try_cmpxchg(&napi->state, &val, new))
} while (!try_cmpxchg(&n->state, &val, new));
} while (!try_cmpxchg(&n->state, &val, new));
} while (!try_cmpxchg(&dev->operstate, &old, newstate));
} while (!try_cmpxchg(&sk->sk_tsq_flags, &flags, nflags));
} while (!try_cmpxchg(&sk->sk_tsq_flags, &oval, nval));
return try_cmpxchg(ptr, old, new);
return try_cmpxchg(ptr, old, new);
#define try_cmpxchg_relaxed(p, pold, new) try_cmpxchg(p, pold, new)
#define try_cmpxchg_acquire(p, pold, new) try_cmpxchg(p, pold, new)