Lines Matching refs:engines
38 engines[count]); in sizeof_load_balance()
44 engines[count]); in sizeof_param_engines()
50 engines[count]); in sizeof_engines_bond()
72 struct i915_engine_class_instance *engines; in list_engines() local
74 engines = malloc(size * sizeof(*engines)); in list_engines()
75 igt_assert(engines); in list_engines()
91 engines = realloc(engines, in list_engines()
92 size * sizeof(*engines)); in list_engines()
93 igt_assert(engines); in list_engines()
96 engines[count++] = (struct i915_engine_class_instance){ in list_engines()
104 free(engines); in list_engines()
105 engines = NULL; in list_engines()
109 return engines; in list_engines()
116 struct i915_context_param_engines *engines = in __set_engines() local
122 .value = to_user_pointer(engines) in __set_engines()
125 engines->extensions = 0; in __set_engines()
126 memcpy(engines->engines, ci, count * sizeof(*ci)); in __set_engines()
145 struct i915_context_param_engines *engines = in __set_load_balancer() local
151 .value = to_user_pointer(engines) in __set_load_balancer()
159 memcpy(balancer->engines, ci, count * sizeof(*ci)); in __set_load_balancer()
161 engines->extensions = to_user_pointer(balancer); in __set_load_balancer()
162 engines->engines[0].engine_class = in __set_load_balancer()
164 engines->engines[0].engine_instance = in __set_load_balancer()
166 memcpy(engines->engines + 1, ci, count * sizeof(*ci)); in __set_load_balancer()
210 I915_DEFINE_CONTEXT_PARAM_ENGINES(engines, 64); in invalid_balancer()
213 .value = to_user_pointer(&engines) in invalid_balancer()
236 (count + 1) * sizeof(*engines.engines)); in invalid_balancer()
238 memset(&engines, 0, sizeof(engines)); in invalid_balancer()
239 engines.engines[0].engine_class = I915_ENGINE_CLASS_INVALID; in invalid_balancer()
240 engines.engines[0].engine_instance = I915_ENGINE_CLASS_INVALID_NONE; in invalid_balancer()
241 memcpy(engines.engines + 1, ci, count * sizeof(*ci)); in invalid_balancer()
244 engines.extensions = -1ull; in invalid_balancer()
247 engines.extensions = 1ull; in invalid_balancer()
253 memcpy(balancer.engines, ci, count * sizeof(*ci)); in invalid_balancer()
255 engines.extensions = to_user_pointer(&balancer); in invalid_balancer()
280 memset(&engines, 0, sizeof(engines)); in invalid_balancer()
281 engines.engines[0].engine_class = I915_ENGINE_CLASS_INVALID; in invalid_balancer()
282 engines.engines[0].engine_instance = I915_ENGINE_CLASS_INVALID_NONE; in invalid_balancer()
283 engines.engines[1].engine_class = I915_ENGINE_CLASS_INVALID; in invalid_balancer()
284 engines.engines[1].engine_instance = I915_ENGINE_CLASS_INVALID_NONE; in invalid_balancer()
285 memcpy(engines.engines + 2, ci, count * sizeof(ci)); in invalid_balancer()
287 (count + 2) * sizeof(*engines.engines)); in invalid_balancer()
292 engines.extensions = to_user_pointer(&balancer); in invalid_balancer()
299 engines.extensions = to_user_pointer(ptr) + 4096 - 8; in invalid_balancer()
302 balancer.base.next_extension = engines.extensions; in invalid_balancer()
303 engines.extensions = to_user_pointer(&balancer); in invalid_balancer()
308 engines.extensions = to_user_pointer(ptr) + 4096 - 8; in invalid_balancer()
311 engines.extensions = to_user_pointer(ptr) + 8192 - 8; in invalid_balancer()
314 balancer.base.next_extension = engines.extensions; in invalid_balancer()
315 engines.extensions = to_user_pointer(&balancer); in invalid_balancer()
320 engines.extensions = to_user_pointer(ptr) + 8192 - 8; in invalid_balancer()
333 I915_DEFINE_CONTEXT_PARAM_ENGINES(engines, 1); in invalid_bonds()
337 .value = to_user_pointer(&engines), in invalid_bonds()
338 .size = sizeof(engines), in invalid_bonds()
343 memset(&engines, 0, sizeof(engines)); in invalid_bonds()
353 engines.extensions = to_user_pointer(&bonds); in invalid_bonds()
362 engines.extensions = to_user_pointer(&bonds[1]); in invalid_bonds()
372 engines.extensions = to_user_pointer(ptr) + 4096; in invalid_bonds()
609 bonds[n].engines[0] = siblings[n]; in bonded()
705 I915_DEFINE_CONTEXT_PARAM_ENGINES(engines, I915_EXEC_RING_MASK + 1); in indices()
709 .value = to_user_pointer(&engines) in indices()
735 engines.engines[nengines].engine_class = in indices()
737 engines.engines[nengines].engine_instance = in indices()
752 memcpy(balancer->engines, in indices()
759 engines.extensions = to_user_pointer(balancers); in indices()