Searched refs:atomic_try_cmpxchg (Results 1 - 25 of 35) sorted by relevance

12

/linux-master/include/asm-generic/
H A Dspinlock.h60 return atomic_try_cmpxchg(lock, &old, old + (1<<16)); /* SC, for RCsc */
/linux-master/block/
H A Dblk-cgroup.h409 while (old && !atomic_try_cmpxchg(&blkg->use_delay, &old, old - 1))
433 if (!old && atomic_try_cmpxchg(&blkg->use_delay, &old, -1))
450 if (old && atomic_try_cmpxchg(&blkg->use_delay, &old, 0))
H A Dblk-rq-qos.c16 } while (!atomic_try_cmpxchg(v, &cur, cur + 1));
H A Dblk-iolatency.c423 if (!atomic_try_cmpxchg(&iolat->scale_cookie, &our_cookie, cur_cookie)) {
/linux-master/arch/x86/kernel/
H A Dsmp.c160 if (!atomic_try_cmpxchg(&stopping_cpu, &old_cpu, this_cpu))
/linux-master/kernel/futex/
H A Drequeue.c121 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new));
149 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new));
175 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new));
/linux-master/kernel/
H A Dpanic.c201 /* atomic_try_cmpxchg updates old_cpu on failure */
202 if (atomic_try_cmpxchg(&panic_cpu, &old_cpu, this_cpu))
327 /* atomic_try_cmpxchg updates old_cpu on failure */
328 if (atomic_try_cmpxchg(&panic_cpu, &old_cpu, this_cpu)) {
H A Dcrash_core.c139 if (atomic_try_cmpxchg(&panic_cpu, &old_cpu, this_cpu)) {
H A Dcpu.c320 if (!atomic_try_cmpxchg(st, &sync, next_state))
369 } while (!atomic_try_cmpxchg(st, &sync, SYNC_STATE_SHOULD_DIE));
424 if (!atomic_try_cmpxchg(st, &sync, SYNC_STATE_KICKED))
H A Djump_label.c142 } while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v + 1)));
H A Dpadata.c526 } while (!atomic_try_cmpxchg(&last_used_nid, &old_node, nid));
/linux-master/include/linux/
H A Djump_label.h295 } while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v + 1)));
/linux-master/fs/gfs2/
H A Dlog.c446 if (atomic_try_cmpxchg(&sdp->sd_log_revokes_available,
500 if (atomic_try_cmpxchg(&sdp->sd_log_blks_free, &free_blocks,
542 if (atomic_try_cmpxchg(&sdp->sd_log_blks_free,
/linux-master/drivers/gpu/drm/i915/
H A Di915_sw_fence.c234 } while (!atomic_try_cmpxchg(&fence->pending, &pending, pending + 1));
/linux-master/kernel/printk/
H A Dnbcon.c130 * nbcon_state_try_cmpxchg() - Helper function for atomic_try_cmpxchg() on console state
140 return atomic_try_cmpxchg(&ACCESS_PRIVATE(con, nbcon_state), &cur->atom, new->atom);
/linux-master/net/rxrpc/
H A Dconn_object.c429 if (!atomic_try_cmpxchg(&conn->active, &active, -1))
/linux-master/arch/x86/kernel/cpu/
H A Dmshyperv.c274 if (!atomic_try_cmpxchg(&nmi_cpu, &old_cpu, this_cpu))
/linux-master/kernel/time/
H A Dtimer_migration.c101 * active CPU/group information atomic_try_cmpxchg() is used instead and only
650 } while (!atomic_try_cmpxchg(&group->migr_state, &curstate.state, newstate.state));
1302 if (atomic_try_cmpxchg(&group->migr_state, &curstate.state,
/linux-master/drivers/net/ipa/
H A Dgsi_trans.c311 } while (!atomic_try_cmpxchg(&trans_info->tre_avail, &avail, new));
/linux-master/kernel/bpf/
H A Dringbuf.c741 if (!atomic_try_cmpxchg(&rb->busy, &busy, 1))
/linux-master/lib/
H A Dsbitmap.c591 } while (!atomic_try_cmpxchg(&sbq->wakeup_cnt,
/linux-master/mm/kasan/
H A Dkasan_test.c722 KUNIT_EXPECT_KASAN_FAIL(test, atomic_try_cmpxchg(unsafe, safe, 42));
723 KUNIT_EXPECT_KASAN_FAIL(test, atomic_try_cmpxchg(safe, unsafe, 42));
/linux-master/samples/vfio-mdev/
H A Dmbochs.c531 } while (!atomic_try_cmpxchg(&mbochs_avail_mbytes, &avail_mbytes,
/linux-master/arch/x86/kernel/apic/
H A Dapic.c362 } while (!atomic_try_cmpxchg(&eilvt_offsets[offset], &rsvd, new));
/linux-master/sound/usb/
H A Dendpoint.c140 return atomic_try_cmpxchg(&ep->state, &old, new);

Completed in 233 milliseconds

12