Lines Matching refs:ww_class
22 struct ww_class { struct
39 struct ww_class *ww_class; argument
55 struct ww_class *ww_class; member
61 , .ww_class = class
66 #define __WW_CLASS_INITIALIZER(ww_class, _is_wait_die) \ argument
68 , .acquire_name = #ww_class "_acquire" \
69 , .mutex_name = #ww_class "_mutex" \
77 struct ww_class classname = __WW_CLASS_INITIALIZER(classname, 1)
80 struct ww_class classname = __WW_CLASS_INITIALIZER(classname, 0)
82 #define DEFINE_WW_MUTEX(mutexname, ww_class) \ argument
83 struct ww_mutex mutexname = __WW_MUTEX_INITIALIZER(mutexname, ww_class)
96 struct ww_class *ww_class) in ww_mutex_init() argument
98 __mutex_init(&lock->base, ww_class->mutex_name, &ww_class->mutex_key); in ww_mutex_init()
101 lock->ww_class = ww_class; in ww_mutex_init()
130 struct ww_class *ww_class) in ww_acquire_init() argument
133 ctx->stamp = atomic_long_inc_return_relaxed(&ww_class->stamp); in ww_acquire_init()
136 ctx->is_wait_die = ww_class->is_wait_die; in ww_acquire_init()
138 ctx->ww_class = ww_class; in ww_acquire_init()
144 lockdep_init_map(&ctx->dep_map, ww_class->acquire_name, in ww_acquire_init()
145 &ww_class->acquire_key, 0); in ww_acquire_init()