| /linux/include/linux/ |
| H A D | lockdep.h | 158 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 D | rwlock_api_smp.h | 122 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 D | spinlock_api_smp.h | 91 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 D | percpu-rwsem.h | 20 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 D | srcu.h | 56 #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 D | local_lock_internal.h | 16 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 D | spinlock_types_raw.h | 21 struct lockdep_map dep_map; member 32 .dep_map = { \ 37 .dep_map = { \ 43 .dep_map = { \
|
| H A D | mutex.h | 29 , .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 D | rcupdate_trace.h | 59 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 D | rtmutex.h | 70 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 D | spinlock_types.h | 22 # 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 D | ww_mutex.h | 68 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 D | rwlock_types.h | 10 .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 D | rwsem.h | 22 .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 D | mutex_types.h | 52 struct lockdep_map dep_map; member 65 struct lockdep_map dep_map; member
|
| H A D | seqlock.h | 48 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 D | spinlock_rt.c | 56 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 D | ww_rt_mutex.c | 29 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 D | rtmutex_api.c | 48 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 D | rwsem.c | 317 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 D | mutex.c | 182 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 D | percpu-rwsem.c | 27 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 D | spinlock.c | 378 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 D | tty_ldsem.c | 65 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 D | locking-selftest.c | 1348 # 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 …]
|