Home
last modified time | relevance | path

Searched refs:slab_vma_resources (Results 1 – 1 of 1) sorted by relevance

/openbsd/sys/dev/pci/drm/i915/
H A Di915_vma_resource.c16 static struct pool slab_vma_resources; variable
115 kmem_cache_zalloc(slab_vma_resources, GFP_KERNEL); in i915_vma_resource_alloc()
118 pool_get(&slab_vma_resources, PR_WAITOK | PR_ZERO); in i915_vma_resource_alloc()
132 kmem_cache_free(slab_vma_resources, vma_res); in i915_vma_resource_free()
135 pool_put(&slab_vma_resources, vma_res); in i915_vma_resource_free()
486 kmem_cache_destroy(slab_vma_resources); in i915_vma_resource_module_exit()
488 pool_destroy(&slab_vma_resources); in i915_vma_resource_module_exit()
495 slab_vma_resources = KMEM_CACHE(i915_vma_resource, SLAB_HWCACHE_ALIGN); in i915_vma_resource_module_init()
496 if (!slab_vma_resources) in i915_vma_resource_module_init()
499 pool_init(&slab_vma_resources, sizeof(struct i915_vma_resource), in i915_vma_resource_module_init()