Searched refs:try_cmpxchg (Results 1 - 25 of 41) sorted by relevance

12

/linux-master/lib/
H A Dllist.c33 } while (!try_cmpxchg(&head->first, &first, new_first));
62 } while (!try_cmpxchg(&head->first, &entry, next));
84 /* acquire ensures orderig wrt try_cmpxchg() is llist_del_first() */
90 } while (!try_cmpxchg(&head->first, &entry, next));
H A Dgenalloc.c54 } while (!try_cmpxchg(addr, &val, val | mask_to_set));
68 } while (!try_cmpxchg(addr, &val, val & ~mask_to_clear));
/linux-master/kernel/
H A Dtask_work.c55 } while (!try_cmpxchg(&task->task_works, &head, work));
109 } else if (try_cmpxchg(pprev, &work, work->next))
166 } while (!try_cmpxchg(&task->task_works, &work, head));
/linux-master/mm/
H A Dmmzone.c109 } while (unlikely(!try_cmpxchg(&folio->flags, &old_flags, flags)));
H A Dswap.c455 } while (!try_cmpxchg(&folio->flags, &old_flags, new_flags));
/linux-master/mm/kasan/
H A Dtags.c123 if (!try_cmpxchg(&entry->ptr, &old_ptr, STACK_RING_BUSY_PTR))
/linux-master/include/linux/
H A Dbitops.h353 } while (!try_cmpxchg(ptr, &old__, new__)); \
370 } while (!try_cmpxchg(ptr, &old__, new__)); \
/linux-master/drivers/gpu/drm/i915/gt/
H A Dintel_gt_requests.c107 while (!try_cmpxchg(&engine->retire, &first, tl));
/linux-master/fs/gfs2/
H A Dutil.c337 } while (unlikely(!try_cmpxchg(&sdp->sd_flags, &old, new)));
/linux-master/arch/x86/kernel/acpi/
H A Dboot.c1831 } while (!try_cmpxchg(lock, &old, new));
1846 } while (!try_cmpxchg(lock, &old, new));
/linux-master/arch/x86/include/asm/
H A Dpgtable.h1316 } while (!try_cmpxchg((long *)&ptep->pte, (long *)&old_pte, *(long *)&new_pte));
1378 } while (!try_cmpxchg((long *)pmdp, (long *)&old_pmd, *(long *)&new_pmd));
/linux-master/fs/
H A Dposix_acl.c177 if (unlikely(!try_cmpxchg(p, &sentinel, acl)))
H A Dsplice.c55 } while (!try_cmpxchg(&file->f_mode, &fmode, fmode & ~FMODE_NOWAIT));
H A Deventpoll.c1206 if (!try_cmpxchg(&new->next, &new, head))
H A Dlibfs.c2063 if (likely(try_cmpxchg(stashed, &old, dentry)))
/linux-master/arch/x86/kernel/
H A Dkvm.c671 if (try_cmpxchg(&src->preempted, &state,
/linux-master/arch/x86/mm/pat/
H A Dmemtype.c165 } while (!try_cmpxchg(&pg->flags, &old_flags, new_flags));
/linux-master/block/
H A Dblk-core.c991 if (likely(try_cmpxchg(&part->bd_stamp, &stamp, now)))
/linux-master/kernel/sched/
H A Dcore.c896 } while (!try_cmpxchg(_ptr, &_val, _val | _mask)); \
928 } while (!try_cmpxchg(&ti->flags, &val, val | _TIF_NEED_RESCHED));
11724 if (!try_cmpxchg(&src_pcpu_cid->cid, &src_cid, lazy_cid))
11760 if (!try_cmpxchg(&src_pcpu_cid->cid, &lazy_cid, MM_CID_UNSET))
11841 if (!try_cmpxchg(&pcpu_cid->cid, &cid, lazy_cid))
11874 if (try_cmpxchg(&pcpu_cid->cid, &lazy_cid, MM_CID_UNSET))
11953 if (!try_cmpxchg(&mm->mm_cid_next_scan, &old_scan, next_scan))
H A Dsched.h3265 * State transitions synchronized with cmpxchg or try_cmpxchg need to be
3277 !try_cmpxchg(&this_cpu_ptr(pcpu_cid)->cid, &cid, MM_CID_UNSET))
3414 if (try_cmpxchg(&this_cpu_ptr(pcpu_cid)->cid, &cid, MM_CID_UNSET))
/linux-master/drivers/gpu/drm/i915/
H A Di915_request.c583 } while (!try_cmpxchg(&rq->fence.error, &old, error));
/linux-master/drivers/char/
H A Drandom.c717 } while (!try_cmpxchg(&input_pool.init_bits, &orig, new));
/linux-master/kernel/trace/
H A Dring_buffer.c1371 return try_cmpxchg(ptr, &val, (unsigned long)&new->list);
1433 if (try_cmpxchg(&cpu_buffer->tail_page, &tail_page, next_page))
1960 if (try_cmpxchg(&prev_page->next,
/linux-master/include/linux/atomic/
H A Datomic-instrumented.h4873 #define try_cmpxchg(ptr, oldp, ...) \ macro
/linux-master/drivers/nvme/target/
H A Dcore.c716 } while (!try_cmpxchg(&req->sq->sqhd, &old_sqhd, new_sqhd));

Completed in 485 milliseconds

12