Home
last modified time | relevance | path

Searched refs:xchg (Results 1 – 25 of 43) sorted by relevance

12

/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_atomic_msvc.h196 uptr xchg, in atomic_compare_exchange_strong() argument
200 (void*volatile*)&a->val_dont_use, (void*)xchg, (void*)cmpv); in atomic_compare_exchange_strong()
209 u16 xchg, in atomic_compare_exchange_strong() argument
213 (volatile short*)&a->val_dont_use, (short)xchg, (short)cmpv); in atomic_compare_exchange_strong()
222 u32 xchg, in atomic_compare_exchange_strong() argument
226 (volatile long*)&a->val_dont_use, (long)xchg, (long)cmpv); in atomic_compare_exchange_strong()
235 u64 xchg, in atomic_compare_exchange_strong() argument
239 (volatile long long*)&a->val_dont_use, (long long)xchg, (long long)cmpv); in atomic_compare_exchange_strong()
249 typename T::Type xchg, in atomic_compare_exchange_weak() argument
251 return atomic_compare_exchange_strong(a, cmp, xchg, mo); in atomic_compare_exchange_weak()
H A Dsanitizer_atomic_clang.h75 typename T::Type xchg, in atomic_compare_exchange_strong() argument
81 return __atomic_compare_exchange(&a->val_dont_use, cmp, &xchg, false, in atomic_compare_exchange_strong()
88 typename T::Type xchg, in atomic_compare_exchange_weak() argument
90 return atomic_compare_exchange_strong(a, cmp, xchg, mo); in atomic_compare_exchange_weak()
H A Dsanitizer_atomic_clang_mips.h67 atomic_uint64_t::Type xchg, in atomic_compare_exchange_strong() argument
82 ptr->val_dont_use = xchg; in atomic_compare_exchange_strong()
/openbsd/gnu/llvm/compiler-rt/lib/tsan/rtl/
H A Dtsan_dense_alloc.h133 u64 xchg; in Refill() local
140 xchg = ptr->next | (cmp & kCounterMask); in Refill()
141 } while (!atomic_compare_exchange_weak(&freelist_, &cmp, xchg, in Refill()
161 u64 xchg; in Drain() local
165 xchg = head_idx | (cmp & kCounterMask) + kCounterInc; in Drain()
166 } while (!atomic_compare_exchange_weak(&freelist_, &cmp, xchg, in Drain()
/openbsd/lib/libcrypto/perlasm/
H A Dx86asm.pl60 &xchg(&HB(@_),&LB(@_));
62 &xchg(&HB(@_),&LB(@_));
73 sub ::exch { &xchg(@_); }
/openbsd/gnu/gcc/gcc/config/i386/
H A Dsync.md104 ;; operand 4. This breaks, as the xchg will move the PIC register contents
122 "xchg{l}\t%%ebx, %3\;lock\;cmpxchg8b\t%1\;xchg{l}\t%%ebx, %3")
220 "xchg{l}\t%%ebx, %3\;lock\;cmpxchg8b\t%1\;xchg{l}\t%%ebx, %3")
233 ;; Recall that xchg implicitly sets LOCK#, so adding it again wastes space.
241 "xchg{<modesuffix>}\t{%1, %0|%0, %1}")
/openbsd/lib/libcrypto/aes/asm/
H A Dvpaes-x86.pl753 &xchg ($base,"esp"); # alloca
779 &xchg ($base,"esp"); # alloca
816 &xchg ($base,"esp"); # alloca
837 &xchg ($base,"esp"); # alloca
858 &xchg ($base,"esp"); # alloca
/openbsd/sys/dev/pci/drm/i915/
H A Dintel_wakeref.c34 wakeref = xchg(&wf->wakeref, 0); in __intel_wakeref_get_first()
64 wakeref = xchg(&wf->wakeref, 0); in ____intel_wakeref_put_last()
H A Di915_sw_fence.c433 fence = xchg(&cb->base.fence, NULL); in timer_i915_sw_fence_wake()
454 fence = xchg(&cb->base.fence, NULL); in dma_i915_sw_fence_wake_timer()
/openbsd/sys/dev/pci/drm/i915/gt/
H A Dintel_gt_requests.c64 struct intel_timeline *tl = xchg(&engine->retire, NULL); in engine_retire()
67 struct intel_timeline *next = xchg(&tl->retire, NULL); in engine_retire()
H A Dintel_engine_heartbeat.c214 if (xchg(&engine->heartbeat.blocked, serial) == serial) in heartbeat()
301 old = xchg(&engine->props.heartbeat_interval_ms, delay); in set_heartbeat()
H A Dintel_gt_buffer_pool.c64 if (!xchg(&node->age, 0)) in pool_free_older_than()
H A Dintel_ggtt_fencing.c232 old = xchg(&fence->vma, NULL); in fence_update()
H A Dselftest_hangcheck.c1857 error = xchg(&global->first_error, (void *)-1); in igt_handle_error()
1861 xchg(&global->first_error, error); in igt_handle_error()
/openbsd/sys/dev/pci/drm/include/linux/
H A Datomic.h90 #define xchg(v, n) __sync_lock_test_and_set(v, n) macro
409 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
419 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
/openbsd/sys/netinet/
H A Dtcp_subr.c326 #define xchg(a,b,type) do { type t; t=a; a=b; b=t; } while (0) in tcp_respond() macro
336 xchg(ip6->ip6_dst, ip6->ip6_src, struct in6_addr); in tcp_respond()
349 xchg(ip->ip_dst.s_addr, ip->ip_src.s_addr, u_int32_t); in tcp_respond()
356 xchg(th->th_dport, th->th_sport, u_int16_t); in tcp_respond()
359 #undef xchg in tcp_respond()
/openbsd/gnu/gcc/gcc/
H A Dgthr-win32.h379 __gthr_i486_lock_cmp_xchg(long *dest, long xchg, long comperand) in __gthr_i486_lock_cmp_xchg() argument
386 : "0" (comperand), "m" (*dest), "r" (xchg) in __gthr_i486_lock_cmp_xchg()
/openbsd/sys/arch/amd64/stand/libsa/
H A Drun_amd64.S34 xchg %bx, %bx
/openbsd/gnu/gcc/gcc/config/ia64/
H A Dsync.md169 "xchg<modesuffix> %0 = %1, %2"
/openbsd/sys/dev/pci/drm/i915/selftests/
H A Di915_active.c320 fence = xchg(__active_fence_slot(active), NULL); in active_flush()
/openbsd/gnu/llvm/llvm/lib/Target/X86/
H A DX86InstrInfo.td2144 "xchg{w}\t{$src2, $src1|$src1, $src2}", []>,
2148 "xchg{l}\t{$src2, $src1|$src1, $src2}", []>,
2159 "xchg{w}\t{$src, %ax|ax, $src}", []>, OpSize16;
2162 "xchg{l}\t{$src, %eax|eax, $src}", []>, OpSize32;
2165 "xchg{q}\t{$src, %rax|rax, $src}", []>;
3769 def : InstAlias<"xchg{b}\t{$mem, $val|$val, $mem}",
3771 def : InstAlias<"xchg{w}\t{$mem, $val|$val, $mem}",
3773 def : InstAlias<"xchg{l}\t{$mem, $val|$val, $mem}",
3775 def : InstAlias<"xchg{q}\t{$mem, $val|$val, $mem}",
3786 def : InstAlias<"xchg{l}\t{%eax, %eax|eax, eax}",
[all …]
/openbsd/gnu/usr.bin/binutils/opcodes/
H A Dia64-ic.tbl62 mem-readers-int; IC:cmpxchg, IC:fetchadd, IC:xchg, IC:ld
66 mem-writers-int; IC:cmpxchg, IC:fetchadd, IC:xchg, IC:st
220 … sub, sum, IC:sxt, sync, tak, tbit, thash, tnat, tpa, ttag, IC:unpack, IC:xchg, xma, xmpy, xor, IC…
249 xchg; xchg1, xchg2, xchg4, xchg8
/openbsd/gnu/usr.bin/binutils-2.17/opcodes/
H A Dia64-ic.tbl62 mem-readers-int; IC:cmpxchg, IC:fetchadd, IC:xchg, IC:ld
66 mem-writers-int; IC:cmpxchg, IC:fetchadd, IC:xchg, IC:st
223 …, sum, IC:sxt, sync, tak, tbit, tf, thash, tnat, tpa, ttag, IC:unpack, IC:xchg, xma, xmpy, xor, IC…
252 xchg; xchg1, xchg2, xchg4, xchg8
/openbsd/gnu/llvm/llvm/utils/vim/syntax/
H A Dllvm.vim37 syn keyword llvmStatement urem va_arg xchg xor zext
/openbsd/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyInstrAtomics.td323 WebAssemblyBinRMW<I32, "i32.atomic.rmw.xchg", 0x41>;
325 WebAssemblyBinRMW<I64, "i64.atomic.rmw.xchg", 0x42>;

12