Home
last modified time | relevance | path

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

123

/linux/include/linux/
H A 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
[all...]
H A 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()
161 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); in __raw_read_lock_irqsave()
172 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_);
182 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); in __raw_write_lock_irqsave()
190 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_);
201 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_write_lock_bh()
211 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_write_lock()
219 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_);
227 rwlock_acquire(&lock->dep_map, in __raw_write_unlock()
[all...]
H A Dspinlock_api_smp.h91 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __raw_spin_trylock()
132 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock()
142 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_unlock()
150 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_unlock_irqrestore()
158 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_unlock_irq()
167 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock_bh()
176 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_trylock_bh()
185 spin_release(&lock->dep_map, _RET_IP_);
194 spin_release(&lock->dep_map, _RET_IP_);
204 spin_acquire(&lock->dep_map,
[all...]
H A Dpercpu-rwsem.h20 struct lockdep_map dep_map; member
25 #define __PERCPU_RWSEM_DEP_MAP_INIT(lockname) .dep_map = { .name = #lockname },
53 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in percpu_down_read_internal()
105 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); in percpu_down_read_trylock()
112 rwsem_release(&sem->dep_map, _RET_IP_); in percpu_up_read()
171 lock_release(&sem->dep_map, ip); in percpu_rwsem_release()
177 lock_acquire(&sem->dep_map, 0, 1, read, 1, NULL, ip); in percpu_rwsem_acquire()
H A Dsrcu.h56 #define __SRCU_DEP_MAP_INIT(srcu_name) .dep_map = { .name = #srcu_name },
173 return lock_is_held(&ssp->dep_map);
294 srcu_lock_acquire(&ssp->dep_map);
332 rcu_try_lock_acquire(&ssp->dep_map);
372 rcu_try_lock_acquire(&ssp->dep_map);
428 rcu_try_lock_acquire(&ssp->dep_map);
486 srcu_lock_release(&ssp->dep_map);
501 srcu_lock_release(&ssp->dep_map);
517 srcu_lock_release(&ssp->dep_map);
563 rcu_lock_release(&ssp->dep_map); in srcu_up_read()
[all...]
H A Dlocal_lock_internal.h16 struct lockdep_map dep_map; in context_lock_struct() local
25 struct lockdep_map dep_map; in context_lock_struct() local
34 .dep_map = { \
46 lock_map_acquire(&l->dep_map); in local_lock_acquire()
53 lock_map_acquire_try(&l->dep_map); in local_trylock_acquire()
62 lock_map_release(&l->dep_map); in local_lock_release()
86 lockdep_init_map_type(&(lock)->dep_map, #lock, &__key, \
102 lockdep_init_map_type(&(lock)->dep_map, #lock, &__key, \
H A Dspinlock_types_raw.h21 struct lockdep_map dep_map; member
32 .dep_map = { \
37 .dep_map = { \
43 .dep_map = { \
H A Dmutex.h29 , .dep_map = { \
200 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
201 _mutex_lock_nest_lock(lock, &(nest_lock)->dep_map); \
206 typecheck(struct lockdep_map *, &(nest_lock)->dep_map), \
207 _mutex_lock_killable(lock, 0, &(nest_lock)->dep_map) \
239 typecheck(struct lockdep_map *, &(nest_lock)->dep_map), \
240 _mutex_trylock_nest_lock(lock, &(nest_lock)->dep_map) \
H A Drcupdate_trace.h59 rcu_try_lock_acquire(&rcu_tasks_trace_srcu_struct.dep_map); in rcu_read_lock_tasks_trace()
81 srcu_lock_release(&rcu_tasks_trace_srcu_struct.dep_map); in rcu_read_unlock_tasks_trace()
100 rcu_try_lock_acquire(&rcu_tasks_trace_srcu_struct.dep_map); in rcu_read_lock_trace()
132 srcu_lock_release(&rcu_tasks_trace_srcu_struct.dep_map); in rcu_read_unlock_trace()
H A Drtmutex.h70 struct lockdep_map dep_map; member
91 .dep_map = { \
116 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
117 _rt_mutex_lock_nest_lock(lock, &(nest_lock)->dep_map); \
H A Dspinlock_types.h22 # define LOCK_PADSIZE (offsetof(struct raw_spinlock, dep_map))
25 struct lockdep_map dep_map; member
54 struct lockdep_map dep_map;
53 struct lockdep_map dep_map; global() member
H A Dww_mutex.h68 struct lockdep_map dep_map; in context_lock_struct() local
159 lockdep_init_map(&ctx->dep_map, ww_class->acquire_name, in ww_acquire_init()
163 mutex_acquire(&ctx->dep_map, 0, 0, _RET_IP_); in ww_acquire_init()
164 mutex_acquire_nest(&ctx->first_lock_dep_map, 0, 0, &ctx->dep_map, _RET_IP_); in ww_acquire_init()
206 mutex_release(&ctx->dep_map, _THIS_IP_); in ww_acquire_fini()
H A Drwlock_types.h10 .dep_map = { \
32 struct lockdep_map dep_map; member
62 struct lockdep_map dep_map;
61 struct lockdep_map dep_map; global() member
H A Drwsem.h22 .dep_map = { \
65 struct lockdep_map dep_map; member
156 struct lockdep_map dep_map;
312 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
313 _down_write_nest_lock(sem, &(nest_lock)->dep_map); \
154 struct lockdep_map dep_map; global() member
H A Dmutex_types.h52 struct lockdep_map dep_map; member
65 struct lockdep_map dep_map; member
H A Dseqlock.h48 lockdep_init_map(&s->dep_map, name, key, 0); in __seqcount_init()
55 .dep_map = { .name = #lockname }
73 seqcount_acquire_read(&l->dep_map, 0, 0, _RET_IP_); in seqcount_lockdep_reader_access()
74 seqcount_release(&l->dep_map, _RET_IP_); in seqcount_lockdep_reader_access()
478 seqcount_acquire(&s->dep_map, subclass, 0, _RET_IP_); in do_write_seqcount_begin_nested()
524 seqcount_release(&s->dep_map, _RET_IP_); in do_write_seqcount_end()
/linux/kernel/locking/
H A 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()
207 rwlock_acquire_read(&rwlock->dep_map, 0, 1, _RET_IP_); in rt_read_trylock()
221 rwlock_acquire(&rwlock->dep_map, 0, 1, _RET_IP_); in rt_write_trylock()
232 rwlock_acquire_read(&rwlock->dep_map, 0, 0, _RET_IP_); in rt_read_lock()
242 rwlock_acquire(&rwlock->dep_map, 0, 0, _RET_IP_); in rt_write_lock()
[all …]
H A 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()
H A Drtmutex_api.c48 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, _RET_IP_); in __rt_mutex_lock_common()
51 mutex_release(&lock->dep_map, _RET_IP_); in __rt_mutex_lock_common()
145 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); in rt_mutex_trylock()
158 mutex_release(&lock->dep_map, _RET_IP_); in rt_mutex_unlock()
236 lockdep_init_map_wait(&lock->dep_map, name, key, 0, LD_WAIT_SLEEP); in __rt_mutex_init()
533 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common()
536 mutex_release(&lock->dep_map, ip); in __mutex_lock_common()
538 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common()
546 lockdep_init_map_wait(&mutex->dep_map, name, key, 0, LD_WAIT_SLEEP); in mutex_rt_init_lockdep()
599 mutex_acquire_nest(&lock->dep_map, 0, 1, nest_lock, _RET_IP_); in _mutex_trylock_nest_lock()
[all …]
H A Drwsem.c317 lockdep_init_map_wait(&sem->dep_map, name, key, 0, LD_WAIT_SLEEP); in __init_rwsem()
1459 lockdep_init_map_wait(&sem->dep_map, name, key, 0, LD_WAIT_SLEEP); in __init_rwsem()
1537 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read()
1546 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read_interruptible()
1549 rwsem_release(&sem->dep_map, _RET_IP_); in down_read_interruptible()
1560 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read_killable()
1563 rwsem_release(&sem->dep_map, _RET_IP_); in down_read_killable()
1579 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); in down_read_trylock()
1590 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write()
1601 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write_killable()
[all …]
H A Dmutex.c182 lockdep_init_map_wait(&lock->dep_map, name, key, 0, LD_WAIT_SLEEP); in mutex_init_lockep()
609 nest_lock = &ww_ctx->dep_map; in __mutex_lock_common()
614 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common()
620 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common()
644 lock_contended(&lock->dep_map, ip); in __mutex_lock_common()
748 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common()
767 mutex_release(&lock->dep_map, ip); in __mutex_lock_common()
816 mutex_acquire_nest(&ww->base.dep_map, 0, 1, &ww_ctx->dep_map, _RET_IP_); in ww_mutex_trylock()
938 mutex_release(&lock->dep_map, ip); in __mutex_unlock_slowpath()
1126 mutex_acquire_nest(&lock->dep_map, 0, 1, nest_lock, _RET_IP_); in _mutex_trylock_nest_lock()
H A Dpercpu-rwsem.c27 lockdep_init_map(&sem->dep_map, name, key, 0); in __percpu_init_rwsem()
232 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in percpu_down_write()
264 rwsem_release(&sem->dep_map, _RET_IP_); in percpu_up_write()
H A 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/drivers/tty/
H A 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/lib/
H A 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