Home
last modified time | relevance | path

Searched refs:spinlock (Results 1 – 25 of 58) sorted by relevance

123

/netbsd-src/sys/external/bsd/drm2/include/linux/
H A Dspinlock.h45 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 Dlockdep.h42 struct spinlock;
71 : __builtin_types_compatible_p(typeof(*(m)), struct spinlock) ? \
72 &((const struct spinlock *)(m))->sl_lock \
H A Drefcount.h84 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 Dspinlock.h28 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 Ddrm_lock.c104 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 Ddrm_lock.c70 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 Ddrm_legacy_misc.c113 spin_lock_init(&master->lock.spinlock); in drm_master_legacy_init()
H A Ddrm_context.c317 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 Ddrm_bufs.c265 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 Ddrm_internal.h96 extern struct spinlock drm_minor_lock;
/netbsd-src/sys/external/bsd/ena-com/
H A Dena_plat.h209 #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 Dt_spinlock.c111 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 Darmv4cpuid.pl51 add r6,r3,r2 @ &spinlock
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/
H A Darmv4cpuid.pl55 add r6,r3,r2 @ &spinlock
/netbsd-src/sys/external/bsd/acpica/dist/include/platform/
H A Dachaiku.h66 #define ACPI_SPINLOCK spinlock *
/netbsd-src/sys/external/bsd/drm2/dist/include/drm/
H A Ddrm_auth.h70 spinlock_t spinlock; member
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/internal/
H A Dspinlock.d9 module core.internal.spinlock;
/netbsd-src/crypto/external/bsd/openssl.old/lib/libcrypto/arch/arm/
H A Darmv4cpuid.S31 add r6,r3,r2 @ &spinlock
42 str r0,[r6] @ release spinlock
/netbsd-src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/
H A Darmv4cpuid.S32 add r6,r3,r2 @ &spinlock
43 str r0,[r6] @ release spinlock
/netbsd-src/external/bsd/unbound/dist/testcode/
H A Dchecklocks.c307 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 Dchecklocks.h171 pthread_spinlock_t spinlock; member
/netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/dispnv50/
H A Ddisp.h81 struct spinlock lock;
/netbsd-src/sys/external/bsd/drm2/dist/drm/vgem/
H A Dvgem_fence.c39 struct spinlock lock;
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/experimental/allocator/building_blocks/
H A Daligned_block_list.d20 import core.internal.spinlock : SpinLock; in AlignedBlockListImpl()
590 import core.internal.spinlock : SpinLock;
H A Dascending_page_allocator.d445 import core.internal.spinlock : SpinLock;
929 import core.internal.spinlock : SpinLock;
969 import core.internal.spinlock : SpinLock;

123