Home
last modified time | relevance | path

Searched refs:ww_mutex (Results 1 – 18 of 18) sorted by relevance

/linux-6.6.21/include/linux/
Dww_mutex.h47 struct ww_mutex { struct
98 static inline void ww_mutex_init(struct ww_mutex *lock, in ww_mutex_init()
234 extern int /* __must_check */ ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx);
266 extern int __must_check ww_mutex_lock_interruptible(struct ww_mutex *lock,
293 ww_mutex_lock_slow(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_slow()
329 ww_mutex_lock_slow_interruptible(struct ww_mutex *lock, in ww_mutex_lock_slow_interruptible()
338 extern void ww_mutex_unlock(struct ww_mutex *lock);
340 extern int __must_check ww_mutex_trylock(struct ww_mutex *lock,
351 static inline void ww_mutex_destroy(struct ww_mutex *lock) in ww_mutex_destroy()
364 static inline bool ww_mutex_is_locked(struct ww_mutex *lock) in ww_mutex_is_locked()
Ddma-resv.h166 struct ww_mutex lock;
/linux-6.6.21/kernel/locking/
Dww_rt_mutex.c12 int ww_mutex_trylock(struct ww_mutex *lock, struct ww_acquire_ctx *ww_ctx) in ww_mutex_trylock()
38 __ww_rt_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ww_ctx, in __ww_rt_mutex_lock()
79 ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock()
86 ww_mutex_lock_interruptible(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_interruptible()
92 void __sched ww_mutex_unlock(struct ww_mutex *lock) in ww_mutex_unlock()
Dww_mutex.h181 ww_mutex_lock_acquired(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_lock_acquired()
378 ww_mutex_set_context_fastpath(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_set_context_fastpath()
417 struct ww_mutex *ww; in __ww_mutex_kill()
419 ww = container_of(lock, struct ww_mutex, base); in __ww_mutex_kill()
444 struct ww_mutex *ww = container_of(lock, struct ww_mutex, base); in __ww_mutex_check_kill()
545 struct ww_mutex *ww = container_of(lock, struct ww_mutex, base); in __ww_mutex_add_waiter()
559 static inline void __ww_mutex_unlock(struct ww_mutex *lock) in __ww_mutex_unlock()
Dmutex.c307 struct ww_mutex *ww; in ww_mutex_spin_on_owner()
309 ww = container_of(lock, struct ww_mutex, base); in ww_mutex_spin_on_owner()
558 void __sched ww_mutex_unlock(struct ww_mutex *lock) in ww_mutex_unlock()
574 struct ww_mutex *ww; in __mutex_lock_common()
584 ww = container_of(lock, struct ww_mutex, base); in __mutex_lock_common()
770 int ww_mutex_trylock(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_trylock()
840 ww_mutex_deadlock_injection(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_deadlock_injection()
866 ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock()
881 ww_mutex_lock_interruptible(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_interruptible()
1051 __ww_mutex_lock_slowpath(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in __ww_mutex_lock_slowpath()
[all …]
Dtest-ww_mutex.c30 struct ww_mutex mutex;
123 struct ww_mutex mutex; in test_aa()
178 struct ww_mutex a_mutex;
179 struct ww_mutex b_mutex;
279 struct ww_mutex a_mutex;
280 struct ww_mutex *b_mutex;
384 struct ww_mutex *locks;
422 struct ww_mutex *locks = stress->locks; in stress_inorder_work()
473 struct ww_mutex *lock;
539 struct ww_mutex *lock = stress->locks + get_random_u32_below(nlocks); in stress_one_work()
[all …]
DMakefile33 obj-$(CONFIG_WW_MUTEX_SELFTEST) += test-ww_mutex.o
Drtmutex.c47 static inline void ww_mutex_lock_acquired(struct ww_mutex *lock, in ww_mutex_lock_acquired()
61 # define ww_container_of(rtm) container_of(rtm, struct ww_mutex, base)
1664 struct ww_mutex *ww = ww_container_of(rtm); in __rt_mutex_slowlock()
Dlocktorture.c503 static struct ww_mutex torture_ww_mutex_0, torture_ww_mutex_1, torture_ww_mutex_2;
532 struct ww_mutex *lock; in torture_ww_mutex_lock()
/linux-6.6.21/tools/testing/selftests/locking/
Dww_mutex.sh8 if ! /sbin/modprobe -q -n test-ww_mutex; then
13 if /sbin/modprobe -q test-ww_mutex; then
14 /sbin/modprobe -q -r test-ww_mutex
DMakefile8 TEST_PROGS := ww_mutex.sh
/linux-6.6.21/Documentation/locking/
Dww-mutex-design.rst125 struct ww_mutex lock;
236 e.g. when adjusting edges in a graph where each node has its own ww_mutex lock,
270 struct ww_mutex ww_mutex;
284 ww_mutex_unlock(entry->ww_mutex)
300 ret = ww_mutex_lock(obj->ww_mutex, ctx);
338 ww_mutex currently encapsulates a struct mutex, this means no extra overhead for
Dlocktypes.rst43 - ww_mutex
/linux-6.6.21/include/drm/
Ddrm_modeset_lock.h89 struct ww_mutex mutex;
/linux-6.6.21/include/linux/regulator/
Ddriver.h628 struct ww_mutex mutex; /* consumer lock */
/linux-6.6.21/Documentation/gpu/
Di915.rst362 dma_resv ww_mutex to serialize against other operations.
379 * -EDEADLK handling with ww_mutex
/linux-6.6.21/lib/
Dlocking-selftest.c65 static struct ww_mutex o, o2, o3;
DKconfig.debug1542 on the struct ww_mutex locking API.