Home
last modified time | relevance | path

Searched refs:PAGE_WRITE (Results 1 – 25 of 50) sorted by relevance

12

/openbmc/qemu/target/xtensa/
H A Dmmu_helper.c582 access |= PAGE_WRITE; in mmu_attr_to_access()
747 [6] = PAGE_READ | PAGE_WRITE, in mpu_attr_to_access()
748 [7] = PAGE_READ | PAGE_WRITE | PAGE_EXEC, in mpu_attr_to_access()
749 [8] = PAGE_WRITE, in mpu_attr_to_access()
750 [9] = PAGE_READ | PAGE_WRITE, in mpu_attr_to_access()
751 [10] = PAGE_READ | PAGE_WRITE, in mpu_attr_to_access()
755 [14] = PAGE_READ | PAGE_WRITE, in mpu_attr_to_access()
759 [8] = PAGE_WRITE, in mpu_attr_to_access()
765 [14] = PAGE_READ | PAGE_WRITE, in mpu_attr_to_access()
791 return access & PAGE_WRITE; in is_access_granted()
[all …]
H A Dop_helper.c92 (access & (PAGE_READ | PAGE_WRITE)) != (PAGE_READ | PAGE_WRITE)) { in HELPER()
/openbmc/qemu/target/openrisc/
H A Dmmu.c34 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_phys_nommu()
60 match |= (dmr ^ addr) & TARGET_PAGE_MASK ? 0 : PAGE_READ | PAGE_WRITE; in get_phys_mmu()
64 valid |= dmr & 1 ? PAGE_READ | PAGE_WRITE : 0; in get_phys_mmu()
70 right |= dtr & (super ? SWE : UWE) ? PAGE_WRITE : 0; in get_phys_mmu()
123 : access_type == MMU_DATA_STORE ? PAGE_WRITE in openrisc_cpu_tlb_fill()
167 PAGE_EXEC | PAGE_READ | PAGE_WRITE, in openrisc_cpu_get_phys_page_debug()
/openbmc/qemu/target/s390x/
H A Dmmu_helper.c199 *flags &= ~PAGE_WRITE; in mmu_translate_asce()
218 *flags &= ~PAGE_WRITE; in mmu_translate_asce()
236 *flags &= ~PAGE_WRITE; in mmu_translate_asce()
266 *flags &= ~PAGE_WRITE; in mmu_translate_asce()
290 *flags &= ~PAGE_WRITE; in mmu_translate_asce()
356 *flags &= ~PAGE_WRITE; in mmu_handle_skey()
393 *flags = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate()
442 if (unlikely(rw == MMU_DATA_STORE && !(*flags & PAGE_WRITE))) { in mmu_translate()
583 *flags = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate_real()
/openbmc/qemu/include/exec/
H A Dpage-protection.h13 #define PAGE_WRITE 0x0002 macro
15 #define PAGE_RWX (PAGE_READ | PAGE_WRITE | PAGE_EXEC)
/openbmc/linux/arch/csky/mm/
H A Dinit.c212 [VM_SHARED | VM_WRITE] = PAGE_WRITE,
213 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_WRITE,
216 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_WRITE,
217 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_WRITE
/openbmc/qemu/target/sparc/
H A Dmmu_helper.c48 PAGE_READ | PAGE_WRITE,
50 PAGE_READ | PAGE_WRITE | PAGE_EXEC,
52 PAGE_READ | PAGE_WRITE,
54 PAGE_READ | PAGE_WRITE | PAGE_EXEC
58 PAGE_READ | PAGE_WRITE,
60 PAGE_READ | PAGE_WRITE | PAGE_EXEC,
91 full->prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
196 full->prot &= ~PAGE_WRITE; in get_physical_address()
247 full.prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in sparc_cpu_tlb_fill()
617 full->prot |= PAGE_WRITE; in get_physical_address_data()
[all …]
/openbmc/qemu/target/ppc/
H A Dmmu-hash32.h128 prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_prot()
138 prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_prot()
158 prot |= PAGE_WRITE; in ppc_hash32_bat_prot()
H A Dmmu-hash64.c394 PAGE_READ | PAGE_WRITE : PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_pte_noexec_guard()
417 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_pte_prot()
437 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_pte_prot()
458 return (iamr_bits & 0x1) ? PAGE_READ | PAGE_WRITE : in ppc_hash64_iamr_prot()
459 PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_iamr_prot()
466 int prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_amr_prot()
484 prot &= ~PAGE_WRITE; in ppc_hash64_amr_prot()
1065 *protp = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_xlate()
1191 prot &= ~PAGE_WRITE; in ppc_hash64_xlate()
H A Dmmu-radix64.c218 (pte & R_PTE_EAA_RW ? PAGE_READ | PAGE_WRITE : 0) | in ppc_radix64_get_prot_eaa()
228 return (amr & 0x2 ? 0 : PAGE_WRITE) | /* Access denied if bit is set */ in ppc_radix64_get_prot_amr()
705 *protp = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_radix64_xlate_impl()
755 *protp = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_radix64_xlate_impl()
820 *protp & PAGE_WRITE ? 'w' : '-', in ppc_radix64_xlate()
H A Dmmu_helper.c716 if (tlb->prot & PAGE_WRITE) { in helper_4xx_tlbre_lo()
787 tlb->prot & PAGE_WRITE ? 'w' : '-', in helper_4xx_tlbwe_hi()
816 tlb->prot |= PAGE_WRITE; in helper_4xx_tlbwe_lo()
823 tlb->prot & PAGE_WRITE ? 'w' : '-', in helper_4xx_tlbwe_lo()
896 tlb->prot |= PAGE_WRITE << 4; in helper_440_tlbwe()
905 tlb->prot |= PAGE_WRITE; in helper_440_tlbwe()
950 if (tlb->prot & (PAGE_WRITE << 4)) { in helper_440_tlbre()
959 if (tlb->prot & PAGE_WRITE) { in helper_440_tlbre()
H A Dmmu-hash32.c182 *prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_direct_store()
313 *protp = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash32_xlate()
425 prot &= ~PAGE_WRITE; in ppc_hash32_xlate()
/openbmc/qemu/accel/tcg/
H A Duser-exec.c203 ((prot & PAGE_WRITE) ? 'w' : '-'), in dump_region()
378 || (merge_flags & ~p_flags & PAGE_WRITE))) { in pageflags_set_clear()
515 if (flags & PAGE_WRITE) { in page_set_flags()
574 if (missing & ~PAGE_WRITE) { in page_check_range()
578 if (missing & PAGE_WRITE) { in page_check_range()
690 if (prot & PAGE_WRITE) { in page_protect()
691 pageflags_set_clear(start, last, 0, PAGE_WRITE); in page_protect()
725 if (p->flags & PAGE_WRITE) { in page_unprotect()
745 prot = p->flags | PAGE_WRITE; in page_unprotect()
760 prot |= PAGE_WRITE; in page_unprotect()
[all …]
/openbmc/qemu/target/i386/tcg/sysemu/
H A Dexcp_helper.c358 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate()
379 prot |= PAGE_WRITE; in mmu_translate()
397 uint32_t pkr_prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate()
400 pkr_prot &= ~(PAGE_READ | PAGE_WRITE); in mmu_translate()
402 pkr_prot &= ~PAGE_WRITE; in mmu_translate()
424 prot &= ~PAGE_WRITE; in mmu_translate()
604 out->prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
/openbmc/qemu/target/alpha/
H A Dhelper.c180 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
205 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
258 #if PAGE_READ != 1 || PAGE_WRITE != 2 || PAGE_EXEC != 4 in get_physical_address()
267 prot |= PAGE_WRITE; in get_physical_address()
278 prot_need & PAGE_WRITE ? MM_K_FOW : in get_physical_address()
/openbmc/qemu/target/arm/
H A Dptw.c593 ptw->out_rw = full->prot & PAGE_WRITE; in S1_ptw_translate()
912 return PAGE_READ | PAGE_WRITE; in ap_to_rw_prot_is_user()
934 return PAGE_READ | PAGE_WRITE; in ap_to_rw_prot_is_user()
937 return PAGE_READ | PAGE_WRITE; in ap_to_rw_prot_is_user()
979 return PAGE_READ | PAGE_WRITE; in simple_ap_to_rw_prot_is_user()
1301 prot |= PAGE_WRITE; in get_S2prot_noexecute()
1434 xn = pxn || (user_rw & PAGE_WRITE); in get_S1prot()
1458 if (xn || (wxn && (prot_rw & PAGE_WRITE))) { in get_S1prot()
2255 result->f.prot |= PAGE_WRITE; in get_phys_addr_pmsav5()
2286 *prot = PAGE_READ | PAGE_WRITE; in get_phys_addr_pmsav7_default()
[all …]
/openbmc/qemu/target/loongarch/
H A Dcpu_helper.c76 *prot |= PAGE_WRITE; in loongarch_map_tlb_entry()
193 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
212 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
/openbmc/qemu/target/hppa/
H A Dmem_helper.c164 : PAGE_EXEC | PAGE_READ | PAGE_WRITE); in match_prot_id_1()
223 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in hppa_get_physical_address()
242 w_prot = (priv <= ent->ar_pl2) * PAGE_WRITE; in hppa_get_physical_address()
304 if (type & PAGE_WRITE) { in hppa_get_physical_address()
310 if (type & PAGE_WRITE) { in hppa_get_physical_address()
434 a_prot = PAGE_WRITE; in hppa_cpu_tlb_fill()
/openbmc/linux/arch/csky/include/asm/
H A Dpgtable.h58 #define PAGE_WRITE __pgprot(_PAGE_BASE | _PAGE_READ | _PAGE_WRITE | \ macro
60 #define PAGE_SHARED PAGE_WRITE
/openbmc/qemu/hw/ppc/
H A Dppc440_bamboo.c121 tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); in mmubooke_create_initial_mapping()
129 tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); in mmubooke_create_initial_mapping()
H A Dvirtex_ml507.c78 tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); in mmubooke_create_initial_mapping()
86 tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); in mmubooke_create_initial_mapping()
H A Dsam460ex.c226 tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); in mmubooke_create_initial_mapping_uboot()
241 tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); in mmubooke_create_initial_mapping()
/openbmc/qemu/target/sh4/
H A Dhelper.c355 *prot |= PAGE_WRITE; in get_mmu_address()
378 *prot |= PAGE_WRITE; in get_mmu_address()
418 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
425 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
/openbmc/qemu/target/m68k/
H A Dhelper.c721 *prot |= PAGE_WRITE; in check_TTR()
755 *prot = PAGE_READ | PAGE_WRITE; in get_physical_address()
786 *prot &= ~PAGE_WRITE; in get_physical_address()
813 *prot &= ~PAGE_WRITE; in get_physical_address()
885 *prot &= ~PAGE_WRITE; in get_physical_address()
968 PAGE_READ | PAGE_WRITE | PAGE_EXEC, in m68k_cpu_tlb_fill()
/openbmc/openbmc/poky/meta/recipes-devtools/qemu/qemu/
H A D0004-linux-user-Rewrite-target_shmat.patch206 - (shmflg & SHM_RDONLY ? 0 : PAGE_WRITE));
207 + (shmflg & SHM_RDONLY ? 0 : PAGE_WRITE) |

12