Lines Matching refs:host_len
725 size_t host_len, part_len; in mmap_h_lt_g() local
732 host_len = len + TARGET_PAGE_SIZE - host_page_size; in mmap_h_lt_g()
733 p = mmap(want_p, host_len, host_prot, flags | MAP_ANONYMOUS, -1, 0); in mmap_h_lt_g()
743 host_len -= part_len; in mmap_h_lt_g()
745 if (len < host_len) { in mmap_h_lt_g()
746 do_munmap(p + len, host_len - len); in mmap_h_lt_g()
788 size_t host_len; in mmap_h_gt_g() local
798 host_len = len + offset - host_offset; in mmap_h_gt_g()
799 p = mmap(want_p, host_len, host_prot, flags, fd, host_offset); in mmap_h_gt_g()
868 host_len = real_last - real_start + 1; in mmap_h_gt_g()
872 p = mmap(want_p, host_len, host_prot, flags, -1, 0); in mmap_h_gt_g()
874 p = mmap(want_p, host_len, host_prot, flags, fd, in mmap_h_gt_g()
877 p = mmap(want_p, host_len, host_prot | PROT_WRITE, in mmap_h_gt_g()
882 do_munmap(p, host_len); in mmap_h_gt_g()
889 if (!mmap_pread(fd, p, host_len, offset + real_start - start, false)) { in mmap_h_gt_g()
890 do_munmap(p, host_len); in mmap_h_gt_g()
894 mprotect(p, host_len, host_prot); in mmap_h_gt_g()