| /netbsd-src/sys/external/bsd/drm2/include/linux/ |
| H A D | atomic.h | 58 struct atomic { struct 67 typedef struct atomic atomic_t; argument 70 atomic_read(const atomic_t *atomic) in atomic_read() argument 73 return atomic->a_u.au_int; in atomic_read() 77 atomic_set(atomic_t *atomic, int value) in atomic_set() argument 80 atomic->a_u.au_int = value; in atomic_set() 84 atomic_set_release(atomic_t *atomic, int value) in atomic_set_release() argument 86 atomic_store_release(&atomic->a_u.au_int, value); in atomic_set_release() 90 atomic_add(int addend, atomic_t *atomic) in atomic_add() argument 93 atomic_add_int(&atomic->a_u.au_uint, addend); in atomic_add() [all …]
|
| H A D | spinlock.h | 221 _atomic_dec_and_lock_irqsave(atomic_t *atomic, spinlock_t *lock, in _atomic_dec_and_lock_irqsave() argument 227 old = atomic_read(atomic); in _atomic_dec_and_lock_irqsave() 231 if (atomic_dec_return(atomic) == 0) in _atomic_dec_and_lock_irqsave() 237 } while (atomic_cmpxchg(atomic, old, new) != old); in _atomic_dec_and_lock_irqsave()
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/std/ |
| H A D | atomic | 25 /** @file include/atomic 57 struct atomic; 59 /// atomic<bool> 62 struct atomic<bool> 70 atomic() noexcept = default; 71 ~atomic() noexcept = default; 72 atomic(const atomic&) = delete; 73 atomic& operator=(const atomic&) = delete; 74 atomic& operator=(const atomic&) volatile = delete; 76 constexpr atomic(bool __i) noexcept : _M_base(__i) { } [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/std/ |
| H A D | atomic | 25 /** @file include/atomic 57 struct atomic; 59 /// atomic<bool> 62 struct atomic<bool> 70 atomic() noexcept = default; 71 ~atomic() noexcept = default; 72 atomic(const atomic&) = delete; 73 atomic& operator=(const atomic&) = delete; 74 atomic& operator=(const atomic&) volatile = delete; 76 constexpr atomic(bool __i) noexcept : _M_base(__i) { } [all …]
|
| /netbsd-src/external/apache2/llvm/dist/libcxx/include/ |
| H A D | atomic | 2 //===--------------------------- atomic -----------------------------------===// 14 atomic synopsis 62 struct atomic 70 atomic() noexcept = default; 71 constexpr atomic(T desr) noexcept; 72 atomic(const atomic&) = delete; 73 atomic& operator=(const atomic&) = delete; 74 atomic& operator=(const atomic&) volatile = delete; 112 struct atomic<integral> 121 atomic() noexcept = default; [all …]
|
| /netbsd-src/common/lib/libc/arch/arm/atomic/ |
| H A D | Makefile.inc | 11 SRCS.atomic+= atomic_add_32_cas.c atomic_add_32_nv_cas.c \ 19 SRCS.atomic+= atomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c \ 37 SRCS.atomic+= atomic_${op}_${sz}.S 40 SRCS.atomic+= atomic_dec_32.S atomic_dec_64.S 41 SRCS.atomic+= atomic_inc_32.S atomic_inc_64.S 42 SRCS.atomic+= atomic_sub_64.S 43 SRCS.atomic+= atomic_swap.S atomic_swap_16.S atomic_swap_64.S 44 SRCS.atomic+= membar_ops.S 47 SRCS.atomic+= sync_fetch_and_${op}_8.S 50 SRCS.atomic+= sync_bool_compare_and_swap_${sz}.S [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/cmake/modules/ |
| H A D | CheckAtomic.cmake | 1 # atomic builtins are required for threading support. 6 # Sometimes linking against libatomic is required for atomic ops, if 13 #include <atomic> 14 std::atomic<int> x; 15 std::atomic<short> y; 16 std::atomic<char> z; 30 #include <atomic> 32 std::atomic<uint64_t> x (0); 43 # Check for (non-64-bit) atomic operations. 51 check_library_exists(atomic __atomic_fetch_add_4 "" HAVE_LIBATOMIC) [all …]
|
| /netbsd-src/common/lib/libc/arch/or1k/atomic/ |
| H A D | Makefile.inc | 5 SRCS.atomic+= atomic_${op}_${sz}.S 8 SRCS.atomic+= atomic_${op}_${sz}_cas.c 11 SRCS.atomic+= atomic_dec_32.S atomic_inc_32.S 12 SRCS.atomic+= membar_ops.S 13 SRCS.atomic+= atomic_cas_by_cas32.c 15 SRCS.atomic+= sync_bool_compare_and_swap_4.S 24 SRCS.atomic+= atomic_init_cas.c 28 SRCS+= ${SRCS.atomic}
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyInstrAtomics.td | 40 "memory.atomic.notify \t$dst, ${off}(${addr})${p2align}, $count", 41 "memory.atomic.notify \t${off}${p2align}", 0x00, "false">; 46 "memory.atomic.notify \t$dst, ${off}(${addr})${p2align}, $count", 47 "memory.atomic.notify \t${off}${p2align}", 0x00, "true">; 54 "memory.atomic.wait32 \t$dst, ${off}(${addr})${p2align}, $exp, $timeout", 55 "memory.atomic.wait32 \t${off}${p2align}", 0x01, "false">; 61 "memory.atomic.wait32 \t$dst, ${off}(${addr})${p2align}, $exp, $timeout", 62 "memory.atomic.wait32 \t${off}${p2align}", 0x01, "true">; 68 "memory.atomic.wait64 \t$dst, ${off}(${addr})${p2align}, $exp, $timeout", 69 "memory.atomic.wait64 \t${off}${p2align}", 0x02, "false">; [all …]
|
| /netbsd-src/common/lib/libc/arch/riscv/atomic/ |
| H A D | Makefile.inc | 13 SRCS.atomic+= atomic_${op}_${sz}.S 16 SRCS.atomic+= atomic_${op}_${sz}_cas.c 19 SRCS.atomic+= membar_ops.S 20 SRCS.atomic+= atomic_cas_by_cas32.c 24 SRCS.atomic+= atomic_init_cas.c \ 31 SRCS.atomic+= atomic_and_16_nv_cas.c atomic_and_8_nv_cas.c 34 SRCS+= ${SRCS.atomic}
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/xray/ |
| H A D | xray_x86_64.cc | 166 reinterpret_cast<std::atomic<uint16_t> *>(Sled.Address), MovR10Seq, in patchFunctionEntry() 170 reinterpret_cast<std::atomic<uint16_t> *>(Sled.Address), Jmp9Seq, in patchFunctionEntry() 211 reinterpret_cast<std::atomic<uint16_t> *>(Sled.Address), MovR10Seq, in patchFunctionExit() 215 reinterpret_cast<std::atomic<uint8_t> *>(Sled.Address), RetOpCode, in patchFunctionExit() 239 reinterpret_cast<std::atomic<uint16_t> *>(Sled.Address), MovR10Seq, in patchFunctionTailExit() 243 reinterpret_cast<std::atomic<uint16_t> *>(Sled.Address), Jmp9Seq, in patchFunctionTailExit() 277 reinterpret_cast<std::atomic<uint16_t> *>(Sled.Address), NopwSeq, in patchCustomEvent() 283 reinterpret_cast<std::atomic<uint16_t> *>(Sled.Address), Jmp15Seq, in patchCustomEvent() 289 reinterpret_cast<std::atomic<uint16_t> *>(Sled.Address), Jmp20Seq, in patchCustomEvent() 318 reinterpret_cast<std::atomic<uint16_t> *>(Sled.Address), NopwSeq, in patchTypedEvent() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/docs/ |
| H A D | Atomics.rst | 14 The atomic instructions are designed specifically to provide readable IR and 17 * The C++11 ``<atomic>`` header. (`C++11 draft available here 28 * Other scenarios with atomic semantics, including ``static`` variables with 36 pair of volatile stores. On the other hand, a non-volatile non-atomic load can 45 .. _Optimization outside atomic: 47 Optimization outside atomic 57 instructions with atomic ordering involved, concurrency does not matter, with 102 various atomic instructions. The exact guarantees provided depend on the 105 ``load atomic`` and ``store atomic`` provide the same basic functionality as 106 non-atomic loads and stores, but provide additional guarantees in situations [all …]
|
| H A D | AMDGPUUsage.rst | 720 *pointer*), allowing normal LLVM load/store/atomic operations to be used to 3400 runtime api uses 64-bit atomic operations to reserve space in the AQL queue 3402 atomic store release to set the packet kind to ensure the packet contents are 3957 of load and atomic with return 3961 store and atomic without 3964 of load, atomic with return 3968 atomic without return in order. 4098 mis-aligned atomic, LDS 4679 ``ds/flat_load/store/atomic`` instructions to local memory are termed LDS 4682 ``buffer/global/flat_load/store/atomic`` instructions to global memory are [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/m4/druntime/ |
| H A D | cpu.m4 | 52 # Check support for atomic builtins up to 64 bit. 56 # for atomic operations for various integral sizes. Note, this is intended 57 # to be an all-or-nothing switch, so all the atomic operations that are 59 AC_MSG_CHECKING([for atomic builtins for byte]) 75 AC_MSG_CHECKING([for atomic builtins for short]) 91 AC_MSG_CHECKING([for atomic builtins for int]) 107 AC_MSG_CHECKING([for atomic builtins for long]) 123 # Have atomic builtin support if all but the long test above passes. 131 # Have 64-bit atomic support if the long test above passes.
|
| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/m4/druntime/ |
| H A D | cpu.m4 | 52 # Check support for atomic builtins up to 64 bit. 56 # for atomic operations for various integral sizes. Note, this is intended 57 # to be an all-or-nothing switch, so all the atomic operations that are 59 AC_MSG_CHECKING([for atomic builtins for byte]) 75 AC_MSG_CHECKING([for atomic builtins for short]) 91 AC_MSG_CHECKING([for atomic builtins for int]) 107 AC_MSG_CHECKING([for atomic builtins for long]) 123 # Have atomic builtin support if all but the long test above passes. 131 # Have 64-bit atomic support if the long test above passes.
|
| /netbsd-src/common/lib/libc/arch/aarch64/atomic/ |
| H A D | Makefile.inc | 8 SRCS.atomic+= atomic_${op}_${sz}.S 11 SRCS.atomic+= atomic_dec_32.S atomic_dec_64.S 12 SRCS.atomic+= atomic_inc_32.S atomic_inc_64.S 13 SRCS.atomic+= membar_ops.S 42 SRCS.atomic+= atomic_init_cas.c 44 SRCS+= ${SRCS.atomic} ${SRCS.gen}
|
| /netbsd-src/sys/external/bsd/drm/dist/bsd-core/ |
| H A D | drm_mm.c | 82 static struct drm_mm_node *drm_mm_kmalloc(struct drm_mm *mm, int atomic) in drm_mm_kmalloc() argument 86 if (atomic) in drm_mm_kmalloc() 131 unsigned long size, int atomic) in drm_mm_create_tail_node() argument 135 child = drm_mm_kmalloc(mm, atomic); in drm_mm_create_tail_node() 150 int drm_mm_add_space_to_tail(struct drm_mm *mm, unsigned long size, int atomic) in drm_mm_add_space_to_tail() argument 159 size, atomic); in drm_mm_add_space_to_tail() 167 int atomic) in drm_mm_split_at_start() argument 171 child = drm_mm_kmalloc(parent->mm, atomic); in drm_mm_split_at_start() 194 int atomic) in drm_mm_get_block_generic() argument 205 drm_mm_split_at_start(node, alignment - tmp, atomic); in drm_mm_get_block_generic() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/ |
| H A D | shared_ptr_atomic.h | 361 struct atomic; in _GLIBCXX_VISIBILITY() 379 friend struct atomic<_Tp>; in _GLIBCXX_VISIBILITY() 613 struct atomic<shared_ptr<_Tp>> in _GLIBCXX_VISIBILITY() 624 constexpr atomic() noexcept = default; in _GLIBCXX_VISIBILITY() 628 constexpr atomic(nullptr_t) noexcept : atomic() { } in _GLIBCXX_VISIBILITY() 630 atomic(shared_ptr<_Tp> __r) noexcept in _GLIBCXX_VISIBILITY() 634 atomic(const atomic&) = delete; in _GLIBCXX_VISIBILITY() 635 void operator=(const atomic&) = delete; in _GLIBCXX_VISIBILITY() 736 struct atomic<weak_ptr<_Tp>> in _GLIBCXX_VISIBILITY() 747 constexpr atomic() noexcept = default; in _GLIBCXX_VISIBILITY() [all …]
|
| /netbsd-src/external/mit/isl/dist/test_inputs/codegen/ |
| H A D | atomic2.in | 1 # Check that isl properly handles atomic domains that are unions. 4 [nn, b0] -> { [a, b, c] -> atomic[2] : c >= 1; [a, 0, c] -> atomic[2] }
|
| /netbsd-src/external/apache2/llvm/dist/llvm/utils/gn/build/libs/atomic/ |
| H A D | BUILD.gn | 2 visibility = [ ":atomic" ] 3 libs = [ "atomic" ] 6 group("atomic") {
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/c6x/ |
| H A D | sync.md | 20 ;; C64X+ has atomic instructions, but they are not atomic on all 153 [(set_attr "type" "atomic")]) 170 [(set_attr "type" "atomic")]) 189 [(set_attr "type" "atomic")]) 209 [(set_attr "type" "atomic")]) 228 [(set_attr "type" "atomic")]) 249 [(set_attr "type" "atomic")]) 270 [(set_attr "type" "atomic")])
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/config/c6x/ |
| H A D | sync.md | 20 ;; C64X+ has atomic instructions, but they are not atomic on all 153 [(set_attr "type" "atomic")]) 170 [(set_attr "type" "atomic")]) 189 [(set_attr "type" "atomic")]) 209 [(set_attr "type" "atomic")]) 228 [(set_attr "type" "atomic")]) 249 [(set_attr "type" "atomic")]) 270 [(set_attr "type" "atomic")])
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Target/GlobalISel/ |
| H A D | SelectionDAGCompat.td | 26 // SelectionDAG has separate nodes for atomic and non-atomic memory operations 160 // G_LOAD handles both atomic and non-atomic loads where as SelectionDAG had 161 // separate nodes for them. This GINodeEquiv maps the non-atomic loads to 162 // G_LOAD with a non-atomic MachineMemOperand. 177 // G_STORE handles both atomic and non-atomic stores where as SelectionDAG had 178 // separate nodes for them. This GINodeEquiv maps the non-atomic stores to 179 // G_STORE with a non-atomic MachineMemOperand.
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/sh/ |
| H A D | t-linux | 3 LIB2ADD = $(srcdir)/config/sh/linux-atomic.c 7 # Silence atomic built-in related warnings in linux-atomic.c.
|
| /netbsd-src/external/gpl3/gcc/dist/libgcc/config/sh/ |
| H A D | t-linux | 3 LIB2ADD = $(srcdir)/config/sh/linux-atomic.c 7 # Silence atomic built-in related warnings in linux-atomic.c.
|