Lines Matching refs:ppgtt
146 i915_ppgtt_put(ctx->ppgtt); in i915_gem_context_free()
270 struct i915_hw_ppgtt *ppgtt = i915_ppgtt_create(dev, file_priv); in i915_gem_create_context() local
272 if (IS_ERR_OR_NULL(ppgtt)) { in i915_gem_create_context()
274 PTR_ERR(ppgtt)); in i915_gem_create_context()
275 ret = PTR_ERR(ppgtt); in i915_gem_create_context()
279 ctx->ppgtt = ppgtt; in i915_gem_create_context()
585 if (to->ppgtt) { in should_skip_switch()
587 &to->ppgtt->pd_dirty_rings)) in should_skip_switch()
603 if (!to->ppgtt) in needs_pd_load_pre()
621 if (!to->ppgtt) in needs_pd_load_post()
675 ret = to->ppgtt->switch_mm(to->ppgtt, ring); in do_switch()
680 clear_bit(ring->id, &to->ppgtt->pd_dirty_rings); in do_switch()
717 } else if (to->ppgtt && in do_switch()
718 test_and_clear_bit(ring->id, &to->ppgtt->pd_dirty_rings)) in do_switch()
734 ret = to->ppgtt->switch_mm(to->ppgtt, ring); in do_switch()