Searched refs:ww_mutex (Results 1 - 18 of 18) sorted by relevance
/linux-master/tools/testing/selftests/locking/ |
H A D | ww_mutex.sh | 7 # 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 D | Makefile | 8 TEST_PROGS := ww_mutex.sh
|
/linux-master/include/linux/ |
H A D | ww_mutex.h | 47 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 D | dma-resv.h | 42 #include <linux/ww_mutex.h> 166 struct ww_mutex lock;
|
/linux-master/kernel/locking/ |
H A D | ww_rt_mutex.c | 12 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 D | ww_mutex.h | 177 * 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 D | mutex.c | 22 #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 D | test-ww_mutex.c | 14 #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 D | Makefile | 33 obj-$(CONFIG_WW_MUTEX_SELFTEST) += test-ww_mutex.o
|
H A D | rtmutex.c | 25 #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 D | locktorture.c | 542 #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 D | amdgpu_cs.h | 26 #include <linux/ww_mutex.h>
|
/linux-master/include/drm/ |
H A D | drm_modeset_lock.h | 29 #include <linux/ww_mutex.h> 89 struct ww_mutex mutex;
|
H A D | drm_exec.h | 7 #include <linux/ww_mutex.h>
|
/linux-master/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_validation.h | 33 #include <linux/ww_mutex.h>
|
/linux-master/include/linux/regulator/ |
H A D | driver.h | 19 #include <linux/ww_mutex.h> 623 struct ww_mutex mutex; /* consumer lock */
|
/linux-master/drivers/gpu/drm/ttm/tests/ |
H A D | ttm_bo_test.c | 11 #include <linux/ww_mutex.h>
|
/linux-master/lib/ |
H A D | locking-selftest.c | 16 #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