Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/include/linux/
Dlockdep.h218 lockdep_init_map_type(&(lock)->dep_map, #key, key, 0, \
219 (lock)->dep_map.wait_type_inner, \
220 (lock)->dep_map.wait_type_outer, \
221 (lock)->dep_map.lock_type)
224 lockdep_init_map_type(&(lock)->dep_map, name, key, 0, \
225 (lock)->dep_map.wait_type_inner, \
226 (lock)->dep_map.wait_type_outer, \
227 (lock)->dep_map.lock_type)
230 lockdep_init_map_type(&(lock)->dep_map, #key, key, sub, \
231 (lock)->dep_map.wait_type_inner, \
[all …]
Drwlock_api_smp.h121 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 …]
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()
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, _RET_IP_); in __raw_spin_unlock()
158 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock_irqrestore()
166 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock_irq()
174 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock_bh()
183 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()
144 lock_release(&sem->dep_map, ip); in percpu_rwsem_release()
150 lock_acquire(&sem->dep_map, 0, 1, read, 1, NULL, ip); in percpu_rwsem_acquire()
Dspinlock_types.h27 struct lockdep_map dep_map; member
37 .dep_map = { \
42 .dep_map = { \
76 # define LOCK_PADSIZE (offsetof(struct raw_spinlock, dep_map))
79 struct lockdep_map dep_map; member
Dlocal_lock_internal.h11 struct lockdep_map dep_map; member
18 .dep_map = { \
27 lock_map_acquire(&l->dep_map); in local_lock_acquire()
36 lock_map_release(&l->dep_map); in local_lock_release()
57 lockdep_init_map_type(&(lock)->dep_map, #lock, &__key, \
Dsrcu.h38 #define __SRCU_DEP_MAP_INIT(srcu_name) .dep_map = { .name = #srcu_name },
89 return lock_is_held(&ssp->dep_map); in srcu_read_lock_held()
158 rcu_lock_acquire(&(ssp)->dep_map); in srcu_read_lock()
183 rcu_lock_release(&(ssp)->dep_map); in srcu_read_unlock()
Dmutex.h64 struct lockdep_map dep_map; member
124 , .dep_map = { \
174 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
175 _mutex_lock_nest_lock(lock, &(nest_lock)->dep_map); \
Drwsem.h52 struct lockdep_map dep_map; member
69 .dep_map = { \
182 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
183 _down_write_nest_lock(sem, &(nest_lock)->dep_map); \
Dww_mutex.h43 struct lockdep_map dep_map; member
136 lockdep_init_map(&ctx->dep_map, ww_class->acquire_name, in ww_acquire_init()
138 mutex_acquire(&ctx->dep_map, 0, 0, _RET_IP_); in ww_acquire_init()
177 mutex_release(&ctx->dep_map, _THIS_IP_); in ww_acquire_fini()
Drwlock_types.h18 struct lockdep_map dep_map; member
26 .dep_map = { \
Dseqlock.h68 struct lockdep_map dep_map; member
78 lockdep_init_map(&s->dep_map, name, key, 0); in __seqcount_init()
85 .dep_map = { .name = #lockname }
103 seqcount_acquire_read(&l->dep_map, 0, 0, _RET_IP_); in seqcount_lockdep_reader_access()
104 seqcount_release(&l->dep_map, _RET_IP_); in seqcount_lockdep_reader_access()
515 seqcount_acquire(&s->dep_map, subclass, 0, _RET_IP_); in write_seqcount_t_begin_nested()
560 seqcount_release(&s->dep_map, _RET_IP_); in write_seqcount_t_end()
Drtmutex.h41 struct lockdep_map dep_map; member
80 , .dep_map = { .name = #mutexname }
/kernel/linux/linux-5.10/tools/lib/lockdep/include/liblockdep/
Drwlock.h10 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, (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()
Dmutex.h11 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, (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()
/kernel/linux/linux-5.10/tools/lib/lockdep/
Dpreload.c22 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, (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, (unsigned long)_RET_IP_); in pthread_mutex_trylock()
298 lock_release(&__get_lock(mutex)->dep_map, (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, (unsigned long)_RET_IP_); in pthread_rwlock_rdlock()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/kernel/locking/
Drwsem.c331 lockdep_init_map_wait(&sem->dep_map, name, key, 0, LD_WAIT_SLEEP); in __init_rwsem()
1504 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read()
1513 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read_interruptible()
1516 rwsem_release(&sem->dep_map, _RET_IP_); in down_read_interruptible()
1527 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read_killable()
1530 rwsem_release(&sem->dep_map, _RET_IP_); in down_read_killable()
1546 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); in down_read_trylock()
1557 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write()
1568 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write_killable()
1572 rwsem_release(&sem->dep_map, _RET_IP_); in down_write_killable()
[all …]
Dpercpu-rwsem.c25 lockdep_init_map(&sem->dep_map, name, key, 0); in __percpu_init_rwsem()
217 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in percpu_down_write()
244 rwsem_release(&sem->dep_map, _RET_IP_); in percpu_up_write()
Dmutex.c968 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common()
973 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common()
993 lock_contended(&lock->dep_map, ip); in __mutex_lock_common()
1085 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common()
1100 mutex_release(&lock->dep_map, ip); in __mutex_lock_common()
1197 0, ctx ? &ctx->dep_map : NULL, _RET_IP_, in ww_mutex_lock()
1213 0, ctx ? &ctx->dep_map : NULL, _RET_IP_, in ww_mutex_lock_interruptible()
1234 mutex_release(&lock->dep_map, ip); in __mutex_unlock_slowpath()
1426 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); in mutex_trylock()
Dspinlock.c361 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()
Drtmutex.c1469 mutex_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in __rt_mutex_lock()
1515 mutex_acquire(&lock->dep_map, 0, 0, _RET_IP_); in rt_mutex_lock_interruptible()
1518 mutex_release(&lock->dep_map, _RET_IP_); in rt_mutex_lock_interruptible()
1557 mutex_acquire(&lock->dep_map, 0, 0, _RET_IP_); in rt_mutex_timed_lock()
1562 mutex_release(&lock->dep_map, _RET_IP_); in rt_mutex_timed_lock()
1588 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); in rt_mutex_trylock()
1601 mutex_release(&lock->dep_map, _RET_IP_); in rt_mutex_unlock()
/kernel/linux/linux-5.10/lib/
Dlocking-selftest.c1308 # define I_SPINLOCK(x) lockdep_reset_lock(&lock_##x.dep_map)
1309 # define I_RWLOCK(x) lockdep_reset_lock(&rwlock_##x.dep_map)
1310 # define I_MUTEX(x) lockdep_reset_lock(&mutex_##x.dep_map)
1311 # define I_RWSEM(x) lockdep_reset_lock(&rwsem_##x.dep_map)
1312 # define I_WW(x) lockdep_reset_lock(&x.dep_map)
1314 # define I_RTMUTEX(x) lockdep_reset_lock(&rtmutex_##x.dep_map)
1768 mutex_release(&o2.base.dep_map, _THIS_IP_); in ww_test_edeadlk_normal()
1781 mutex_acquire(&o2.base.dep_map, 0, 1, _THIS_IP_); in ww_test_edeadlk_normal()
1793 mutex_release(&o2.base.dep_map, _THIS_IP_); in ww_test_edeadlk_normal_slow()
1807 mutex_acquire(&o2.base.dep_map, 0, 1, _THIS_IP_); in ww_test_edeadlk_normal_slow()
[all …]
Dbucket_locks.c39 lockdep_init_map(&tlocks[i].dep_map, name, key, 0); in __alloc_bucket_spinlocks()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dintel_engine_pm.c66 mutex_acquire(&ce->timeline->mutex.dep_map, 2, 0, _THIS_IP_); in __timeline_mark_lock()
74 mutex_release(&ce->timeline->mutex.dep_map, _THIS_IP_); in __timeline_mark_unlock()

123