Home
last modified time | relevance | path

Searched refs:init_funcs (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/gpu/drm/xe/
H A Dxe_module.c75 struct init_funcs { struct
84 static const struct init_funcs init_funcs[] = { variable
112 if (WARN_ON(i >= ARRAY_SIZE(init_funcs))) in xe_call_init_func()
114 if (!init_funcs[i].init) in xe_call_init_func()
117 return init_funcs[i].init(); in xe_call_init_func()
122 if (WARN_ON(i >= ARRAY_SIZE(init_funcs))) in xe_call_exit_func()
124 if (!init_funcs[i].exit) in xe_call_exit_func()
127 init_funcs[i].exit(); in xe_call_exit_func()
134 for (i = 0; i < ARRAY_SIZE(init_funcs); i++) { in xe_init()
150 for (i = ARRAY_SIZE(init_funcs) - 1; i >= 0; i--) in xe_exit()
/linux/drivers/gpu/drm/i915/
H A Di915_module.c55 } init_funcs[] = { variable
87 for (i = 0; i < ARRAY_SIZE(init_funcs); i++) { in i915_init()
88 err = init_funcs[i].init(); in i915_init()
91 if (init_funcs[i].exit) in i915_init()
92 init_funcs[i].exit(); in i915_init()
102 WARN_ON(init_funcs[i].exit); in i915_init()
117 GEM_BUG_ON(i >= ARRAY_SIZE(init_funcs)); in i915_exit()
118 if (init_funcs[i].exit) in i915_exit()
119 init_funcs[i].exit(); in i915_exit()