| /linux-6.15/drivers/gpu/drm/ |
| H A D | drm_mm.c | 336 u64 hole_start; in find_hole_addr() local 344 if (addr < hole_start) in find_hole_addr() 453 u64 hole_start, hole_end; in drm_mm_reserve_node() local 483 if (node->start > hole_start) in drm_mm_reserve_node() 554 col_start = hole_start; in drm_mm_insert_node_in_range() 601 if (adj_start > hole_start) in drm_mm_insert_node_in_range() 750 u64 hole_start, hole_end; in drm_mm_scan_add_block() local 772 col_start = hole_start; in drm_mm_scan_add_block() 881 u64 hole_start, hole_end; in drm_mm_scan_color_evict() local 897 if (hole_start <= scan->hit_start && in drm_mm_scan_color_evict() [all …]
|
| /linux-6.15/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_gem_gtt.c | 245 u64 hole_start, u64 hole_end, in lowlevel_hole() argument 410 u64 hole_start, u64 hole_end, in fill_hole() argument 670 for (addr = hole_start; in walk_hole() 719 u64 hole_start, u64 hole_end, in pot_hole() argument 760 hole_start, hole_end, in pot_hole() 865 hole_start, hole_end, in drunk_hole() 905 u64 hole_start, u64 hole_end, in __shrink_hole() argument 1148 u64 hole_start, u64 hole_end, in misaligned_pin() argument 1293 if (hole_start < last) in exercise_ggtt() 1298 &hole_start, &hole_end); in exercise_ggtt() [all …]
|
| /linux-6.15/drivers/gpu/drm/xe/ |
| H A D | xe_ggtt.c | 720 u64 hole_start, hole_end, hole_size; in xe_ggtt_largest_hole() local 726 hole_start = max(hole_start, hole_min_start); in xe_ggtt_largest_hole() 727 hole_start = ALIGN(hole_start, alignment); in xe_ggtt_largest_hole() 729 if (hole_start >= hole_end) in xe_ggtt_largest_hole() 731 hole_size = hole_end - hole_start; in xe_ggtt_largest_hole() 820 u64 hole_start, hole_end, hole_size; in xe_ggtt_print_holes() local 827 hole_start = max(hole_start, hole_min_start); in xe_ggtt_print_holes() 828 hole_start = ALIGN(hole_start, alignment); in xe_ggtt_print_holes() 830 if (hole_start >= hole_end) in xe_ggtt_print_holes() 832 hole_size = hole_end - hole_start; in xe_ggtt_print_holes() [all …]
|
| /linux-6.15/drivers/gpu/drm/tests/ |
| H A D | drm_mm_test.c | 41 u64 hole_start, __always_unused hole_end; in assert_no_holes() local 45 drm_mm_for_each_hole(hole, mm, hole_start, hole_end) in assert_no_holes() 66 u64 hole_start, hole_end; in assert_one_hole() local 74 drm_mm_for_each_hole(hole, mm, hole_start, hole_end) { in assert_one_hole() 75 if (start != hole_start || end != hole_end) { in assert_one_hole() 79 hole_start, hole_end, start, end); in assert_one_hole()
|
| /linux-6.15/arch/sparc/kernel/ |
| H A D | adi_64.c | 163 unsigned long end_addr, hole_start, hole_end; in alloc_tag_store() local 167 hole_start = 0; in alloc_tag_store() 198 (tag_desc->end > hole_start)) in alloc_tag_store() 199 hole_start = tag_desc->end; in alloc_tag_store() 273 if (tmp_addr < hole_start) { in alloc_tag_store() 277 tmp_addr = hole_start + 1; in alloc_tag_store()
|
| /linux-6.15/fs/btrfs/tests/ |
| H A D | raid-stripe-tree-tests.c | 50 u64 hole_start = logical1 + SZ_256K; in test_punch_hole_3extents() local 133 ret = btrfs_delete_raid_extent(trans, hole_start, hole_len); in test_punch_hole_3extents() 136 hole_start, hole_start + hole_len); in test_punch_hole_3extents() 367 u64 hole_start = logical1 + SZ_32K; in test_punch_hole() local 369 u64 logical2 = hole_start + hole_len; in test_punch_hole() 427 ret = btrfs_delete_raid_extent(trans, hole_start, hole_len); in test_punch_hole() 430 hole_start, hole_start + hole_len); in test_punch_hole() 479 ret = btrfs_get_raid_extent_offset(fs_info, hole_start, &hole_len, in test_punch_hole() 484 hole_start, hole_start + SZ_64K); in test_punch_hole()
|
| /linux-6.15/include/drm/ |
| H A D | drm_mm.h | 394 #define drm_mm_for_each_hole(pos, mm, hole_start, hole_end) \ argument 398 hole_start = drm_mm_hole_node_start(pos), \ 399 hole_end = hole_start + pos->hole_size, \
|
| /linux-6.15/kernel/ |
| H A D | kexec_core.c | 419 unsigned long hole_start, hole_end, size; in kimage_alloc_crash_control_pages() local 424 hole_start = ALIGN(image->control_page, size); in kimage_alloc_crash_control_pages() 425 hole_end = hole_start + size - 1; in kimage_alloc_crash_control_pages() 439 if ((hole_end >= mstart) && (hole_start <= mend)) { in kimage_alloc_crash_control_pages() 441 hole_start = ALIGN(mend, size); in kimage_alloc_crash_control_pages() 442 hole_end = hole_start + size - 1; in kimage_alloc_crash_control_pages() 448 pages = pfn_to_page(hole_start >> PAGE_SHIFT); in kimage_alloc_crash_control_pages()
|
| /linux-6.15/fs/btrfs/ |
| H A D | zoned.h | 69 u64 btrfs_find_allocatable_zones(struct btrfs_device *device, u64 hole_start, 165 u64 hole_start, u64 hole_end, in btrfs_find_allocatable_zones() argument 168 return hole_start; in btrfs_find_allocatable_zones()
|
| H A D | volumes.c | 1546 u64 *hole_start, u64 *hole_size, in dev_extent_hole_check_zoned() argument 1554 ASSERT(IS_ALIGNED(*hole_start, zone_size)); in dev_extent_hole_check_zoned() 1558 *hole_start + *hole_size, in dev_extent_hole_check_zoned() 1560 if (pos != *hole_start) { in dev_extent_hole_check_zoned() 1561 *hole_size = *hole_start + *hole_size - pos; in dev_extent_hole_check_zoned() 1562 *hole_start = pos; in dev_extent_hole_check_zoned() 1576 *hole_start += *hole_size; in dev_extent_hole_check_zoned() 1581 *hole_start += zone_size; in dev_extent_hole_check_zoned() 1604 u64 hole_end = *hole_start + *hole_size; in dev_extent_hole_check() 1612 if (hole_end >= *hole_start) in dev_extent_hole_check() [all …]
|
| H A D | zoned.c | 1034 u64 btrfs_find_allocatable_zones(struct btrfs_device *device, u64 hole_start, in btrfs_find_allocatable_zones() argument 1040 u64 pos = hole_start; in btrfs_find_allocatable_zones() 1045 ASSERT(IS_ALIGNED(hole_start, zinfo->zone_size)); in btrfs_find_allocatable_zones()
|
| H A D | inode.c | 5008 u64 hole_start = ALIGN(oldsize, fs_info->sectorsize); in btrfs_cont_expand() local 5024 if (size <= hole_start) in btrfs_cont_expand() 5027 btrfs_lock_and_flush_ordered_range(inode, hole_start, block_end - 1, in btrfs_cont_expand() 5029 cur_offset = hole_start; in btrfs_cont_expand() 5085 unlock_extent(io_tree, hole_start, block_end - 1, &cached_state); in btrfs_cont_expand()
|
| /linux-6.15/fs/bcachefs/ |
| H A D | fs-io.c | 652 u64 hole_start, hole_end; in __bchfs_fallocate() local 671 hole_start = iter.pos.offset; in __bchfs_fallocate() 694 &hole_start, in __bchfs_fallocate() 699 &hole_start, in __bchfs_fallocate() 705 bch2_btree_iter_set_pos(trans, &iter, POS(iter.pos.inode, hole_start)); in __bchfs_fallocate() 710 if (hole_start == hole_end) in __bchfs_fallocate() 714 sectors = hole_end - hole_start; in __bchfs_fallocate() 731 if (bch2_mark_pagecache_reserved(inode, &hole_start, in __bchfs_fallocate() 734 bch2_mark_pagecache_reserved(inode, &hole_start, in __bchfs_fallocate()
|
| H A D | fs-io-pagecache.c | 801 u64 *hole_start, in bch2_clamp_data_hole() argument 809 *hole_start << 9, *hole_end << 9, min_replicas, nonblock) >> 9; in bch2_clamp_data_hole() 813 *hole_start = ret; in bch2_clamp_data_hole() 815 if (*hole_start == *hole_end) in bch2_clamp_data_hole() 819 *hole_start << 9, *hole_end << 9, min_replicas, nonblock) >> 9; in bch2_clamp_data_hole()
|
| H A D | alloc_background.c | 1125 struct bpos hole_start = bkey_start_pos(k.k); in bch2_get_key_or_real_bucket_hole() local 1127 if (!*ca || !bucket_valid(*ca, hole_start.offset)) { in bch2_get_key_or_real_bucket_hole() 1128 if (!next_bucket(c, ca, &hole_start)) in bch2_get_key_or_real_bucket_hole() 1131 bch2_btree_iter_set_pos(trans, iter, hole_start); in bch2_get_key_or_real_bucket_hole() 1136 bch2_key_resize(hole, (*ca)->mi.nbuckets - hole_start.offset); in bch2_get_key_or_real_bucket_hole()
|
| /linux-6.15/fs/hugetlbfs/ |
| H A D | inode.c | 679 loff_t hole_start, hole_end; in hugetlbfs_punch_hole() local 684 hole_start = round_up(offset, hpage_size); in hugetlbfs_punch_hole() 698 if (offset < hole_start) in hugetlbfs_punch_hole() 700 offset, min(offset + len, hole_start)); in hugetlbfs_punch_hole() 703 if (hole_end > hole_start) { in hugetlbfs_punch_hole() 706 hole_start >> PAGE_SHIFT, in hugetlbfs_punch_hole() 711 if ((offset + len) > hole_end && (offset + len) > hole_start) in hugetlbfs_punch_hole() 718 if (hole_end > hole_start) in hugetlbfs_punch_hole() 719 remove_inode_hugepages(inode, hole_start, hole_end); in hugetlbfs_punch_hole()
|
| /linux-6.15/drivers/gpu/drm/i915/gt/ |
| H A D | intel_ggtt.c | 830 unsigned long hole_start, hole_end; in init_ggtt() local 901 drm_mm_for_each_hole(entry, &ggtt->vm.mm, hole_start, hole_end) { in init_ggtt() 904 hole_start, hole_end); in init_ggtt() 905 ggtt->vm.clear_range(&ggtt->vm, hole_start, in init_ggtt() 906 hole_end - hole_start); in init_ggtt()
|
| /linux-6.15/fs/ext4/ |
| H A D | extents.c | 4113 ext4_lblk_t hole_start, len; in ext4_ext_determine_insert_hole() local 4116 hole_start = lblk; in ext4_ext_determine_insert_hole() 4117 len = ext4_ext_find_hole(inode, path, &hole_start); in ext4_ext_determine_insert_hole() 4120 hole_start + len - 1, &es); in ext4_ext_determine_insert_hole() 4133 len -= lblk - hole_start; in ext4_ext_determine_insert_hole() 4134 hole_start = lblk; in ext4_ext_determine_insert_hole() 4154 len = min(es.es_lblk - hole_start, len); in ext4_ext_determine_insert_hole() 4159 ext_debug(inode, " -> %u:%u\n", hole_start, len); in ext4_ext_determine_insert_hole() 4160 ext4_es_insert_extent(inode, hole_start, len, ~0, in ext4_ext_determine_insert_hole() 4164 if (hole_start != lblk) in ext4_ext_determine_insert_hole() [all …]
|