/xen/tools/libxl/ |
A D | libxl_arm_acpi.c | 110 *out = ROUNDUP(size, 3) + in libxl__get_acpi_size() 111 ROUNDUP(sizeof(struct acpi_table_rsdp), 3) + in libxl__get_acpi_size() 112 ROUNDUP(sizeof(struct acpi_table_xsdt), 3) + in libxl__get_acpi_size() 113 ROUNDUP(sizeof(struct acpi_table_gtdt), 3) + in libxl__get_acpi_size() 114 ROUNDUP(sizeof(struct acpi_table_fadt), 3) + in libxl__get_acpi_size() 115 ROUNDUP(sizeof(dsdt_anycpu_arm_len), 3); in libxl__get_acpi_size() 131 dom->acpi_modules[0].length += ROUNDUP(acpitables[RSDP].size, 3); in libxl__allocate_acpi_tables() 140 dom->acpi_modules[0].length += ROUNDUP(acpitables[XSDT].size, 3); in libxl__allocate_acpi_tables() 144 dom->acpi_modules[0].length += ROUNDUP(acpitables[GTDT].size, 3); in libxl__allocate_acpi_tables() 153 dom->acpi_modules[0].length += ROUNDUP(acpitables[MADT].size, 3); in libxl__allocate_acpi_tables() [all …]
|
/xen/tools/libxc/ |
A D | xg_private.h | 98 #define ROUNDUP(_x,_w) (((unsigned long)(_x)+(1UL<<(_w))-1) & ~((1UL<<(_w))-1)) macro 99 #define NRPAGES(x) (ROUNDUP(x, PAGE_SHIFT) >> PAGE_SHIFT)
|
A D | xc_sr_common.c | 63 size_t record_length = ROUNDUP(combined_length, REC_ALIGN_ORDER); in write_split_record() 113 datasz = ROUNDUP(rhdr.length, REC_ALIGN_ORDER); in read_record()
|
A D | xc_dom_arm.c | 368 const uint64_t kernend = ROUNDUP(dom->kernel_seg.vend, 21/*2MB*/); in meminit() 371 ROUNDUP(dom->devicetree_size, XC_PAGE_SHIFT) : 0; in meminit() 373 ROUNDUP(dom->modules[0].size, XC_PAGE_SHIFT) : 0; in meminit()
|
A D | xg_save_restore.h | 109 #define M2P_SIZE(_m) ROUNDUP(((_m) * sizeof(xen_pfn_t)), M2P_SHIFT)
|
/xen/xen/arch/arm/acpi/ |
A D | domain_build.c | 454 acpi_size = ROUNDUP(sizeof(struct acpi_table_fadt), 8); in estimate_acpi_efi_size() 455 acpi_size += ROUNDUP(sizeof(struct acpi_table_stao), 8); in estimate_acpi_efi_size() 458 acpi_size += ROUNDUP(madt_size, 8); in estimate_acpi_efi_size() 484 acpi_size += ROUNDUP(table->length + sizeof(u64), 8); in estimate_acpi_efi_size() 487 acpi_size += ROUNDUP(sizeof(struct acpi_table_rsdp), 8); in estimate_acpi_efi_size() 488 d->arch.efi_acpi_len = PAGE_ALIGN(ROUNDUP(efi_size, 8) in estimate_acpi_efi_size() 489 + ROUNDUP(acpi_size, 8)); in estimate_acpi_efi_size()
|
A D | lib.c | 73 offset += ROUNDUP(tbl_add[i].size, 8); in acpi_get_table_offset()
|
/xen/tools/libs/call/ |
A D | buffer.c | 25 #define ROUNDUP(_x,_w) (((unsigned long)(_x)+(1UL<<(_w))-1) & ~((1UL<<(_w))-1)) macro 159 size_t actual_size = ROUNDUP(size + sizeof(struct allocation_header), PAGE_SHIFT); in xencall_alloc_buffer()
|
/xen/xen/arch/arm/ |
A D | kernel.c | 74 const paddr_t initrd_len = ROUNDUP(mod ? mod->size : 0, MB(2)); in place_modules() 75 const paddr_t dtb_len = ROUNDUP(fdt_totalsize(info->fdt), MB(2)); in place_modules() 82 const paddr_t kernsize = ROUNDUP(kernend, MB(2)) - kernbase; in place_modules() 109 else if ( ramend - modsize > ROUNDUP(kernend, MB(2)) ) in place_modules()
|
/xen/xen/arch/arm/efi/ |
A D | efi-dom0.c | 49 size = ROUNDUP(est_size + ect_size + fw_vendor_size, 8); in estimate_efi_size() 51 size += ROUNDUP(emd_size * (mem_nr_banks + acpi_mem_nr_banks + 1), 8); in estimate_efi_size()
|
/xen/xen/arch/x86/hvm/ |
A D | dom0_build.c | 149 end = min(ROUNDUP(start + 1, orders[j - 1].align), in pvh_populate_memory_range() 378 start = ROUNDUP(entry->addr, PAGE_SIZE << PAGE_ORDER_4K); in pvh_setup_e820() 498 paddr_t kernel_end = ROUNDUP((paddr_t)elf->dest_base + elf->dest_size, in find_memory() 514 start = MAX(ROUNDUP(d->arch.e820[i].addr, PAGE_SIZE), MB(1)); in find_memory() 596 (initrd ? ROUNDUP(initrd->mod_end, PAGE_SIZE) + in pvh_load_kernel() 599 (cmdline ? ROUNDUP(strlen(cmdline) + 1, in pvh_load_kernel() 620 last_addr += ROUNDUP(initrd->mod_end, PAGE_SIZE); in pvh_load_kernel() 639 last_addr += ROUNDUP(strlen(cmdline) + 1, elf_64bit(&elf) ? 8 : 4); in pvh_load_kernel()
|
/xen/tools/libs/gnttab/ |
A D | private.h | 9 #define ROUNDUP(_x,_w) (((unsigned long)(_x)+(1UL<<(_w))-1) & ~((1UL<<(_w))-1)) macro
|
A D | freebsd.c | 76 unsigned int refs_size = ROUNDUP(count * in osdep_gnttab_grant_map()
|
A D | linux.c | 106 map_size = ROUNDUP(map_size, PAGE_SHIFT); in osdep_gnttab_grant_map()
|
/xen/tools/libs/foreignmemory/ |
A D | linux.c | 31 #define ROUNDUP(_x,_w) (((unsigned long)(_x)+(1UL<<(_w))-1) & ~((1UL<<(_w))-1)) macro 205 unsigned int pfn_arr_size = ROUNDUP((num * sizeof(*pfn)), PAGE_SHIFT); in osdep_xenforeignmemory_map()
|
/xen/xen/common/coverage/ |
A D | llvm.c | 104 return ROUNDUP(sizeof(struct llvm_profile_header) + END_DATA - START_DATA + in get_size()
|
A D | gcc_3_4.c | 203 size = ROUNDUP(size, __alignof__(struct gcov_fn_info)); in get_fn_size()
|
/xen/xen/common/ |
A D | virtual_region.c | 103 ROUNDUP((unsigned long)region->end, PAGE_SIZE), in reset_virtual_region_perms()
|
A D | device_tree.c | 127 *mem = ROUNDUP(*mem, align); in unflatten_dt_alloc() 1736 *p = ROUNDUP(*p + l, 4); in unflatten_dt_node() 1833 *p = ROUNDUP(*p, sz >= 8 ? 8 : 4); in unflatten_dt_node() 1870 *p = ROUNDUP((*p) + sz, 4); in unflatten_dt_node()
|
A D | hypfs.c | 25 ROUNDUP((name_len) + 1, alignof(struct xen_hypfs_direntry)))
|
/xen/xen/arch/x86/ |
A D | traps.c | 391 return ROUNDUP(sp, PAGE_SIZE) - in get_stack_trace_bottom() 395 return ROUNDUP(sp, STACK_SIZE) - in get_stack_trace_bottom() 408 case 0: return ROUNDUP(sp, IST_SHSTK_SIZE) - sizeof(unsigned long); in get_shstk_bottom() 409 case 5: return ROUNDUP(sp, PAGE_SIZE) - sizeof(unsigned long); in get_shstk_bottom() 420 return ROUNDUP(sp, PAGE_SIZE) - sizeof(unsigned long); in get_stack_dump_bottom() 423 return ROUNDUP(sp, STACK_SIZE) - sizeof(unsigned long); in get_stack_dump_bottom()
|
A D | srat.c | 291 l1tf_safe_maddr = max(l1tf_safe_maddr, ROUNDUP(end, PAGE_SIZE)); in acpi_numa_memory_affinity_init()
|
/xen/xen/arch/arm/vgic/ |
A D | vgic-init.c | 136 nr_spis = ROUNDUP(nr_spis, 32); in domain_vgic_init()
|
/xen/xen/include/xen/ |
A D | vpci.h | 203 : ROUNDUP(DIV_ROUND_UP(vpci->msix->max_entries, in vmsix_table_size()
|
A D | lib.h | 4 #define ROUNDUP(x, a) (((x) + (a) - 1) & ~((a) - 1)) macro
|