Searched refs:atomic_cmpxchg (Results 51 - 75 of 118) sorted by relevance

12345

/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_uvd.c858 if (!atomic_cmpxchg(&adev->uvd.handles[i], 0, handle)) {
891 atomic_cmpxchg(&adev->uvd.handles[i], handle, 0);
H A Damdgpu_fence.c282 } while (atomic_cmpxchg(&drv->last_seq, last_seq, seq) != last_seq);
H A Damdgpu_vce.c717 if (!atomic_cmpxchg(&p->adev->vce.handles[i], 0, handle)) {
/linux-master/drivers/gpu/drm/radeon/
H A Dradeon_uvd.c513 if (!atomic_cmpxchg(&p->rdev->uvd.handles[i], 0, handle)) {
549 atomic_cmpxchg(&p->rdev->uvd.handles[i], handle, 0);
/linux-master/net/tipc/
H A Dcrypto.c479 } while (atomic_cmpxchg(&tmp->users, cur, val) != cur);
1407 !atomic_cmpxchg(&rx->key_distr, 0, KEY_DISTR_SCHED)) {
1424 atomic_cmpxchg(&rx->peer_rx_active, cur, new) == cur) {
2357 if (atomic_cmpxchg(&rx->key_distr,
2371 atomic_cmpxchg(&rx->key_distr, KEY_DISTR_COMPL, 0);
/linux-master/drivers/accel/habanalabs/common/
H A Ddevice.c2631 if (atomic_cmpxchg(&hdev->captured_err_info.razwi_info.razwi_detected, 0, 1))
2720 if (atomic_cmpxchg(&pgf_info->page_fault_detected, 0, 1))
2745 if (atomic_cmpxchg(&info->event_detected, 0, 1))
2767 if (atomic_cmpxchg(&info->event_detected, 0, 1))
2791 if (atomic_cmpxchg(&info->event_detected, 0, 1))
H A Dcommand_buffer.c316 rc = atomic_cmpxchg(&cb->is_handle_destroyed, 0, 1);
/linux-master/drivers/md/bcache/
H A Dalloc.c100 } while (atomic_cmpxchg(&c->rescale, r, r + next) != r);
/linux-master/drivers/infiniband/core/
H A Drdma_core.c81 return atomic_cmpxchg(&uobj->usecnt, 0, -1) == 0 ? 0 : -EBUSY;
/linux-master/kernel/
H A Djump_label.c234 if (atomic_cmpxchg(&key->enabled, 1, 0))
/linux-master/drivers/net/ethernet/google/gve/
H A Dgve_tx_dqo.c88 if (atomic_cmpxchg(&tx->dqo_compl.free_tx_qpl_buf_head,
153 if (atomic_cmpxchg(&tx->dqo_compl.free_pending_packets,
/linux-master/drivers/thermal/
H A Dthermal_core.c959 if (atomic_cmpxchg(&pos->need_update, 1, 0))
1398 if (atomic_cmpxchg(&tz->need_update, 1, 0))
/linux-master/drivers/hwtracing/intel_th/
H A Dmsu.c1333 if (WARN_ON_ONCE(atomic_cmpxchg(&msc->user_count, -1, 0) != -1))
1355 count = atomic_cmpxchg(&msc->user_count, 0, -1);
/linux-master/drivers/md/dm-vdo/
H A Ddata-vio.c350 actual = atomic_cmpxchg(&data_vio->compression.status, expected, replacement);
662 if (atomic_cmpxchg(&pool->processing, false, true))
H A Ddedupe.c334 return (atomic_cmpxchg(&context->state, old, new) == old);
339 return (atomic_cmpxchg(&zone->timer_state, old, new) == old);
H A Ddm-vdo-target.c1074 if (atomic_cmpxchg(&vdo->processing_message, 0, 1) != 0)
1212 if (atomic_cmpxchg(&admin->busy, 0, 1) != 0) {
/linux-master/drivers/vhost/
H A Dvdpa.c1405 opened = atomic_cmpxchg(&v->opened, 0, 1);
1630 opened = atomic_cmpxchg(&v->opened, 0, 1);
/linux-master/drivers/s390/cio/
H A Ddevice.c500 if (atomic_cmpxchg(&cdev->private->onoff, 0, 1) != 0)
1330 (atomic_cmpxchg(&cdev->private->onoff, 0, 1) == 0)) {
/linux-master/net/rds/
H A Dib_send.c353 * and using atomic_cmpxchg when updating the two counters.
401 if (atomic_cmpxchg(&ic->i_credits, oldval, newval) != oldval)
H A Drds.h797 return atomic_cmpxchg(&cp->cp_state, old, new) == old;
/linux-master/drivers/media/rc/
H A Dredrat3.c858 if (brightness != LED_OFF && atomic_cmpxchg(&rr3->flash, 0, 1) == 0) {
/linux-master/drivers/staging/media/omap4iss/
H A Diss.c682 if (atomic_cmpxchg(stopping, 1, 0)) {
/linux-master/drivers/char/ipmi/
H A Dipmi_watchdog.c637 } else if (atomic_cmpxchg(&pretimeout_since_last_heartbeat, 1, 0)) {
/linux-master/drivers/net/wireless/mediatek/mt76/
H A Dtx.c236 atomic_cmpxchg(&wcid->non_aql_packets, pending, 0);
/linux-master/fs/hfsplus/
H A Dxattr.c140 if (old_state != atomic_cmpxchg(&sbi->attr_tree_state,

Completed in 256 milliseconds

12345