| /openbmc/qemu/target/mips/system/ |
| H A D | physaddr.c | 78 int *prot, target_ulong real_address, in get_seg_physical_address() argument 91 return env->tlb->map_address(env, physical, prot, real_address, in get_seg_physical_address() 96 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_seg_physical_address() 102 int *prot, target_ulong real_address, in get_segctl_physical_address() argument 110 return get_seg_physical_address(env, physical, prot, real_address, in get_segctl_physical_address() 116 int *prot, target_ulong real_address, in get_physical_address() argument 141 ret = get_segctl_physical_address(env, physical, prot, in get_physical_address() 148 ret = env->tlb->map_address(env, physical, prot, in get_physical_address() 157 ret = env->tlb->map_address(env, physical, prot, in get_physical_address() 184 ret = get_seg_physical_address(env, physical, prot, in get_physical_address() [all …]
|
| /openbmc/qemu/target/ppc/ |
| H A D | mmu-booke.c | 35 if (!(tlb->prot & PAGE_VALID)) { in ppcemb_tlb_check() 42 mask, (uint32_t)tlb->PID, tlb->prot); in ppcemb_tlb_check() 71 int mmu40x_get_physical_address(CPUPPCState *env, hwaddr *raddr, int *prot, in mmu40x_get_physical_address() argument 100 *prot = PAGE_RWX; in mmu40x_get_physical_address() 108 *prot = 0; in mmu40x_get_physical_address() 116 *prot = tlb->prot; in mmu40x_get_physical_address() 117 if (check_prot_access_type(*prot, access_type)) { in mmu40x_get_physical_address() 129 ret < 0 ? 0 : *raddr, *prot, ret); in mmu40x_get_physical_address() 158 hwaddr *raddr, int *prot, target_ulong address, in mmubooke_check_tlb() argument 175 *prot = tlb->prot & 0xF; in mmubooke_check_tlb() [all …]
|
| H A D | mmu-hash32.h | 118 int prot; in ppc_hash32_prot() local 123 prot = 0; in ppc_hash32_prot() 127 prot = PAGE_READ; in ppc_hash32_prot() 130 prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_prot() 140 prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_prot() 143 prot = PAGE_READ; in ppc_hash32_prot() 149 return nx ? prot : prot | PAGE_EXEC; in ppc_hash32_prot() 154 int prot = 0; in ppc_hash32_bat_prot() local 158 prot = PAGE_READ | PAGE_EXEC; in ppc_hash32_bat_prot() 160 prot |= PAGE_WRITE; in ppc_hash32_bat_prot() [all …]
|
| H A D | mmu_helper.c | 119 tlb->prot &= ~PAGE_VALID; in ppc4xx_tlb_invalidate_all() 694 if (tlb->prot & PAGE_VALID) { in helper_4xx_tlbre_hi() 714 if (tlb->prot & PAGE_EXEC) { in helper_4xx_tlbre_lo() 717 if (tlb->prot & PAGE_WRITE) { in helper_4xx_tlbre_lo() 727 if (tlb->prot & 0xf) { in ppcemb_tlb_flush() 730 if ((tlb->prot >> 4) & 0xf) { in ppcemb_tlb_flush() 753 if ((tlb->prot & PAGE_VALID) && tlb->PID == env->spr[SPR_40x_PID]) { in helper_4xx_tlbwe_hi() 773 tlb->prot |= PAGE_VALID; in helper_4xx_tlbwe_hi() 780 tlb->prot &= ~PAGE_VALID; in helper_4xx_tlbwe_hi() 787 tlb->prot & PAGE_READ ? 'r' : '-', in helper_4xx_tlbwe_hi() [all …]
|
| H A D | mmu-hash32.c | 52 MMUAccessType access_type, int *prot, in ppc_hash32_bat_lookup() argument 82 *prot = ppc_hash32_bat_prot(batu, batl); in ppc_hash32_bat_lookup() 116 hwaddr *raddr, int *prot, int mmu_idx, in ppc_hash32_direct_store() argument 182 *prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_direct_store() 184 *prot = PAGE_READ; in ppc_hash32_direct_store() 186 if (check_prot_access_type(*prot, access_type)) { in ppc_hash32_direct_store() 304 int prot; in ppc_hash32_xlate() local 387 prot = ppc_hash32_prot(key, pte.pte1 & HPTE32_R_PP, sr & SR32_NX); in ppc_hash32_xlate() 389 if (!check_prot_access_type(prot, access_type)) { in ppc_hash32_xlate() 425 prot &= ~PAGE_WRITE; in ppc_hash32_xlate() [all …]
|
| H A D | mmu_common.c | 88 static int ppc6xx_tlb_check(CPUPPCState *env, hwaddr *raddr, int *prot, in ppc6xx_tlb_check() argument 135 *prot = ppc_hash32_prot(key, tlb->pte1 & HPTE32_R_PP, nx); in ppc6xx_tlb_check() 136 if (check_prot_access_type(*prot, access_type)) { in ppc6xx_tlb_check() 148 *raddr & TARGET_PAGE_MASK, *prot, ret); in ppc6xx_tlb_check() 158 *prot &= ~PAGE_WRITE; in ppc6xx_tlb_check() 190 static int get_bat_6xx_tlb(CPUPPCState *env, hwaddr *raddr, int *prot, in get_bat_6xx_tlb() argument 225 *prot = ppc_hash32_bat_prot(*BATu, *BATl); in get_bat_6xx_tlb() 226 if (check_prot_access_type(*prot, access_type)) { in get_bat_6xx_tlb() 229 *prot & PAGE_READ ? 'R' : '-', in get_bat_6xx_tlb() 230 *prot & PAGE_WRITE ? 'W' : '-'); in get_bat_6xx_tlb() [all …]
|
| H A D | mmu-hash64.c | 406 int prot = 0; in ppc_hash64_pte_prot() local 417 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_pte_prot() 422 prot = PAGE_READ | PAGE_EXEC; in ppc_hash64_pte_prot() 433 prot = PAGE_READ | PAGE_EXEC; in ppc_hash64_pte_prot() 437 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_pte_prot() 442 return prot; in ppc_hash64_pte_prot() 466 int prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_amr_prot() local 470 return prot; in ppc_hash64_amr_prot() 484 prot &= ~PAGE_WRITE; in ppc_hash64_amr_prot() 491 prot &= ~PAGE_READ; in ppc_hash64_amr_prot() [all …]
|
| H A D | mmu-radix64.c | 234 uint64_t pte, int *fault_cause, int *prot, in ppc_radix64_check_prot() argument 252 *prot = 0; in ppc_radix64_check_prot() 255 *prot = ppc_radix64_get_prot_eaa(pte); in ppc_radix64_check_prot() 257 *prot = ppc_radix64_get_prot_eaa(pte); in ppc_radix64_check_prot() 258 *prot &= ppc_radix64_get_prot_amr(cpu); /* Least combined permissions */ in ppc_radix64_check_prot() 262 if (!check_prot_access_type(*prot, access_type)) { in ppc_radix64_check_prot() 700 int psize, prot; in ppc_radix64_xlate_impl() local 781 pate, &g_raddr, &prot, in ppc_radix64_xlate_impl() 788 *protp &= prot; in ppc_radix64_xlate_impl() 806 &prot, &psize, false, in ppc_radix64_xlate_impl() [all …]
|
| /openbmc/u-boot/include/ |
| H A D | libata.h | 371 static inline unsigned int ata_prot_flags(u8 prot) in ata_prot_flags() argument 373 switch (prot) { in ata_prot_flags() 392 static inline int ata_is_atapi(u8 prot) in ata_is_atapi() argument 394 return ata_prot_flags(prot) & ATA_PROT_FLAG_ATAPI; in ata_is_atapi() 397 static inline int ata_is_nodata(u8 prot) in ata_is_nodata() argument 399 return !(ata_prot_flags(prot) & ATA_PROT_FLAG_DATA); in ata_is_nodata() 402 static inline int ata_is_pio(u8 prot) in ata_is_pio() argument 404 return ata_prot_flags(prot) & ATA_PROT_FLAG_PIO; in ata_is_pio() 407 static inline int ata_is_dma(u8 prot) in ata_is_dma() argument 409 return ata_prot_flags(prot) & ATA_PROT_FLAG_DMA; in ata_is_dma() [all …]
|
| /openbmc/qemu/hw/i386/kvm/ |
| H A D | xen_gnttab.c | 249 int prot; member 253 MemoryRegionSection *mrs, int prot) in gnt_unref() argument 256 if (prot & PROT_WRITE) { in gnt_unref() 271 static uint64_t gnt_ref(XenGnttabState *s, grant_ref_t ref, int prot) in gnt_ref() argument 282 if (prot & PROT_WRITE) { in gnt_ref() 304 if (prot & PROT_WRITE) { in gnt_ref() 328 uint32_t *refs, int prot) in xen_be_gnttab_map_refs() argument 365 if ((prot & PROT_WRITE) && !(act->prot & PROT_WRITE)) { in xen_be_gnttab_map_refs() 366 if (gnt_ref(s, refs[0], prot) == INVALID_GPA) { in xen_be_gnttab_map_refs() 369 act->prot |= PROT_WRITE; in xen_be_gnttab_map_refs() [all …]
|
| /openbmc/qemu/target/i386/tcg/system/ |
| H A D | excp_helper.c | 41 int prot; member 160 int prot; in mmu_translate() local 361 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate() 378 prot = 0; in mmu_translate() 380 prot |= PAGE_READ; in mmu_translate() 382 prot |= PAGE_WRITE; in mmu_translate() 388 prot |= PAGE_EXEC; in mmu_translate() 410 prot &= pkr_prot; in mmu_translate() 413 if ((prot & (1 << access_type)) == 0) { in mmu_translate() 427 prot &= ~PAGE_WRITE; in mmu_translate() [all …]
|
| /openbmc/u-boot/common/ |
| H A D | update.c | 100 static int update_flash_protect(int prot, ulong addr_first, ulong addr_last) in update_flash_protect() argument 109 if (prot == 0) { in update_flash_protect() 141 if (prot == 0) { in update_flash_protect() 151 if (flash_real_protect(info, i, prot)) in update_flash_protect() 154 info->protect[i] = prot; in update_flash_protect() 162 prot ? "": "Un-", cnt); in update_flash_protect() 166 if((prot == 1) && saved_prot_info) in update_flash_protect()
|
| /openbmc/qemu/dump/ |
| H A D | dump-hmp-cmds.c | 32 char *prot; in hmp_dump_guest_memory() local 78 prot = g_strconcat("file:", file, NULL); in hmp_dump_guest_memory() 80 qmp_dump_guest_memory(paging, prot, true, detach, has_begin, begin, in hmp_dump_guest_memory() 83 g_free(prot); in hmp_dump_guest_memory()
|
| /openbmc/qemu/tests/tcg/multiarch/ |
| H A D | vma-pthread.c | 122 int prot, ret; in thread_mutate() local 133 prot = rand_r(&seed) & (PROT_READ | PROT_WRITE | PROT_EXEC); in thread_mutate() 137 prot |= PROT_READ; in thread_mutate() 141 prot |= PROT_WRITE | PROT_READ; in thread_mutate() 144 prot |= PROT_EXEC; in thread_mutate() 148 (end_idx - start_idx + 1) * ctx->pagesize, prot); in thread_mutate()
|
| /openbmc/qemu/linux-user/ |
| H A D | mmap.c | 120 static int validate_prot_to_pageflags(int prot) in validate_prot_to_pageflags() argument 123 int page_flags = (prot & PAGE_RWX) | PAGE_VALID; in validate_prot_to_pageflags() 135 if ((prot & TARGET_PROT_BTI) && cpu_isar_feature(aa64_bti, cpu)) { in validate_prot_to_pageflags() 140 if ((prot & TARGET_PROT_MTE) && cpu_isar_feature(aa64_mte, cpu)) { in validate_prot_to_pageflags() 149 return prot & ~valid ? 0 : page_flags; in validate_prot_to_pageflags() 162 static int target_to_host_prot(int prot) in target_to_host_prot() argument 164 return (prot & (PROT_READ | PROT_WRITE)) | in target_to_host_prot() 165 (prot & PROT_EXEC ? PROT_READ : 0); in target_to_host_prot() 340 int prot, int flags, int fd, off_t offset) in mmap_frag() argument 350 && (prot & PROT_WRITE)) { in mmap_frag() [all …]
|
| /openbmc/u-boot/board/freescale/m5253demo/ |
| H A D | flash.c | 180 int flag, prot, sect, count; in flash_erase() local 205 prot = 0; in flash_erase() 208 prot++; in flash_erase() 212 if (prot) in flash_erase() 214 prot); in flash_erase() 223 if (prot == 0) { in flash_erase() 258 } else if (prot == CONFIG_SYS_SST_SECT) { in flash_erase()
|
| /openbmc/qemu/include/hw/xen/ |
| H A D | xen-legacy-backend.h | 48 unsigned int nr_refs, int prot); 53 uint32_t ref, int prot) in xen_be_map_grant_ref() argument 55 return xen_be_map_grant_refs(xendev, &ref, 1, prot); in xen_be_map_grant_ref()
|
| H A D | xen_backend_ops.h | 160 uint32_t *refs, int prot); 213 uint32_t *refs, int prot) in qemu_xen_gnttab_map_refs() argument 218 return xen_gnttab_ops->map_refs(xgt, count, domid, refs, prot); in qemu_xen_gnttab_map_refs() 232 void *(*map)(uint32_t dom, void *addr, int prot, size_t pages, 239 static inline void *qemu_xen_foreignmem_map(uint32_t dom, void *addr, int prot, in qemu_xen_foreignmem_map() argument 246 return xen_foreignmem_ops->map(dom, addr, prot, pages, pfns, errs); in qemu_xen_foreignmem_map()
|
| /openbmc/qemu/include/user/ |
| H A D | mmap.h | 18 int target_mprotect(abi_ulong start, abi_ulong len, int prot); 20 abi_long target_mmap(abi_ulong start, abi_ulong len, int prot,
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/daemontools/daemontools/ |
| H A D | warnings.patch | 40 --- a/src/prot.c 41 +++ b/src/prot.c 49 #include "prot.h"
|
| /openbmc/u-boot/arch/arm/mach-at91/arm926ejs/ |
| H A D | eflash.c | 151 int flash_real_protect (flash_info_t *info, long sector, int prot) in flash_real_protect() argument 157 debug("protect sector=%ld prot=%d\n", sector, prot); in flash_real_protect() 161 if (!prot) { in flash_real_protect() 168 if (prot) { in flash_real_protect()
|
| /openbmc/u-boot/tools/ |
| H A D | mingw_support.c | 24 void *mmap(void *addr, size_t len, int prot, int flags, int fd, int offset) in mmap() argument 30 switch (prot) { in mmap()
|
| /openbmc/qemu/tests/tcg/s390x/ |
| H A D | signals-s390x.c | 113 int prot; in check_sigsegv() local 118 prot = exception == exception_translation ? PROT_NONE : PROT_READ; in check_sigsegv() 119 page = mmap(NULL, 4096, prot, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in check_sigsegv()
|
| /openbmc/u-boot/board/cobra5272/ |
| H A D | flash.c | 131 int iflag, cflag, prot, sect; in flash_erase() local 150 prot = 0; in flash_erase() 153 prot++; in flash_erase() 156 if (prot) in flash_erase()
|
| /openbmc/u-boot/drivers/mtd/ |
| H A D | pic32_flash.c | 108 int prot, sect; in flash_erase() local 122 prot = 0; in flash_erase() 125 prot++; in flash_erase() 128 if (prot) in flash_erase() 130 prot); in flash_erase()
|