Home
last modified time | relevance | path

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

/linux-6.6.21/include/drm/
Ddrm_buddy.h64 struct drm_buddy { struct
127 drm_buddy_block_size(struct drm_buddy *mm, in drm_buddy_block_size()
133 int drm_buddy_init(struct drm_buddy *mm, u64 size, u64 chunk_size);
135 void drm_buddy_fini(struct drm_buddy *mm);
140 int drm_buddy_alloc_blocks(struct drm_buddy *mm,
146 int drm_buddy_block_trim(struct drm_buddy *mm,
150 void drm_buddy_free_block(struct drm_buddy *mm, struct drm_buddy_block *block);
152 void drm_buddy_free_list(struct drm_buddy *mm, struct list_head *objects);
154 void drm_buddy_print(struct drm_buddy *mm, struct drm_printer *p);
155 void drm_buddy_block_print(struct drm_buddy *mm,
/linux-6.6.21/drivers/gpu/drm/
Ddrm_buddy.c14 static struct drm_buddy_block *drm_block_alloc(struct drm_buddy *mm, in drm_block_alloc()
35 static void drm_block_free(struct drm_buddy *mm, in drm_block_free()
41 static void list_insert_sorted(struct drm_buddy *mm, in list_insert_sorted()
68 static void mark_free(struct drm_buddy *mm, in mark_free()
97 int drm_buddy_init(struct drm_buddy *mm, u64 size, u64 chunk_size) in drm_buddy_init()
187 void drm_buddy_fini(struct drm_buddy *mm) in drm_buddy_fini()
203 static int split_block(struct drm_buddy *mm, in split_block()
263 static void __drm_buddy_free(struct drm_buddy *mm, in __drm_buddy_free()
293 void drm_buddy_free_block(struct drm_buddy *mm, in drm_buddy_free_block()
308 void drm_buddy_free_list(struct drm_buddy *mm, struct list_head *objects) in drm_buddy_free_list()
[all …]
DMakefile85 obj-$(CONFIG_DRM_BUDDY) += drm_buddy.o
/linux-6.6.21/drivers/gpu/drm/tests/
Ddrm_buddy_test.c46 static void __dump_block(struct kunit *test, struct drm_buddy *mm, in __dump_block()
55 static void dump_block(struct kunit *test, struct drm_buddy *mm, in dump_block()
67 static int check_block(struct kunit *test, struct drm_buddy *mm, in check_block()
141 static int check_blocks(struct kunit *test, struct drm_buddy *mm, in check_blocks()
203 static int check_mm(struct kunit *test, struct drm_buddy *mm) in check_mm()
332 struct drm_buddy mm; in drm_test_buddy_alloc_pathological()
410 struct drm_buddy mm; in drm_test_buddy_alloc_smoke()
502 struct drm_buddy mm; in drm_test_buddy_alloc_pessimistic()
597 struct drm_buddy mm; in drm_test_buddy_alloc_optimistic()
642 struct drm_buddy mm; in drm_test_buddy_alloc_range()
[all …]
/linux-6.6.21/drivers/gpu/drm/i915/
Di915_ttm_buddy_manager.h16 struct drm_buddy;
36 struct drm_buddy *mm;
Di915_ttm_buddy_manager.c19 struct drm_buddy mm;
41 struct drm_buddy *mm = &bman->mm; in i915_ttm_buddy_man_alloc()
176 struct drm_buddy *mm = &bman->mm; in i915_ttm_buddy_man_intersects()
214 struct drm_buddy *mm = &bman->mm; in i915_ttm_buddy_man_compatible()
353 struct drm_buddy *mm = &bman->mm; in i915_ttm_buddy_man_fini()
391 struct drm_buddy *mm = &bman->mm; in i915_ttm_buddy_man_reserve()
Di915_scatterlist.c170 struct drm_buddy *mm = bman_res->mm; in i915_rsgt_from_buddy_resource()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vram_mgr.h31 struct drm_buddy mm;
Damdgpu_vram_mgr.c273 struct drm_buddy *mm = &mgr->mm; in amdgpu_vram_mgr_do_reserve()
432 struct drm_buddy *mm = &mgr->mm; in amdgpu_vram_mgr_new()
621 struct drm_buddy *mm = &mgr->mm; in amdgpu_vram_mgr_del()
841 struct drm_buddy *mm = &mgr->mm; in amdgpu_vram_mgr_debug()
/linux-6.6.21/drivers/gpu/drm/i915/selftests/
Dintel_memory_region.c374 struct drm_buddy *mm; in igt_mock_splintered_region()
459 struct drm_buddy *mm; in igt_mock_max_segment()
538 struct drm_buddy *mm = bman_res->mm; in igt_object_mappable_total()
/linux-6.6.21/Documentation/gpu/
Ddrm-mm.rst511 .. kernel-doc:: drivers/gpu/drm/drm_buddy.c