Home
last modified time | relevance | path

Searched refs:atomic_cmpxchg (Results 1 – 25 of 163) sorted by relevance

1234567

/OK3568_Linux_fs/external/security/librkcrypto/third_party/libdrm/include/
H A Dxf86atomic.h52 # define atomic_cmpxchg(x, oldv, newv) __sync_val_compare_and_swap (&(x)->atomic, oldv, newv) macro
73 # define atomic_cmpxchg(x, oldv, newv) AO_compare_and_swap_full(&(x)->atomic, oldv, newv) macro
97 # define atomic_cmpxchg(x, oldv, newv) atomic_cas_uint (&(x)->atomic, oldv, newv) macro
109 while (c != unless && (old = atomic_cmpxchg(v, c, c + add)) != c) in atomic_add_unless()
/OK3568_Linux_fs/kernel/tools/include/linux/
H A Datomic.h9 #define atomic_cmpxchg_relaxed atomic_cmpxchg
10 #define atomic_cmpxchg_release atomic_cmpxchg
/OK3568_Linux_fs/kernel/drivers/net/ethernet/aquantia/atlantic/
H A Daq_utils.h21 } while (atomic_cmpxchg(flags, flags_old, flags_new) != flags_old); in aq_utils_obj_set()
31 } while (atomic_cmpxchg(flags, flags_old, flags_new) != flags_old); in aq_utils_obj_clear()
/OK3568_Linux_fs/kernel/arch/sh/kernel/
H A Dftrace.c110 old = atomic_cmpxchg(&nmi_running, old, new); in clear_mod_flag()
149 if (!atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG)) in wait_for_nmi_and_set_mod_flag()
154 } while (atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG)); in wait_for_nmi_and_set_mod_flag()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/backend/gpu/
H A Dmali_kbase_model_linux.c47 while (atomic_cmpxchg(&kbdev->serving_job_irq, 1, 0) == 1) { in serve_job_irq()
75 while (atomic_cmpxchg(&kbdev->serving_gpu_irq, 1, 0) == 1) { in serve_gpu_irq()
95 if (atomic_cmpxchg(&kbdev->serving_mmu_irq, 1, 0) == 1) { in serve_mmu_irq()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/
H A Dmali_kbase_trace_timeline.c187 if (old_uid != atomic_cmpxchg(&kbdev->timeline.pm_event_uid[event_sent], old_uid, uid)) in kbase_timeline_pm_send_event()
199 if (uid != atomic_cmpxchg(&kbdev->timeline.pm_event_uid[event], uid, 0)) in kbase_timeline_pm_check_handle_event()
211 if (uid != atomic_cmpxchg(&kbdev->timeline.pm_event_uid[event], uid, 0)) in kbase_timeline_pm_handle_event()
H A Dmali_kbase_context.h68 } while (atomic_cmpxchg(&kctx->flags, old, new) != old); in kbase_ctx_flag_clear()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/csf/
H A Dmali_kbase_csf_firmware_log.c125 if (atomic_cmpxchg(&fw_log->busy, 0, 1) != 0) in kbasep_csf_firmware_log_debugfs_read()
168 if (atomic_cmpxchg(&fw_log->busy, 0, 1) != 0) in kbase_csf_firmware_log_mode_write()
275 if (atomic_cmpxchg(&fw_log->busy, 0, 1) != 0) in kbase_csf_firmware_log_dump_buffer()
405 if (atomic_cmpxchg(&fw_log->busy, 0, 1) != 0) in kbase_csf_firmware_log_toggle_logging_calls()
/OK3568_Linux_fs/kernel/arch/m68k/include/asm/
H A Datomic.h163 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro
168 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
/OK3568_Linux_fs/kernel/drivers/md/bcache/
H A Dio.c104 count = atomic_cmpxchg(&ca->io_count, old, new); in bch_count_io_errors()
113 errors = atomic_cmpxchg(&ca->io_errors, in bch_count_io_errors()
/OK3568_Linux_fs/kernel/arch/sparc/lib/
H A Datomic32.c83 int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
96 EXPORT_SYMBOL(atomic_cmpxchg);
/OK3568_Linux_fs/kernel/kernel/printk/
H A Dprintk_safe.c106 if (atomic_cmpxchg(&s->len, len, len + add) != len) in printk_safe_log_store()
230 if (atomic_cmpxchg(&s->len, len, 0) != len) in __printk_safe_flush()
/OK3568_Linux_fs/kernel/arch/sh/include/asm/
H A Datomic.h34 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
/OK3568_Linux_fs/kernel/tools/testing/selftests/futex/include/
H A Datomic.h36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
/OK3568_Linux_fs/kernel/tools/arch/x86/include/asm/
H A Datomic.h68 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
/OK3568_Linux_fs/kernel/include/linux/
H A Dblk-cgroup.h557 int cur = atomic_cmpxchg(&blkg->use_delay, old, old - 1); in blkcg_unuse_delay()
584 if (!old && atomic_cmpxchg(&blkg->use_delay, old, -1) == old) in blkcg_set_delay()
601 if (old && atomic_cmpxchg(&blkg->use_delay, old, 0) == old) in blkcg_clear_delay()
H A Datomic-fallback.h953 #define arch_atomic_cmpxchg atomic_cmpxchg
959 #define atomic_cmpxchg_acquire atomic_cmpxchg
960 #define atomic_cmpxchg_release atomic_cmpxchg
961 #define atomic_cmpxchg_relaxed atomic_cmpxchg
985 #ifndef atomic_cmpxchg
987 atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
995 #define atomic_cmpxchg atomic_cmpxchg macro
1017 r = atomic_cmpxchg(v, o, new); in atomic_try_cmpxchg()
/OK3568_Linux_fs/kernel/tools/include/asm-generic/
H A Datomic-gcc.h67 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() function
/OK3568_Linux_fs/kernel/drivers/firewire/
H A Dcore-device.c802 if (atomic_cmpxchg(&device->state, in fw_device_shutdown()
891 atomic_cmpxchg(&old->state, in lookup_existing_device()
1065 if (atomic_cmpxchg(&device->state, in fw_device_init()
1142 if (atomic_cmpxchg(&device->state, in fw_device_refresh()
1168 if (atomic_cmpxchg(&device->state, in fw_device_refresh()
1266 if (atomic_cmpxchg(&device->state, in fw_node_event()
/OK3568_Linux_fs/kernel/drivers/s390/cio/
H A Dccwgroup.c82 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_online()
111 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_offline()
191 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_ungroup_store()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/tl/
H A Dmali_kbase_timeline.c80 if (af_cnt != atomic_cmpxchg( in kbasep_timeline_autoflush_timer_callback()
198 if (atomic_cmpxchg(timeline->timeline_flags, 0, timeline_flags)) in kbase_timeline_acquire()
/OK3568_Linux_fs/kernel/arch/sparc/include/asm/
H A Datomic_32.h26 int atomic_cmpxchg(atomic_t *, int, int);
/OK3568_Linux_fs/kernel/kernel/
H A Dsmpboot.c448 if (atomic_cmpxchg(&per_cpu(cpu_hotplug_state, cpu), in cpu_wait_death()
477 } while (atomic_cmpxchg(&per_cpu(cpu_hotplug_state, cpu), in cpu_report_death()
/OK3568_Linux_fs/kernel/arch/x86/include/asm/
H A Dqspinlock.h101 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0); in virt_spin_lock()
/OK3568_Linux_fs/kernel/drivers/gpu/host1x/
H A Dintr.c250 while (atomic_cmpxchg(&waiter->state, WLS_PENDING, WLS_CANCELLED) == in host1x_intr_put_ref()
319 if (atomic_cmpxchg(&waiter->state, in host1x_intr_stop()

1234567