Lines Matching refs:contexts
284 struct i915_gem_context **contexts;
366 t->contexts[order[n] % t->ncontexts];
478 t.contexts = kcalloc(t.ncontexts, sizeof(*t.contexts), GFP_KERNEL);
479 if (!t.contexts) {
485 t.contexts[n] = mock_context(t.engine->i915, "mock");
486 if (!t.contexts[n]) {
532 if (!t.contexts[n])
534 mock_context_close(t.contexts[n]);
536 kfree(t.contexts);
1694 * Before execlists, all contexts share the same ringbuffer. With
1770 smoke[0].contexts = kcalloc(smoke[0].ncontexts,
1771 sizeof(*smoke[0].contexts),
1773 if (!smoke[0].contexts) {
1779 smoke[0].contexts[n] = live_context(i915, file);
1780 if (IS_ERR(smoke[0].contexts[n])) {
1781 ret = PTR_ERR(smoke[0].contexts[n]);
1795 max_batches(smoke[0].contexts[0], engine);
1858 kfree(smoke[0].contexts);