Home
last modified time | relevance | path

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

123

/tools/virtio/linux/
A 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/virtio/ringtest/
A 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/selftests/bpf/progs/
A Dbpf_arena_spin_lock.h148 static __always_inline u32 xchg_tail(arena_spinlock_t __arena *lock, u32 tail) in xchg_tail()
178 static __always_inline void clear_pending(arena_spinlock_t __arena *lock) in clear_pending()
191 static __always_inline void clear_pending_set_locked(arena_spinlock_t __arena *lock) in clear_pending_set_locked()
202 static __always_inline void set_locked(arena_spinlock_t __arena *lock) in set_locked()
208 u32 arena_fetch_set_pending_acquire(arena_spinlock_t __arena *lock) in arena_fetch_set_pending_acquire()
233 static __always_inline int arena_spin_trylock(arena_spinlock_t __arena *lock) in arena_spin_trylock()
244 int arena_spin_lock_slowpath(arena_spinlock_t __arena __arg_arena *lock, u32 val) in arena_spin_lock_slowpath()
493 static __always_inline int arena_spin_lock(arena_spinlock_t __arena *lock) in arena_spin_lock()
515 static __always_inline void arena_spin_unlock(arena_spinlock_t __arena *lock) in arena_spin_unlock()
524 #define arena_spin_lock_irqsave(lock, flags) \ argument
[all …]
A Dlinked_list.c12 struct bpf_spin_lock lock; member
28 int list_push_pop(struct bpf_spin_lock *lock, struct bpf_list_head *head, bool leave_in_map) in list_push_pop()
109 int list_push_pop_multiple(struct bpf_spin_lock *lock, struct bpf_list_head *head, bool leave_in_ma… in list_push_pop_multiple()
191 int list_in_list(struct bpf_spin_lock *lock, struct bpf_list_head *head, bool leave_in_map) in list_in_list()
261 int test_list_push_pop(struct bpf_spin_lock *lock, struct bpf_list_head *head) in test_list_push_pop()
272 int test_list_push_pop_multiple(struct bpf_spin_lock *lock, struct bpf_list_head *head) in test_list_push_pop_multiple()
283 int test_list_in_list(struct bpf_spin_lock *lock, struct bpf_list_head *head) in test_list_in_list()
A Dtest_helper_restricted.c10 struct lock { struct
11 struct bpf_spin_lock l; argument
50 struct lock *lock; in spin_lock_work() local
A Dtracing_failure.c11 int BPF_PROG(test_spin_lock, struct bpf_spin_lock *lock) in BPF_PROG()
17 int BPF_PROG(test_spin_unlock, struct bpf_spin_lock *lock) in BPF_PROG()
A Dstream.c10 struct bpf_res_spin_lock lock; member
52 struct bpf_res_spin_lock *lock, *nlock; in stream_deadlock() local
A Dtest_map_lock.c10 struct bpf_spin_lock lock; member
22 struct bpf_spin_lock lock; member
A Dtest_spin_lock.c10 struct bpf_spin_lock lock; member
22 struct bpf_spin_lock lock; member
33 struct bpf_spin_lock lock; member
A Dlinked_list.h17 struct bpf_spin_lock lock; member
23 struct bpf_spin_lock lock; member
A Drefcounted_kptr.c41 private(A) struct bpf_spin_lock lock; variable
75 struct bpf_spin_lock *lock) in __insert_in_tree_and_list()
107 struct bpf_spin_lock *lock) in __stash_map_insert_tree()
141 struct bpf_spin_lock *lock, in __read_from_tree()
174 struct bpf_spin_lock *lock, in __read_from_list()
A Dbpf_qdisc_fq.c84 struct bpf_spin_lock lock; member
167 fq_flows_add_head(struct bpf_list_head *head, struct bpf_spin_lock *lock, in fq_flows_add_head()
177 fq_flows_add_tail(struct bpf_list_head *head, struct bpf_spin_lock *lock, in fq_flows_add_tail()
187 fq_flows_remove_front(struct bpf_list_head *head, struct bpf_spin_lock *lock, in fq_flows_remove_front()
197 fq_flows_is_empty(struct bpf_list_head *head, struct bpf_spin_lock *lock) in fq_flows_is_empty()
466 struct bpf_spin_lock *lock; in fq_dequeue_nonprio_flows() local
A Dhtab_reuse.c9 struct bpf_spin_lock lock; member
A Darena_spin_lock.c23 arena_spinlock_t __arena lock; variable
A Dfreplace_attach_probe.c12 struct bpf_spin_lock lock; member
A Dtimer_crash.c9 struct bpf_spin_lock lock; member
/tools/testing/selftests/kvm/lib/arm64/
A Dspinlock.c9 void spin_lock(struct spinlock *lock) in spin_lock()
24 void spin_unlock(struct spinlock *lock) in spin_unlock()
/tools/testing/shared/linux/
A 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()
A Dlockdep.h10 static inline void lockdep_set_class(spinlock_t *lock, in lockdep_set_class()
/tools/testing/selftests/futex/functional/
A Dfutex_numa.c36 void futex_numa_32_lock(struct futex_numa_32 *lock) in futex_numa_32_lock()
82 void futex_numa_32_unlock(struct futex_numa_32 *lock) in futex_numa_32_unlock()
102 struct futex_numa_32 *lock; member
158 static struct futex_numa_32 lock = { .val = 0, }; variable
/tools/testing/selftests/timens/
A Dclock_nanosleep.c27 pthread_mutex_t *lock; member
46 pthread_mutex_t lock; in run_test() local
/tools/testing/selftests/rseq/
A Dbasic_percpu_ops_test.c64 struct percpu_lock lock; member
83 int rseq_this_cpu_lock(struct percpu_lock *lock) in rseq_this_cpu_lock()
105 void rseq_percpu_unlock(struct percpu_lock *lock, int cpu) in rseq_percpu_unlock()
/tools/testing/selftests/bpf/map_tests/
A Dsk_storage_map.c164 int lock; in insert_close_thread() member
281 int lock; in update_thread() member
460 int lock; in test_sk_storage_map_basic() member
/tools/perf/util/
A Ddsos.h21 struct rw_semaphore lock; member
A Dthreads.h16 struct rw_semaphore lock; member

Completed in 951 milliseconds

123