Home
last modified time | relevance | path

Searched refs:dep_map (Results 1 – 25 of 60) sorted by relevance

123

/linux-6.1.9/include/linux/
Dlockdep.h214 lockdep_init_map_type(&(lock)->dep_map, #key, key, 0, \
215 (lock)->dep_map.wait_type_inner, \
216 (lock)->dep_map.wait_type_outer, \
217 (lock)->dep_map.lock_type)
220 lockdep_init_map_type(&(lock)->dep_map, name, key, 0, \
221 (lock)->dep_map.wait_type_inner, \
222 (lock)->dep_map.wait_type_outer, \
223 (lock)->dep_map.lock_type)
226 lockdep_init_map_type(&(lock)->dep_map, #key, key, sub, \
227 (lock)->dep_map.wait_type_inner, \
[all …]
Drwlock_api_smp.h122 rwlock_acquire_read(&lock->dep_map, 0, 1, _RET_IP_); in __raw_read_trylock()
133 rwlock_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __raw_write_trylock()
150 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); in __raw_read_lock()
160 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); in __raw_read_lock_irqsave()
169 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); in __raw_read_lock_irq()
176 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); in __raw_read_lock_bh()
186 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_write_lock_irqsave()
195 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_write_lock_irq()
202 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_write_lock_bh()
209 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_write_lock()
[all …]
Dspinlock_api_smp.h90 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __raw_spin_trylock()
110 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock_irqsave()
119 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock_irq()
126 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock_bh()
133 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock()
141 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock()
149 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock_irqrestore()
157 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock_irq()
165 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock_bh()
174 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __raw_spin_trylock_bh()
Dpercpu-rwsem.h19 struct lockdep_map dep_map; member
24 #define __PERCPU_RWSEM_DEP_MAP_INIT(lockname) .dep_map = { .name = #lockname },
51 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in percpu_down_read()
92 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); in percpu_down_read_trylock()
99 rwsem_release(&sem->dep_map, _RET_IP_); in percpu_up_read()
150 lock_release(&sem->dep_map, ip); in percpu_rwsem_release()
156 lock_acquire(&sem->dep_map, 0, 1, read, 1, NULL, ip); in percpu_rwsem_acquire()
Dspinlock_types_raw.h21 struct lockdep_map dep_map; member
31 .dep_map = { \
36 .dep_map = { \
42 .dep_map = { \
Dlocal_lock_internal.h13 struct lockdep_map dep_map; member
20 .dep_map = { \
29 lock_map_acquire(&l->dep_map); in local_lock_acquire()
38 lock_map_release(&l->dep_map); in local_lock_release()
59 lockdep_init_map_type(&(lock)->dep_map, #lock, &__key, \
Drtmutex.h60 struct lockdep_map dep_map; member
81 .dep_map = { \
106 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
107 _rt_mutex_lock_nest_lock(lock, &(nest_lock)->dep_map); \
Dmutex.h25 , .dep_map = { \
74 struct lockdep_map dep_map; member
138 struct lockdep_map dep_map; member
194 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
195 _mutex_lock_nest_lock(lock, &(nest_lock)->dep_map); \
Dsrcu.h38 #define __SRCU_DEP_MAP_INIT(srcu_name) .dep_map = { .name = #srcu_name },
95 return lock_is_held(&ssp->dep_map); in srcu_read_lock_held()
165 rcu_lock_acquire(&(ssp)->dep_map); in srcu_read_lock()
190 rcu_lock_release(&(ssp)->dep_map); in srcu_read_unlock()
Drwsem.h21 .dep_map = { \
64 struct lockdep_map dep_map; member
131 struct lockdep_map dep_map; member
231 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
232 _down_write_nest_lock(sem, &(nest_lock)->dep_map); \
Dspinlock_types.h22 # define LOCK_PADSIZE (offsetof(struct raw_spinlock, dep_map))
25 struct lockdep_map dep_map; member
53 struct lockdep_map dep_map; member
Drwlock_types.h10 .dep_map = { \
32 struct lockdep_map dep_map; member
61 struct lockdep_map dep_map; member
Dww_mutex.h67 struct lockdep_map dep_map; member
147 lockdep_init_map(&ctx->dep_map, ww_class->acquire_name, in ww_acquire_init()
149 mutex_acquire(&ctx->dep_map, 0, 0, _RET_IP_); in ww_acquire_init()
188 mutex_release(&ctx->dep_map, _THIS_IP_); in ww_acquire_fini()
Dseqlock.h67 struct lockdep_map dep_map; member
77 lockdep_init_map(&s->dep_map, name, key, 0); in __seqcount_init()
84 .dep_map = { .name = #lockname }
102 seqcount_acquire_read(&l->dep_map, 0, 0, _RET_IP_); in seqcount_lockdep_reader_access()
103 seqcount_release(&l->dep_map, _RET_IP_); in seqcount_lockdep_reader_access()
516 seqcount_acquire(&s->dep_map, subclass, 0, _RET_IP_); in do_write_seqcount_begin_nested()
561 seqcount_release(&s->dep_map, _RET_IP_); in do_write_seqcount_end()
Dspinlock_rt.h54 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
55 rt_spin_lock_nest_lock(lock, &(nest_lock)->dep_map); \
/linux-6.1.9/kernel/locking/
Dspinlock_rt.c54 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in rt_spin_lock()
62 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in rt_spin_lock_nested()
70 spin_acquire_nest(&lock->dep_map, 0, 0, nest_lock, _RET_IP_); in rt_spin_lock_nest_lock()
78 spin_release(&lock->dep_map, _RET_IP_); in rt_spin_unlock()
107 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __rt_spin_trylock()
139 lockdep_init_map_type(&lock->dep_map, name, key, 0, LD_WAIT_CONFIG, in __rt_spin_lock_init()
200 rwlock_acquire_read(&rwlock->dep_map, 0, 1, _RET_IP_); in rt_read_trylock()
214 rwlock_acquire(&rwlock->dep_map, 0, 1, _RET_IP_); in rt_write_trylock()
225 rwlock_acquire_read(&rwlock->dep_map, 0, 0, _RET_IP_); in rt_read_lock()
235 rwlock_acquire(&rwlock->dep_map, 0, 0, _RET_IP_); in rt_write_lock()
[all …]
Dww_rt_mutex.c29 mutex_acquire_nest(&rtm->dep_map, 0, 1, &ww_ctx->dep_map, _RET_IP_); in ww_mutex_trylock()
60 nest_lock = &ww_ctx->dep_map; in __ww_rt_mutex_lock()
63 mutex_acquire_nest(&rtm->dep_map, 0, 0, nest_lock, ip); in __ww_rt_mutex_lock()
74 mutex_release(&rtm->dep_map, ip); in __ww_rt_mutex_lock()
98 mutex_release(&rtm->dep_map, _RET_IP_); in ww_mutex_unlock()
Drtmutex_api.c30 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, _RET_IP_); in __rt_mutex_lock_common()
33 mutex_release(&lock->dep_map, _RET_IP_); in __rt_mutex_lock_common()
127 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); in rt_mutex_trylock()
140 mutex_release(&lock->dep_map, _RET_IP_); in rt_mutex_unlock()
218 lockdep_init_map_wait(&lock->dep_map, name, key, 0, LD_WAIT_SLEEP); in __rt_mutex_init()
498 lockdep_init_map_wait(&mutex->dep_map, name, key, 0, LD_WAIT_SLEEP); in __mutex_rt_init()
511 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common()
514 mutex_release(&lock->dep_map, ip); in __mutex_lock_common()
516 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common()
599 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); in mutex_trylock()
[all …]
Drwsem.c321 lockdep_init_map_wait(&sem->dep_map, name, key, 0, LD_WAIT_SLEEP); in __init_rwsem()
1431 lockdep_init_map_wait(&sem->dep_map, name, key, 0, LD_WAIT_SLEEP); in __init_rwsem()
1509 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read()
1518 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read_interruptible()
1521 rwsem_release(&sem->dep_map, _RET_IP_); in down_read_interruptible()
1532 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read_killable()
1535 rwsem_release(&sem->dep_map, _RET_IP_); in down_read_killable()
1551 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); in down_read_trylock()
1562 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write()
1573 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write_killable()
[all …]
Dmutex.c598 nest_lock = &ww_ctx->dep_map; in __mutex_lock_common()
603 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common()
609 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common()
633 lock_contended(&lock->dep_map, ip); in __mutex_lock_common()
721 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common()
738 mutex_release(&lock->dep_map, ip); in __mutex_lock_common()
787 mutex_acquire_nest(&ww->base.dep_map, 0, 1, &ww_ctx->dep_map, _RET_IP_); in ww_mutex_trylock()
907 mutex_release(&lock->dep_map, ip); in __mutex_unlock_slowpath()
1089 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); in mutex_trylock()
Dpercpu-rwsem.c27 lockdep_init_map(&sem->dep_map, name, key, 0); in __percpu_init_rwsem()
227 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in percpu_down_write()
256 rwsem_release(&sem->dep_map, _RET_IP_); in percpu_up_write()
Dspinlock.c378 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in _raw_spin_lock_nested()
390 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in _raw_spin_lock_irqsave_nested()
400 spin_acquire_nest(&lock->dep_map, 0, 0, nest_lock, _RET_IP_); in _raw_spin_lock_nest_lock()
/linux-6.1.9/drivers/tty/
Dtty_ldsem.c65 lockdep_init_map(&sem->dep_map, name, key, 0); in __init_ldsem()
300 rwsem_acquire_read(&sem->dep_map, subclass, 0, _RET_IP_); in __ldsem_down_read_nested()
304 lock_contended(&sem->dep_map, _RET_IP_); in __ldsem_down_read_nested()
306 rwsem_release(&sem->dep_map, _RET_IP_); in __ldsem_down_read_nested()
310 lock_acquired(&sem->dep_map, _RET_IP_); in __ldsem_down_read_nested()
319 rwsem_acquire(&sem->dep_map, subclass, 0, _RET_IP_); in __ldsem_down_write_nested()
323 lock_contended(&sem->dep_map, _RET_IP_); in __ldsem_down_write_nested()
325 rwsem_release(&sem->dep_map, _RET_IP_); in __ldsem_down_write_nested()
329 lock_acquired(&sem->dep_map, _RET_IP_); in __ldsem_down_write_nested()
352 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); in ldsem_down_read_trylock()
[all …]
/linux-6.1.9/lib/
Dlocking-selftest.c1348 # define I_SPINLOCK(x) lockdep_reset_lock(&lock_##x.dep_map)
1349 # define I_RAW_SPINLOCK(x) lockdep_reset_lock(&raw_lock_##x.dep_map)
1350 # define I_RWLOCK(x) lockdep_reset_lock(&rwlock_##x.dep_map)
1351 # define I_MUTEX(x) lockdep_reset_lock(&mutex_##x.dep_map)
1352 # define I_RWSEM(x) lockdep_reset_lock(&rwsem_##x.dep_map)
1353 # define I_WW(x) lockdep_reset_lock(&x.dep_map)
1354 # define I_LOCAL_LOCK(x) lockdep_reset_lock(this_cpu_ptr(&local_##x.dep_map))
1356 # define I_RTMUTEX(x) lockdep_reset_lock(&rtmutex_##x.dep_map)
1855 mutex_release(&o2.base.dep_map, _THIS_IP_); in ww_test_edeadlk_normal()
1868 mutex_acquire(&o2.base.dep_map, 0, 1, _THIS_IP_); in ww_test_edeadlk_normal()
[all …]
/linux-6.1.9/kernel/bpf/
Dmmap_unlock_work.h60 rwsem_release(&mm->mmap_lock.dep_map, _RET_IP_); in bpf_mmap_unlock_mm()

123