/Linux-v5.4/drivers/gpu/drm/ |
D | drm_mm.c | 325 u64 hole_start; in find_hole() local 328 hole_start = __drm_mm_hole_node_start(node); in find_hole() 330 if (addr < hole_start) in find_hole() 332 else if (addr > hole_start + node->hole_size) in find_hole() 404 u64 hole_start, hole_end; in drm_mm_reserve_node() local 416 adj_start = hole_start = __drm_mm_hole_node_start(hole); in drm_mm_reserve_node() 417 adj_end = hole_end = hole_start + hole->hole_size; in drm_mm_reserve_node() 433 if (node->start > hole_start) in drm_mm_reserve_node() 493 u64 hole_start = __drm_mm_hole_node_start(hole); in drm_mm_insert_node_in_range() local 494 u64 hole_end = hole_start + hole->hole_size; in drm_mm_insert_node_in_range() [all …]
|
/Linux-v5.4/drivers/gpu/drm/i915/selftests/ |
D | i915_gem_gtt.c | 217 u64 hole_start, u64 hole_end, in lowlevel_hole() argument 227 for (size = 12; (hole_end - hole_start) >> size; size++) { in lowlevel_hole() 233 hole_size = (hole_end - hole_start) >> size; in lowlevel_hole() 239 __func__, hole_start, hole_end, size, hole_size); in lowlevel_hole() 253 GEM_BUG_ON(hole_start + count * BIT_ULL(size) > hole_end); in lowlevel_hole() 276 u64 addr = hole_start + order[n] * BIT_ULL(size); in lowlevel_hole() 284 hole_end = hole_start; /* quit */ in lowlevel_hole() 304 u64 addr = hole_start + order[n] * BIT_ULL(size); in lowlevel_hole() 344 u64 hole_start, u64 hole_end, in fill_hole() argument 347 const u64 hole_size = hole_end - hole_start; in fill_hole() [all …]
|
/Linux-v5.4/arch/sparc/kernel/ |
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-v5.4/include/drm/ |
D | drm_mm.h | 390 #define drm_mm_for_each_hole(pos, mm, hole_start, hole_end) \ argument 394 hole_start = drm_mm_hole_node_start(pos), \ 395 hole_end = hole_start + pos->hole_size, \
|
/Linux-v5.4/kernel/ |
D | kexec_core.c | 440 unsigned long hole_start, hole_end, size; in kimage_alloc_crash_control_pages() local 445 hole_start = (image->control_page + (size - 1)) & ~(size - 1); in kimage_alloc_crash_control_pages() 446 hole_end = hole_start + size - 1; in kimage_alloc_crash_control_pages() 460 if ((hole_end >= mstart) && (hole_start <= mend)) { in kimage_alloc_crash_control_pages() 462 hole_start = (mend + (size - 1)) & ~(size - 1); in kimage_alloc_crash_control_pages() 463 hole_end = hole_start + size - 1; in kimage_alloc_crash_control_pages() 469 pages = pfn_to_page(hole_start >> PAGE_SHIFT); in kimage_alloc_crash_control_pages()
|
/Linux-v5.4/drivers/gpu/drm/i915/gem/selftests/ |
D | i915_gem_mman.c | 425 u64 hole_start, hole_end; in igt_mmap_offset_exhaustion() local 434 drm_mm_for_each_hole(hole, mm, hole_start, hole_end) { in igt_mmap_offset_exhaustion() 435 resv.start = hole_start; in igt_mmap_offset_exhaustion() 436 resv.size = hole_end - hole_start - 1; /* PAGE_SIZE units */ in igt_mmap_offset_exhaustion()
|
/Linux-v5.4/drivers/gpu/drm/selftests/ |
D | test-drm_mm.c | 56 u64 hole_start, hole_end; in assert_no_holes() local 60 drm_mm_for_each_hole(hole, mm, hole_start, hole_end) in assert_no_holes() 80 u64 hole_start, hole_end; in assert_one_hole() local 88 drm_mm_for_each_hole(hole, mm, hole_start, hole_end) { in assert_one_hole() 89 if (start != hole_start || end != hole_end) { in assert_one_hole() 92 hole_start, hole_end, in assert_one_hole() 1152 u64 hole_start, hole_end; in show_holes() local 1155 drm_mm_for_each_hole(hole, mm, hole_start, hole_end) { in show_holes() 1171 hole_start, hole_end, hole_end - hole_start, in show_holes()
|
/Linux-v5.4/fs/hugetlbfs/ |
D | inode.c | 536 loff_t hole_start, hole_end; in hugetlbfs_punch_hole() local 542 hole_start = round_up(offset, hpage_size); in hugetlbfs_punch_hole() 545 if (hole_end > hole_start) { in hugetlbfs_punch_hole() 560 hole_start >> PAGE_SHIFT, in hugetlbfs_punch_hole() 563 remove_inode_hugepages(inode, hole_start, hole_end); in hugetlbfs_punch_hole()
|
/Linux-v5.4/fs/ext4/ |
D | extents.c | 2412 ext4_ext_put_gap_in_cache(struct inode *inode, ext4_lblk_t hole_start, in ext4_ext_put_gap_in_cache() argument 2417 ext4_es_find_extent_range(inode, &ext4_es_is_delayed, hole_start, in ext4_ext_put_gap_in_cache() 2418 hole_start + hole_len - 1, &es); in ext4_ext_put_gap_in_cache() 2421 if (es.es_lblk <= hole_start) in ext4_ext_put_gap_in_cache() 2423 hole_len = min(es.es_lblk - hole_start, hole_len); in ext4_ext_put_gap_in_cache() 2425 ext_debug(" -> %u:%u\n", hole_start, hole_len); in ext4_ext_put_gap_in_cache() 2426 ext4_es_insert_extent(inode, hole_start, hole_len, ~0, in ext4_ext_put_gap_in_cache() 4354 ext4_lblk_t hole_start, hole_len; in ext4_ext_map_blocks() local 4356 hole_start = map->m_lblk; in ext4_ext_map_blocks() 4357 hole_len = ext4_ext_determine_hole(inode, path, &hole_start); in ext4_ext_map_blocks() [all …]
|
/Linux-v5.4/drivers/gpu/drm/i915/ |
D | i915_gem_gtt.c | 2678 unsigned long hole_start, hole_end; in init_ggtt() local 2713 drm_mm_for_each_hole(entry, &ggtt->vm.mm, hole_start, hole_end) { in init_ggtt() 2715 hole_start, hole_end); in init_ggtt() 2716 ggtt->vm.clear_range(&ggtt->vm, hole_start, in init_ggtt() 2717 hole_end - hole_start); in init_ggtt()
|
/Linux-v5.4/fs/btrfs/ |
D | inode.c | 5100 u64 hole_start = ALIGN(oldsize, fs_info->sectorsize); in btrfs_cont_expand() local 5116 if (size <= hole_start) in btrfs_cont_expand() 5119 btrfs_lock_and_flush_ordered_range(io_tree, BTRFS_I(inode), hole_start, in btrfs_cont_expand() 5121 cur_offset = hole_start; in btrfs_cont_expand() 5181 unlock_extent_cached(io_tree, hole_start, block_end - 1, &cached_state); in btrfs_cont_expand() 7201 u64 hole_start; in btrfs_get_extent_fiemap() local 7224 hole_start = max(hole_em->start, start); in btrfs_get_extent_fiemap() 7225 hole_len = hole_end - hole_start; in btrfs_get_extent_fiemap() 7228 if (hole_em && delalloc_start > hole_start) { in btrfs_get_extent_fiemap() 7234 em->len = min(hole_len, delalloc_start - hole_start); in btrfs_get_extent_fiemap() [all …]
|
D | tree-log.c | 4744 u64 hole_start; in btrfs_log_trailing_hole() local 4770 hole_start = 0; in btrfs_log_trailing_hole() 4794 hole_start = key.offset + len; in btrfs_log_trailing_hole() 4795 hole_size = i_size - hole_start; in btrfs_log_trailing_hole() 4804 ret = btrfs_insert_file_extent(trans, log, ino, hole_start, 0, 0, in btrfs_log_trailing_hole()
|