atomic_cmpxchg
ret = atomic_cmpxchg(&aca->ue_update_flag, 0, 1) == 0;
} while (atomic_cmpxchg(&drv->last_seq, last_seq, seq) != last_seq);
ret = atomic_cmpxchg(&mca->ue_update_flag, 0, 1) == 0;
if (amdgpu_ras_is_rma(adev) && atomic_cmpxchg(&ras->rma_in_recovery, 0, 1) == 0)
if (atomic_cmpxchg(&amdgpu_ras_in_intr, 0, 1) == 0) {
if (atomic_cmpxchg(&ras->in_recovery, 0, 1) == 0) {
if (!atomic_cmpxchg(&adev->uvd.handles[i], 0, handle)) {
atomic_cmpxchg(&adev->uvd.handles[i], handle, 0);
if (!atomic_cmpxchg(&p->adev->vce.handles[i], 0, handle)) {
old_poison = atomic_cmpxchg(&p->poison, 0, 1);
if (atomic_cmpxchg(&prange->invalid, invalid, 0) != invalid)
if (atomic_cmpxchg(&svms->evicted_ranges, evicted_ranges, 0) !=
if (atomic_cmpxchg(&ce->pin_count, 1, 2) == 1) {
#define atomic_long_cmpxchg(p, o, n) atomic_cmpxchg(p, o, n)
#define atomic_long_cmpxchg(p, o, n) atomic_cmpxchg(p, o, n)
if (!atomic_cmpxchg(&p->rdev->uvd.handles[i], 0, handle)) {
atomic_cmpxchg(&p->rdev->uvd.handles[i], handle, 0);
if (!atomic_cmpxchg(&p->rdev->vce.handles[i], 0, handle)) {
atomic_cmpxchg(&p->rdev->vce.handles[i], handle, 0);