| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_atomic_msvc.h | 196 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 D | sanitizer_atomic_clang.h | 91 typename T::Type xchg, in atomic_compare_exchange_strong() argument 97 return __atomic_compare_exchange(&a->val_dont_use, cmp, &xchg, false, in atomic_compare_exchange_strong() 103 typename T::Type xchg, in atomic_compare_exchange_weak() argument 105 return atomic_compare_exchange_strong(a, cmp, xchg, mo); in atomic_compare_exchange_weak()
|
| /freebsd/sys/dev/pms/RefTisa/tisa/sassata/sas/tgt/ |
| H A D | ttdglobl.h | 62 #define TD_XCHG_GET_STATE(xchg) (xchg->state) argument 63 #define TD_XCHG_SET_STATE(xchg, val) (xchg->state) = (val) argument
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/slog/ |
| H A D | slog_replay_fs_001.ksh | 198 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/xchg-a bs=1k count=1 199 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/xchg-b bs=1k count=1 200 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/xchg-c bs=1k count=1 201 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/xchg-d bs=1k count=1 203 log_must renameat2 -x /$TESTPOOL/$TESTFS/xchg-{a,b} 204 log_must renameat2 -x /$TESTPOOL/$TESTFS/xchg-{b,c} 205 log_must renameat2 -x /$TESTPOOL/$TESTFS/xchg-{c,a} 207 log_must renameat2 -x /$TESTPOOL/$TESTFS/xchg-{d,d}
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_dense_alloc.h | 133 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()
|
| /freebsd/crypto/openssl/crypto/perlasm/ |
| H A D | x86asm.pl | 60 &xchg(&HB(@_),&LB(@_)); 62 &xchg(&HB(@_),&LB(@_)); 73 sub ::exch { &xchg(@_); }
|
| /freebsd/contrib/llvm-project/openmp/runtime/src/ |
| H A D | z_Windows_NT-586_asm.asm | 257 lock xchg BYTE PTR [ecx], al 278 lock xchg WORD PTR [ecx], ax 299 lock xchg DWORD PTR [ecx], eax 333 lock xchg DWORD PTR [esi], eax 844 lock xchg BYTE PTR [rcx], al 869 lock xchg WORD PTR [rcx], ax 893 lock xchg DWORD PTR [rcx], eax 917 lock xchg QWORD PTR [rcx], rax 1085 lock xchg DWORD PTR [rcx], eax 1112 lock xchg QWORD PTR [rcx], rax
|
| /freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zfs_file_os.c | 53 saved_umask = xchg(¤t->fs->umask, 0); in zfs_file_open() 58 (void) xchg(¤t->fs->umask, saved_umask); in zfs_file_open()
|
| /freebsd/crypto/openssl/crypto/aes/asm/ |
| H A D | vpaes-x86.pl | 764 &xchg ($base,"esp"); # alloca 788 &xchg ($base,"esp"); # alloca 821 &xchg ($base,"esp"); # alloca 840 &xchg ($base,"esp"); # alloca 861 &xchg ($base,"esp"); # alloca
|
| /freebsd/sys/compat/linuxkpi/common/include/asm/ |
| H A D | barrier.h | 42 #define smp_store_mb(x, v) do { (void)xchg(&(x), v); } while (0)
|
| H A D | atomic.h | 222 #define xchg(ptr, new) ({ \ macro
|
| /freebsd/sys/contrib/openzfs/module/os/linux/spl/ |
| H A D | spl-condvar.c | 128 m = xchg(&cvp->cv_mutex, mp); in cv_wait_common() 235 m = xchg(&cvp->cv_mutex, mp); in __cv_timedwait_common() 342 m = xchg(&cvp->cv_mutex, mp); in __cv_timedwait_hires()
|
| /freebsd/crypto/openssl/crypto/bn/asm/ |
| H A D | via-mont.pl | 146 &xchg ("ebp","esp"); # alloca
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstrAsmAlias.td | 735 // xchg: We accept "xchgX <reg>, <mem>" and "xchgX <mem>, <reg>" as synonyms. 736 def : InstAlias<"xchg{b}\t{$mem, $val|$val, $mem}", 738 def : InstAlias<"xchg{w}\t{$mem, $val|$val, $mem}", 740 def : InstAlias<"xchg{l}\t{$mem, $val|$val, $mem}", 742 def : InstAlias<"xchg{q}\t{$mem, $val|$val, $mem}", 745 // xchg: We accept "xchgX <reg>, %eax" and "xchgX %eax, <reg>" as synonyms. 746 def : InstAlias<"xchg{w}\t{%ax, $src|$src, ax}", (XCHG16ar GR16:$src), 0>; 747 def : InstAlias<"xchg{l}\t{%eax, $src|$src, eax}", (XCHG32ar GR32:$src), 0>; 748 def : InstAlias<"xchg{q}\t{%rax, $src|$src, rax}", (XCHG64ar GR64:$src), 0>; 750 // In 64-bit mode, xchg %eax, %eax can't be encoded with the 0x90 opcode we [all …]
|
| H A D | X86InstrMisc.td | 817 // Atomic swap. These are just normal xchg instructions. But since a memory 850 defm XCHG : ATOMIC_SWAP<0x86, 0x87, "xchg", "atomic_swap">; 857 "xchg{b}\t{$src2, $src1|$src1, $src2}", []>; 860 "xchg{w}\t{$src2, $src1|$src1, $src2}", []>, 864 "xchg{l}\t{$src2, $src1|$src1, $src2}", []>, 868 "xchg{q}\t{$src2, $src1|$src1, $src2}", []>; 875 "xchg{w}\t{$src, %ax|ax, $src}", []>, OpSize16; 878 "xchg{l}\t{$src, %eax|eax, $src}", []>, OpSize32; 881 "xchg{q}\t{$src, %rax|rax, $src}", []>;
|
| /freebsd/stand/i386/boot2/ |
| H A D | boot1.S | 318 xchg %ax,%cx # number 340 xchg %bx,%ax # Block count
|
| /freebsd/crypto/openssl/crypto/sha/ |
| H A D | sha512.c | 540 …0] _asm mov eax, [ecx + 4] _asm xchg dh, dl _asm xchg ah, al _asm rol edx, 16 _asm rol eax, 16 _as… in __pull64be()
|
| /freebsd/stand/i386/btx/btx/ |
| H A D | btx.S | 164 xchg %ax,%cx # as word 167 xchg %ax,%dx # P:DPL:type 169 xchg %ax,%bx # set
|
| /freebsd/sys/netinet/ |
| H A D | tcp_subr.c | 1843 #define xchg(a,b,type) { type t; t=a; a=b; b=t; } in tcp_respond() macro 1849 xchg(ip6->ip6_dst, ip6->ip6_src, struct in6_addr); in tcp_respond() 1863 xchg(ip->ip_dst.s_addr, ip->ip_src.s_addr, uint32_t); in tcp_respond() 1874 xchg(nth->th_dport, nth->th_sport, uint16_t); in tcp_respond() 1891 xchg(ip6->ip6_dst, ip6->ip6_src, struct in6_addr); in tcp_respond() 1896 xchg(ip->ip_dst.s_addr, ip->ip_src.s_addr, uint32_t); in tcp_respond() 1908 xchg(nth->th_dport, nth->th_sport, uint16_t); in tcp_respond() 1909 #undef xchg in tcp_respond()
|
| /freebsd/sys/geom/part/ |
| H A D | g_part.c | 2357 uintptr_t *xchg; in g_part_unload_event() local 2363 xchg = arg; in g_part_unload_event() 2365 scheme = (void *)(*xchg); in g_part_unload_event() 2389 *xchg = error; in g_part_unload_event()
|
| /freebsd/contrib/bionic-x86_64-string/ |
| H A D | ssse3-strcmp-slm.S | 133 xchg %ecx, %eax 134 xchg %rsi, %rdi 1877 xchg %rsi, %rdi /* recover original order according to flag(%r8d) */
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyInstrAtomics.td | 324 WebAssemblyBinRMW<I32, "i32.atomic.rmw.xchg", 0x41>; 326 WebAssemblyBinRMW<I64, "i64.atomic.rmw.xchg", 0x42>;
|
| /freebsd/sys/dev/mlx5/mlx5_core/ |
| H A D | mlx5_health.c | 276 if (xchg(&dev->state, MLX5_DEVICE_STATE_INTERNAL_ERROR) == in mlx5_enter_error_state()
|
| /freebsd/lib/libmd/amd64/ |
| H A D | sha1block.S | 1509 xchg %r14, %r15 1710 xchg %r14, %r15
|
| /freebsd/contrib/llvm-project/llvm/lib/AsmParser/ |
| H A D | LLLexer.cpp | 750 KEYWORD(xchg); KEYWORD(nand); KEYWORD(max); KEYWORD(min); KEYWORD(umax); in LexIdentifier()
|