Home
last modified time | relevance | path

Searched refs:paddr (Results 1 – 25 of 29) sorted by relevance

12

/xen/xen/drivers/acpi/apei/
A Dapei-io.c48 paddr_t paddr; member
57 if (map->paddr + map->size >= paddr + size && in __apei_find_iomap()
58 map->paddr <= paddr) in __apei_find_iomap()
71 return map->vaddr + (paddr - map->paddr); in __apei_ioremap_fast()
127 map->paddr = paddr & PAGE_MASK; in apei_pre_map()
136 return map->vaddr + (paddr - map->paddr); in apei_pre_map()
165 memcpy(paddr, &reg->address, sizeof(*paddr)); in apei_check_gar()
194 u64 paddr; in apei_pre_map_gar() local
215 u64 paddr; in apei_post_unmap_gar() local
289 u64 paddr; in apei_read() local
[all …]
/xen/tools/libxc/
A Dxc_pagetab.c33 uint64_t paddr, mask, pte = 0; in xc_translate_foreign_address() local
51 paddr = ctx.cr3 & ((pt_levels == 3) ? ~0x1full : ~0xfffull); in xc_translate_foreign_address()
61 paddr = (uint64_t)xen_cr3_to_pfn_x86_64(ctx.x64.ctrlreg[3]) in xc_translate_foreign_address()
65 paddr = (uint64_t)xen_cr3_to_pfn_x86_32(ctx.x32.ctrlreg[3]) in xc_translate_foreign_address()
84 paddr += ((virt & mask) >> (xc_ffs64(mask) - 1)) * size; in xc_translate_foreign_address()
86 paddr >>PAGE_SHIFT); in xc_translate_foreign_address()
89 memcpy(&pte, map + (paddr & (PAGE_SIZE - 1)), size); in xc_translate_foreign_address()
95 paddr = pte & 0x000ffffffffff000ull; in xc_translate_foreign_address()
98 return ((paddr & ~mask) | (virt & mask)) >> PAGE_SHIFT; in xc_translate_foreign_address()
102 return paddr >> PAGE_SHIFT; in xc_translate_foreign_address()
/xen/tools/firmware/hvmloader/
A Dhvmloader.c297 if ( !module_name || !modlist[i].paddr ) in get_module_entry()
307 if ( modlist[i].paddr > UINTPTR_MAX || in get_module_entry()
309 (modlist[i].paddr + modlist[i].size - 1) > UINTPTR_MAX ) in get_module_entry()
312 name, PRIllx_arg(modlist[i].paddr), in get_module_entry()
365 uint32_t paddr = bios_module->paddr; in main() local
367 bios->bios_load(bios, (void *)paddr, bios_module->size, NULL); in main()
373 uint32_t paddr = 0; in main() local
377 paddr = ipxe->paddr; in main()
378 bios->bios_load(bios, NULL, 0, (void *)paddr); in main()
A Dtests.c333 if ( test_mem_base < modlist[i].paddr + modlist[i].size && in perform_tests()
334 modlist[i].paddr < test_mem_base + TEST_MEM_SIZE ) in perform_tests()
/xen/xen/xsm/
A Dxsm_policy.c80 paddr_t paddr, len; in xsm_dt_policy_init() local
85 paddr = mod->start; in xsm_dt_policy_init()
88 if ( !has_xsm_magic(paddr) ) in xsm_dt_policy_init()
95 len, paddr); in xsm_dt_policy_init()
101 copy_from_paddr(*policy_buffer, paddr, len); in xsm_dt_policy_init()
/xen/tools/libxl/
A Dlibxl_genid.c66 uint64_t paddr = 0; in libxl__ms_vm_genid_set() local
89 xc_hvm_param_get(ctx->xch, domid, HVM_PARAM_VM_GENERATION_ID_ADDR, &paddr); in libxl__ms_vm_genid_set()
90 if (paddr) { in libxl__ms_vm_genid_set()
95 paddr >> XC_PAGE_SHIFT); in libxl__ms_vm_genid_set()
100 memcpy(vaddr + (paddr & ~XC_PAGE_MASK), genid, 2 * sizeof(*genid)); in libxl__ms_vm_genid_set()
/xen/xen/arch/arm/
A Dguest_walk.c38 paddr_t mask, paddr; in guest_walk_sd() local
92 paddr = (ttbr & mask); in guest_walk_sd()
95 paddr |= (gva & mask) >> 18; in guest_walk_sd()
98 ret = access_guest_memory_by_ipa(d, paddr, &pte, sizeof(short_desc_t), false); in guest_walk_sd()
120 paddr = ((paddr_t)pte.walk.base << 10) | ((gva & mask) >> 10); in guest_walk_sd()
123 ret = access_guest_memory_by_ipa(d, paddr, &pte, sizeof(short_desc_t), false); in guest_walk_sd()
369 paddr_t mask, paddr; in guest_walk_ld() local
513 paddr = (ttbr & mask); in guest_walk_ld()
521 paddr |= offsets[gran][level] << 3; in guest_walk_ld()
524 ret = access_guest_memory_by_ipa(d, paddr, &pte, sizeof(lpae_t), false); in guest_walk_ld()
[all …]
A Dkernel.c48 void __init copy_from_paddr(void *dst, paddr_t paddr, unsigned long len) in copy_from_paddr() argument
55 s = paddr & (PAGE_SIZE-1); in copy_from_paddr()
58 set_fixmap(FIXMAP_MISC, maddr_to_mfn(paddr), PAGE_HYPERVISOR_WC); in copy_from_paddr()
63 paddr += l; in copy_from_paddr()
158 paddr_t paddr = info->zimage.kernel_addr; in kernel_zimage_load() local
168 paddr, load_addr, load_addr + len); in kernel_zimage_load()
170 kernel = ioremap_wc(paddr, len); in kernel_zimage_load()
A Dbootfdt.c404 size_t __init boot_fdt_info(const void *fdt, paddr_t paddr) in boot_fdt_info() argument
412 add_boot_module(BOOTMOD_FDT, paddr, fdt_totalsize(fdt), false); in boot_fdt_info()
A Dgic-v3-its.c283 paddr_t paddr = virt_to_maddr(vaddr); in check_baser_phys_addr() local
285 return (!(paddr & ~GENMASK(page_bits < 16 ? 47 : 51, page_bits))); in check_baser_phys_addr()
A Ddomain_build.c2233 paddr_t paddr, len; in initrd_load() local
2243 paddr = mod->start; in initrd_load()
2247 kinfo->d, paddr, load_addr, load_addr + len); in initrd_load()
2268 initrd = ioremap_wc(paddr, len); in initrd_load()
/xen/xen/arch/x86/guest/xen/
A Dpvh-boot.c74 BUG_ON(entry[i].paddr >> 32); in convert_pvh_info()
77 pvh_mbi_mods[i].mod_start = entry[i].paddr; in convert_pvh_info()
78 pvh_mbi_mods[i].mod_end = entry[i].paddr + entry[i].size; in convert_pvh_info()
133 printk(" mod[%u].pa: %016"PRIx64"\n", i, entry[i].paddr); in pvh_print_info()
/xen/xen/common/libelf/
A Dlibelf-loader.c470 uint64_t low = -1, high = 0, paddr, memsz; in elf_parse_binary() local
482 paddr = elf_uval(elf, phdr, p_paddr); in elf_parse_binary()
485 paddr, memsz); in elf_parse_binary()
486 if ( low > paddr ) in elf_parse_binary()
487 low = paddr; in elf_parse_binary()
488 if ( high < paddr + memsz ) in elf_parse_binary()
489 high = paddr + memsz; in elf_parse_binary()
500 uint64_t paddr, offset, filesz, memsz; in elf_load_binary() local
519 paddr = elf_uval(elf, phdr, p_paddr); in elf_load_binary()
523 dest = elf_get_ptr(elf, paddr); in elf_load_binary()
/xen/tools/libs/foreignmemory/
A Dcore.c143 void **paddr, int prot, int flags) in xenforeignmemory_map_resource() argument
167 fres->addr = *paddr; in xenforeignmemory_map_resource()
177 *paddr = fres->addr; in xenforeignmemory_map_resource()
/xen/xen/include/asm-x86/hvm/
A Dsupport.h73 paddr_t paddr, void *buf, unsigned int size, struct vcpu *v);
75 void *buf, paddr_t paddr, unsigned int size);
/xen/xen/include/asm-arm/
A Dsetup.h82 void copy_from_paddr(void *dst, paddr_t paddr, unsigned long len);
102 size_t boot_fdt_info(const void *fdt, paddr_t paddr);
A Dpage.h277 static inline int gva_to_ipa(vaddr_t va, paddr_t *paddr, unsigned int flags) in gva_to_ipa() argument
282 *paddr = (par & PADDR_MASK & PAGE_MASK) | ((unsigned long) va & ~PAGE_MASK); in gva_to_ipa()
A Dmm.h241 #define paddr_to_pfn_aligned(paddr) paddr_to_pfn(PAGE_ALIGN(paddr)) argument
/xen/xen/include/public/arch-x86/hvm/
A Dstart_info.h146 uint64_t paddr; /* Physical address of the module. */ member
/xen/xen/include/acpi/
A Dapei.h26 void __iomem *apei_pre_map(paddr_t paddr, unsigned long size);
/xen/tools/libs/foreignmemory/include/
A Dxenforeignmemory.h169 void **paddr, int prot, int flags);
/xen/xen/include/xen/
A Dpci.h204 uint64_t *paddr, uint64_t *psize,
/xen/xen/arch/x86/mm/shadow/
A Dmulti.c895 paddr_t paddr; in shadow_set_l4e() local
901 paddr = ((((paddr_t)mfn_x(sl4mfn)) << PAGE_SHIFT) in shadow_set_l4e()
909 if ( !sh_get_ref(d, sl3mfn, paddr) ) in shadow_set_l4e()
937 sh_put_ref(d, osl3mfn, paddr); in shadow_set_l4e()
950 paddr_t paddr; in shadow_set_l3e() local
956 paddr = ((((paddr_t)mfn_x(sl3mfn)) << PAGE_SHIFT) in shadow_set_l3e()
984 sh_put_ref(d, osl2mfn, paddr); in shadow_set_l3e()
997 paddr_t paddr; in shadow_set_l2e() local
1015 paddr = ((((paddr_t)mfn_x(sl2mfn)) << PAGE_SHIFT) in shadow_set_l2e()
1024 if ( !sh_get_ref(d, sl1mfn, paddr) ) in shadow_set_l2e()
[all …]
/xen/xen/drivers/passthrough/arm/
A Dsmmu.c1760 unsigned long iova, phys_addr_t paddr,
1790 if (paddr & ~output_mask)
1799 ret = arm_smmu_alloc_init_pud(smmu, pgd, iova, next, paddr,
1804 paddr += next - iova;
1815 phys_addr_t paddr, size_t size, int prot)
1822 return arm_smmu_handle_mapping(smmu_domain, iova, paddr, size, prot);
/xen/xen/drivers/passthrough/
A Dpci.c644 uint64_t *paddr, uint64_t *psize, in pci_size_mem_bar() argument
683 if ( paddr ) in pci_size_mem_bar()
684 *paddr = (bar & mask) | ((uint64_t)hi << 32); in pci_size_mem_bar()

Completed in 49 milliseconds

12