Lines Matching refs:balancer
143 struct i915_context_engines_load_balance *balancer = in __set_load_balancer() local
154 balancer->base.name = I915_CONTEXT_ENGINES_EXT_LOAD_BALANCE; in __set_load_balancer()
155 balancer->base.next_extension = to_user_pointer(ext); in __set_load_balancer()
158 balancer->num_siblings = count; 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()
209 I915_DEFINE_CONTEXT_ENGINES_LOAD_BALANCE(balancer, 64); in invalid_balancer()
250 memset(&balancer, 0, sizeof(balancer)); in invalid_balancer()
251 balancer.base.name = I915_CONTEXT_ENGINES_EXT_LOAD_BALANCE; in invalid_balancer()
252 balancer.num_siblings = count; in invalid_balancer()
253 memcpy(balancer.engines, ci, count * sizeof(*ci)); in invalid_balancer()
255 engines.extensions = to_user_pointer(&balancer); in invalid_balancer()
258 balancer.engine_index = 1; in invalid_balancer()
261 balancer.engine_index = count; in invalid_balancer()
264 balancer.engine_index = count + 1; in invalid_balancer()
267 balancer.engine_index = 0; in invalid_balancer()
270 balancer.base.next_extension = to_user_pointer(&balancer); in invalid_balancer()
273 balancer.base.next_extension = -1ull; in invalid_balancer()
290 balancer.base.next_extension = 0; in invalid_balancer()
291 balancer.engine_index = 1; in invalid_balancer()
292 engines.extensions = to_user_pointer(&balancer); in invalid_balancer()
295 memcpy(ptr + 4096 - 8, &balancer, sizeof(balancer)); in invalid_balancer()
296 memcpy(ptr + 8192 - 8, &balancer, sizeof(balancer)); in invalid_balancer()
297 balancer.engine_index = 0; in invalid_balancer()
302 balancer.base.next_extension = engines.extensions; in invalid_balancer()
303 engines.extensions = to_user_pointer(&balancer); in invalid_balancer()
314 balancer.base.next_extension = engines.extensions; in invalid_balancer()
315 engines.extensions = to_user_pointer(&balancer); in invalid_balancer()
733 struct i915_context_engines_load_balance *balancer; in indices() local
740 balancer = calloc(sizeof_load_balance(count), 1); in indices()
741 igt_assert(balancer); in indices()
743 balancer->base.name = in indices()
745 balancer->base.next_extension = in indices()
747 balancers = balancer; in indices()
749 balancer->engine_index = nengines++; in indices()
750 balancer->num_siblings = count; in indices()
752 memcpy(balancer->engines, in indices()