Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/gpu/drm/
Ddrm_buddy.c159 BUG_ON(drm_buddy_block_size(mm, root) < chunk_size); in drm_buddy_init()
297 mm->avail += drm_buddy_block_size(mm, block); in drm_buddy_free_block()
363 block_end = block_start + drm_buddy_block_size(mm, block) - 1; in alloc_range_bias()
516 block_end = block_start + drm_buddy_block_size(mm, block) - 1; in __alloc_range()
533 mm->avail -= drm_buddy_block_size(mm, block); in __alloc_range()
620 if (new_size > drm_buddy_block_size(mm, block)) in drm_buddy_block_trim()
626 if (new_size == drm_buddy_block_size(mm, block)) in drm_buddy_block_trim()
631 mm->avail += drm_buddy_block_size(mm, block); in drm_buddy_block_trim()
642 mm->avail -= drm_buddy_block_size(mm, block); in drm_buddy_block_trim()
735 mm->avail -= drm_buddy_block_size(mm, block); in drm_buddy_alloc_blocks()
[all …]
/linux-6.6.21/drivers/gpu/drm/tests/
Ddrm_buddy_test.c52 drm_buddy_block_size(mm, block), !block->parent, buddy); in __dump_block()
84 block_size = drm_buddy_block_size(mm, block); in check_block()
126 if (drm_buddy_block_size(mm, buddy) != block_size) { in check_block()
167 prev_block_size = drm_buddy_block_size(mm, prev); in check_blocks()
179 total += drm_buddy_block_size(mm, block); in check_blocks()
259 prev_block_size = drm_buddy_block_size(mm, prev); in check_mm()
279 total += drm_buddy_block_size(mm, root); in check_mm()
468 total += drm_buddy_block_size(&mm, block); in drm_test_buddy_alloc_smoke()
720 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_size(&mm, block), in drm_test_buddy_alloc_limit()
723 drm_buddy_block_size(&mm, block), in drm_test_buddy_alloc_limit()
/linux-6.6.21/drivers/gpu/drm/i915/
Di915_ttm_buddy_manager.c129 (drm_buddy_block_size(mm, block) >> PAGE_SHIFT); in i915_ttm_buddy_man_alloc()
198 (drm_buddy_block_size(mm, block) >> PAGE_SHIFT); in i915_ttm_buddy_man_intersects()
231 (drm_buddy_block_size(mm, block) >> PAGE_SHIFT); in i915_ttm_buddy_man_compatible()
Di915_scatterlist.c205 block_size = min_t(u64, size, drm_buddy_block_size(mm, block)); in i915_rsgt_from_buddy_resource()
/linux-6.6.21/include/drm/
Ddrm_buddy.h127 drm_buddy_block_size(struct drm_buddy *mm, in drm_buddy_block_size() function
/linux-6.6.21/drivers/gpu/drm/i915/selftests/
Dintel_memory_region.c498 if (drm_buddy_block_size(mm, block) > size) in igt_mock_max_segment()
499 size = drm_buddy_block_size(mm, block); in igt_mock_max_segment()
545 u64 end = start + drm_buddy_block_size(mm, block); in igt_object_mappable_total()