Home
last modified time | relevance | path

Searched refs:hole_start (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.15/drivers/gpu/drm/
Ddrm_mm.c339 u64 hole_start; in find_hole_addr() local
345 hole_start = __drm_mm_hole_node_start(node); in find_hole_addr()
347 if (addr < hole_start) in find_hole_addr()
349 else if (addr > hole_start + node->hole_size) in find_hole_addr()
456 u64 hole_start, hole_end; in drm_mm_reserve_node() local
469 adj_start = hole_start = __drm_mm_hole_node_start(hole); in drm_mm_reserve_node()
470 adj_end = hole_end = hole_start + hole->hole_size; in drm_mm_reserve_node()
486 if (node->start > hole_start) in drm_mm_reserve_node()
546 u64 hole_start = __drm_mm_hole_node_start(hole); in drm_mm_insert_node_in_range() local
547 u64 hole_end = hole_start + hole->hole_size; in drm_mm_insert_node_in_range()
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/selftests/
Di915_gem_gtt.c237 u64 hole_start, u64 hole_end, in lowlevel_hole() argument
249 for (size = 12; (hole_end - hole_start) >> size; size++) { in lowlevel_hole()
255 hole_size = (hole_end - hole_start) >> size; in lowlevel_hole()
261 __func__, hole_start, hole_end, size, hole_size); in lowlevel_hole()
277 GEM_BUG_ON(hole_start + count * BIT_ULL(size) > hole_end); in lowlevel_hole()
300 u64 addr = hole_start + order[n] * BIT_ULL(size); in lowlevel_hole()
308 hole_end = hole_start; /* quit */ in lowlevel_hole()
357 u64 addr = hole_start + order[n] * BIT_ULL(size); in lowlevel_hole()
396 u64 hole_start, u64 hole_end, in fill_hole() argument
399 const u64 hole_size = hole_end - hole_start; in fill_hole()
[all …]
/Linux-v5.15/arch/sparc/kernel/
Dadi_64.c163 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-v5.15/include/drm/
Ddrm_mm.h392 #define drm_mm_for_each_hole(pos, mm, hole_start, hole_end) \ argument
396 hole_start = drm_mm_hole_node_start(pos), \
397 hole_end = hole_start + pos->hole_size, \
/Linux-v5.15/kernel/
Dkexec_core.c441 unsigned long hole_start, hole_end, size; in kimage_alloc_crash_control_pages() local
446 hole_start = (image->control_page + (size - 1)) & ~(size - 1); in kimage_alloc_crash_control_pages()
447 hole_end = hole_start + size - 1; in kimage_alloc_crash_control_pages()
461 if ((hole_end >= mstart) && (hole_start <= mend)) { in kimage_alloc_crash_control_pages()
463 hole_start = (mend + (size - 1)) & ~(size - 1); in kimage_alloc_crash_control_pages()
464 hole_end = hole_start + size - 1; in kimage_alloc_crash_control_pages()
470 pages = pfn_to_page(hole_start >> PAGE_SHIFT); in kimage_alloc_crash_control_pages()
/Linux-v5.15/fs/btrfs/
Dzoned.h45 u64 btrfs_find_allocatable_zones(struct btrfs_device *device, u64 hole_start,
125 u64 hole_start, u64 hole_end, in btrfs_find_allocatable_zones() argument
128 return hole_start; in btrfs_find_allocatable_zones()
Dvolumes.c1437 u64 *hole_start, u64 *hole_size, in dev_extent_hole_check_zoned() argument
1445 ASSERT(IS_ALIGNED(*hole_start, zone_size)); in dev_extent_hole_check_zoned()
1448 pos = btrfs_find_allocatable_zones(device, *hole_start, in dev_extent_hole_check_zoned()
1449 *hole_start + *hole_size, in dev_extent_hole_check_zoned()
1451 if (pos != *hole_start) { in dev_extent_hole_check_zoned()
1452 *hole_size = *hole_start + *hole_size - pos; in dev_extent_hole_check_zoned()
1453 *hole_start = pos; in dev_extent_hole_check_zoned()
1467 *hole_start += *hole_size; in dev_extent_hole_check_zoned()
1472 *hole_start += zone_size; in dev_extent_hole_check_zoned()
1490 static bool dev_extent_hole_check(struct btrfs_device *device, u64 *hole_start, in dev_extent_hole_check() argument
[all …]
Dzoned.c839 u64 btrfs_find_allocatable_zones(struct btrfs_device *device, u64 hole_start, in btrfs_find_allocatable_zones() argument
845 u64 pos = hole_start; in btrfs_find_allocatable_zones()
850 ASSERT(IS_ALIGNED(hole_start, zinfo->zone_size)); in btrfs_find_allocatable_zones()
Dinode.c5198 u64 hole_start = ALIGN(oldsize, fs_info->sectorsize); in btrfs_cont_expand() local
5214 if (size <= hole_start) in btrfs_cont_expand()
5217 btrfs_lock_and_flush_ordered_range(inode, hole_start, block_end - 1, in btrfs_cont_expand()
5219 cur_offset = hole_start; in btrfs_cont_expand()
5289 unlock_extent_cached(io_tree, hole_start, block_end - 1, &cached_state); in btrfs_cont_expand()
7307 u64 hole_start; in btrfs_get_extent_fiemap() local
7329 hole_start = max(hole_em->start, start); in btrfs_get_extent_fiemap()
7330 hole_len = hole_end - hole_start; in btrfs_get_extent_fiemap()
7333 if (hole_em && delalloc_start > hole_start) { in btrfs_get_extent_fiemap()
7339 em->len = min(hole_len, delalloc_start - hole_start); in btrfs_get_extent_fiemap()
[all …]
/Linux-v5.15/drivers/gpu/drm/selftests/
Dtest-drm_mm.c57 u64 hole_start, __always_unused hole_end; in assert_no_holes() local
61 drm_mm_for_each_hole(hole, mm, hole_start, hole_end) in assert_no_holes()
81 u64 hole_start, hole_end; in assert_one_hole() local
89 drm_mm_for_each_hole(hole, mm, hole_start, hole_end) { in assert_one_hole()
90 if (start != hole_start || end != hole_end) { in assert_one_hole()
93 hole_start, hole_end, in assert_one_hole()
1269 u64 hole_start, hole_end; in show_holes() local
1272 drm_mm_for_each_hole(hole, mm, hole_start, hole_end) { in show_holes()
1288 hole_start, hole_end, hole_end - hole_start, in show_holes()
/Linux-v5.15/fs/hugetlbfs/
Dinode.c593 loff_t hole_start, hole_end; in hugetlbfs_punch_hole() local
599 hole_start = round_up(offset, hpage_size); in hugetlbfs_punch_hole()
602 if (hole_end > hole_start) { in hugetlbfs_punch_hole()
617 hole_start >> PAGE_SHIFT, in hugetlbfs_punch_hole()
620 remove_inode_hugepages(inode, hole_start, hole_end); in hugetlbfs_punch_hole()
/Linux-v5.15/drivers/gpu/drm/i915/gt/
Dintel_ggtt.c529 unsigned long hole_start, hole_end; in init_ggtt() local
592 drm_mm_for_each_hole(entry, &ggtt->vm.mm, hole_start, hole_end) { in init_ggtt()
595 hole_start, hole_end); in init_ggtt()
596 ggtt->vm.clear_range(&ggtt->vm, hole_start, in init_ggtt()
597 hole_end - hole_start); in init_ggtt()
/Linux-v5.15/fs/ext4/
Dextents.c2240 ext4_ext_put_gap_in_cache(struct inode *inode, ext4_lblk_t hole_start, in ext4_ext_put_gap_in_cache() argument
2245 ext4_es_find_extent_range(inode, &ext4_es_is_delayed, hole_start, in ext4_ext_put_gap_in_cache()
2246 hole_start + hole_len - 1, &es); in ext4_ext_put_gap_in_cache()
2249 if (es.es_lblk <= hole_start) in ext4_ext_put_gap_in_cache()
2251 hole_len = min(es.es_lblk - hole_start, hole_len); in ext4_ext_put_gap_in_cache()
2253 ext_debug(inode, " -> %u:%u\n", hole_start, hole_len); in ext4_ext_put_gap_in_cache()
2254 ext4_es_insert_extent(inode, hole_start, hole_len, ~0, in ext4_ext_put_gap_in_cache()
4147 ext4_lblk_t hole_start, hole_len; in ext4_ext_map_blocks() local
4149 hole_start = map->m_lblk; in ext4_ext_map_blocks()
4150 hole_len = ext4_ext_determine_hole(inode, path, &hole_start); in ext4_ext_map_blocks()
[all …]