Home
last modified time | relevance | path

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

/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 …]
/linux/drivers/gpu/drm/xe/
H A Dxe_ggtt.c720 u64 hole_start, hole_end, hole_size; in xe_ggtt_largest_hole() local
725 drm_mm_for_each_hole(entry, mm, hole_start, hole_end) { in xe_ggtt_largest_hole()
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
826 drm_mm_for_each_hole(entry, mm, hole_start, hole_end) { in xe_ggtt_print_holes()
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()
[all …]
/linux/drivers/gpu/drm/tests/
H A Ddrm_mm_test.c41 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/fs/btrfs/tests/
H A Draid-stripe-tree-tests.c50 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/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, \
/linux/kernel/
H A Dkexec_core.c409 unsigned long hole_start, hole_end, size; in kimage_alloc_crash_control_pages() local
414 hole_start = ALIGN(image->control_page, size); in kimage_alloc_crash_control_pages()
415 hole_end = hole_start + size - 1; in kimage_alloc_crash_control_pages()
429 if ((hole_end >= mstart) && (hole_start <= mend)) { in kimage_alloc_crash_control_pages()
431 hole_start = ALIGN(mend, size); in kimage_alloc_crash_control_pages()
432 hole_end = hole_start + size - 1; in kimage_alloc_crash_control_pages()
438 pages = pfn_to_page(hole_start >> PAGE_SHIFT); in kimage_alloc_crash_control_pages()
/linux/fs/bcachefs/
H A Dfs-io.c626 u64 hole_start, hole_end; in __bchfs_fallocate() local
645 hole_start = iter.pos.offset; in __bchfs_fallocate()
668 &hole_start, in __bchfs_fallocate()
673 &hole_start, in __bchfs_fallocate()
679 bch2_btree_iter_set_pos(&iter, POS(iter.pos.inode, hole_start)); in __bchfs_fallocate()
684 if (hole_start == hole_end) in __bchfs_fallocate()
688 sectors = hole_end - hole_start; in __bchfs_fallocate()
705 if (bch2_mark_pagecache_reserved(inode, &hole_start, in __bchfs_fallocate()
708 bch2_mark_pagecache_reserved(inode, &hole_start, in __bchfs_fallocate()
H A Dfs-io-pagecache.c797 u64 *hole_start, in bch2_clamp_data_hole() argument
805 *hole_start << 9, *hole_end << 9, min_replicas, nonblock) >> 9; in bch2_clamp_data_hole()
809 *hole_start = ret; in bch2_clamp_data_hole()
811 if (*hole_start == *hole_end) in bch2_clamp_data_hole()
815 *hole_start << 9, *hole_end << 9, min_replicas, nonblock) >> 9; in bch2_clamp_data_hole()
H A Dalloc_background.c1126 struct bpos hole_start = bkey_start_pos(k.k); in bch2_get_key_or_real_bucket_hole() local
1128 if (!*ca || !bucket_valid(*ca, hole_start.offset)) { in bch2_get_key_or_real_bucket_hole()
1129 if (!next_bucket(c, ca, &hole_start)) in bch2_get_key_or_real_bucket_hole()
1132 bch2_btree_iter_set_pos(iter, hole_start); in bch2_get_key_or_real_bucket_hole()
1137 bch2_key_resize(hole, (*ca)->mi.nbuckets - hole_start.offset); in bch2_get_key_or_real_bucket_hole()
/linux/fs/btrfs/
H A Dzoned.h69 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 Dvolumes.c1635 u64 *hole_start, u64 *hole_size, in dev_extent_hole_check_zoned() argument
1643 ASSERT(IS_ALIGNED(*hole_start, zone_size)); in dev_extent_hole_check_zoned()
1646 pos = btrfs_find_allocatable_zones(device, *hole_start, in dev_extent_hole_check_zoned()
1647 *hole_start + *hole_size, in dev_extent_hole_check_zoned()
1649 if (pos != *hole_start) { in dev_extent_hole_check_zoned()
1650 *hole_size = *hole_start + *hole_size - pos; in dev_extent_hole_check_zoned()
1651 *hole_start = pos; in dev_extent_hole_check_zoned()
1665 *hole_start += *hole_size; in dev_extent_hole_check_zoned()
1670 *hole_start += zone_size; in dev_extent_hole_check_zoned()
1689 static bool dev_extent_hole_check(struct btrfs_device *device, u64 *hole_start, in dev_extent_hole_check() argument
[all …]
H A Dzoned.c1034 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 Dinode.c4980 u64 hole_start = ALIGN(oldsize, fs_info->sectorsize); in btrfs_cont_expand() local
4996 if (size <= hole_start) in btrfs_cont_expand()
4999 btrfs_lock_and_flush_ordered_range(inode, hole_start, block_end - 1, in btrfs_cont_expand()
5001 cur_offset = hole_start; in btrfs_cont_expand()
5057 unlock_extent(io_tree, hole_start, block_end - 1, &cached_state); in btrfs_cont_expand()
/linux/fs/hugetlbfs/
H A Dinode.c677 loff_t hole_start, hole_end; in hugetlbfs_punch_hole() local
682 hole_start = round_up(offset, hpage_size); in hugetlbfs_punch_hole()
696 if (offset < hole_start) in hugetlbfs_punch_hole()
698 offset, min(offset + len, hole_start)); in hugetlbfs_punch_hole()
701 if (hole_end > hole_start) { in hugetlbfs_punch_hole()
704 hole_start >> PAGE_SHIFT, in hugetlbfs_punch_hole()
709 if ((offset + len) > hole_end && (offset + len) > hole_start) in hugetlbfs_punch_hole()
716 if (hole_end > hole_start) in hugetlbfs_punch_hole()
717 remove_inode_hugepages(inode, hole_start, hole_end); in hugetlbfs_punch_hole()
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_ggtt.c830 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/fs/ext4/
H A Dextents.c4113 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()
4119 ext4_es_find_extent_range(inode, &ext4_es_is_delayed, 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()
[all …]