Home
last modified time | relevance | path

Searched refs:vm_start (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/linux-6.1.9/mm/
Dnommu.c102 return vma->vm_end - vma->vm_start; in kobjsize()
433 BUG_ON(last->vm_end <= last->vm_start); in validate_nommu_regions()
440 BUG_ON(region->vm_end <= region->vm_start); in validate_nommu_regions()
442 BUG_ON(region->vm_start < last->vm_top); in validate_nommu_regions()
468 if (region->vm_start < pregion->vm_start) in add_nommu_region()
470 else if (region->vm_start > pregion->vm_start) in add_nommu_region()
521 if (region->vm_top > region->vm_start) in __put_nommu_region()
531 free_page_series(region->vm_start, region->vm_top); in __put_nommu_region()
549 mas_set_range(mas, vma->vm_start, vma->vm_end - 1); in vma_mas_store()
555 mas->index = vma->vm_start; in vma_mas_remove()
[all …]
Dmmap.c229 if (!brkvma || brkvma->vm_start >= oldbrk) in SYSCALL_DEFINE1()
297 if ((vma_mt->vm_start != mas.index) || in validate_mm_mt()
305 vma_mt->vm_start, vma_mt->vm_end); in validate_mm_mt()
310 mm, vma_mt->vm_start, vma_mt->vm_end, in validate_mm_mt()
315 if (vma_mt->vm_start != mas.index) { in validate_mm_mt()
317 mm, vma_mt, vma_mt->vm_start, vma_mt->vm_end); in validate_mm_mt()
320 VM_BUG_ON_MM(vma_mt->vm_start != mas.index, mm); in validate_mm_mt()
400 unsigned long vm_start = max(addr, vma->vm_start); in count_vma_pages_range() local
403 nr_pages += PHYS_PFN(vm_end - vm_start); in count_vma_pages_range()
433 mas_set_range(mas, vma->vm_start, vma->vm_end - 1); in vma_mas_store()
[all …]
Dmsync.c73 if (start < vma->vm_start) { in SYSCALL_DEFINE3()
76 start = vma->vm_start; in SYSCALL_DEFINE3()
88 fstart = (start - vma->vm_start) + in SYSCALL_DEFINE3()
Dmlock.c419 pgoff = vma->vm_pgoff + ((start - vma->vm_start) >> PAGE_SHIFT); in mlock_fixup()
428 if (start != vma->vm_start) { in mlock_fixup()
487 if (start > vma->vm_start) in apply_vma_lock_flags()
511 if (!vma || vma->vm_start != nstart) { in apply_vma_lock_flags()
542 if (start > vma->vm_start) in count_mm_mlocked_page_nr()
543 count -= (start - vma->vm_start); in count_mm_mlocked_page_nr()
545 count += end - vma->vm_start; in count_mm_mlocked_page_nr()
548 count += vma->vm_end - vma->vm_start; in count_mm_mlocked_page_nr()
689 mlock_fixup(vma, &prev, vma->vm_start, vma->vm_end, newflags); in apply_mlockall_flags()
Dmremap.c600 if (vma->vm_start != old_addr) in move_vma()
625 new_pgoff = vma->vm_pgoff + ((old_addr - vma->vm_start) >> PAGE_SHIFT); in move_vma()
665 excess = vma->vm_end - vma->vm_start - old_len; in move_vma()
666 if (old_addr > vma->vm_start && in move_vma()
695 if (new_vma != vma && vma->vm_start == old_addr && in move_vma()
763 pgoff = (addr - vma->vm_start) >> PAGE_SHIFT; in vma_to_resize()
852 ((addr - vma->vm_start) >> PAGE_SHIFT), in mremap_to()
876 if (get_unmapped_area(NULL, vma->vm_start, end - vma->vm_start, in vma_expandable()
1020 ((extension_start - vma->vm_start) >> PAGE_SHIFT); in SYSCALL_DEFINE5()
1069 ((addr - vma->vm_start) >> PAGE_SHIFT), in SYSCALL_DEFINE5()
/linux-6.1.9/drivers/gpu/drm/
Ddrm_vm.c78 if (efi_range_is_wc(vma->vm_start, vma->vm_end - in drm_io_prot()
79 vma->vm_start)) in drm_io_prot()
139 resource_size_t offset = vmf->address - vma->vm_start; in drm_vm_fault()
210 offset = vmf->address - vma->vm_start; in drm_vm_shm_fault()
240 vma->vm_start, vma->vm_end - vma->vm_start); in drm_vm_shm_close()
314 offset = vmf->address - vma->vm_start; in drm_vm_dma_fault()
351 offset = vmf->address - vma->vm_start; in drm_vm_sg_fault()
395 vma->vm_start, vma->vm_end - vma->vm_start); in drm_vm_open_locked()
421 vma->vm_start, vma->vm_end - vma->vm_start); in drm_vm_close_locked()
465 unsigned long length = vma->vm_end - vma->vm_start; in drm_mmap_dma()
[all …]
/linux-6.1.9/include/trace/events/
Dmmap.h79 __field(unsigned long, vm_start)
86 __entry->vm_start = vma->vm_start;
92 (unsigned long) __entry->vm_start,
/linux-6.1.9/mm/damon/
Dvaddr-test.h65 (struct vm_area_struct) {.vm_start = 10, .vm_end = 20}, in damon_test_three_regions_in_vmas()
66 (struct vm_area_struct) {.vm_start = 20, .vm_end = 25}, in damon_test_three_regions_in_vmas()
67 (struct vm_area_struct) {.vm_start = 200, .vm_end = 210}, in damon_test_three_regions_in_vmas()
68 (struct vm_area_struct) {.vm_start = 210, .vm_end = 220}, in damon_test_three_regions_in_vmas()
69 (struct vm_area_struct) {.vm_start = 300, .vm_end = 305}, in damon_test_three_regions_in_vmas()
70 (struct vm_area_struct) {.vm_start = 307, .vm_end = 330}, in damon_test_three_regions_in_vmas()
/linux-6.1.9/arch/parisc/mm/
Dfault.c130 if (tree->vm_start > addr) {
136 if (prev->vm_next->vm_start > addr)
257 vma->vm_start, vma->vm_end); in show_signal_msg()
291 if (!vma || address < vma->vm_start) in do_page_fault()
363 address < vma->vm_start || address >= vma->vm_end) { in do_page_fault()
492 && address >= vma->vm_start in handle_nadtlb_fault()
/linux-6.1.9/fs/proc/
Dtask_nommu.c35 size += region->vm_end - region->vm_start; in task_mem()
37 size = vma->vm_end - vma->vm_start; in task_mem()
89 vsize += vma->vm_end - vma->vm_start; in task_vsize()
109 size += region->vm_end - region->vm_start; in task_statm()
133 return vma->vm_start <= mm->start_stack && in is_stack()
162 vma->vm_start, in nommu_vma_show()
/linux-6.1.9/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
/linux-6.1.9/arch/ia64/include/asm/
Dfb.h13 if (efi_range_is_wc(vma->vm_start, vma->vm_end - vma->vm_start)) in fb_pgprotect()
/linux-6.1.9/drivers/char/
Dmspec.c75 unsigned long vm_start; /* Original (unsplit) base. */ member
114 last_index = (vdata->vm_end - vdata->vm_start) >> PAGE_SHIFT; in mspec_close()
202 vdata->vm_start = vma->vm_start; in mspec_mmap()
/linux-6.1.9/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()
227 buf->baddr = vma->vm_start; in __videobuf_mmap_mapper()
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()
/linux-6.1.9/drivers/misc/habanalabs/common/
Dmemory_mgr.c206 new_mmap_size = buf->real_mapped_size - (vma->vm_end - vma->vm_start); in hl_mmap_mem_buf_vm_close()
254 user_mem_size = vma->vm_end - vma->vm_start;
264 if (!access_ok(VERIFY_WRITE, (void __user *)(uintptr_t)vma->vm_start,
267 if (!access_ok((void __user *)(uintptr_t)vma->vm_start,
271 buf->behavior->topic, vma->vm_start);
/linux-6.1.9/arch/x86/um/
Dmem_32.c17 gate_vma.vm_start = FIXADDR_USER_START; in gate_vma_init()
49 return (addr >= vma->vm_start) && (addr < vma->vm_end); in in_gate_area()
/linux-6.1.9/arch/arc/kernel/
Darc_hostlink.c22 if (io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in arc_hl_mmap()
23 vma->vm_end - vma->vm_start, in arc_hl_mmap()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dbpf_iter_vma_offset.c32 if (vma->vm_start <= address && vma->vm_end > address) { in get_vma_offset()
33 offset = address - vma->vm_start + (vma->vm_pgoff << page_shift); in get_vma_offset()
/linux-6.1.9/drivers/pci/
Dmmap.c47 return io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in pci_mmap_resource_range()
48 vma->vm_end - vma->vm_start, in pci_mmap_resource_range()
/linux-6.1.9/arch/riscv/kernel/
Dvdso.c71 current->mm->context.vdso = (void *)new_vma->vm_start; in vdso_mremap()
127 unsigned long size = vma->vm_end - vma->vm_start; in vdso_join_timens()
130 zap_page_range(vma, vma->vm_start, size); in vdso_join_timens()
133 zap_page_range(vma, vma->vm_start, size); in vdso_join_timens()
/linux-6.1.9/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()
146 vma->vm_start, in qcom_rmtfs_mem_mmap()
148 vma->vm_end - vma->vm_start, in qcom_rmtfs_mem_mmap()
/linux-6.1.9/arch/arm64/kernel/
Dvdso.c81 current->mm->context.vdso = (void *)new_vma->vm_start; in vdso_mremap()
141 unsigned long size = vma->vm_end - vma->vm_start; in vdso_join_timens()
144 zap_page_range(vma, vma->vm_start, size); in vdso_join_timens()
147 zap_page_range(vma, vma->vm_start, size); in vdso_join_timens()
275 current->mm->context.sigpage = (void *)new_vma->vm_start; in aarch32_sigpage_mremap()
/linux-6.1.9/arch/powerpc/platforms/book3s/
Dvas-api.c439 fault = vmf_insert_pfn(vma, vma->vm_start, in vas_mmap_fault()
483 if ((vma->vm_end - vma->vm_start) > PAGE_SIZE) { in coproc_mmap()
485 (vma->vm_end - vma->vm_start), PAGE_SIZE); in coproc_mmap()
533 rc = remap_pfn_range(vma, vma->vm_start, pfn + vma->vm_pgoff, in coproc_mmap()
534 vma->vm_end - vma->vm_start, prot); in coproc_mmap()
537 paste_addr, vma->vm_start, rc); in coproc_mmap()
/linux-6.1.9/drivers/xen/xenfs/
Dxenstored.c36 size_t size = vma->vm_end - vma->vm_start; in xsd_kva_mmap()
41 if (remap_pfn_range(vma, vma->vm_start, in xsd_kva_mmap()
/linux-6.1.9/arch/powerpc/kernel/
Dproc_powerpc.c33 if ((vma->vm_end - vma->vm_start) > PAGE_SIZE) in page_map_mmap()
36 remap_pfn_range(vma, vma->vm_start, in page_map_mmap()

12345678910>>...12