Home
last modified time | relevance | path

Searched refs:slab_blocks (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
H A Di915_buddy.c17 struct kmem_cache *slab_blocks; member
22 kmem_cache_shrink(global.slab_blocks); in i915_global_buddy_shrink()
27 kmem_cache_destroy(global.slab_blocks); in i915_global_buddy_exit()
37 global.slab_blocks = KMEM_CACHE(i915_buddy_block, SLAB_HWCACHE_ALIGN); in i915_global_buddy_init()
38 if (!global.slab_blocks) in i915_global_buddy_init()
51 block = kmem_cache_zalloc(global.slab_blocks, GFP_KERNEL); in i915_block_alloc()
64 kmem_cache_free(global.slab_blocks, block); in i915_block_free()
/kernel/linux/linux-6.6/drivers/gpu/drm/
H A Ddrm_buddy.c12 static struct kmem_cache *slab_blocks; variable
23 block = kmem_cache_zalloc(slab_blocks, GFP_KERNEL); in drm_block_alloc()
38 kmem_cache_free(slab_blocks, block); in drm_block_free()
809 kmem_cache_destroy(slab_blocks); in drm_buddy_module_exit()
814 slab_blocks = KMEM_CACHE(drm_buddy_block, 0); in drm_buddy_module_init()
815 if (!slab_blocks) in drm_buddy_module_init()

Completed in 2 milliseconds