Lines Matching refs:vm_start
102 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()
603 MA_STATE(mas, &mm->mm_mt, vma->vm_start, vma->vm_end); in add_vma_to_mm()
717 if (vma->vm_start != addr) in find_vma_exact()
995 region->vm_start = (unsigned long) base; in do_mmap_private()
996 region->vm_end = region->vm_start + len; in do_mmap_private()
997 region->vm_top = region->vm_start + (total << PAGE_SHIFT); in do_mmap_private()
999 vma->vm_start = region->vm_start; in do_mmap_private()
1000 vma->vm_end = region->vm_start + len; in do_mmap_private()
1024 free_page_series(region->vm_start, region->vm_top); in do_mmap_private()
1025 region->vm_start = vma->vm_start = 0; in do_mmap_private()
1130 rpglen = pregion->vm_end - pregion->vm_start; in do_mmap()
1149 start = pregion->vm_start; in do_mmap()
1151 vma->vm_start = start; in do_mmap()
1160 vma->vm_start = 0; in do_mmap()
1195 vma->vm_start = region->vm_start = addr; in do_mmap()
1218 memset((void *)region->vm_start, 0, in do_mmap()
1219 region->vm_end - region->vm_start); in do_mmap()
1222 result = vma->vm_start; in do_mmap()
1232 flush_icache_user_range(region->vm_start, region->vm_end); in do_mmap()
1343 MA_STATE(mas, &mm->mm_mt, vma->vm_start, vma->vm_end); in split_vma()
1372 npages = (addr - vma->vm_start) >> PAGE_SHIFT; in split_vma()
1377 region->vm_start = new->vm_start = addr; in split_vma()
1387 vma->vm_region->vm_start = vma->vm_start = addr; in split_vma()
1399 mas_set_range(&mas, vma->vm_start, vma->vm_end - 1); in split_vma()
1426 if (from > vma->vm_start) in shrink_vma()
1429 vma->vm_start = to; in shrink_vma()
1439 if (from > region->vm_start) { in shrink_vma()
1443 region->vm_start = to; in shrink_vma()
1486 if (start > vma->vm_start) in do_munmap()
1495 if (start == vma->vm_start && end == vma->vm_end) in do_munmap()
1497 if (start < vma->vm_start || end > vma->vm_end) in do_munmap()
1503 if (start != vma->vm_start && end != vma->vm_end) { in do_munmap()
1600 if (vma->vm_end != vma->vm_start + old_len) in do_mremap()
1606 if (new_len > vma->vm_region->vm_end - vma->vm_region->vm_start) in do_mremap()
1610 vma->vm_end = vma->vm_start + new_len; in do_mremap()
1611 return vma->vm_start; in do_mremap()
1646 unsigned long vm_len = vma->vm_end - vma->vm_start; in vm_iomap_memory()
1649 return io_remap_pfn_range(vma, vma->vm_start, pfn, vm_len, vma->vm_page_prot); in vm_iomap_memory()
1656 unsigned int size = vma->vm_end - vma->vm_start; in remap_vmalloc_range()
1661 vma->vm_start = (unsigned long)(addr + (pgoff << PAGE_SHIFT)); in remap_vmalloc_range()
1662 vma->vm_end = vma->vm_start + size; in remap_vmalloc_range()
1803 r_size = region->vm_top - region->vm_start; in nommu_shrink_inode_mappings()