| /netbsd-src/sys/external/bsd/drm2/include/linux/ |
| H A D | spinlock.h | 45 typedef struct spinlock { struct 50 spin_is_locked(spinlock_t *spinlock) in spin_is_locked() argument 52 return mutex_owned(&spinlock->sl_lock); in spin_is_locked() 56 spin_lock(spinlock_t *spinlock) in spin_lock() argument 58 mutex_enter(&spinlock->sl_lock); in spin_lock() 62 spin_unlock(spinlock_t *spinlock) in spin_unlock() argument 64 mutex_exit(&spinlock->sl_lock); in spin_unlock() 68 spin_lock_bh(spinlock_t *spinlock) in spin_lock_bh() argument 70 spin_lock(spinlock); in spin_lock_bh() 74 spin_unlock_bh(spinlock_t *spinlock) in spin_unlock_bh() argument [all …]
|
| H A D | lockdep.h | 42 struct spinlock; 71 : __builtin_types_compatible_p(typeof(*(m)), struct spinlock) ? \ 72 &((const struct spinlock *)(m))->sl_lock \
|
| H A D | refcount.h | 84 refcount_dec_and_lock_irqsave(struct refcount *rc, struct spinlock *lock, in refcount_dec_and_lock_irqsave()
|
| /netbsd-src/external/mit/libuv/dist/src/unix/ |
| H A D | spinlock.h | 28 UV_UNUSED(static void uv_spinlock_init(uv_spinlock_t* spinlock)); 29 UV_UNUSED(static void uv_spinlock_lock(uv_spinlock_t* spinlock)); 30 UV_UNUSED(static void uv_spinlock_unlock(uv_spinlock_t* spinlock)); 31 UV_UNUSED(static int uv_spinlock_trylock(uv_spinlock_t* spinlock)); 33 UV_UNUSED(static void uv_spinlock_init(uv_spinlock_t* spinlock)) { in UV_UNUSED() argument 34 ACCESS_ONCE(int, spinlock->lock) = 0; in UV_UNUSED() 37 UV_UNUSED(static void uv_spinlock_lock(uv_spinlock_t* spinlock)) { in UV_UNUSED() argument 38 while (!uv_spinlock_trylock(spinlock)) cpu_relax(); in UV_UNUSED() 41 UV_UNUSED(static void uv_spinlock_unlock(uv_spinlock_t* spinlock)) { in UV_UNUSED() argument 42 ACCESS_ONCE(int, spinlock->lock) = 0; in UV_UNUSED() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/drm/ |
| H A D | drm_lock.c | 104 spin_lock(&master->lock.spinlock); in drm_legacy_lock() 113 &master->lock.spinlock, in drm_legacy_lock() 159 out1: spin_unlock(&master->lock.spinlock); in drm_legacy_lock() 186 spin_lock(&master->lock.spinlock); in drm_legacy_unlock() 219 out1: spin_unlock(&master->lock.spinlock); in drm_legacy_unlock() 236 spin_lock(&master->lock.spinlock); in drm_legacy_lock_master_cleanup() 243 &master->lock.spinlock); in drm_legacy_lock_master_cleanup() 245 spin_unlock(&master->lock.spinlock); in drm_legacy_lock_master_cleanup() 258 spin_lock(&lock_data->spinlock); in drm_legacy_idlelock_take() 272 spin_unlock(&lock_data->spinlock); in drm_legacy_idlelock_take() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/ |
| H A D | drm_lock.c | 70 spin_lock_bh(&lock_data->spinlock); in drm_lock_take() 82 spin_unlock_bh(&lock_data->spinlock); in drm_lock_take() 134 spin_lock_bh(&lock_data->spinlock); in drm_legacy_lock_free() 138 spin_unlock_bh(&lock_data->spinlock); in drm_legacy_lock_free() 141 spin_unlock_bh(&lock_data->spinlock); in drm_legacy_lock_free() 194 spin_lock_bh(&master->lock.spinlock); in drm_legacy_lock() 196 spin_unlock_bh(&master->lock.spinlock); in drm_legacy_lock() 221 spin_lock_bh(&master->lock.spinlock); in drm_legacy_lock() 223 spin_unlock_bh(&master->lock.spinlock); in drm_legacy_lock() 300 spin_lock_bh(&lock_data->spinlock); in drm_legacy_idlelock_take() [all …]
|
| H A D | drm_legacy_misc.c | 113 spin_lock_init(&master->lock.spinlock); in drm_master_legacy_init()
|
| H A D | drm_context.c | 317 spin_lock(&file_priv->master->lock.spinlock); in drm_context_switch_complete() 322 spin_unlock(&file_priv->master->lock.spinlock); in drm_context_switch_complete()
|
| H A D | drm_bufs.c | 265 spin_lock(&dev->master->lock.spinlock); in drm_addmap_core() 267 spin_unlock(&dev->master->lock.spinlock); in drm_addmap_core() 272 spin_unlock(&dev->master->lock.spinlock); in drm_addmap_core() 578 spin_lock(&master->lock.spinlock); in drm_legacy_rmmap_locked() 600 &master->lock.spinlock); in drm_legacy_rmmap_locked() 604 spin_unlock(&master->lock.spinlock); in drm_legacy_rmmap_locked()
|
| H A D | drm_internal.h | 96 extern struct spinlock drm_minor_lock;
|
| /netbsd-src/sys/external/bsd/ena-com/ |
| H A D | ena_plat.h | 209 #define ENA_SPINLOCK_INIT(spinlock) \ argument 210 mutex_init(&(spinlock), MUTEX_DEFAULT, IPL_NET) 211 #define ENA_SPINLOCK_DESTROY(spinlock) \ argument 213 mutex_destroy(&(spinlock)); \ 215 #define ENA_SPINLOCK_LOCK(spinlock, flags) \ argument 218 mutex_enter(&(spinlock)); \ 220 #define ENA_SPINLOCK_UNLOCK(spinlock, flags) \ argument 223 mutex_exit(&(spinlock)); \
|
| /netbsd-src/tests/lib/libc/membar/ |
| H A D | t_spinlock.c | 111 ATF_TC(spinlock); 112 ATF_TC_HEAD(spinlock, tc) in ATF_TC_HEAD() argument 117 ATF_TC_BODY(spinlock, tc) in ATF_TC_BODY() argument 156 ATF_TP_ADD_TC(tp, spinlock); in ATF_TP_ADD_TCS()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/ |
| H A D | armv4cpuid.pl | 51 add r6,r3,r2 @ &spinlock
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/ |
| H A D | armv4cpuid.pl | 55 add r6,r3,r2 @ &spinlock
|
| /netbsd-src/sys/external/bsd/acpica/dist/include/platform/ |
| H A D | achaiku.h | 66 #define ACPI_SPINLOCK spinlock *
|
| /netbsd-src/sys/external/bsd/drm2/dist/include/drm/ |
| H A D | drm_auth.h | 70 spinlock_t spinlock; member
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/internal/ |
| H A D | spinlock.d | 9 module core.internal.spinlock;
|
| /netbsd-src/crypto/external/bsd/openssl.old/lib/libcrypto/arch/arm/ |
| H A D | armv4cpuid.S | 31 add r6,r3,r2 @ &spinlock 42 str r0,[r6] @ release spinlock
|
| /netbsd-src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ |
| H A D | armv4cpuid.S | 32 add r6,r3,r2 @ &spinlock 43 str r0,[r6] @ release spinlock
|
| /netbsd-src/external/bsd/unbound/dist/testcode/ |
| H A D | checklocks.c | 307 LOCKRET(pthread_spin_init(&e->u.spinlock, PTHREAD_PROCESS_PRIVATE)); in checklock_init() 387 LOCKRET(pthread_spin_destroy(&e->u.spinlock)); in checklock_destroy() 577 (void*)&lock->u.spinlock, 1, 0); in checklock_lock() 644 LOCKRET(pthread_spin_unlock(&lock->u.spinlock)); in checklock_unlock()
|
| H A D | checklocks.h | 171 pthread_spinlock_t spinlock; member
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/dispnv50/ |
| H A D | disp.h | 81 struct spinlock lock;
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/vgem/ |
| H A D | vgem_fence.c | 39 struct spinlock lock;
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/experimental/allocator/building_blocks/ |
| H A D | aligned_block_list.d | 20 import core.internal.spinlock : SpinLock; in AlignedBlockListImpl() 590 import core.internal.spinlock : SpinLock;
|
| H A D | ascending_page_allocator.d | 445 import core.internal.spinlock : SpinLock; 929 import core.internal.spinlock : SpinLock; 969 import core.internal.spinlock : SpinLock;
|