Searched refs:last_context (Results 1 - 7 of 7) sorted by relevance

/linux-4.1.27/arch/powerpc/mm/
H A Dmmu_context_nohash.c57 static unsigned int first_context, last_context; variable
66 (sizeof(unsigned long) * (last_context / BITS_PER_LONG + 1))
90 max = last_context - first_context; steal_context_smp()
102 if (id > last_context) steal_context_smp()
145 for (id = first_context; id <= last_context; id++) { steal_all_contexts()
166 nr_free_contexts = last_context - first_context; steal_all_contexts()
204 for (id = first_context; id <= last_context; id++) { context_check_map()
265 if (id > last_context) switch_mmu_context()
289 id = find_next_zero_bit(map, last_context+1, id); switch_mmu_context()
290 if (id > last_context) switch_mmu_context()
447 last_context = 15; mmu_context_init()
451 last_context = 65535; mmu_context_init()
455 last_context = 255; mmu_context_init()
460 last_context = DEBUG_CLAMP_LAST_CONTEXT; mmu_context_init()
466 context_mm = memblock_virt_alloc(sizeof(void *) * (last_context + 1), 0); mmu_context_init()
477 2 * CTX_MAP_SIZE + (sizeof(void *) * (last_context + 1)), mmu_context_init()
478 last_context - first_context + 1); mmu_context_init()
488 nr_free_contexts = last_context - first_context + 1; mmu_context_init()
/linux-4.1.27/drivers/gpu/drm/i915/
H A Di915_gem_context.c311 struct intel_context *lctx = ring->last_context; i915_gem_context_reset()
318 ring->last_context = NULL; i915_gem_context_reset()
389 WARN_ON(!dev_priv->ring[RCS].last_context); i915_gem_context_fini()
390 if (dev_priv->ring[RCS].last_context == dctx) { i915_gem_context_fini()
395 dev_priv->ring[RCS].last_context = NULL; i915_gem_context_fini()
404 if (ring->last_context) i915_gem_context_fini()
405 i915_gem_context_unreference(ring->last_context); i915_gem_context_fini()
408 ring->last_context = NULL; i915_gem_context_fini()
640 struct intel_context *from = ring->last_context; do_switch()
667 from = ring->last_context; do_switch()
788 ring->last_context = to; do_switch()
829 if (to != ring->last_context) { i915_switch_context()
831 if (ring->last_context) i915_switch_context()
832 i915_gem_context_unreference(ring->last_context); i915_switch_context()
833 ring->last_context = to; i915_switch_context()
H A Dintel_ringbuffer.h281 struct intel_context *last_context; member in struct:intel_engine_cs
H A Di915_gem.c2398 request->ctx = ring->last_context; __i915_add_request()
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_context.c256 if (new == dev->last_context) { drm_context_switch()
271 * Updates drm_device::last_context and drm_device::last_switch. Verifies the
278 dev->last_context = new; /* PRE/POST: This is the _only_ writer. */ drm_context_switch_complete()
404 return drm_context_switch(dev, dev->last_context, ctx->handle); drm_legacy_switchctx()
H A Ddrm_fops.c318 dev->last_context = 0; drm_legacy_dev_reinit()
/linux-4.1.27/include/drm/
H A DdrmP.h765 int last_context; /**< Last current context */ member in struct:drm_device

Completed in 352 milliseconds