/qemu/system/ |
H A D | memory_mapping.c | 31 if (p->phys_addr >= mapping->phys_addr) { in memory_mapping_list_add_mapping_sorted() 40 hwaddr phys_addr, in create_new_memory_mapping() argument 47 memory_mapping->phys_addr = phys_addr; in create_new_memory_mapping() 56 hwaddr phys_addr, in mapping_contiguous() argument 59 return phys_addr == map->phys_addr + map->length && in mapping_contiguous() 68 hwaddr phys_addr, in mapping_have_same_region() argument 71 return !(phys_addr + length < map->phys_addr || in mapping_have_same_region() 72 phys_addr >= map->phys_addr + map->length); in mapping_have_same_region() 81 hwaddr phys_addr, in mapping_conflict() argument 84 return virt_addr - map->virt_addr != phys_addr - map->phys_addr; in mapping_conflict() [all …]
|
/qemu/target/openrisc/ |
H A D | mmu.c | 31 static inline void get_phys_nommu(hwaddr *phys_addr, int *prot, in get_phys_nommu() argument 34 *phys_addr = address; in get_phys_nommu() 38 static int get_phys_mmu(OpenRISCCPU *cpu, hwaddr *phys_addr, int *prot, in get_phys_mmu() argument 78 *phys_addr = ((itr | dtr) & TARGET_PAGE_MASK) | (addr & ~TARGET_PAGE_MASK); in get_phys_mmu() 115 hwaddr phys_addr; in openrisc_cpu_tlb_fill() local 119 get_phys_nommu(&phys_addr, &prot, addr); in openrisc_cpu_tlb_fill() 126 excp = get_phys_mmu(cpu, &phys_addr, &prot, addr, need, super); in openrisc_cpu_tlb_fill() 131 phys_addr & TARGET_PAGE_MASK, prot, in openrisc_cpu_tlb_fill() 147 hwaddr phys_addr; in openrisc_cpu_get_phys_page_debug() local 152 excp = get_phys_mmu(cpu, &phys_addr, &prot, addr, in openrisc_cpu_get_phys_page_debug() [all …]
|
/qemu/target/sparc/ |
H A D | mmu_helper.c | 90 full->phys_addr = env->prom_addr | (address & 0x7ffffULL); in get_physical_address() 94 full->phys_addr = address; in get_physical_address() 100 full->phys_addr = 0xffffffffffff0000ULL; in get_physical_address() 205 full->phys_addr = ((hwaddr)(pde & PTE_ADDR_MASK) << 4) + page_offset; in get_physical_address() 235 address, full.phys_addr, vaddr); in sparc_cpu_tlb_fill() 582 &full->phys_addr)) { in get_physical_address_data() 683 address, context, &full->phys_addr)) { in get_physical_address_code() 748 full->phys_addr = ultrasparc_truncate_physical(address); in get_physical_address() 773 trace_mmu_helper_mmu_fault(address, full.phys_addr, mmu_idx, env->tl, in sparc_cpu_tlb_fill() 883 *phys = full.phys_addr; in cpu_sparc_get_phys_page() [all …]
|
/qemu/hw/xen/ |
H A D | xen-mapcache.c | 328 hwaddr phys_addr, hwaddr size, in xen_map_cache_unlocked() argument 343 address_index = phys_addr >> mc->bucket_shift; in xen_map_cache_unlocked() 344 address_offset = phys_addr & (mc->bucket_size - 1); in xen_map_cache_unlocked() 346 trace_xen_map_cache(phys_addr); in xen_map_cache_unlocked() 350 test_bit_size = size + (phys_addr & (XC_PAGE_SIZE - 1)); in xen_map_cache_unlocked() 421 phys_addr = mc->phys_offset_to_gaddr(phys_addr, size); in xen_map_cache_unlocked() 457 hwaddr phys_addr, hwaddr size, in xen_map_cache() argument 483 p = xen_map_cache_unlocked(mc, phys_addr, size, ram_addr_offset, in xen_map_cache()
|
H A D | xen_stubs.c | 43 hwaddr phys_addr, in xen_map_cache() argument
|
/qemu/target/arm/ |
H A D | ptw.c | 591 ptw->out_phys = s2.f.phys_addr; in S1_ptw_translate() 610 ptw->out_phys = full->phys_addr | (addr & ~TARGET_PAGE_MASK); in S1_ptw_translate() 992 hwaddr phys_addr; in get_phys_addr_v5() local 1031 phys_addr = (desc & 0xfff00000) | (address & 0x000fffff); in get_phys_addr_v5() 1055 phys_addr = (desc & 0xffff0000) | (address & 0xffff); in get_phys_addr_v5() 1060 phys_addr = (desc & 0xfffff000) | (address & 0xfff); in get_phys_addr_v5() 1069 phys_addr = (desc & 0xfffff000) | (address & 0xfff); in get_phys_addr_v5() 1080 phys_addr = (desc & 0xfffffc00) | (address & 0x3ff); in get_phys_addr_v5() 1097 result->f.phys_addr = phys_addr; in get_phys_addr_v5() 1120 hwaddr phys_addr; in get_phys_addr_v6() local [all …]
|
/qemu/include/system/ |
H A D | memory_mapping.h | 44 hwaddr phys_addr; member 62 hwaddr phys_addr,
|
H A D | xen-mapcache.h | 19 uint8_t *xen_map_cache(MemoryRegion *mr, hwaddr phys_addr, hwaddr size,
|
/qemu/target/s390x/ |
H A D | helper.c | 74 hwaddr phys_addr; in s390_cpu_get_phys_addr_debug() local 78 phys_addr = cpu_get_phys_page_debug(cs, page); in s390_cpu_get_phys_addr_debug() 79 phys_addr += (vaddr & ~TARGET_PAGE_MASK); in s390_cpu_get_phys_addr_debug() 81 return phys_addr; in s390_cpu_get_phys_addr_debug()
|
/qemu/target/mips/system/ |
H A D | physaddr.c | 234 hwaddr phys_addr; in mips_cpu_get_phys_page_debug() local 237 if (get_physical_address(env, &phys_addr, &prot, addr, MMU_DATA_LOAD, in mips_cpu_get_phys_page_debug() 241 return phys_addr; in mips_cpu_get_phys_page_debug()
|
/qemu/target/tricore/ |
H A D | helper.c | 52 hwaddr phys_addr; in tricore_cpu_get_phys_page_debug() local 56 if (get_physical_address(&cpu->env, &phys_addr, &prot, addr, in tricore_cpu_get_phys_page_debug() 60 return phys_addr; in tricore_cpu_get_phys_page_debug()
|
/qemu/target/loongarch/ |
H A D | cpu_helper.c | 212 hwaddr phys_addr; in loongarch_cpu_get_phys_page_debug() local 215 if (get_physical_address(env, &phys_addr, &prot, addr, MMU_DATA_LOAD, in loongarch_cpu_get_phys_page_debug() 219 return phys_addr; in loongarch_cpu_get_phys_page_debug()
|
/qemu/include/hw/cxl/ |
H A D | cxl_events.h | 115 uint64_t phys_addr; member 134 uint64_t phys_addr; member
|
/qemu/include/qemu/ |
H A D | plugin-memory.h | 17 hwaddr phys_addr; member
|
/qemu/dump/ |
H A D | dump.c | 227 phdr.p_paddr = cpu_to_dump64(s, memory_mapping->phys_addr); in write_elf64_load() 251 phdr.p_paddr = cpu_to_dump32(s, memory_mapping->phys_addr); in write_elf32_load() 555 static void get_offset_range(hwaddr phys_addr, in get_offset_range() argument 570 if (phys_addr < s->filter_area_begin || in get_offset_range() 571 phys_addr >= s->filter_area_begin + s->filter_area_length) { in get_offset_range() 601 if (phys_addr >= start && phys_addr < start + size_in_block) { in get_offset_range() 602 *p_offset = phys_addr - start + offset; in get_offset_range() 609 *p_filesz = phys_addr + mapping_length <= start + size_in_block ? in get_offset_range() 611 size_in_block - (phys_addr - start); in get_offset_range() 627 get_offset_range(memory_mapping->phys_addr, in write_elf_phdr_loads()
|
/qemu/tests/unit/ |
H A D | test-vmstate.c | 832 uint64_t phys_addr; member 842 VMSTATE_UINT64(phys_addr, TestGTreeMapping), \ 1013 map_a->phys_addr = 0xa000; in create_first_domain() 1017 map_b->phys_addr = 0xe0000; in create_first_domain() 1063 assert(map_a->phys_addr == map_b->phys_addr); in match_interval_mapping_node() 1209 map_c->phys_addr = 0xF000000; in create_iommu()
|
/qemu/hw/net/ |
H A D | allwinner-sun8i-emac.c | 351 uint32_t phys_addr) in allwinner_sun8i_emac_get_desc() argument 354 dma_memory_read(&s->dma_as, phys_addr, &desc_words, sizeof(desc_words), in allwinner_sun8i_emac_get_desc() 409 uint32_t phys_addr) in allwinner_sun8i_emac_flush_desc() argument 416 dma_memory_write(&s->dma_as, phys_addr, &desc_words, sizeof(desc_words), in allwinner_sun8i_emac_flush_desc()
|
/qemu/plugins/ |
H A D | api-system.c | 78 return haddr->phys_addr; in qemu_plugin_hwaddr_phys_addr()
|
/qemu/include/hw/loongarch/ |
H A D | boot.h | 79 uint64_t phys_addr; member
|
/qemu/hw/loongarch/ |
H A D | boot.c | 117 map[i].phys_addr = ROUND_UP(memmap_table[i].address, 64 * KiB); in init_efi_boot_memmap() 119 memmap_table[i].length - map[i].phys_addr, 64 * KiB); in init_efi_boot_memmap()
|
/qemu/hw/virtio/ |
H A D | virtio-iommu.c | 68 uint64_t phys_addr; member 298 mapping->phys_addr, mapping->flags); in virtio_iommu_notify_map_cb() 834 mapping->phys_addr = phys_start; in virtio_iommu_map() 1254 entry.translated_addr = addr - mapping_key->low + mapping_value->phys_addr; in virtio_iommu_translate() 1333 mapping->phys_addr); in virtio_iommu_remap() 1335 mapping->phys_addr, mapping->flags); in virtio_iommu_remap() 1553 VMSTATE_UINT64(phys_addr, VirtIOIOMMUMapping),\
|
/qemu/include/exec/ |
H A D | cpu-common.h | 151 bool cpu_physical_memory_is_io(hwaddr phys_addr);
|
/qemu/hw/intc/ |
H A D | xive2.c | 685 uint64_t phys_addr; in xive2_tm_pull_ctx_ol() local 706 phys_addr = xive2_nvp_reporting_addr(&nvp) + 0x80; /* odd line */ in xive2_tm_pull_ctx_ol() 711 result = dma_memory_write(&address_space_memory, phys_addr, in xive2_tm_pull_ctx_ol() 716 result = dma_memory_write(&address_space_memory, phys_addr, in xive2_tm_pull_ctx_ol() 721 result = dma_memory_write(&address_space_memory, phys_addr + 12, in xive2_tm_pull_ctx_ol()
|
/qemu/linux-headers/linux/ |
H A D | kvm.h | 257 __u64 phys_addr; member 264 __u64 phys_addr; member 477 __u64 phys_addr; member
|
/qemu/target/riscv/ |
H A D | cpu_helper.c | 1663 hwaddr phys_addr; in riscv_cpu_get_phys_page_debug() local 1667 if (get_physical_address(env, &phys_addr, &prot, addr, NULL, 0, mmu_idx, in riscv_cpu_get_phys_page_debug() 1673 if (get_physical_address(env, &phys_addr, &prot, phys_addr, NULL, in riscv_cpu_get_phys_page_debug() 1679 return phys_addr & TARGET_PAGE_MASK; in riscv_cpu_get_phys_page_debug()
|