| /OK3568_Linux_fs/external/security/librkcrypto/third_party/libdrm/include/ |
| H A D | xf86atomic.h | 52 # 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 D | atomic.h | 9 #define atomic_cmpxchg_relaxed atomic_cmpxchg 10 #define atomic_cmpxchg_release atomic_cmpxchg
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/aquantia/atlantic/ |
| H A D | aq_utils.h | 21 } 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 D | ftrace.c | 110 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 D | mali_kbase_model_linux.c | 47 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 D | mali_kbase_trace_timeline.c | 187 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 D | mali_kbase_context.h | 68 } while (atomic_cmpxchg(&kctx->flags, old, new) != old); in kbase_ctx_flag_clear()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/csf/ |
| H A D | mali_kbase_csf_firmware_log.c | 125 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 D | atomic.h | 163 #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 D | io.c | 104 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 D | atomic32.c | 83 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 D | printk_safe.c | 106 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 D | atomic.h | 34 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/futex/include/ |
| H A D | atomic.h | 36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
|
| /OK3568_Linux_fs/kernel/tools/arch/x86/include/asm/ |
| H A D | atomic.h | 68 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 D | blk-cgroup.h | 557 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 D | atomic-fallback.h | 953 #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 D | atomic-gcc.h | 67 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() function
|
| /OK3568_Linux_fs/kernel/drivers/firewire/ |
| H A D | core-device.c | 802 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 D | ccwgroup.c | 82 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 D | mali_kbase_timeline.c | 80 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 D | atomic_32.h | 26 int atomic_cmpxchg(atomic_t *, int, int);
|
| /OK3568_Linux_fs/kernel/kernel/ |
| H A D | smpboot.c | 448 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 D | qspinlock.h | 101 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0); in virt_spin_lock()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/host1x/ |
| H A D | intr.c | 250 while (atomic_cmpxchg(&waiter->state, WLS_PENDING, WLS_CANCELLED) == in host1x_intr_put_ref() 319 if (atomic_cmpxchg(&waiter->state, in host1x_intr_stop()
|