Lines Matching refs:pregion
447 struct vm_region *pregion; in add_nommu_region() local
456 pregion = rb_entry(parent, struct vm_region, vm_rb); in add_nommu_region()
457 if (region->vm_start < pregion->vm_start) in add_nommu_region()
459 else if (region->vm_start > pregion->vm_start) in add_nommu_region()
461 else if (pregion == region) in add_nommu_region()
1069 struct vm_region *pregion; in do_mmap() local
1076 pregion = rb_entry(rb, struct vm_region, vm_rb); in do_mmap()
1078 if (!is_nommu_shared_mapping(pregion->vm_flags)) in do_mmap()
1082 if (file_inode(pregion->vm_file) != in do_mmap()
1086 if (pregion->vm_pgoff >= pgend) in do_mmap()
1089 rpglen = pregion->vm_end - pregion->vm_start; in do_mmap()
1091 rpgend = pregion->vm_pgoff + rpglen; in do_mmap()
1097 if ((pregion->vm_pgoff != pgoff || rpglen != pglen) && in do_mmap()
1098 !(pgoff >= pregion->vm_pgoff && pgend <= rpgend)) { in do_mmap()
1106 pregion->vm_usage++; in do_mmap()
1107 vma->vm_region = pregion; in do_mmap()
1108 start = pregion->vm_start; in do_mmap()
1109 start += (pgoff - pregion->vm_pgoff) << PAGE_SHIFT; in do_mmap()
1113 if (pregion->vm_flags & VM_MAPPED_COPY) in do_mmap()
1121 pregion->vm_usage--; in do_mmap()
1122 pregion = NULL; in do_mmap()
1128 region = pregion; in do_mmap()