Home
last modified time | relevance | path

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

123

/kernel/locking/
Dspinlock.c136 int __lockfunc _raw_spin_trylock(raw_spinlock_t *lock) in _raw_spin_trylock()
144 int __lockfunc _raw_spin_trylock_bh(raw_spinlock_t *lock) in _raw_spin_trylock_bh()
152 void __lockfunc _raw_spin_lock(raw_spinlock_t *lock) in _raw_spin_lock()
160 unsigned long __lockfunc _raw_spin_lock_irqsave(raw_spinlock_t *lock) in _raw_spin_lock_irqsave()
168 void __lockfunc _raw_spin_lock_irq(raw_spinlock_t *lock) in _raw_spin_lock_irq()
176 void __lockfunc _raw_spin_lock_bh(raw_spinlock_t *lock) in _raw_spin_lock_bh()
184 void __lockfunc _raw_spin_unlock(raw_spinlock_t *lock) in _raw_spin_unlock()
192 void __lockfunc _raw_spin_unlock_irqrestore(raw_spinlock_t *lock, unsigned long flags) in _raw_spin_unlock_irqrestore()
200 void __lockfunc _raw_spin_unlock_irq(raw_spinlock_t *lock) in _raw_spin_unlock_irq()
208 void __lockfunc _raw_spin_unlock_bh(raw_spinlock_t *lock) in _raw_spin_unlock_bh()
[all …]
Dmutex.c45 __mutex_init(struct mutex *lock, const char *name, struct lock_class_key *key) in __mutex_init()
79 static inline struct task_struct *__mutex_owner(struct mutex *lock) in __mutex_owner()
89 bool mutex_is_locked(struct mutex *lock) in mutex_is_locked()
100 static inline struct task_struct *__mutex_trylock_common(struct mutex *lock, bool handoff) in __mutex_trylock_common()
139 static inline bool __mutex_trylock_or_handoff(struct mutex *lock, bool handoff) in __mutex_trylock_or_handoff()
147 static inline bool __mutex_trylock(struct mutex *lock) in __mutex_trylock()
163 static __always_inline bool __mutex_trylock_fast(struct mutex *lock) in __mutex_trylock_fast()
176 static __always_inline bool __mutex_unlock_fast(struct mutex *lock) in __mutex_unlock_fast()
184 static inline void __mutex_set_flag(struct mutex *lock, unsigned long flag) in __mutex_set_flag()
189 static inline void __mutex_clear_flag(struct mutex *lock, unsigned long flag) in __mutex_clear_flag()
[all …]
Dspinlock_debug.c16 void __raw_spin_lock_init(raw_spinlock_t *lock, const char *name, in __raw_spin_lock_init()
35 void __rwlock_init(rwlock_t *lock, const char *name, in __rwlock_init()
54 static void spin_dump(raw_spinlock_t *lock, const char *msg) in spin_dump()
72 static void spin_bug(raw_spinlock_t *lock, const char *msg) in spin_bug()
80 #define SPIN_BUG_ON(cond, lock, msg) if (unlikely(cond)) spin_bug(lock, msg) argument
83 debug_spin_lock_before(raw_spinlock_t *lock) in debug_spin_lock_before()
91 static inline void debug_spin_lock_after(raw_spinlock_t *lock) in debug_spin_lock_after()
97 static inline void debug_spin_unlock(raw_spinlock_t *lock) in debug_spin_unlock()
112 void do_raw_spin_lock(raw_spinlock_t *lock) in do_raw_spin_lock()
120 int do_raw_spin_trylock(raw_spinlock_t *lock) in do_raw_spin_trylock()
[all …]
Drtmutex_api.c22 static __always_inline int __rt_mutex_lock_common(struct rt_mutex *lock, in __rt_mutex_lock_common()
51 void __sched rt_mutex_lock_nested(struct rt_mutex *lock, unsigned int subclass) in rt_mutex_lock_nested()
64 void __sched rt_mutex_lock(struct rt_mutex *lock) in rt_mutex_lock()
80 int __sched rt_mutex_lock_interruptible(struct rt_mutex *lock) in rt_mutex_lock_interruptible()
98 int __sched rt_mutex_trylock(struct rt_mutex *lock) in rt_mutex_trylock()
120 void __sched rt_mutex_unlock(struct rt_mutex *lock) in rt_mutex_unlock()
131 int __sched rt_mutex_futex_trylock(struct rt_mutex_base *lock) in rt_mutex_futex_trylock()
136 int __sched __rt_mutex_futex_trylock(struct rt_mutex_base *lock) in __rt_mutex_futex_trylock()
148 bool __sched __rt_mutex_futex_unlock(struct rt_mutex_base *lock, in __rt_mutex_futex_unlock()
171 void __sched rt_mutex_futex_unlock(struct rt_mutex_base *lock) in rt_mutex_futex_unlock()
[all …]
Dww_mutex.h9 __ww_waiter_first(struct mutex *lock) in __ww_waiter_first()
21 __ww_waiter_next(struct mutex *lock, struct mutex_waiter *w) in __ww_waiter_next()
31 __ww_waiter_prev(struct mutex *lock, struct mutex_waiter *w) in __ww_waiter_prev()
41 __ww_waiter_last(struct mutex *lock) in __ww_waiter_last()
53 __ww_waiter_add(struct mutex *lock, struct mutex_waiter *waiter, struct mutex_waiter *pos) in __ww_waiter_add()
62 __ww_mutex_owner(struct mutex *lock) in __ww_mutex_owner()
68 __ww_mutex_has_waiters(struct mutex *lock) in __ww_mutex_has_waiters()
73 static inline void lock_wait_lock(struct mutex *lock) in lock_wait_lock()
78 static inline void unlock_wait_lock(struct mutex *lock) in unlock_wait_lock()
83 static inline void lockdep_assert_wait_lock_held(struct mutex *lock) in lockdep_assert_wait_lock_held()
[all …]
Drtmutex.c35 struct rt_mutex *lock, in __ww_mutex_add_waiter()
41 static inline void __ww_mutex_check_waiters(struct rt_mutex *lock, in __ww_mutex_check_waiters()
46 static inline void ww_mutex_lock_acquired(struct ww_mutex *lock, in ww_mutex_lock_acquired()
51 static inline int __ww_mutex_check_kill(struct rt_mutex *lock, in __ww_mutex_check_kill()
92 rt_mutex_owner_encode(struct rt_mutex_base *lock, struct task_struct *owner) in rt_mutex_owner_encode()
103 rt_mutex_set_owner(struct rt_mutex_base *lock, struct task_struct *owner) in rt_mutex_set_owner()
112 static __always_inline void rt_mutex_clear_owner(struct rt_mutex_base *lock) in rt_mutex_clear_owner()
118 static __always_inline void clear_rt_mutex_waiters(struct rt_mutex_base *lock) in clear_rt_mutex_waiters()
125 fixup_rt_mutex_waiters(struct rt_mutex_base *lock, bool acquire_lock) in fixup_rt_mutex_waiters()
213 static __always_inline bool rt_mutex_cmpxchg_acquire(struct rt_mutex_base *lock, in rt_mutex_cmpxchg_acquire()
[all …]
Dmutex-debug.c28 void debug_mutex_lock_common(struct mutex *lock, struct mutex_waiter *waiter) in debug_mutex_lock_common()
36 void debug_mutex_wake_waiter(struct mutex *lock, struct mutex_waiter *waiter) in debug_mutex_wake_waiter()
50 void debug_mutex_add_waiter(struct mutex *lock, struct mutex_waiter *waiter, in debug_mutex_add_waiter()
59 void debug_mutex_remove_waiter(struct mutex *lock, struct mutex_waiter *waiter, in debug_mutex_remove_waiter()
71 void debug_mutex_unlock(struct mutex *lock) in debug_mutex_unlock()
79 void debug_mutex_init(struct mutex *lock, const char *name, in debug_mutex_init()
100 void mutex_destroy(struct mutex *lock) in mutex_destroy()
Dqspinlock.c148 static __always_inline void clear_pending(struct qspinlock *lock) in clear_pending()
161 static __always_inline void clear_pending_set_locked(struct qspinlock *lock) in clear_pending_set_locked()
176 static __always_inline u32 xchg_tail(struct qspinlock *lock, u32 tail) in xchg_tail()
194 static __always_inline void clear_pending(struct qspinlock *lock) in clear_pending()
205 static __always_inline void clear_pending_set_locked(struct qspinlock *lock) in clear_pending_set_locked()
220 static __always_inline u32 xchg_tail(struct qspinlock *lock, u32 tail) in xchg_tail()
249 static __always_inline u32 queued_fetch_set_pending_acquire(struct qspinlock *lock) in queued_fetch_set_pending_acquire()
261 static __always_inline void set_locked(struct qspinlock *lock) in set_locked()
275 static __always_inline void __pv_kick_node(struct qspinlock *lock, in __pv_kick_node()
277 static __always_inline u32 __pv_wait_head_or_lock(struct qspinlock *lock, in __pv_wait_head_or_lock()
[all …]
Dqspinlock_paravirt.h81 static inline bool pv_hybrid_queued_unfair_trylock(struct qspinlock *lock) in pv_hybrid_queued_unfair_trylock()
109 static __always_inline void set_pending(struct qspinlock *lock) in set_pending()
119 static __always_inline int trylock_clear_pending(struct qspinlock *lock) in trylock_clear_pending()
126 static __always_inline void set_pending(struct qspinlock *lock) in set_pending()
131 static __always_inline int trylock_clear_pending(struct qspinlock *lock) in trylock_clear_pending()
172 struct qspinlock *lock; member
212 static struct qspinlock **pv_hash(struct qspinlock *lock, struct pv_node *node) in pv_hash()
239 static struct pv_node *pv_unhash(struct qspinlock *lock) in pv_unhash()
360 static void pv_kick_node(struct qspinlock *lock, struct mcs_spinlock *node) in pv_kick_node()
403 pv_wait_head_or_lock(struct qspinlock *lock, struct mcs_spinlock *node) in pv_wait_head_or_lock()
[all …]
Dspinlock_rt.c33 static __always_inline void __rt_spin_lock(spinlock_t *lock) in __rt_spin_lock()
41 void __sched rt_spin_lock(spinlock_t *lock) in rt_spin_lock()
49 void __sched rt_spin_lock_nested(spinlock_t *lock, int subclass) in rt_spin_lock_nested()
56 void __sched rt_spin_lock_nest_lock(spinlock_t *lock, in rt_spin_lock_nest_lock()
65 void __sched rt_spin_unlock(spinlock_t *lock) in rt_spin_unlock()
81 void __sched rt_spin_lock_unlock(spinlock_t *lock) in rt_spin_lock_unlock()
88 static __always_inline int __rt_spin_trylock(spinlock_t *lock) in __rt_spin_trylock()
103 int __sched rt_spin_trylock(spinlock_t *lock) in rt_spin_trylock()
109 int __sched rt_spin_trylock_bh(spinlock_t *lock) in rt_spin_trylock_bh()
122 void __rt_spin_lock_init(spinlock_t *lock, const char *name, in __rt_spin_lock_init()
Drtmutex_common.h37 struct rt_mutex_base *lock; member
93 static inline int rt_mutex_has_waiters(struct rt_mutex_base *lock) in rt_mutex_has_waiters()
103 static inline bool rt_mutex_waiter_is_top_waiter(struct rt_mutex_base *lock, in rt_mutex_waiter_is_top_waiter()
111 static inline struct rt_mutex_waiter *rt_mutex_top_waiter(struct rt_mutex_base *lock) in rt_mutex_top_waiter()
136 static inline struct task_struct *rt_mutex_owner(struct rt_mutex_base *lock) in rt_mutex_owner()
158 static inline void __rt_mutex_base_init(struct rt_mutex_base *lock) in __rt_mutex_base_init()
166 static inline void debug_rt_mutex_unlock(struct rt_mutex_base *lock) in debug_rt_mutex_unlock()
172 static inline void debug_rt_mutex_proxy_unlock(struct rt_mutex_base *lock) in debug_rt_mutex_proxy_unlock()
207 static inline struct task_struct *rt_mutex_owner(struct rt_mutex_base *lock) in rt_mutex_owner()
Dmutex.h38 # define debug_mutex_lock_common(lock, waiter) do { } while (0) argument
39 # define debug_mutex_wake_waiter(lock, waiter) do { } while (0) argument
41 # define debug_mutex_add_waiter(lock, waiter, ti) do { } while (0) argument
42 # define debug_mutex_remove_waiter(lock, waiter, ti) do { } while (0) argument
43 # define debug_mutex_unlock(lock) do { } while (0) argument
44 # define debug_mutex_init(lock, name, key) do { } while (0) argument
Dww_rt_mutex.c13 __ww_rt_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ww_ctx, in __ww_rt_mutex_lock()
54 ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock()
61 ww_mutex_lock_interruptible(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_interruptible()
67 void __sched ww_mutex_unlock(struct ww_mutex *lock) in ww_mutex_unlock()
Dlockdep.c712 static void print_lockdep_cache(struct lockdep_map *lock) in print_lockdep_cache()
736 struct lock_class *lock = hlock_class(hlock); in print_lock() local
845 look_up_lock_class(const struct lockdep_map *lock, unsigned int subclass) in look_up_lock_class()
909 static bool assign_lock_key(struct lockdep_map *lock) in assign_lock_key()
1236 register_lock_class(struct lockdep_map *lock, unsigned int subclass, int force) in register_lock_class()
1457 struct lock_list * lock; in __cq_dequeue() local
1473 static inline void mark_lock_accessed(struct lock_list *lock) in mark_lock_accessed()
1478 static inline void visit_lock_entry(struct lock_list *lock, in visit_lock_entry()
1484 static inline unsigned long lock_accessed(struct lock_list *lock) in lock_accessed()
1513 static inline struct list_head *get_dep_list(struct lock_list *lock, int offset) in get_dep_list()
[all …]
Dosq_lock.c42 osq_wait_next(struct optimistic_spin_queue *lock, in osq_wait_next()
90 bool osq_lock(struct optimistic_spin_queue *lock) in osq_lock()
207 void osq_unlock(struct optimistic_spin_queue *lock) in osq_unlock()
Dqrwlock.c20 void queued_read_lock_slowpath(struct qrwlock *lock) in queued_read_lock_slowpath()
61 void queued_write_lock_slowpath(struct qrwlock *lock) in queued_write_lock_slowpath()
Dmcs_spinlock.h65 void mcs_spin_lock(struct mcs_spinlock **lock, struct mcs_spinlock *node) in mcs_spin_lock()
102 void mcs_spin_unlock(struct mcs_spinlock **lock, struct mcs_spinlock *node) in mcs_spin_unlock()
Dtest-ww_mutex.c433 struct ww_mutex *lock; member
499 struct ww_mutex *lock = stress->locks + (get_random_int() % nlocks); in stress_one_work() local
/kernel/bpf/
Dhelpers.c248 static inline void __bpf_spin_lock(struct bpf_spin_lock *lock) in __bpf_spin_lock()
253 arch_spinlock_t lock; in __bpf_spin_lock() member
262 static inline void __bpf_spin_unlock(struct bpf_spin_lock *lock) in __bpf_spin_unlock()
271 static inline void __bpf_spin_lock(struct bpf_spin_lock *lock) in __bpf_spin_lock()
281 static inline void __bpf_spin_unlock(struct bpf_spin_lock *lock) in __bpf_spin_unlock()
292 static inline void __bpf_spin_lock_irqsave(struct bpf_spin_lock *lock) in __bpf_spin_lock_irqsave()
301 notrace BPF_CALL_1(bpf_spin_lock, struct bpf_spin_lock *, lock) in BPF_CALL_1() argument
314 static inline void __bpf_spin_unlock_irqrestore(struct bpf_spin_lock *lock) in __bpf_spin_unlock_irqrestore()
323 notrace BPF_CALL_1(bpf_spin_unlock, struct bpf_spin_lock *, lock) in BPF_CALL_1() argument
339 struct bpf_spin_lock *lock; in copy_map_value_locked() local
[all …]
Dpercpu_freelist.h11 raw_spinlock_t lock; member
/kernel/sched/
Dcpudeadline.h12 raw_spinlock_t lock; member
Dautogroup.h12 struct rw_semaphore lock; member
/kernel/trace/
Dtrace_clock.c88 arch_spinlock_t lock; member
/kernel/
Ddma.c56 int lock; member
Dcpu_pm.c23 raw_spinlock_t lock; member

123