Home
last modified time | relevance | path

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

1234567891011

/linux-6.6.21/mm/
Dnommu.c103 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()
584 VMA_ITERATOR(vmi, vma->vm_mm, vma->vm_start); in delete_vma_from_mm()
586 vma_iter_config(&vmi, vma->vm_start, vma->vm_end); in delete_vma_from_mm()
[all …]
Dmmap.c231 if (!brkvma || brkvma->vm_start >= oldbrk) in SYSCALL_DEFINE1()
302 if (VM_WARN_ON_ONCE_MM(vma->vm_start != vmi_start, mm)) in validate_mm()
375 unsigned long vm_start = max(addr, vma->vm_start); in count_vma_pages_range() local
378 nr_pages += PHYS_PFN(vm_end - vm_start); in count_vma_pages_range()
400 vma_iter_config(&vmi, vma->vm_start, vma->vm_end); in vma_link()
466 uprobe_munmap(vp->vma, vp->vma->vm_start, vp->vma->vm_end); in vma_prepare()
469 uprobe_munmap(vp->adj_next, vp->adj_next->vm_start, in vma_prepare()
555 uprobe_munmap(vp->remove, vp->remove->vm_start, in vma_complete()
652 next != vma && end > next->vm_start); in vma_expand()
654 VM_WARN_ON(vma->vm_start < start || vma->vm_end > end); in vma_expand()
[all …]
Dinternal.h646 address = vma->vm_start + in vma_pgoff_address()
649 if (address < vma->vm_start || address >= vma->vm_end) in vma_pgoff_address()
653 address = vma->vm_start; in vma_pgoff_address()
687 address = vma->vm_start + ((pgoff - vma->vm_pgoff) << PAGE_SHIFT); in vma_address_end()
689 if (address < vma->vm_start || address > vma->vm_end) in vma_address_end()
1108 vmi->mas.index > vma->vm_start)) { in vma_iter_store()
1110 vmi->mas.index, vma->vm_start, vma->vm_start, in vma_iter_store()
1114 vmi->mas.last < vma->vm_start)) { in vma_iter_store()
1116 vmi->mas.last, vma->vm_start, vma->vm_start, vma->vm_end, in vma_iter_store()
1122 ((vmi->mas.index > vma->vm_start) || (vmi->mas.last < vma->vm_start))) in vma_iter_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.c428 pgoff = vma->vm_pgoff + ((start - vma->vm_start) >> PAGE_SHIFT); in mlock_fixup()
437 if (start != vma->vm_start) { in mlock_fixup()
496 if (start > vma->vm_start) in apply_vma_lock_flags()
500 tmp = vma->vm_start; in apply_vma_lock_flags()
505 if (vma->vm_start != tmp) in apply_vma_lock_flags()
550 if (start > vma->vm_start) in count_mm_mlocked_page_nr()
551 count -= (start - vma->vm_start); in count_mm_mlocked_page_nr()
553 count += end - vma->vm_start; in count_mm_mlocked_page_nr()
556 count += vma->vm_end - vma->vm_start; in count_mm_mlocked_page_nr()
697 mlock_fixup(&vmi, vma, &prev, vma->vm_start, vma->vm_end, in apply_mlockall_flags()
Dmremap.c613 if (vma->vm_start != old_addr) in move_vma()
639 new_pgoff = vma->vm_pgoff + ((old_addr - vma->vm_start) >> PAGE_SHIFT); in move_vma()
679 if (vma->vm_start < old_addr) in move_vma()
680 account_start = vma->vm_start; in move_vma()
709 if (new_vma != vma && vma->vm_start == old_addr && in move_vma()
782 pgoff = (addr - vma->vm_start) >> PAGE_SHIFT; in vma_to_resize()
871 ((addr - vma->vm_start) >> PAGE_SHIFT), in mremap_to()
895 if (get_unmapped_area(NULL, vma->vm_start, end - vma->vm_start, in vma_expandable()
1038 ((extension_start - vma->vm_start) >> PAGE_SHIFT); in SYSCALL_DEFINE5()
1089 ((addr - vma->vm_start) >> PAGE_SHIFT), in SYSCALL_DEFINE5()
/linux-6.6.21/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.6.21/mm/damon/
Dvaddr-test.h28 mas_set_range(&mas, vmas[i].vm_start, vmas[i].vm_end - 1); in __link_vmas()
72 (struct vm_area_struct) {.vm_start = 10, .vm_end = 20}, in damon_test_three_regions_in_vmas()
73 (struct vm_area_struct) {.vm_start = 20, .vm_end = 25}, in damon_test_three_regions_in_vmas()
74 (struct vm_area_struct) {.vm_start = 200, .vm_end = 210}, in damon_test_three_regions_in_vmas()
75 (struct vm_area_struct) {.vm_start = 210, .vm_end = 220}, in damon_test_three_regions_in_vmas()
76 (struct vm_area_struct) {.vm_start = 300, .vm_end = 305}, in damon_test_three_regions_in_vmas()
77 (struct vm_area_struct) {.vm_start = 307, .vm_end = 330}, in damon_test_three_regions_in_vmas()
/linux-6.6.21/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.6.21/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()
149 vma->vm_start, in nommu_vma_show()
184 *ppos = vma->vm_start; in proc_get_vma()
/linux-6.6.21/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.6.21/tools/testing/selftests/bpf/progs/
Dfind_vma_fail1.c5 #define vm_flags vm_start
17 vma->vm_start = 0xffffffffff600000; in write_vma()
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.6.21/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.6.21/drivers/accel/habanalabs/common/
Dmemory_mgr.c205 new_mmap_size = buf->real_mapped_size - (vma->vm_end - vma->vm_start); in hl_mmap_mem_buf_vm_close()
253 user_mem_size = vma->vm_end - vma->vm_start;
263 if (!access_ok(VERIFY_WRITE, (void __user *)(uintptr_t)vma->vm_start,
266 if (!access_ok((void __user *)(uintptr_t)vma->vm_start,
270 buf->behavior->topic, vma->vm_start);
/linux-6.6.21/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.6.21/arch/parisc/mm/
Dfault.c130 if (tree->vm_start > addr) {
136 if (prev->vm_next->vm_start > addr)
262 vma->vm_start, vma->vm_end); in show_signal_msg()
296 if (!vma || address < vma->vm_start) { in do_page_fault()
373 address < vma->vm_start || address >= vma->vm_end) { in do_page_fault()
/linux-6.6.21/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.6.21/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.6.21/arch/ia64/include/asm/
Dfb.h16 if (efi_range_is_wc(vma->vm_start, vma->vm_end - vma->vm_start)) in fb_pgprotect()
/linux-6.6.21/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.6.21/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.6.21/arch/powerpc/platforms/book3s/
Dvas-api.c438 fault = vmf_insert_pfn(vma, vma->vm_start, in vas_mmap_fault()
482 if ((vma->vm_end - vma->vm_start) > PAGE_SIZE) { in coproc_mmap()
484 (vma->vm_end - vma->vm_start), PAGE_SIZE); in coproc_mmap()
532 rc = remap_pfn_range(vma, vma->vm_start, pfn + vma->vm_pgoff, in coproc_mmap()
533 vma->vm_end - vma->vm_start, prot); in coproc_mmap()
536 vma->vm_start, rc); in coproc_mmap()
/linux-6.6.21/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.6.21/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()

1234567891011