Home
last modified time | relevance | path

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

/openbsd/src/sys/dev/pci/drm/i915/gem/
Di915_gem_object.c45 static struct pool slab_objects; variable
81 obj = kmem_cache_zalloc(slab_objects, GFP_KERNEL); in i915_gem_object_alloc()
83 obj = pool_get(&slab_objects, PR_WAITOK | PR_ZERO); in i915_gem_object_alloc()
95 return kmem_cache_free(slab_objects, obj); in i915_gem_object_free()
97 pool_put(&slab_objects, obj); in i915_gem_object_free()
897 kmem_cache_destroy(slab_objects); in i915_objects_module_exit()
899 pool_destroy(&slab_objects); in i915_objects_module_exit()
906 slab_objects = KMEM_CACHE(drm_i915_gem_object, SLAB_HWCACHE_ALIGN); in i915_objects_module_init()
907 if (!slab_objects) in i915_objects_module_init()
910 pool_init(&slab_objects, sizeof(struct drm_i915_gem_object), in i915_objects_module_init()