• Home
  • Raw
  • Download

Lines Matching refs:engines

44 #define engine_class(e, n) ((e)->engines[(n)].engine_class)
45 #define engine_instance(e, n) ((e)->engines[(n)].engine_instance)
58 struct i915_context_param_engines stack = {}, *engines; in invalid_engines() local
87 engines = ptr + 4096; in invalid_engines()
90 param.size = sizeof(*engines) + sizeof(*engines->engines); in invalid_engines()
91 param.value = to_user_pointer(engines); in invalid_engines()
93 engines->engines[0].engine_class = -1; in invalid_engines()
96 mprotect(engines, 4096, PROT_READ); in invalid_engines()
99 mprotect(engines, 4096, PROT_WRITE); in invalid_engines()
100 engines->engines[0].engine_class = 0; in invalid_engines()
104 engines->extensions = to_user_pointer(ptr); in invalid_engines()
107 engines->extensions = 0; in invalid_engines()
110 param.value = to_user_pointer(engines - 1); in invalid_engines()
113 param.value = to_user_pointer(engines) - 1; in invalid_engines()
116 param.value = to_user_pointer(engines) - param.size + 1; in invalid_engines()
119 param.value = to_user_pointer(engines) + 4096; in invalid_engines()
122 param.value = to_user_pointer(engines) - param.size + 4096; in invalid_engines()
125 param.value = to_user_pointer(engines) - param.size + 4096 + 1; in invalid_engines()
128 param.value = to_user_pointer(engines) + 4096; in invalid_engines()
131 param.value = to_user_pointer(engines) + 4096 - 1; in invalid_engines()
134 param.value = to_user_pointer(engines) - 1; in invalid_engines()
137 param.value = to_user_pointer(engines - 1); in invalid_engines()
140 param.value = to_user_pointer(engines - 1) + 4096; in invalid_engines()
143 param.value = to_user_pointer(engines - 1) + 4096 - sizeof(*engines->engines) / 2; in invalid_engines()
171 munmap(engines, 4096); in invalid_engines()
177 I915_DEFINE_CONTEXT_PARAM_ENGINES(engines , I915_EXEC_RING_MASK + 1); in idempotent()
182 .value = to_user_pointer(&engines), in idempotent()
183 .size = sizeof(engines), in idempotent()
195 memset(&engines, 0, sizeof(engines)); in idempotent()
197 engines.engines[idx].engine_class = e->class; in idempotent()
198 engines.engines[idx].engine_instance = e->instance; in idempotent()
201 idx *= sizeof(*engines.engines); in idempotent()
205 memcpy(&expected, &engines, sizeof(expected)); in idempotent()
209 igt_assert(!memcmp(&expected, &engines, idx)); in idempotent()
217 igt_assert(!memcmp(&expected, &engines, idx)); in idempotent()
219 memset(&engines, 0, sizeof(engines)); in idempotent()
220 engines.engines[0].engine_class = I915_ENGINE_CLASS_INVALID; in idempotent()
221 engines.engines[0].engine_instance = I915_ENGINE_CLASS_INVALID_NONE; in idempotent()
222 idx = sizeof(*engines.engines); in idempotent()
226 memcpy(&expected, &engines, sizeof(expected)); in idempotent()
230 igt_assert(!memcmp(&expected, &engines, idx)); in idempotent()
232 memset(&engines, 0, sizeof(engines)); in idempotent()
233 p.size = sizeof(engines); in idempotent()
236 memcpy(&expected, &engines, sizeof(expected)); in idempotent()
239 igt_assert_eq(p.size, sizeof(engines)); in idempotent()
240 igt_assert(!memcmp(&expected, &engines, idx)); in idempotent()
247 I915_DEFINE_CONTEXT_PARAM_ENGINES(engines , I915_EXEC_RING_MASK + 1); in execute_one()
251 .value = to_user_pointer(&engines), in execute_one()
278 memset(&engines, 0, sizeof(engines)); in execute_one()
279 engine_class(&engines, 0) = e->class; in execute_one()
280 engine_instance(&engines, 0) = e->instance; in execute_one()
281 param.size = offsetof(typeof(engines), engines[1]); in execute_one()
291 memset(&engines.engines, -1, sizeof(engines.engines)); in execute_one()
293 engine_class(&engines, i) = e->class; in execute_one()
294 engine_instance(&engines, i) = e->instance; in execute_one()
332 I915_DEFINE_CONTEXT_PARAM_ENGINES(engines , I915_EXEC_RING_MASK + 1); in execute_oneforall()
336 .value = to_user_pointer(&engines), in execute_oneforall()
337 .size = sizeof(engines), in execute_oneforall()
342 memset(&engines, 0, sizeof(engines)); in execute_oneforall()
344 engine_class(&engines, i) = e->class; in execute_oneforall()
345 engine_instance(&engines, i) = e->instance; in execute_oneforall()
370 I915_DEFINE_CONTEXT_PARAM_ENGINES(engines , I915_EXEC_RING_MASK + 1); in execute_allforone()
374 .value = to_user_pointer(&engines), in execute_allforone()
380 memset(&engines, 0, sizeof(engines)); in execute_allforone()
382 engine_class(&engines, i) = e->class; in execute_allforone()
383 engine_instance(&engines, i) = e->instance; in execute_allforone()
421 I915_DEFINE_CONTEXT_PARAM_ENGINES(engines , I915_EXEC_RING_MASK + 1); in independent()
425 .value = to_user_pointer(&engines), in independent()
426 .size = sizeof(engines), in independent()
447 memset(&engines, 0, sizeof(engines)); /* All rcs0 */ in independent()