Searched refs:last_context (Results 1 – 7 of 7) sorted by relevance
57 static unsigned int first_context, last_context; variable66 (sizeof(unsigned long) * (last_context / BITS_PER_LONG + 1))90 max = last_context - first_context; in steal_context_smp()102 if (id > last_context) in steal_context_smp()145 for (id = first_context; id <= last_context; id++) { in steal_all_contexts()166 nr_free_contexts = last_context - first_context; in steal_all_contexts()204 for (id = first_context; id <= last_context; id++) { in context_check_map()265 if (id > last_context) in switch_mmu_context()289 id = find_next_zero_bit(map, last_context+1, id); in switch_mmu_context()290 if (id > last_context) in switch_mmu_context()[all …]
311 struct intel_context *lctx = ring->last_context; in i915_gem_context_reset()318 ring->last_context = NULL; in i915_gem_context_reset()389 WARN_ON(!dev_priv->ring[RCS].last_context); in i915_gem_context_fini()390 if (dev_priv->ring[RCS].last_context == dctx) { in i915_gem_context_fini()395 dev_priv->ring[RCS].last_context = NULL; in i915_gem_context_fini()404 if (ring->last_context) in i915_gem_context_fini()405 i915_gem_context_unreference(ring->last_context); in i915_gem_context_fini()408 ring->last_context = NULL; in i915_gem_context_fini()640 struct intel_context *from = ring->last_context; in do_switch()667 from = ring->last_context; in do_switch()[all …]
281 struct intel_context *last_context; member
2398 request->ctx = ring->last_context; in __i915_add_request()
256 if (new == dev->last_context) { in drm_context_switch()278 dev->last_context = new; /* PRE/POST: This is the _only_ writer. */ in drm_context_switch_complete()404 return drm_context_switch(dev, dev->last_context, ctx->handle); in drm_legacy_switchctx()
318 dev->last_context = 0; in drm_legacy_dev_reinit()
765 int last_context; /**< Last current context */ member