Searched refs:ww_class (Results 1 – 6 of 6) sorted by relevance
| /linux/include/linux/ |
| H A D | ww_mutex.h | 39 struct ww_class { struct 52 struct ww_class *ww_class; in context_lock_struct() argument 64 struct ww_class *ww_class; in context_lock_struct() local 86 #define __WW_CLASS_INITIALIZER(ww_class, _is_wait_die) \ argument 88 , .acquire_name = #ww_class "_acquire" \ 89 , .mutex_name = #ww_class "_mutex" \ 93 struct ww_class classname = __WW_CLASS_INITIALIZER(classname, 1) 96 struct ww_class classname = __WW_CLASS_INITIALIZER(classname, 0) 110 struct ww_class *ww_class) in ww_mutex_init() argument 112 ww_mutex_base_init(&lock->base, ww_class->mutex_name, &ww_class->mutex_key); in ww_mutex_init() [all …]
|
| H A D | dma-resv.h | 48 extern struct ww_class reservation_ww_class;
|
| /linux/kernel/locking/ |
| H A D | test-ww_mutex.c | 17 static DEFINE_WW_CLASS(ww_class); 58 static int __test_mutex(struct ww_class *class, unsigned int flags) in __test_mutex() 110 static int test_mutex(struct ww_class *class) in test_mutex() 124 static int test_aa(struct ww_class *class, bool trylock) in test_aa() 181 struct ww_class *class; 222 static int test_abba(struct ww_class *class, bool trylock, bool resolve) in test_abba() 284 struct ww_class *class; 321 static int __test_cycle(struct ww_class *class, unsigned int nthreads) in __test_cycle() 375 static int test_cycle(struct ww_class *class, unsigned int ncpus) in test_cycle() 392 struct ww_class *class; [all …]
|
| H A D | ww_mutex.h | 215 DEBUG_LOCKS_WARN_ON(ww_ctx->ww_class != ww->ww_class); in ww_mutex_lock_acquired()
|
| /linux/Documentation/locking/ |
| H A D | ww-mutex-design.rst | 122 static DEFINE_WW_CLASS(ww_class); 147 ww_acquire_init(ctx, &ww_class); 191 ww_acquire_init(ctx, &ww_class); 274 static DEFINE_WW_CLASS(ww_class); 292 ww_acquire_init(ctx, &ww_class); 383 - Using a different ww_class for the mutex than for the ww_acquire_ctx.
|
| /linux/lib/ |
| H A D | locking-selftest.c | 1790 t.ww_class = NULL; in ww_test_diff_class()
|