Lines Matching refs:class
17 intel_engine_lookup_user(struct drm_i915_private *i915, u8 class, u8 instance) in intel_engine_lookup_user() argument
25 if (class < it->uabi_class) in intel_engine_lookup_user()
27 else if (class > it->uabi_class || in intel_engine_lookup_user()
64 if (uabi_classes[a->class] < uabi_classes[b->class]) in engine_cmp()
66 if (uabi_classes[a->class] > uabi_classes[b->class]) in engine_cmp()
139 const char *intel_engine_class_repr(u8 class) in intel_engine_class_repr() argument
150 if (class >= ARRAY_SIZE(uabi_names) || !uabi_names[class]) in intel_engine_class_repr()
153 return uabi_names[class]; in intel_engine_class_repr()
158 u8 class; member
174 if (GEM_DEBUG_WARN_ON(ring->class >= ARRAY_SIZE(map))) in legacy_ring_idx()
177 if (GEM_DEBUG_WARN_ON(ring->instance >= map[ring->class].max)) in legacy_ring_idx()
180 return map[ring->class].base + ring->instance; in legacy_ring_idx()
186 if (engine->gt != ring->gt || engine->class != ring->class) { in add_legacy_ring()
188 ring->class = engine->class; in add_legacy_ring()
226 GEM_BUG_ON(engine->class >= ARRAY_SIZE(uabi_classes)); in intel_engines_driver_register()
227 engine->uabi_class = uabi_classes[engine->class]; in intel_engines_driver_register()
243 intel_engine_class_repr(engine->class), in intel_engines_driver_register()
267 int class, inst; in intel_engines_driver_register() local
270 for (class = 0; class < ARRAY_SIZE(i915->engine_uabi_class_count); class++) { in intel_engines_driver_register()
271 for (inst = 0; inst < i915->engine_uabi_class_count[class]; inst++) { in intel_engines_driver_register()
273 class, inst); in intel_engines_driver_register()
276 class, inst); in intel_engines_driver_register()
281 if (engine->uabi_class != class || in intel_engines_driver_register()
287 class, inst); in intel_engines_driver_register()