Searched refs:atomic_cmpxchg (Results 26 - 50 of 118) sorted by relevance

12345

/linux-master/drivers/gpu/drm/msm/adreno/
H A Da5xx_preempt.c15 enum preempt_state cur = atomic_cmpxchg(&a5xx_gpu->preempt_state,
/linux-master/drivers/accel/habanalabs/common/
H A Dmemory_mgr.c276 if (atomic_cmpxchg(&buf->mmap, 0, 1)) {
H A Dirq.c278 if (atomic_cmpxchg(&free_node->in_use, 0, 1)) {
/linux-master/kernel/
H A Dirq_work.c228 (void)atomic_cmpxchg(&work->node.a_flags, flags, flags & ~IRQ_WORK_BUSY);
/linux-master/drivers/char/hw_random/
H A Dba431-rng.c109 if (atomic_cmpxchg(&ba431->reset_pending, 0, 1))
H A Dcctrng.c249 if (atomic_cmpxchg(&drvdata->pending_hw, 0, 1) == 0) {
379 if (atomic_cmpxchg(&drvdata->pending_hw, 0, 1) == 0) {
/linux-master/mm/
H A Dpage_reporting.c344 state = atomic_cmpxchg(&prdev->state, state, PAGE_REPORTING_IDLE);
/linux-master/drivers/gpu/drm/i915/gt/
H A Dintel_context.h197 if (atomic_cmpxchg(&ce->pin_count, 1, 2) == 1) {
/linux-master/drivers/firmware/arm_scmi/
H A Dsmc.c104 ret = atomic_cmpxchg(inflight, INFLIGHT_NONE, xfer->hdr.seq);
H A Dbus.c372 atomic_cmpxchg(&scmi_syspower_registered, 0, 1)) {
/linux-master/drivers/gpu/drm/radeon/
H A Dradeon_vce.c538 if (!atomic_cmpxchg(&p->rdev->vce.handles[i], 0, handle)) {
679 atomic_cmpxchg(&p->rdev->vce.handles[i], handle, 0);
/linux-master/drivers/scsi/qla2xxx/
H A Dqla_inline.h122 if (old_val == atomic_cmpxchg(&fcport->shadow_disc_state,
475 old = atomic_cmpxchg((v), c, dec);
/linux-master/drivers/irqchip/
H A Dirq-mvebu-icu.c77 if (atomic_cmpxchg(&msi_data->initialized, false, true))
/linux-master/drivers/platform/chrome/wilco_ec/
H A Dtelemetry.c245 if (atomic_cmpxchg(&dev_data->available, 1, 0) == 0)
H A Devent.c312 if (atomic_cmpxchg(&dev_data->available, 1, 0) == 0)
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Dmxgpu_ai.c262 if (atomic_cmpxchg(&adev->reset_domain->in_gpu_reset, 0, 1) != 0)
H A Dmxgpu_nv.c295 if (atomic_cmpxchg(&adev->reset_domain->in_gpu_reset, 0, 1) != 0)
/linux-master/fs/afs/
H A Dvalidation.c350 atomic_cmpxchg(&volume->cb_v_check, cb_v_check, op->cb_v_break);
/linux-master/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_int_process_v10.c143 old_poison = atomic_cmpxchg(&p->poison, 0, 1);
H A Dkfd_int_process_v9.c154 old_poison = atomic_cmpxchg(&p->poison, 0, 1);
/linux-master/drivers/media/pci/saa7164/
H A Dsaa7164-encoder.c743 if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) {
811 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) {
912 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) {
/linux-master/drivers/md/dm-vdo/
H A Drecovery-journal.c177 prior_state = atomic_cmpxchg(&journal->lock_counter.state,
310 prior_state = atomic_cmpxchg(&counter->state, LOCK_COUNTER_STATE_NOT_NOTIFYING,
1655 prior_state = atomic_cmpxchg(&counter->state, LOCK_COUNTER_STATE_SUSPENDED,
H A Dfunnel-workqueue.c146 if ((atomic_read(&queue->idle) != 1) || (atomic_cmpxchg(&queue->idle, 1, 0) != 1))
/linux-master/drivers/accel/ivpu/
H A Divpu_pm.c162 if (atomic_cmpxchg(&vdev->pm->reset_pending, 0, 1) == 0) {
/linux-master/fs/dlm/
H A Dmidcomms.c418 } while (atomic_cmpxchg(&node->ulp_delivered, oval, nval) != oval);
534 } while (atomic_cmpxchg(&node->seq_next, oval, nval) != oval);

Completed in 235 milliseconds

12345