/Linux-v5.4/include/linux/ |
D | rwlock_api_smp.h | 121 rwlock_acquire_read(&lock->dep_map, 0, 1, _RET_IP_); in __raw_read_trylock() 132 rwlock_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __raw_write_trylock() 149 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); in __raw_read_lock() 159 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() 196 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_write_lock_irq() 203 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_write_lock_bh() 210 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_write_lock() [all …]
|
D | spinlock_api_smp.h | 90 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() 128 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock_irq() 135 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock_bh() 142 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock() 150 spin_release(&lock->dep_map, 1, _RET_IP_); in __raw_spin_unlock() 158 spin_release(&lock->dep_map, 1, _RET_IP_); in __raw_spin_unlock_irqrestore() 166 spin_release(&lock->dep_map, 1, _RET_IP_); in __raw_spin_unlock_irq() 174 spin_release(&lock->dep_map, 1, _RET_IP_); in __raw_spin_unlock_bh() 183 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __raw_spin_trylock_bh()
|
D | lockdep.h | 312 lockdep_init_map(&(lock)->dep_map, #key, key, 0) 314 lockdep_init_map(&(lock)->dep_map, name, key, 0) 316 lockdep_init_map(&(lock)->dep_map, #key, key, sub) 318 lockdep_init_map(&(lock)->dep_map, #lock, \ 319 (lock)->dep_map.key, sub) 326 #define lockdep_match_class(lock, key) lockdep_match_key(&(lock)->dep_map, key) 365 #define lockdep_is_held(lock) lock_is_held(&(lock)->dep_map) 366 #define lockdep_is_held_type(lock, r) lock_is_held_type(&(lock)->dep_map, (r)) 408 #define lockdep_pin_lock(l) lock_pin_lock(&(l)->dep_map) 409 #define lockdep_repin_lock(l,c) lock_repin_lock(&(l)->dep_map, (c)) [all …]
|
D | spinlock_types.h | 27 struct lockdep_map dep_map; member 36 # define SPIN_DEP_MAP_INIT(lockname) .dep_map = { .name = #lockname } 66 # define LOCK_PADSIZE (offsetof(struct raw_spinlock, dep_map)) 69 struct lockdep_map dep_map; member
|
D | percpu-rwsem.h | 40 rwsem_acquire_read(&sem->rw_sem.dep_map, 0, 0, _RET_IP_); in percpu_down_read() 79 rwsem_acquire_read(&sem->rw_sem.dep_map, 0, 1, _RET_IP_); in percpu_down_read_trylock() 96 rwsem_release(&sem->rw_sem.dep_map, 1, _RET_IP_); in percpu_up_read() 121 lock_release(&sem->rw_sem.dep_map, 1, ip); in percpu_rwsem_release() 131 lock_acquire(&sem->rw_sem.dep_map, 0, 1, read, 1, NULL, ip); in percpu_rwsem_acquire()
|
D | srcu.h | 38 #define __SRCU_DEP_MAP_INIT(srcu_name) .dep_map = { .name = #srcu_name }, 86 return lock_is_held(&ssp->dep_map); in srcu_read_lock_held() 155 rcu_lock_acquire(&(ssp)->dep_map); in srcu_read_lock() 180 rcu_lock_release(&(ssp)->dep_map); in srcu_read_unlock()
|
D | seqlock.h | 51 struct lockdep_map dep_map; member 61 lockdep_init_map(&s->dep_map, name, key, 0); in __seqcount_init() 67 .dep_map = { .name = #lockname } \ 81 seqcount_acquire_read(&l->dep_map, 0, 0, _RET_IP_); in seqcount_lockdep_reader_access() 82 seqcount_release(&l->dep_map, 1, _RET_IP_); in seqcount_lockdep_reader_access() 377 seqcount_acquire(&s->dep_map, subclass, 0, _RET_IP_); in write_seqcount_begin_nested() 387 seqcount_release(&s->dep_map, 1, _RET_IP_); in write_seqcount_end()
|
D | rwsem.h | 52 struct lockdep_map dep_map; member 74 # define __RWSEM_DEP_MAP_INIT(lockname) , .dep_map = { .name = #lockname } 182 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \ 183 _down_write_nest_lock(sem, &(nest_lock)->dep_map); \
|
D | mutex.h | 64 struct lockdep_map dep_map; member 113 , .dep_map = { .name = #lockname } 160 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \ 161 _mutex_lock_nest_lock(lock, &(nest_lock)->dep_map); \
|
D | ww_mutex.h | 43 struct lockdep_map dep_map; member 144 lockdep_init_map(&ctx->dep_map, ww_class->acquire_name, in ww_acquire_init() 146 mutex_acquire(&ctx->dep_map, 0, 0, _RET_IP_); in ww_acquire_init() 185 mutex_release(&ctx->dep_map, 0, _THIS_IP_); in ww_acquire_fini()
|
D | rwlock_types.h | 18 struct lockdep_map dep_map; member 25 # define RW_DEP_MAP_INIT(lockname) .dep_map = { .name = #lockname }
|
D | rtmutex.h | 41 struct lockdep_map dep_map; member 80 , .dep_map = { .name = #mutexname }
|
/Linux-v5.4/tools/lib/lockdep/include/liblockdep/ |
D | rwlock.h | 10 struct lockdep_map dep_map; member 18 .dep_map = STATIC_LOCKDEP_MAP_INIT(#rwl, &((&(rwl))->dep_map)), \ 26 lockdep_init_map(&lock->dep_map, name, key, 0); in __rwlock_init() 40 lock_acquire(&lock->dep_map, 0, 0, 2, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_rdlock() 47 lock_release(&lock->dep_map, 0, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_unlock() 53 lock_acquire(&lock->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_wrlock() 59 lock_acquire(&lock->dep_map, 0, 1, 2, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_tryrdlock() 65 lock_acquire(&lock->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_trywrlock()
|
D | mutex.h | 11 struct lockdep_map dep_map; member 19 .dep_map = STATIC_LOCKDEP_MAP_INIT(#mtx, &((&(mtx))->dep_map)), \ 27 lockdep_init_map(&lock->dep_map, name, key, 0); in __mutex_init() 39 lock_acquire(&lock->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_mutex_lock() 45 lock_release(&lock->dep_map, 0, (unsigned long)_RET_IP_); in liblockdep_pthread_mutex_unlock() 51 lock_acquire(&lock->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_mutex_trylock() 57 lockdep_reset_lock(&lock->dep_map); in liblockdep_pthread_mutex_destroy()
|
/Linux-v5.4/tools/lib/lockdep/ |
D | preload.c | 22 struct lockdep_map dep_map; /* Since all locks are dynamic, we need member 200 lockdep_init_map(&l->dep_map, l->name, &l->key, 0); in __get_lock() 255 lock_acquire(&__get_lock(mutex)->dep_map, 0, 0, 0, 1, NULL, in pthread_mutex_lock() 273 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); in pthread_mutex_lock() 284 lock_acquire(&__get_lock(mutex)->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); in pthread_mutex_trylock() 287 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); in pthread_mutex_trylock() 298 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); in pthread_mutex_unlock() 306 lock_acquire(&__get_lock(mutex)->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); in pthread_mutex_unlock() 355 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 0, 2, 1, NULL, (unsigned long)_RET_IP_); in pthread_rwlock_rdlock() 358 lock_release(&__get_lock(rwlock)->dep_map, 0, (unsigned long)_RET_IP_); in pthread_rwlock_rdlock() [all …]
|
/Linux-v5.4/drivers/tty/ |
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, 1, _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, 1, _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-v5.4/kernel/locking/ |
D | rwsem.c | 332 lockdep_init_map(&sem->dep_map, name, key, 0); in __init_rwsem() 1495 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read() 1504 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read_killable() 1507 rwsem_release(&sem->dep_map, 1, _RET_IP_); in down_read_killable() 1523 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); in down_read_trylock() 1534 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write() 1545 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write_killable() 1549 rwsem_release(&sem->dep_map, 1, _RET_IP_); in down_write_killable() 1565 rwsem_acquire(&sem->dep_map, 0, 1, _RET_IP_); in down_write_trylock() 1576 rwsem_release(&sem->dep_map, 1, _RET_IP_); in up_read() [all …]
|
D | mutex.c | 956 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common() 961 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common() 981 lock_contended(&lock->dep_map, ip); in __mutex_lock_common() 1079 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common() 1094 mutex_release(&lock->dep_map, 1, ip); in __mutex_lock_common() 1191 0, ctx ? &ctx->dep_map : NULL, _RET_IP_, in ww_mutex_lock() 1207 0, ctx ? &ctx->dep_map : NULL, _RET_IP_, in ww_mutex_lock_interruptible() 1228 mutex_release(&lock->dep_map, 1, ip); in __mutex_unlock_slowpath() 1420 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); in mutex_trylock()
|
D | spinlock.c | 361 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in _raw_spin_lock_nested() 373 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in _raw_spin_lock_irqsave_nested() 384 spin_acquire_nest(&lock->dep_map, 0, 0, nest_lock, _RET_IP_); in _raw_spin_lock_nest_lock()
|
D | rtmutex.c | 1471 mutex_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in __rt_mutex_lock() 1517 mutex_acquire(&lock->dep_map, 0, 0, _RET_IP_); in rt_mutex_lock_interruptible() 1520 mutex_release(&lock->dep_map, 1, _RET_IP_); in rt_mutex_lock_interruptible() 1559 mutex_acquire(&lock->dep_map, 0, 0, _RET_IP_); in rt_mutex_timed_lock() 1564 mutex_release(&lock->dep_map, 1, _RET_IP_); in rt_mutex_timed_lock() 1590 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); in rt_mutex_trylock() 1603 mutex_release(&lock->dep_map, 1, _RET_IP_); in rt_mutex_unlock()
|
D | spinlock_debug.c | 24 lockdep_init_map(&lock->dep_map, name, key, 0); in __raw_spin_lock_init() 42 lockdep_init_map(&lock->dep_map, name, key, 0); in __rwlock_init()
|
/Linux-v5.4/lib/ |
D | locking-selftest.c | 1066 # define I_SPINLOCK(x) lockdep_reset_lock(&lock_##x.dep_map) 1067 # define I_RWLOCK(x) lockdep_reset_lock(&rwlock_##x.dep_map) 1068 # define I_MUTEX(x) lockdep_reset_lock(&mutex_##x.dep_map) 1069 # define I_RWSEM(x) lockdep_reset_lock(&rwsem_##x.dep_map) 1070 # define I_WW(x) lockdep_reset_lock(&x.dep_map) 1072 # define I_RTMUTEX(x) lockdep_reset_lock(&rtmutex_##x.dep_map) 1478 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); in ww_test_edeadlk_normal() 1491 mutex_acquire(&o2.base.dep_map, 0, 1, _THIS_IP_); in ww_test_edeadlk_normal() 1503 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); in ww_test_edeadlk_normal_slow() 1517 mutex_acquire(&o2.base.dep_map, 0, 1, _THIS_IP_); in ww_test_edeadlk_normal_slow() [all …]
|
D | bucket_locks.c | 39 lockdep_init_map(&tlocks[i].dep_map, name, key, 0); in __alloc_bucket_spinlocks()
|
/Linux-v5.4/drivers/gpu/drm/i915/gem/ |
D | i915_gem_shrinker.c | 493 mutex_acquire(&i915->drm.struct_mutex.dep_map, in i915_gem_shrinker_taints_mutex() 508 mutex_acquire(&i915->drm.struct_mutex.dep_map, in i915_gem_shrinker_taints_mutex() 511 mutex_acquire(&mutex->dep_map, 0, 0, _RET_IP_); in i915_gem_shrinker_taints_mutex() 512 mutex_release(&mutex->dep_map, 0, _RET_IP_); in i915_gem_shrinker_taints_mutex() 514 mutex_release(&i915->drm.struct_mutex.dep_map, 0, _RET_IP_); in i915_gem_shrinker_taints_mutex() 519 mutex_release(&i915->drm.struct_mutex.dep_map, 0, _RET_IP_); in i915_gem_shrinker_taints_mutex()
|
/Linux-v5.4/drivers/gpu/drm/i915/gt/ |
D | intel_engine_pm.c | 47 mutex_acquire(&ce->timeline->mutex.dep_map, 2, 0, _THIS_IP_); in __timeline_mark_lock() 55 mutex_release(&ce->timeline->mutex.dep_map, 0, _THIS_IP_); in __timeline_mark_unlock()
|