Home
last modified time | relevance | path

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

/linux/include/drm/
H A Ddrm_buddy.h32 struct drm_buddy_block { struct
44 struct drm_buddy_block *left; argument
45 struct drm_buddy_block *right; argument
46 struct drm_buddy_block *parent; argument
80 struct drm_buddy_block **roots; argument
97 drm_buddy_block_offset(struct drm_buddy_block *block) in drm_buddy_block_offset()
103 drm_buddy_block_order(struct drm_buddy_block *block) in drm_buddy_block_order()
109 drm_buddy_block_state(struct drm_buddy_block *block) in drm_buddy_block_state()
115 drm_buddy_block_is_allocated(struct drm_buddy_block *block) in drm_buddy_block_is_allocated()
121 drm_buddy_block_is_clear(struct drm_buddy_block *block) in drm_buddy_block_is_clear()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_buddy.c14 static struct drm_buddy_block *drm_block_alloc(struct drm_buddy *mm, in drm_block_alloc()
15 struct drm_buddy_block *parent, in drm_block_alloc()
19 struct drm_buddy_block *block; in drm_block_alloc()
36 struct drm_buddy_block *block) in drm_block_free()
42 struct drm_buddy_block *block) in list_insert_sorted()
44 struct drm_buddy_block *node; in list_insert_sorted()
60 static void clear_reset(struct drm_buddy_block *block) in clear_reset()
65 static void mark_cleared(struct drm_buddy_block *block) in mark_cleared()
70 static void mark_allocated(struct drm_buddy_block *block) in mark_allocated()
79 struct drm_buddy_block *block) in mark_free()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_res_cursor.h58 struct drm_buddy_block *block; in amdgpu_res_first()
74 struct drm_buddy_block, in amdgpu_res_first()
84 block = list_entry(next, struct drm_buddy_block, link); in amdgpu_res_first()
127 struct drm_buddy_block *block; in amdgpu_res_next()
148 block = list_entry(next, struct drm_buddy_block, link); in amdgpu_res_next()
176 struct drm_buddy_block *block; in amdgpu_res_cleared()
H A Damdgpu_vram_mgr.h46 static inline u64 amdgpu_vram_mgr_block_start(struct drm_buddy_block *block) in amdgpu_vram_mgr_block_start()
51 static inline u64 amdgpu_vram_mgr_block_size(struct drm_buddy_block *block) in amdgpu_vram_mgr_block_size()
56 static inline bool amdgpu_vram_mgr_is_cleared(struct drm_buddy_block *block) in amdgpu_vram_mgr_is_cleared()
H A Damdgpu_vram_mgr.c55 static inline struct drm_buddy_block *
58 return list_first_entry_or_null(list, struct drm_buddy_block, link); in amdgpu_vram_mgr_first_block()
63 struct drm_buddy_block *block; in amdgpu_is_vram_mgr_blocks_contiguous()
74 block = list_entry(block->link.next, struct drm_buddy_block, link); in amdgpu_is_vram_mgr_blocks_contiguous()
84 struct drm_buddy_block *block; in amdgpu_vram_mgr_blocks_size()
254 struct drm_buddy_block *block) in amdgpu_vram_mgr_vis_size()
279 struct drm_buddy_block *block; in amdgpu_vram_mgr_bo_visible_size()
301 struct drm_buddy_block *block; in amdgpu_vram_mgr_do_reserve()
461 struct drm_buddy_block *block; in amdgpu_vram_mgr_new()
572 struct drm_buddy_block *dcc_block; in amdgpu_vram_mgr_new()
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_res_cursor.h84 struct drm_buddy_block *block; in xe_res_first()
91 struct drm_buddy_block, in xe_res_first()
101 block = list_entry(next, struct drm_buddy_block, in xe_res_first()
178 struct drm_buddy_block *block; in xe_res_next()
208 block = list_entry(next, struct drm_buddy_block, link); in xe_res_next()
215 block = list_entry(next, struct drm_buddy_block, link); in xe_res_next()
H A Dxe_ttm_vram_mgr.c19 static inline struct drm_buddy_block *
22 return list_first_entry_or_null(list, struct drm_buddy_block, link); in xe_ttm_vram_mgr_first_block()
28 struct drm_buddy_block *block; in xe_is_vram_mgr_blocks_contiguous()
39 block = list_entry(block->link.next, struct drm_buddy_block, in xe_is_vram_mgr_blocks_contiguous()
135 struct drm_buddy_block *block; in xe_ttm_vram_mgr_new()
161 struct drm_buddy_block *block = list_first_entry(&vres->blocks, in xe_ttm_vram_mgr_new()
227 struct drm_buddy_block *block; in xe_ttm_vram_mgr_intersects()
257 struct drm_buddy_block *block; in xe_ttm_vram_mgr_compatible()
/linux/drivers/gpu/drm/tests/
H A Ddrm_buddy_test.c29 struct drm_buddy_block *block; in drm_test_buddy_alloc_range_bias()
266 struct drm_buddy_block *block; in drm_test_buddy_alloc_clear()
407 struct drm_buddy_block *block; in drm_test_buddy_alloc_contiguous()
492 struct drm_buddy_block *block; in drm_test_buddy_alloc_pathological()
530 block = list_first_entry_or_null(&tmp, struct drm_buddy_block, link); in drm_test_buddy_alloc_pathological()
542 block = list_first_entry_or_null(&tmp, struct drm_buddy_block, link); in drm_test_buddy_alloc_pathological()
573 struct drm_buddy_block *block, *bn; in drm_test_buddy_alloc_pessimistic()
600 block = list_first_entry_or_null(&tmp, struct drm_buddy_block, link); in drm_test_buddy_alloc_pessimistic()
612 block = list_first_entry_or_null(&tmp, struct drm_buddy_block, link); in drm_test_buddy_alloc_pessimistic()
641 block = list_first_entry_or_null(&tmp, struct drm_buddy_block, link); in drm_test_buddy_alloc_pessimistic()
[all …]
/linux/drivers/gpu/drm/i915/
H A Di915_ttm_buddy_manager.c104 struct drm_buddy_block *block; in i915_ttm_buddy_man_alloc()
160 struct drm_buddy_block *block; in i915_ttm_buddy_man_intersects()
198 struct drm_buddy_block *block; in i915_ttm_buddy_man_compatible()
227 struct drm_buddy_block *block; in i915_ttm_buddy_man_debug()
H A Di915_scatterlist.c172 struct drm_buddy_block *block; in i915_rsgt_from_buddy_resource()
/linux/drivers/gpu/drm/i915/selftests/
H A Dintel_memory_region.c458 struct drm_buddy_block *block; in igt_mock_max_segment()
539 struct drm_buddy_block *block; in igt_object_mappable_total()