Lines Matching refs:contexts
284 struct i915_gem_context **contexts; member
355 t->contexts[order[n] % t->ncontexts]; in __igt_breadcrumbs_smoketest()
467 t.contexts = kcalloc(t.ncontexts, sizeof(*t.contexts), GFP_KERNEL); in mock_breadcrumbs_smoketest()
468 if (!t.contexts) { in mock_breadcrumbs_smoketest()
474 t.contexts[n] = mock_context(t.engine->i915, "mock"); in mock_breadcrumbs_smoketest()
475 if (!t.contexts[n]) { in mock_breadcrumbs_smoketest()
512 if (!t.contexts[n]) in mock_breadcrumbs_smoketest()
514 mock_context_close(t.contexts[n]); in mock_breadcrumbs_smoketest()
516 kfree(t.contexts); in mock_breadcrumbs_smoketest()
1713 smoke[0].contexts = kcalloc(smoke[0].ncontexts, in live_breadcrumbs_smoketest()
1714 sizeof(*smoke[0].contexts), in live_breadcrumbs_smoketest()
1716 if (!smoke[0].contexts) { in live_breadcrumbs_smoketest()
1722 smoke[0].contexts[n] = live_context(i915, file); in live_breadcrumbs_smoketest()
1723 if (IS_ERR(smoke[0].contexts[n])) { in live_breadcrumbs_smoketest()
1724 ret = PTR_ERR(smoke[0].contexts[n]); in live_breadcrumbs_smoketest()
1738 max_batches(smoke[0].contexts[0], engine); in live_breadcrumbs_smoketest()
1796 kfree(smoke[0].contexts); in live_breadcrumbs_smoketest()