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

/linux-master/tools/testing/selftests/locking/
H A Dww_mutex.sh7 # Runs API tests for struct ww_mutex (Wait/Wound mutexes)
8 if ! /sbin/modprobe -q -n test-ww_mutex; then
9 echo "ww_mutex: module test-ww_mutex is not found [SKIP]"
13 if /sbin/modprobe -q test-ww_mutex; then
14 /sbin/modprobe -q -r test-ww_mutex
15 echo "locking/ww_mutex: ok"
17 echo "locking/ww_mutex: [FAIL]"
H A DMakefile8 TEST_PROGS := ww_mutex.sh
/linux-master/include/linux/
H A Dww_mutex.h47 struct ww_mutex { struct
98 static inline void ww_mutex_init(struct ww_mutex *lock,
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)
329 ww_mutex_lock_slow_interruptible(struct ww_mutex *lock,
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)
364 static inline bool ww_mutex_is_locked(struct ww_mutex *loc
[all...]
H A Ddma-resv.h42 #include <linux/ww_mutex.h>
166 struct ww_mutex lock;
/linux-master/kernel/locking/
H A Dww_rt_mutex.c12 int ww_mutex_trylock(struct ww_mutex *lock, struct ww_acquire_ctx *ww_ctx)
38 __ww_rt_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ww_ctx,
79 ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx)
86 ww_mutex_lock_interruptible(struct ww_mutex *lock, struct ww_acquire_ctx *ctx)
92 void __sched ww_mutex_unlock(struct ww_mutex *lock)
H A Dww_mutex.h177 * Associate the ww_mutex @ww with the context @ww_ctx under which we acquired
181 ww_mutex_lock_acquired(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx)
200 * acquire a different ww_mutex? Bad!
378 ww_mutex_set_context_fastpath(struct ww_mutex *lock, struct ww_acquire_ctx *ctx)
417 struct ww_mutex *ww;
419 ww = container_of(lock, struct ww_mutex, base);
444 struct ww_mutex *ww = container_of(lock, struct ww_mutex, base);
545 struct ww_mutex *ww = container_of(lock, struct ww_mutex, bas
[all...]
H A Dmutex.c22 #include <linux/ww_mutex.h>
291 #include "ww_mutex.h"
307 struct ww_mutex *ww;
309 ww = container_of(lock, struct ww_mutex, base);
563 void __sched ww_mutex_unlock(struct ww_mutex *lock)
579 struct ww_mutex *ww;
589 ww = container_of(lock, struct ww_mutex, base);
775 int ww_mutex_trylock(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx)
845 ww_mutex_deadlock_injection(struct ww_mutex *lock, struct ww_acquire_ctx *ctx)
871 ww_mutex_lock(struct ww_mutex *loc
[all...]
H A Dtest-ww_mutex.c14 #include <linux/ww_mutex.h>
30 struct ww_mutex mutex;
123 struct ww_mutex mutex;
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;
435 struct ww_mutex *locks = stress->locks;
487 struct ww_mutex *loc
[all...]
H A DMakefile33 obj-$(CONFIG_WW_MUTEX_SELFTEST) += test-ww_mutex.o
H A Drtmutex.c25 #include <linux/ww_mutex.h>
47 static inline void ww_mutex_lock_acquired(struct ww_mutex *lock,
61 # define ww_container_of(rtm) container_of(rtm, struct ww_mutex, base)
62 # include "ww_mutex.h"
768 * There could be 'spurious' loops in the lock graph due to ww_mutex,
781 * Even when we start with ww_mutex we can disable deadlock detection,
782 * since we would supress a ww_mutex induced deadlock at [6] anyway.
861 * When the deadlock is due to ww_mutex; also see above. Don't
862 * report the deadlock and instead let the ww_mutex wound/die
1222 * Except for ww_mutex, i
[all...]
H A Dlocktorture.c542 #include <linux/ww_mutex.h>
549 static struct ww_mutex torture_ww_mutex_0, torture_ww_mutex_1, torture_ww_mutex_2;
578 struct ww_mutex *lock;
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_cs.h26 #include <linux/ww_mutex.h>
/linux-master/include/drm/
H A Ddrm_modeset_lock.h29 #include <linux/ww_mutex.h>
89 struct ww_mutex mutex;
H A Ddrm_exec.h7 #include <linux/ww_mutex.h>
/linux-master/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_validation.h33 #include <linux/ww_mutex.h>
/linux-master/include/linux/regulator/
H A Ddriver.h19 #include <linux/ww_mutex.h>
623 struct ww_mutex mutex; /* consumer lock */
/linux-master/drivers/gpu/drm/ttm/tests/
H A Dttm_bo_test.c11 #include <linux/ww_mutex.h>
/linux-master/lib/
H A Dlocking-selftest.c16 #include <linux/ww_mutex.h>
65 static struct ww_mutex o, o2, o3;
1726 * None of the ww_mutex codepaths should be taken in the 'normal'

Completed in 231 milliseconds