Home
last modified time | relevance | path

Searched refs:vm_end (Results 1 – 25 of 238) sorted by relevance

12345678910

/kernel/linux/linux-5.10/mm/
Dnommu.c104 return vma->vm_end - vma->vm_start; in kobjsize()
443 BUG_ON(last->vm_end <= last->vm_start); in validate_nommu_regions()
444 BUG_ON(last->vm_top < last->vm_end); in validate_nommu_regions()
450 BUG_ON(region->vm_end <= region->vm_start); in validate_nommu_regions()
451 BUG_ON(region->vm_top < region->vm_end); in validate_nommu_regions()
599 } else if (vma->vm_end < pvma->vm_end) in add_vma_to_mm()
601 else if (vma->vm_end > pvma->vm_end) { in add_vma_to_mm()
691 if (vma->vm_end > addr) { in find_vma()
742 if (vma->vm_end == end) { in find_vma_exact()
960 vma->vm_region->vm_top = vma->vm_region->vm_end; in do_mmap_shared_file()
[all …]
Dmmap.c354 if (vma->vm_start > vma->vm_end) { in browse_rb()
356 vma->vm_start, vma->vm_end); in browse_rb()
370 pend = vma->vm_end; in browse_rb()
547 if (vma_tmp->vm_end > addr) { in find_vma_links()
621 nr_pages = (min(end, vma->vm_end) - in count_vma_pages_range()
631 overlap_len = min(end, vma->vm_end) - vma->vm_start; in count_vma_pages_range()
720 if (find_vma_links(mm, vma->vm_start, vma->vm_end, in __insert_vm_struct()
761 if (end >= next->vm_end) { in __vma_adjust()
773 VM_WARN_ON(end != next->vm_end); in __vma_adjust()
788 remove_next = 1 + (end > next->vm_end); in __vma_adjust()
[all …]
Dmlock.c555 if (end != vma->vm_end) { in mlock_fixup()
616 tmp = vma->vm_end; in apply_vma_lock_flags()
623 if (nstart < prev->vm_end) in apply_vma_lock_flags()
624 nstart = prev->vm_end; in apply_vma_lock_flags()
658 if (start >= vma->vm_end) in count_mm_mlocked_page_nr()
665 if (start + len < vma->vm_end) { in count_mm_mlocked_page_nr()
669 count += vma->vm_end - vma->vm_start; in count_mm_mlocked_page_nr()
797 mlock_fixup(vma, &prev, vma->vm_start, vma->vm_end, newflags); in apply_mlockall_flags()
Dvmacache.c79 if (vma->vm_start <= addr && vma->vm_end > addr) { in vmacache_find()
107 if (vma && vma->vm_start == start && vma->vm_end == end) { in vmacache_find_exact()
Dmsync.c86 fend = fstart + (min(end, vma->vm_end) - start) - 1; in SYSCALL_DEFINE3()
87 start = vma->vm_end; in SYSCALL_DEFINE3()
Dmremap.c404 excess = vma->vm_end - vma->vm_start - old_len; in move_vma()
406 old_addr + old_len < vma->vm_end) in move_vma()
507 if (old_len > vma->vm_end - addr) in vma_to_resize()
641 unsigned long end = vma->vm_end + delta; in vma_expandable()
642 if (end < vma->vm_end) /* overflow */ in vma_expandable()
756 if (old_len == vma->vm_end - addr) { in SYSCALL_DEFINE5()
Dframe_vector.c85 while (ret < nr_frames && start + PAGE_SIZE <= vma->vm_end) { in get_vaddr_frames()
99 if (ret >= nr_frames || start < vma->vm_end) in get_vaddr_frames()
Dmadvise.c168 if (end != vma->vm_end) { in madvise_update_vma()
726 if (range.start >= vma->vm_end) in madvise_free_single_vma()
728 range.end = min(vma->vm_end, end_addr); in madvise_free_single_vma()
807 if (end > vma->vm_end) { in madvise_dontneed_free()
820 end = vma->vm_end; in madvise_dontneed_free()
1120 tmp = vma->vm_end; in madvise_walk_vmas()
1129 if (prev && start < prev->vm_end) in madvise_walk_vmas()
1130 start = prev->vm_end; in madvise_walk_vmas()
/kernel/linux/linux-5.10/fs/proc/
Dtask_nommu.c37 size += region->vm_end - region->vm_start; in task_mem()
39 size = vma->vm_end - vma->vm_start; in task_mem()
48 slack = region->vm_end - vma->vm_end; in task_mem()
92 vsize += vma->vm_end - vma->vm_start; in task_vsize()
114 size += region->vm_end - region->vm_start; in task_statm()
139 vma->vm_end >= mm->start_stack; in is_stack()
168 vma->vm_end, in nommu_vma_show()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_vm.c83 if (efi_range_is_wc(vma->vm_start, vma->vm_end - in drm_io_prot()
245 vma->vm_start, vma->vm_end - vma->vm_start); in drm_vm_shm_close()
400 vma->vm_start, vma->vm_end - vma->vm_start); in drm_vm_open_locked()
426 vma->vm_start, vma->vm_end - vma->vm_start); in drm_vm_close_locked()
470 unsigned long length = vma->vm_end - vma->vm_start; in drm_mmap_dma()
475 vma->vm_start, vma->vm_end, vma->vm_pgoff); in drm_mmap_dma()
537 vma->vm_start, vma->vm_end, vma->vm_pgoff); in drm_mmap_locked()
564 if (map->size < vma->vm_end - vma->vm_start) in drm_mmap_locked()
605 vma->vm_end - vma->vm_start, in drm_mmap_locked()
611 vma->vm_start, vma->vm_end, (unsigned long long)(map->offset + offset)); in drm_mmap_locked()
[all …]
/kernel/linux/linux-5.10/scripts/coccinelle/api/
Dvma_pages.cocci22 * (vma->vm_end - vma->vm_start) >> PAGE_SHIFT
32 - ((vma->vm_end - vma->vm_start) >> PAGE_SHIFT)
44 (vma->vm_end@p - vma->vm_start) >> PAGE_SHIFT
/kernel/linux/linux-5.10/arch/csky/include/asm/
Dtlb.h12 flush_cache_range(vma, (vma)->vm_start, (vma)->vm_end); \
18 flush_tlb_range(vma, (vma)->vm_start, (vma)->vm_end); \
/kernel/linux/linux-5.10/drivers/char/
Dmspec.c76 unsigned long vm_end; /* Original (unsplit) end. */ member
114 last_index = (vdata->vm_end - vdata->vm_start) >> PAGE_SHIFT; in mspec_close()
203 vdata->vm_end = vma->vm_end; in mspec_mmap()
/kernel/linux/linux-5.10/arch/x86/um/
Dmem_32.c18 gate_vma.vm_end = FIXADDR_USER_END; in gate_vma_init()
49 return (addr >= vma->vm_start) && (addr < vma->vm_end); in in_gate_area()
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
Dvideobuf-vmalloc.c56 map->count, vma->vm_start, vma->vm_end); in videobuf_vm_open()
68 map->count, vma->vm_start, vma->vm_end); in videobuf_vm_close()
233 pages = PAGE_ALIGN(vma->vm_end - vma->vm_start); in __videobuf_mmap_mapper()
254 map, q, vma->vm_start, vma->vm_end, in __videobuf_mmap_mapper()
Dvideobuf-dma-contig.c67 map, map->count, vma->vm_start, vma->vm_end); in videobuf_vm_open()
79 map, map->count, vma->vm_start, vma->vm_end); in videobuf_vm_close()
177 if ((untagged_baddr + mem->size) > vma->vm_end) in videobuf_dma_contig_user_get()
321 map, q, vma->vm_start, vma->vm_end, in __videobuf_mmap_mapper()
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/
Dvideobuf2-memops.c95 vma->vm_end); in vb2_common_vm_open()
113 vma->vm_end); in vb2_common_vm_close()
/kernel/linux/linux-5.10/drivers/soc/qcom/
Drmtfs_mem.c136 if (vma->vm_end - vma->vm_start > rmtfs_mem->size) { in qcom_rmtfs_mem_mmap()
139 vma->vm_end, vma->vm_start, in qcom_rmtfs_mem_mmap()
140 (vma->vm_end - vma->vm_start), &rmtfs_mem->size); in qcom_rmtfs_mem_mmap()
148 vma->vm_end - vma->vm_start, in qcom_rmtfs_mem_mmap()
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dcache.c525 usize += vma->vm_end - vma->vm_start; in mm_total_size()
564 flush_user_dcache_range_asm(vma->vm_start, vma->vm_end); in flush_cache_mm()
566 flush_user_icache_range_asm(vma->vm_start, vma->vm_end); in flush_cache_mm()
567 flush_tlb_range(vma, vma->vm_start, vma->vm_end); in flush_cache_mm()
576 for (addr = vma->vm_start; addr < vma->vm_end; in flush_cache_mm()
618 for (addr = vma->vm_start; addr < vma->vm_end; addr += PAGE_SIZE) { in flush_cache_range()
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Dvas-api.c159 if ((vma->vm_end - vma->vm_start) > PAGE_SIZE) { in coproc_mmap()
161 (vma->vm_end - vma->vm_start), PAGE_SIZE); in coproc_mmap()
181 vma->vm_end - vma->vm_start, prot); in coproc_mmap()
/kernel/linux/linux-5.10/drivers/dax/
Ddevice.c35 if (vma->vm_start & mask || vma->vm_end & mask) { in check_vma()
38 current->comm, func, vma->vm_start, vma->vm_end, in check_vma()
131 (pmd_addr + PMD_SIZE) > vmf->vma->vm_end) in __dev_dax_pmd_fault()
173 (pud_addr + PUD_SIZE) > vmf->vma->vm_end) in __dev_dax_pud_fault()
207 vmf->vma->vm_start, vmf->vma->vm_end, pe_size); in dev_dax_huge_fault()
/kernel/linux/linux-5.10/arch/arm64/kvm/
Dmmu.c425 hva_t vm_start, vm_end; in stage2_unmap_memslot() local
434 vm_end = min(reg_end, vma->vm_end); in stage2_unmap_memslot()
438 unmap_stage2_range(&kvm->arch.mmu, gpa, vm_end - vm_start); in stage2_unmap_memslot()
440 hva = vm_end; in stage2_unmap_memslot()
1330 hva_t vm_start, vm_end; in kvm_arch_prepare_memory_region() local
1339 vm_end = min(reg_end, vma->vm_end); in kvm_arch_prepare_memory_region()
1356 vm_end - vm_start, in kvm_arch_prepare_memory_region()
1361 hva = vm_end; in kvm_arch_prepare_memory_region()
/kernel/linux/linux-5.10/include/trace/events/
Dfs_dax.h17 __field(unsigned long, vm_end)
30 __entry->vm_end = vmf->vma->vm_end;
47 __entry->vm_end,
/kernel/linux/linux-5.10/drivers/vfio/pci/
Dvfio_pci_nvlink2.c148 if (vma->vm_end - vma->vm_start > data->size) in vfio_pci_nvgpu_mmap()
169 vma->vm_end - vma->vm_start, ret); in vfio_pci_nvgpu_mmap()
336 unsigned long req_len = vma->vm_end - vma->vm_start; in vfio_pci_npu2_mmap()
347 vma->vm_end - vma->vm_start, ret); in vfio_pci_npu2_mmap()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dfb.h13 vma->vm_end - vma->vm_start, in fb_pgprotect()

12345678910