Lines Matching refs:ce
26 struct intel_context *ce; in mocs_context_create() local
28 ce = intel_context_create(engine); in mocs_context_create()
29 if (IS_ERR(ce)) in mocs_context_create()
30 return ce; in mocs_context_create()
33 ce->ring_size = SZ_16K; in mocs_context_create()
35 return ce; in mocs_context_create()
218 struct intel_context *ce) in check_mocs_engine() argument
228 rq = intel_context_create_request(ce); in check_mocs_engine()
238 if (!err && ce->engine->class == RENDER_CLASS) in check_mocs_engine()
250 err = check_mocs_table(ce->engine, arg->mocs, &vaddr); in check_mocs_engine()
251 if (!err && ce->engine->class == RENDER_CLASS) in check_mocs_engine()
252 err = check_l3cc_table(ce->engine, arg->l3cc, &vaddr); in check_mocs_engine()
301 struct intel_context *ce; in live_mocs_clean() local
303 ce = mocs_context_create(engine); in live_mocs_clean()
304 if (IS_ERR(ce)) { in live_mocs_clean()
305 err = PTR_ERR(ce); in live_mocs_clean()
309 err = check_mocs_engine(&mocs, ce); in live_mocs_clean()
310 intel_context_put(ce); in live_mocs_clean()
319 static int active_engine_reset(struct intel_context *ce, in active_engine_reset() argument
327 err = igt_spinner_init(&spin, ce->engine->gt); in active_engine_reset()
331 rq = igt_spinner_create_request(&spin, ce, MI_NOOP); in active_engine_reset()
339 err = intel_engine_reset(ce->engine, reason); in active_engine_reset()
352 struct intel_context *ce, bool using_guc) in __live_mocs_reset() argument
354 struct intel_gt *gt = ce->engine->gt; in __live_mocs_reset()
359 err = intel_engine_reset(ce->engine, "mocs"); in __live_mocs_reset()
363 err = check_mocs_engine(mocs, ce); in __live_mocs_reset()
368 err = active_engine_reset(ce, "mocs", using_guc); in __live_mocs_reset()
372 err = check_mocs_engine(mocs, ce); in __live_mocs_reset()
378 intel_gt_reset(gt, ce->engine->mask, "mocs"); in __live_mocs_reset()
380 err = check_mocs_engine(mocs, ce); in __live_mocs_reset()
406 struct intel_context *ce; in live_mocs_reset() local
414 ce = mocs_context_create(engine); in live_mocs_reset()
415 if (IS_ERR(ce)) { in live_mocs_reset()
416 err = PTR_ERR(ce); in live_mocs_reset()
422 err = __live_mocs_reset(&mocs, ce, using_guc); in live_mocs_reset()
425 intel_context_put(ce); in live_mocs_reset()