Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/
H A Ddrm_mm.c336 u64 hole_start; in find_hole_addr() local
342 hole_start = __drm_mm_hole_node_start(node); in find_hole_addr()
344 if (addr < hole_start) in find_hole_addr()
346 else if (addr > hole_start + node->hole_size) in find_hole_addr()
453 u64 hole_start, hole_end; in drm_mm_reserve_node() local
466 adj_start = hole_start = __drm_mm_hole_node_start(hole); in drm_mm_reserve_node()
467 adj_end = hole_end = hole_start + hole->hole_size; in drm_mm_reserve_node()
483 if (node->start > hole_start) in drm_mm_reserve_node()
543 u64 hole_start = __drm_mm_hole_node_start(hole); in drm_mm_insert_node_in_range() local
544 u64 hole_end = hole_start + hole->hole_size; in drm_mm_insert_node_in_range()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/selftests/
H A Di915_gem_gtt.c245 u64 hole_start, u64 hole_end, in lowlevel_hole() argument
259 for (size = 12; (hole_end - hole_start) >> size; size++) { in lowlevel_hole()
266 hole_size = (hole_end - hole_start) >> aligned_size; in lowlevel_hole()
272 __func__, hole_start, hole_end, size, hole_size); in lowlevel_hole()
288 GEM_BUG_ON(hole_start + count * BIT_ULL(aligned_size) > hole_end); in lowlevel_hole()
311 u64 addr = hole_start + order[n] * BIT_ULL(aligned_size); in lowlevel_hole()
319 hole_end = hole_start; /* quit */ in lowlevel_hole()
370 u64 addr = hole_start + order[n] * BIT_ULL(aligned_size); in lowlevel_hole()
409 u64 hole_start, u64 hole_end, in fill_hole() argument
412 const u64 hole_size = hole_end - hole_start; in fill_hole()
[all …]
/openbmc/linux/arch/sparc/kernel/
H A 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()
/openbmc/qemu/util/
H A Diova-tree.c175 uint64_t hole_start, hole_last; in iova_tree_alloc_map_in_hole() local
181 hole_start = MAX(prev ? prev->iova + prev->size + 1 : 0, args->iova_begin); in iova_tree_alloc_map_in_hole()
184 if (hole_last - hole_start > args->new_size) { in iova_tree_alloc_map_in_hole()
185 args->iova_result = hole_start; in iova_tree_alloc_map_in_hole()
/openbmc/linux/include/drm/
H A Ddrm_mm.h394 #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, \
/openbmc/linux/kernel/
H A Dkexec_core.c445 unsigned long hole_start, hole_end, size; in kimage_alloc_crash_control_pages() local
450 hole_start = (image->control_page + (size - 1)) & ~(size - 1); in kimage_alloc_crash_control_pages()
451 hole_end = hole_start + size - 1; in kimage_alloc_crash_control_pages()
465 if ((hole_end >= mstart) && (hole_start <= mend)) { in kimage_alloc_crash_control_pages()
467 hole_start = (mend + (size - 1)) & ~(size - 1); in kimage_alloc_crash_control_pages()
468 hole_end = hole_start + size - 1; in kimage_alloc_crash_control_pages()
474 pages = pfn_to_page(hole_start >> PAGE_SHIFT); in kimage_alloc_crash_control_pages()
/openbmc/linux/fs/btrfs/
H A Dzoned.h55 u64 btrfs_find_allocatable_zones(struct btrfs_device *device, u64 hole_start,
156 u64 hole_start, u64 hole_end, in btrfs_find_allocatable_zones() argument
159 return hole_start; in btrfs_find_allocatable_zones()
H A Dvolumes.c1504 u64 *hole_start, u64 *hole_size, in dev_extent_hole_check_zoned() argument
1512 ASSERT(IS_ALIGNED(*hole_start, zone_size)); in dev_extent_hole_check_zoned()
1515 pos = btrfs_find_allocatable_zones(device, *hole_start, in dev_extent_hole_check_zoned()
1516 *hole_start + *hole_size, in dev_extent_hole_check_zoned()
1518 if (pos != *hole_start) { in dev_extent_hole_check_zoned()
1519 *hole_size = *hole_start + *hole_size - pos; in dev_extent_hole_check_zoned()
1520 *hole_start = pos; in dev_extent_hole_check_zoned()
1534 *hole_start += *hole_size; in dev_extent_hole_check_zoned()
1539 *hole_start += zone_size; in dev_extent_hole_check_zoned()
1558 static bool dev_extent_hole_check(struct btrfs_device *device, u64 *hole_start, in dev_extent_hole_check() argument
[all …]
H A Dzoned.c1044 u64 btrfs_find_allocatable_zones(struct btrfs_device *device, u64 hole_start, in btrfs_find_allocatable_zones() argument
1050 u64 pos = hole_start; in btrfs_find_allocatable_zones()
1055 ASSERT(IS_ALIGNED(hole_start, zinfo->zone_size)); in btrfs_find_allocatable_zones()
H A Dinode.c4892 u64 hole_start = ALIGN(oldsize, fs_info->sectorsize); in btrfs_cont_expand() local
4908 if (size <= hole_start) in btrfs_cont_expand()
4911 btrfs_lock_and_flush_ordered_range(inode, hole_start, block_end - 1, in btrfs_cont_expand()
4913 cur_offset = hole_start; in btrfs_cont_expand()
4974 unlock_extent(io_tree, hole_start, block_end - 1, &cached_state); in btrfs_cont_expand()
/openbmc/linux/fs/hugetlbfs/
H A Dinode.c776 loff_t hole_start, hole_end; in hugetlbfs_punch_hole() local
781 hole_start = round_up(offset, hpage_size); in hugetlbfs_punch_hole()
795 if (offset < hole_start) in hugetlbfs_punch_hole()
797 offset, min(offset + len, hole_start)); in hugetlbfs_punch_hole()
800 if (hole_end > hole_start) { in hugetlbfs_punch_hole()
803 hole_start >> PAGE_SHIFT, in hugetlbfs_punch_hole()
808 if ((offset + len) > hole_end && (offset + len) > hole_start) in hugetlbfs_punch_hole()
815 if (hole_end > hole_start) in hugetlbfs_punch_hole()
816 remove_inode_hugepages(inode, hole_start, hole_end); in hugetlbfs_punch_hole()
/openbmc/linux/drivers/gpu/drm/tests/
H A Ddrm_mm_test.c49 u64 hole_start, __always_unused hole_end; in assert_no_holes() local
53 drm_mm_for_each_hole(hole, mm, hole_start, hole_end) in assert_no_holes()
74 u64 hole_start, hole_end; in assert_one_hole() local
82 drm_mm_for_each_hole(hole, mm, hole_start, hole_end) { in assert_one_hole()
83 if (start != hole_start || end != hole_end) { in assert_one_hole()
87 hole_start, hole_end, start, end); in assert_one_hole()
1155 u64 hole_start, hole_end; in show_holes() local
1158 drm_mm_for_each_hole(hole, mm, hole_start, hole_end) { in show_holes()
1171 hole_start, hole_end, hole_end - hole_start, node2); in show_holes()
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dintel_ggtt.c591 unsigned long hole_start, hole_end; in init_ggtt() local
662 drm_mm_for_each_hole(entry, &ggtt->vm.mm, hole_start, hole_end) { in init_ggtt()
665 hole_start, hole_end); in init_ggtt()
666 ggtt->vm.clear_range(&ggtt->vm, hole_start, in init_ggtt()
667 hole_end - hole_start); in init_ggtt()
/openbmc/linux/fs/ext4/
H A Dextents.c4074 ext4_lblk_t hole_start, len; in ext4_ext_determine_insert_hole() local
4077 hole_start = lblk; in ext4_ext_determine_insert_hole()
4078 len = ext4_ext_find_hole(inode, path, &hole_start); in ext4_ext_determine_insert_hole()
4080 ext4_es_find_extent_range(inode, &ext4_es_is_delayed, hole_start, in ext4_ext_determine_insert_hole()
4081 hole_start + len - 1, &es); in ext4_ext_determine_insert_hole()
4094 len -= lblk - hole_start; in ext4_ext_determine_insert_hole()
4095 hole_start = lblk; in ext4_ext_determine_insert_hole()
4112 len = min(es.es_lblk - hole_start, len); in ext4_ext_determine_insert_hole()
4117 ext_debug(inode, " -> %u:%u\n", hole_start, len); in ext4_ext_determine_insert_hole()
4118 ext4_es_insert_extent(inode, hole_start, len, ~0, EXTENT_STATUS_HOLE); in ext4_ext_determine_insert_hole()
[all …]