Home
last modified time | relevance | path

Searched defs:lock (Results 1 – 25 of 40) sorted by relevance

12

/tools/virtio/linux/
Dspinlock.h8 static inline void spin_lock_init(spinlock_t *lock) in spin_lock_init()
14 static inline void spin_lock(spinlock_t *lock) in spin_lock()
20 static inline void spin_unlock(spinlock_t *lock) in spin_unlock()
26 static inline void spin_lock_bh(spinlock_t *lock) in spin_lock_bh()
31 static inline void spin_unlock_bh(spinlock_t *lock) in spin_unlock_bh()
36 static inline void spin_lock_irq(spinlock_t *lock) in spin_lock_irq()
41 static inline void spin_unlock_irq(spinlock_t *lock) in spin_unlock_irq()
46 static inline void spin_lock_irqsave(spinlock_t *lock, unsigned long f) in spin_lock_irqsave()
51 static inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long f) in spin_unlock_irqrestore()
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/
Dlocks.h26 static inline void lock_impl_lock(struct lock_impl *lock) in lock_impl_lock()
31 static inline void lock_impl_unlock(struct lock_impl *lock) in lock_impl_unlock()
36 static inline bool lock_impl_trylock(struct lock_impl *lock) in lock_impl_trylock()
47 static inline void lock_impl_init(struct lock_impl *lock) in lock_impl_init()
61 static inline bool lock_impl_trylock(struct lock_impl *lock) in lock_impl_trylock()
79 static inline void lock_impl_lock(struct lock_impl *lock) in lock_impl_lock()
93 static inline void lock_impl_unlock(struct lock_impl *lock) in lock_impl_unlock()
110 static inline void lock_impl_init(struct lock_impl *lock) in lock_impl_init()
131 static inline void spin_lock_init(spinlock_t *lock) in spin_lock_init()
136 static inline void spin_lock(spinlock_t *lock) in spin_lock()
[all …]
/tools/lib/lockdep/include/liblockdep/
Drwlock.h21 static inline int __rwlock_init(liblockdep_pthread_rwlock_t *lock, in __rwlock_init()
31 #define liblockdep_pthread_rwlock_init(lock, attr) \ argument
38 static inline int liblockdep_pthread_rwlock_rdlock(liblockdep_pthread_rwlock_t *lock) in liblockdep_pthread_rwlock_rdlock()
45 static inline int liblockdep_pthread_rwlock_unlock(liblockdep_pthread_rwlock_t *lock) in liblockdep_pthread_rwlock_unlock()
51 static inline int liblockdep_pthread_rwlock_wrlock(liblockdep_pthread_rwlock_t *lock) in liblockdep_pthread_rwlock_wrlock()
57 static inline int liblockdep_pthread_rwlock_tryrdlock(liblockdep_pthread_rwlock_t *lock) in liblockdep_pthread_rwlock_tryrdlock()
63 static inline int liblockdep_pthread_rwlock_trywrlock(liblockdep_pthread_rwlock_t *lock) in liblockdep_pthread_rwlock_trywrlock()
69 static inline int liblockdep_rwlock_destroy(liblockdep_pthread_rwlock_t *lock) in liblockdep_rwlock_destroy()
Dmutex.h22 static inline int __mutex_init(liblockdep_pthread_mutex_t *lock, in __mutex_init()
37 static inline int liblockdep_pthread_mutex_lock(liblockdep_pthread_mutex_t *lock) in liblockdep_pthread_mutex_lock()
43 static inline int liblockdep_pthread_mutex_unlock(liblockdep_pthread_mutex_t *lock) in liblockdep_pthread_mutex_unlock()
49 static inline int liblockdep_pthread_mutex_trylock(liblockdep_pthread_mutex_t *lock) in liblockdep_pthread_mutex_trylock()
55 static inline int liblockdep_pthread_mutex_destroy(liblockdep_pthread_mutex_t *lock) in liblockdep_pthread_mutex_destroy()
/tools/virtio/ringtest/
Dptr_ring.c64 static void spin_lock_init(spinlock_t *lock) in spin_lock_init()
70 static void spin_lock(spinlock_t *lock) in spin_lock()
76 static void spin_unlock(spinlock_t *lock) in spin_unlock()
82 static void spin_lock_bh(spinlock_t *lock) in spin_lock_bh()
87 static void spin_unlock_bh(spinlock_t *lock) in spin_unlock_bh()
92 static void spin_lock_irq(spinlock_t *lock) in spin_lock_irq()
97 static void spin_unlock_irq(spinlock_t *lock) in spin_unlock_irq()
102 static void spin_lock_irqsave(spinlock_t *lock, unsigned long f) in spin_lock_irqsave()
107 static void spin_unlock_irqrestore(spinlock_t *lock, unsigned long f) in spin_unlock_irqrestore()
/tools/testing/radix-tree/linux/
Dlocal_lock.h5 static inline void local_lock(local_lock_t *lock) { } in local_lock()
6 static inline void local_unlock(local_lock_t *lock) { } in local_unlock()
Dlockdep.h7 static inline void lockdep_set_class(spinlock_t *lock, in lockdep_set_class()
/tools/testing/selftests/bpf/progs/
Dtest_spin_lock.c9 struct bpf_spin_lock lock; member
21 struct bpf_spin_lock lock; member
32 struct bpf_spin_lock lock; member
Dtest_map_lock.c10 struct bpf_spin_lock lock; member
22 struct bpf_spin_lock lock; member
Dfreplace_attach_probe.c12 struct bpf_spin_lock lock; member
Dlocal_storage.c23 struct bpf_spin_lock lock; member
/tools/lib/lockdep/
Dpreload.c101 static struct rb_node **__get_lock_node(void *lock, struct rb_node **parent) in __get_lock_node()
130 static inline bool is_static_lock(struct lock_lookup *lock) in is_static_lock()
162 static inline void free_lock(struct lock_lookup *lock) in free_lock()
175 static struct lock_lookup *__get_lock(void *lock) in __get_lock()
212 static void __del_lock(struct lock_lookup *lock) in __del_lock()
/tools/testing/selftests/timens/
Dclock_nanosleep.c27 pthread_mutex_t *lock; member
46 pthread_mutex_t lock; in run_test() local
/tools/perf/util/
Drwsem.h7 pthread_rwlock_t lock; member
Ddsos.h21 struct rw_semaphore lock; member
Dmaps.h30 struct rw_semaphore lock; member
/tools/testing/selftests/rseq/
Dbasic_percpu_ops_test.c28 struct percpu_lock lock; member
47 int rseq_this_cpu_lock(struct percpu_lock *lock) in rseq_this_cpu_lock()
69 void rseq_percpu_unlock(struct percpu_lock *lock, int cpu) in rseq_percpu_unlock()
/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c168 int lock; in insert_close_thread() member
285 int lock; in update_thread() member
464 int lock; in test_sk_storage_map_basic() member
/tools/arch/x86/include/asm/
Dcmpxchg.h35 #define __raw_cmpxchg(ptr, old, new, size, lock) \ argument
/tools/testing/selftests/futex/functional/
Dfutex_requeue_pi.c52 int lock; member
278 int unit_test(int broadcast, long lock, int third_party_owner, long timeout_ns) in unit_test()
Dfutex_wait_timeout.c45 volatile futex_t lock = 0; in get_pi_lock() local
/tools/testing/radix-tree/
Dregression1.c49 pthread_mutex_t lock; member
Dlinux.c21 pthread_mutex_t lock; member
/tools/testing/selftests/bpf/prog_tests/
Dtest_local_storage.c34 struct bpf_spin_lock lock; member
/tools/testing/selftests/sync/
Dsync_stress_consumer.c60 pthread_mutex_t lock; member

12