Home
last modified time | relevance | path

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

123

/linux-6.12.1/include/linux/
Dlockdep.h158 lockdep_init_map_type(&(lock)->dep_map, #key, key, 0, \
159 (lock)->dep_map.wait_type_inner, \
160 (lock)->dep_map.wait_type_outer, \
161 (lock)->dep_map.lock_type)
164 lockdep_init_map_type(&(lock)->dep_map, name, key, 0, \
165 (lock)->dep_map.wait_type_inner, \
166 (lock)->dep_map.wait_type_outer, \
167 (lock)->dep_map.lock_type)
170 lockdep_init_map_type(&(lock)->dep_map, #key, key, sub, \
171 (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()
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, \
70 lockdep_init_map_type(&(lock)->dep_map, #lock, &__key, \
Dspinlock_types_raw.h21 struct lockdep_map dep_map; member
31 .dep_map = { \
36 .dep_map = { \
42 .dep_map = { \
Dsrcu.h38 #define __SRCU_DEP_MAP_INIT(srcu_name) .dep_map = { .name = #srcu_name },
137 return lock_is_held(&ssp->dep_map); in srcu_read_lock_held()
250 srcu_lock_acquire(&ssp->dep_map); in srcu_read_lock()
267 rcu_try_lock_acquire(&ssp->dep_map); in srcu_read_lock_nmisafe()
322 srcu_lock_release(&ssp->dep_map); in srcu_read_unlock()
338 rcu_lock_release(&ssp->dep_map); in srcu_read_unlock_nmisafe()
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); \
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
Drwsem.h22 .dep_map = { \
65 struct lockdep_map dep_map; member
142 struct lockdep_map dep_map; member
275 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
276 _down_write_nest_lock(sem, &(nest_lock)->dep_map); \
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()
Dmutex_types.h52 struct lockdep_map dep_map; member
65 struct lockdep_map dep_map; member
Dmutex.h29 , .dep_map = { \
173 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
174 _mutex_lock_nest_lock(lock, &(nest_lock)->dep_map); \
Dseqlock.h47 lockdep_init_map(&s->dep_map, name, key, 0); in __seqcount_init()
54 .dep_map = { .name = #lockname }
72 seqcount_acquire_read(&l->dep_map, 0, 0, _RET_IP_); in seqcount_lockdep_reader_access()
73 seqcount_release(&l->dep_map, _RET_IP_); in seqcount_lockdep_reader_access()
454 seqcount_acquire(&s->dep_map, subclass, 0, _RET_IP_); in do_write_seqcount_begin_nested()
500 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.12.1/kernel/locking/
Dspinlock_rt.c56 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in rt_spin_lock()
64 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in rt_spin_lock_nested()
72 spin_acquire_nest(&lock->dep_map, 0, 0, nest_lock, _RET_IP_); in rt_spin_lock_nest_lock()
80 spin_release(&lock->dep_map, _RET_IP_); in rt_spin_unlock()
109 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __rt_spin_trylock()
141 lockdep_init_map_type(&lock->dep_map, name, key, 0, LD_WAIT_CONFIG, in __rt_spin_lock_init()
206 rwlock_acquire_read(&rwlock->dep_map, 0, 1, _RET_IP_); in rt_read_trylock()
220 rwlock_acquire(&rwlock->dep_map, 0, 1, _RET_IP_); in rt_write_trylock()
231 rwlock_acquire_read(&rwlock->dep_map, 0, 0, _RET_IP_); in rt_read_lock()
241 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.c316 lockdep_init_map_wait(&sem->dep_map, name, key, 0, LD_WAIT_SLEEP); in __init_rwsem()
1446 lockdep_init_map_wait(&sem->dep_map, name, key, 0, LD_WAIT_SLEEP); in __init_rwsem()
1524 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read()
1533 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read_interruptible()
1536 rwsem_release(&sem->dep_map, _RET_IP_); in down_read_interruptible()
1547 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read_killable()
1550 rwsem_release(&sem->dep_map, _RET_IP_); in down_read_killable()
1566 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); in down_read_trylock()
1577 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write()
1588 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write_killable()
[all …]
Dmutex.c603 nest_lock = &ww_ctx->dep_map; in __mutex_lock_common()
608 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common()
614 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common()
638 lock_contended(&lock->dep_map, ip); in __mutex_lock_common()
726 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common()
743 mutex_release(&lock->dep_map, ip); in __mutex_lock_common()
792 mutex_acquire_nest(&ww->base.dep_map, 0, 1, &ww_ctx->dep_map, _RET_IP_); in ww_mutex_trylock()
912 mutex_release(&lock->dep_map, ip); in __mutex_unlock_slowpath()
1094 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()
229 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in percpu_down_write()
261 rwsem_release(&sem->dep_map, _RET_IP_); in percpu_up_write()
/linux-6.12.1/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.12.1/fs/bcachefs/
Dsix.c303 six_acquire(&lock->dep_map, 1, type == SIX_LOCK_read, ip); in six_trylock_ip()
424 lock_contended(&lock->dep_map, ip); in six_lock_slowpath()
553 six_acquire(&lock->dep_map, 0, type == SIX_LOCK_read, ip); in six_lock_ip_waiter()
559 six_release(&lock->dep_map, ip); in six_lock_ip_waiter()
561 lock_acquired(&lock->dep_map, ip); in six_lock_ip_waiter()
618 six_release(&lock->dep_map, ip); in six_unlock_ip()
723 six_acquire(&lock->dep_map, 0, type == SIX_LOCK_read, _RET_IP_); in six_lock_increment()
853 lockdep_init_map(&lock->dep_map, name, key, 0); in __six_lock_init()
/linux-6.12.1/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 …]

123