Lines Matching refs:pend
723 unsigned long tmp, end, pend, pstart, ret, is_congruent, fudge = 0; in emulate_mmap() local
729 pend = PAGE_ALIGN(end); in emulate_mmap()
743 if (pstart >= pend) in emulate_mmap()
746 if (end < pend) { in emulate_mmap()
755 pend -= PAGE_SIZE; in emulate_mmap()
756 if (pstart >= pend) in emulate_mmap()
766 tmp = arch_get_unmapped_area(file, pstart - fudge, pend - pstart, 0, flags); in emulate_mmap()
771 pend = PAGE_ALIGN(end); in emulate_mmap()
782 DBG("mmap_body: mapping [0x%lx-0x%lx) %s with poff 0x%llx\n", pstart, pend, in emulate_mmap()
788 ret = do_mmap(file, pstart, pend - pstart, prot, flags | MAP_FIXED, poff); in emulate_mmap()
790 ret = do_mmap(NULL, pstart, pend - pstart, in emulate_mmap()
803 || ((*file->f_op->read)(file, (char __user *) pstart, pend - pstart, &poff) in emulate_mmap()
806 sys_munmap(pstart, pend - pstart); in emulate_mmap()
809 if (!(prot & PROT_WRITE) && sys_mprotect(pstart, pend - pstart, prot) < 0) in emulate_mmap()