Lines Matching refs:from
40 * from RC6 (GPU has it's own internal power context, except on gen5). Though
267 /* If called from reset, or thaw... we've been here already */
297 /* The only known way to stop the gpu from accessing the hw context is
305 * will be 2 (+1 from object creation and +1 from do_switch()).
419 struct i915_hw_context *from = ring->last_context;
423 BUG_ON(from != NULL && from->obj != NULL && from->obj->pin_count == 0);
425 if (from == to)
435 * (when switching away from it), this won't block.
448 else if (from == to) {
451 WARN_ON(from == to);
466 if (from != NULL) {
467 from->obj->base.read_domains = I915_GEM_DOMAIN_INSTRUCTION;
468 i915_gem_object_move_to_active(from->obj, ring);
476 from->obj->dirty = 1;
477 BUG_ON(from->obj->ring != ring);
486 WARN_ON(mi_set_context(ring, from, MI_RESTORE_INHIBIT));
490 i915_gem_object_unpin(from->obj);
491 i915_gem_context_unreference(from);