Lines Matching refs:ww_class
38 struct ww_class { struct
51 struct ww_class *ww_class; argument
63 struct ww_class *ww_class; member
75 #define __WW_CLASS_INITIALIZER(ww_class, _is_wait_die) \ argument
77 , .acquire_name = #ww_class "_acquire" \
78 , .mutex_name = #ww_class "_mutex" \
82 struct ww_class classname = __WW_CLASS_INITIALIZER(classname, 1)
85 struct ww_class classname = __WW_CLASS_INITIALIZER(classname, 0)
99 struct ww_class *ww_class) in ww_mutex_init() argument
101 ww_mutex_base_init(&lock->base, ww_class->mutex_name, &ww_class->mutex_key); in ww_mutex_init()
104 lock->ww_class = ww_class; in ww_mutex_init()
133 struct ww_class *ww_class) in ww_acquire_init() argument
136 ctx->stamp = atomic_long_inc_return_relaxed(&ww_class->stamp); in ww_acquire_init()
139 ctx->is_wait_die = ww_class->is_wait_die; in ww_acquire_init()
141 ctx->ww_class = ww_class; in ww_acquire_init()
147 lockdep_init_map(&ctx->dep_map, ww_class->acquire_name, in ww_acquire_init()
148 &ww_class->acquire_key, 0); in ww_acquire_init()