Lines Matching refs:prot

118 static int validate_prot_to_pageflags(int prot)  in validate_prot_to_pageflags()  argument
121 int page_flags = (prot & PAGE_RWX) | PAGE_VALID; in validate_prot_to_pageflags()
133 if ((prot & TARGET_PROT_BTI) && cpu_isar_feature(aa64_bti, cpu)) { in validate_prot_to_pageflags()
138 if ((prot & TARGET_PROT_MTE) && cpu_isar_feature(aa64_mte, cpu)) { in validate_prot_to_pageflags()
147 return prot & ~valid ? 0 : page_flags; in validate_prot_to_pageflags()
160 static int target_to_host_prot(int prot) in target_to_host_prot() argument
162 return (prot & (PROT_READ | PROT_WRITE)) | in target_to_host_prot()
163 (prot & PROT_EXEC ? PROT_READ : 0); in target_to_host_prot()
331 int prot, int flags, int fd, off_t offset) in mmap_frag() argument
341 && (prot & PROT_WRITE)) { in mmap_frag()
369 target_to_host_prot(prot), in mmap_frag()
378 prot_old = prot; in mmap_frag()
380 prot_new = prot | prot_old; in mmap_frag()
1025 int prot; in mmap_reserve_or_unmap() local
1038 prot = 0; in mmap_reserve_or_unmap()
1040 prot |= page_get_flags(a); in mmap_reserve_or_unmap()
1043 prot |= page_get_flags(a + 1); in mmap_reserve_or_unmap()
1045 if (prot != 0) { in mmap_reserve_or_unmap()
1049 for (prot = 0, a = real_start; a < start; a += TARGET_PAGE_SIZE) { in mmap_reserve_or_unmap()
1050 prot |= page_get_flags(a); in mmap_reserve_or_unmap()
1052 if (prot != 0) { in mmap_reserve_or_unmap()
1056 for (prot = 0, a = last; a < real_last; a += TARGET_PAGE_SIZE) { in mmap_reserve_or_unmap()
1057 prot |= page_get_flags(a + 1); in mmap_reserve_or_unmap()
1059 if (prot != 0) { in mmap_reserve_or_unmap()
1105 int prot; in target_mremap() local
1183 prot = page_get_flags(old_addr); in target_mremap()
1187 prot | PAGE_VALID | PAGE_RESET); in target_mremap()