Lines Matching refs:context_index
148 int ret, sv, context_index = 0; in intel_guc_steal_guc_ids() local
168 ce[context_index] = intel_context_create(engine); in intel_guc_steal_guc_ids()
169 if (IS_ERR(ce[context_index])) { in intel_guc_steal_guc_ids()
170 ret = PTR_ERR(ce[context_index]); in intel_guc_steal_guc_ids()
171 guc_err(guc, "Failed to create context: %pe\n", ce[context_index]); in intel_guc_steal_guc_ids()
172 ce[context_index] = NULL; in intel_guc_steal_guc_ids()
180 spin_rq = igt_spinner_create_request(&spin, ce[context_index], in intel_guc_steal_guc_ids()
195 ce[++context_index] = intel_context_create(engine); in intel_guc_steal_guc_ids()
196 if (IS_ERR(ce[context_index])) { in intel_guc_steal_guc_ids()
197 ret = PTR_ERR(ce[context_index]); in intel_guc_steal_guc_ids()
198 guc_err(guc, "Failed to create context: %pe\n", ce[context_index]); in intel_guc_steal_guc_ids()
199 ce[context_index--] = NULL; in intel_guc_steal_guc_ids()
203 rq = nop_user_request(ce[context_index], spin_rq); in intel_guc_steal_guc_ids()
209 last ? "" : "first ", context_index, ERR_PTR(ret)); in intel_guc_steal_guc_ids()
240 rq = nop_user_request(ce[context_index], NULL); in intel_guc_steal_guc_ids()
243 guc_err(guc, "Failed to steal guc_id %d: %pe\n", context_index, rq); in intel_guc_steal_guc_ids()
279 for (; context_index >= 0 && ce[context_index]; --context_index) in intel_guc_steal_guc_ids()
280 intel_context_put(ce[context_index]); in intel_guc_steal_guc_ids()