/kernel/locking/ |
D | spinlock.c | 133 int __lockfunc _raw_spin_trylock(raw_spinlock_t *lock) in _raw_spin_trylock() 141 int __lockfunc _raw_spin_trylock_bh(raw_spinlock_t *lock) in _raw_spin_trylock_bh() 149 void __lockfunc _raw_spin_lock(raw_spinlock_t *lock) in _raw_spin_lock() 157 unsigned long __lockfunc _raw_spin_lock_irqsave(raw_spinlock_t *lock) in _raw_spin_lock_irqsave() 165 void __lockfunc _raw_spin_lock_irq(raw_spinlock_t *lock) in _raw_spin_lock_irq() 173 void __lockfunc _raw_spin_lock_bh(raw_spinlock_t *lock) in _raw_spin_lock_bh() 181 void __lockfunc _raw_spin_unlock(raw_spinlock_t *lock) in _raw_spin_unlock() 189 void __lockfunc _raw_spin_unlock_irqrestore(raw_spinlock_t *lock, unsigned long flags) in _raw_spin_unlock_irqrestore() 197 void __lockfunc _raw_spin_unlock_irq(raw_spinlock_t *lock) in _raw_spin_unlock_irq() 205 void __lockfunc _raw_spin_unlock_bh(raw_spinlock_t *lock) in _raw_spin_unlock_bh() [all …]
|
D | spinlock_debug.c | 16 void __raw_spin_lock_init(raw_spinlock_t *lock, const char *name, in __raw_spin_lock_init() 34 void __rwlock_init(rwlock_t *lock, const char *name, in __rwlock_init() 52 static void spin_dump(raw_spinlock_t *lock, const char *msg) in spin_dump() 70 static void spin_bug(raw_spinlock_t *lock, const char *msg) in spin_bug() 78 #define SPIN_BUG_ON(cond, lock, msg) if (unlikely(cond)) spin_bug(lock, msg) argument 81 debug_spin_lock_before(raw_spinlock_t *lock) in debug_spin_lock_before() 89 static inline void debug_spin_lock_after(raw_spinlock_t *lock) in debug_spin_lock_after() 95 static inline void debug_spin_unlock(raw_spinlock_t *lock) in debug_spin_unlock() 110 void do_raw_spin_lock(raw_spinlock_t *lock) in do_raw_spin_lock() 118 int do_raw_spin_trylock(raw_spinlock_t *lock) in do_raw_spin_trylock() [all …]
|
D | mutex.c | 40 __mutex_init(struct mutex *lock, const char *name, struct lock_class_key *key) in __mutex_init() 73 static inline struct task_struct *__mutex_owner(struct mutex *lock) in __mutex_owner() 83 bool mutex_is_locked(struct mutex *lock) in mutex_is_locked() 90 mutex_trylock_recursive(struct mutex *lock) in mutex_trylock_recursive() 107 static inline struct task_struct *__mutex_trylock_or_owner(struct mutex *lock) in __mutex_trylock_or_owner() 150 static inline bool __mutex_trylock(struct mutex *lock) in __mutex_trylock() 166 static __always_inline bool __mutex_trylock_fast(struct mutex *lock) in __mutex_trylock_fast() 177 static __always_inline bool __mutex_unlock_fast(struct mutex *lock) in __mutex_unlock_fast() 188 static inline void __mutex_set_flag(struct mutex *lock, unsigned long flag) in __mutex_set_flag() 193 static inline void __mutex_clear_flag(struct mutex *lock, unsigned long flag) in __mutex_clear_flag() [all …]
|
D | rtmutex.c | 53 rt_mutex_set_owner(struct rt_mutex *lock, struct task_struct *owner) in rt_mutex_set_owner() 63 static inline void clear_rt_mutex_waiters(struct rt_mutex *lock) in clear_rt_mutex_waiters() 69 static void fixup_rt_mutex_waiters(struct rt_mutex *lock) in fixup_rt_mutex_waiters() 153 static inline void mark_rt_mutex_waiters(struct rt_mutex *lock) in mark_rt_mutex_waiters() 169 static inline bool unlock_rt_mutex_safe(struct rt_mutex *lock, in unlock_rt_mutex_safe() 209 static inline void mark_rt_mutex_waiters(struct rt_mutex *lock) in mark_rt_mutex_waiters() 218 static inline bool unlock_rt_mutex_safe(struct rt_mutex *lock, in unlock_rt_mutex_safe() 273 rt_mutex_enqueue(struct rt_mutex *lock, struct rt_mutex_waiter *waiter) in rt_mutex_enqueue() 296 rt_mutex_dequeue(struct rt_mutex *lock, struct rt_mutex_waiter *waiter) in rt_mutex_dequeue() 459 struct rt_mutex *lock; in rt_mutex_adjust_prio_chain() local [all …]
|
D | qspinlock.c | 147 static __always_inline void clear_pending(struct qspinlock *lock) in clear_pending() 160 static __always_inline void clear_pending_set_locked(struct qspinlock *lock) in clear_pending_set_locked() 175 static __always_inline u32 xchg_tail(struct qspinlock *lock, u32 tail) in xchg_tail() 193 static __always_inline void clear_pending(struct qspinlock *lock) in clear_pending() 204 static __always_inline void clear_pending_set_locked(struct qspinlock *lock) in clear_pending_set_locked() 219 static __always_inline u32 xchg_tail(struct qspinlock *lock, u32 tail) in xchg_tail() 248 static __always_inline u32 queued_fetch_set_pending_acquire(struct qspinlock *lock) in queued_fetch_set_pending_acquire() 260 static __always_inline void set_locked(struct qspinlock *lock) in set_locked() 274 static __always_inline void __pv_kick_node(struct qspinlock *lock, in __pv_kick_node() 276 static __always_inline u32 __pv_wait_head_or_lock(struct qspinlock *lock, in __pv_wait_head_or_lock() [all …]
|
D | mutex-debug.c | 30 void debug_mutex_lock_common(struct mutex *lock, struct mutex_waiter *waiter) in debug_mutex_lock_common() 37 void debug_mutex_wake_waiter(struct mutex *lock, struct mutex_waiter *waiter) in debug_mutex_wake_waiter() 51 void debug_mutex_add_waiter(struct mutex *lock, struct mutex_waiter *waiter, in debug_mutex_add_waiter() 60 void mutex_remove_waiter(struct mutex *lock, struct mutex_waiter *waiter, in mutex_remove_waiter() 72 void debug_mutex_unlock(struct mutex *lock) in debug_mutex_unlock() 80 void debug_mutex_init(struct mutex *lock, const char *name, in debug_mutex_init() 101 void mutex_destroy(struct mutex *lock) in mutex_destroy()
|
D | qspinlock_paravirt.h | 81 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 …]
|
D | rtmutex-debug.c | 43 static void printk_lock(struct rt_mutex *lock, int print_owner) in printk_lock() 73 struct rt_mutex *lock) in debug_rt_mutex_deadlock() 139 void debug_rt_mutex_lock(struct rt_mutex *lock) in debug_rt_mutex_lock() 143 void debug_rt_mutex_unlock(struct rt_mutex *lock) in debug_rt_mutex_unlock() 149 debug_rt_mutex_proxy_lock(struct rt_mutex *lock, struct task_struct *powner) in debug_rt_mutex_proxy_lock() 153 void debug_rt_mutex_proxy_unlock(struct rt_mutex *lock) in debug_rt_mutex_proxy_unlock() 170 void debug_rt_mutex_init(struct rt_mutex *lock, const char *name, struct lock_class_key *key) in debug_rt_mutex_init()
|
D | mutex.h | 13 #define mutex_remove_waiter(lock, waiter, task) \ argument 16 #define debug_mutex_wake_waiter(lock, waiter) do { } while (0) argument 18 #define debug_mutex_add_waiter(lock, waiter, ti) do { } while (0) argument 19 #define debug_mutex_unlock(lock) do { } while (0) argument 20 #define debug_mutex_init(lock, name, key) do { } while (0) argument 23 debug_mutex_lock_common(struct mutex *lock, struct mutex_waiter *waiter) in debug_mutex_lock_common()
|
D | rtmutex_common.h | 31 struct rt_mutex *lock; member 47 static inline int rt_mutex_has_waiters(struct rt_mutex *lock) in rt_mutex_has_waiters() 53 rt_mutex_top_waiter(struct rt_mutex *lock) in rt_mutex_top_waiter() 79 static inline int rt_mutex_has_waiters(struct rt_mutex *lock) in rt_mutex_has_waiters() 85 rt_mutex_top_waiter(struct rt_mutex *lock) in rt_mutex_top_waiter() 108 static inline struct task_struct *rt_mutex_owner(struct rt_mutex *lock) in rt_mutex_owner()
|
D | lockdep.c | 659 static void print_lockdep_cache(struct lockdep_map *lock) in print_lockdep_cache() 683 struct lock_class *lock = hlock_class(hlock); in print_lock() local 791 look_up_lock_class(const struct lockdep_map *lock, unsigned int subclass) in look_up_lock_class() 853 static bool assign_lock_key(struct lockdep_map *lock) in assign_lock_key() 1176 register_lock_class(struct lockdep_map *lock, unsigned int subclass, int force) in register_lock_class() 1389 struct lock_list * lock; in __cq_dequeue() local 1405 static inline void mark_lock_accessed(struct lock_list *lock, in mark_lock_accessed() 1416 static inline unsigned long lock_accessed(struct lock_list *lock) in lock_accessed() 1449 static inline struct list_head *get_dep_list(struct lock_list *lock, int offset) in get_dep_list() 1467 struct lock_list *lock; in __bfs() local [all …]
|
D | osq_lock.c | 42 osq_wait_next(struct optimistic_spin_queue *lock, in osq_wait_next() 90 bool osq_lock(struct optimistic_spin_queue *lock) in osq_lock() 206 void osq_unlock(struct optimistic_spin_queue *lock) in osq_unlock()
|
D | qrwlock.c | 21 void queued_read_lock_slowpath(struct qrwlock *lock) in queued_read_lock_slowpath() 62 void queued_write_lock_slowpath(struct qrwlock *lock) in queued_write_lock_slowpath()
|
D | mcs_spinlock.h | 65 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()
|
D | test-ww_mutex.c | 434 struct ww_mutex *lock; member 501 struct ww_mutex *lock = stress->locks + (get_random_int() % nlocks); in stress_one_work() local
|
/kernel/bpf/ |
D | helpers.c | 221 static inline void __bpf_spin_lock(struct bpf_spin_lock *lock) in __bpf_spin_lock() 226 arch_spinlock_t lock; in __bpf_spin_lock() member 235 static inline void __bpf_spin_unlock(struct bpf_spin_lock *lock) in __bpf_spin_unlock() 244 static inline void __bpf_spin_lock(struct bpf_spin_lock *lock) in __bpf_spin_lock() 254 static inline void __bpf_spin_unlock(struct bpf_spin_lock *lock) in __bpf_spin_unlock() 265 notrace BPF_CALL_1(bpf_spin_lock, struct bpf_spin_lock *, lock) in BPF_CALL_1() argument 282 notrace BPF_CALL_1(bpf_spin_unlock, struct bpf_spin_lock *, lock) in BPF_CALL_1() argument 302 struct bpf_spin_lock *lock; in copy_map_value_locked() local
|
D | percpu_freelist.h | 11 raw_spinlock_t lock; member
|
D | bpf_lru_list.h | 42 raw_spinlock_t lock; member
|
D | queue_stack_maps.c | 18 raw_spinlock_t lock; member
|
D | xskmap.c | 16 spinlock_t lock; /* Synchronize map updates */ member
|
/kernel/sched/ |
D | cpudeadline.h | 12 raw_spinlock_t lock; member
|
D | autogroup.h | 12 struct rw_semaphore lock; member
|
/kernel/trace/ |
D | trace_clock.c | 88 arch_spinlock_t lock; member
|
/kernel/ |
D | dma.c | 56 int lock; member
|
D | delayacct.c | 45 static void delayacct_end(raw_spinlock_t *lock, u64 *start, u64 *total, in delayacct_end()
|