Home
last modified time | relevance | path

Searched refs:ROUND_UP (Results 1 – 25 of 99) sorted by relevance

1234

/openbmc/qemu/hw/mips/
H A Dloongson3_bootp.c117 p += ROUND_UP(sizeof(struct efi_cpuinfo_loongson), 64); in init_loongson_params()
121 p += ROUND_UP(sizeof(struct efi_memory_map_loongson), 64); in init_loongson_params()
125 p += ROUND_UP(sizeof(struct system_loongson), 64); in init_loongson_params()
129 p += ROUND_UP(sizeof(struct irq_source_routing_table), 64); in init_loongson_params()
133 p += ROUND_UP(sizeof(struct interface_info), 64); in init_loongson_params()
137 p += ROUND_UP(sizeof(struct board_devices), 64); in init_loongson_params()
141 p += ROUND_UP(sizeof(struct loongson_special_attribute), 64); in init_loongson_params()
H A Dmipssim.c91 initrd_offset = ROUND_UP(kernel_high, INITRD_PAGE_SIZE); in load_kernel()
/openbmc/qemu/hw/loongarch/
H A Dboot.c97 map[i].phys_addr = ROUND_UP(memmap_table[i].address, 64 * KiB); in init_efi_boot_memmap()
144 p += ROUND_UP(sizeof(struct efi_system_table), 64 * KiB); in init_systab()
150 p += ROUND_UP(sizeof(struct efi_boot_memmap) + in init_systab()
153 p += ROUND_UP(sizeof(struct efi_initrd), 64 * KiB); in init_systab()
195 initrd_offset = ROUND_UP(kernel_high + 4 * kernel_size, 64 * KiB); in load_kernel_info()
/openbmc/qemu/target/i386/
H A Darch_dump.c90 buf += ROUND_UP(sizeof(Elf64_Nhdr), 4); in x86_64_write_elf64_note()
92 buf += ROUND_UP(name_size, 4); in x86_64_write_elf64_note()
168 buf += ROUND_UP(sizeof(Elf64_Nhdr), 4); in x86_write_elf64_note()
170 buf += ROUND_UP(name_size, 4); in x86_write_elf64_note()
222 buf += ROUND_UP(sizeof(Elf32_Nhdr), 4); in x86_cpu_write_elf32_note()
224 buf += ROUND_UP(name_size, 4); in x86_cpu_write_elf32_note()
367 buf += ROUND_UP(note_head_size, 4); in cpu_write_qemu_note()
369 buf += ROUND_UP(name_size, 4); in cpu_write_qemu_note()
/openbmc/linux/arch/um/drivers/
H A Dcow_user.c123 #define ROUND_UP(x, align) DIV_ROUND(x, align) * (align) macro
142 *data_offset_out = ROUND_UP(*data_offset_out, align); in cow_sizes()
352 *bitmap_offset_out = ROUND_UP(sizeof(header->v3), *align_out); in read_cow_header()
383 *bitmap_offset_out = ROUND_UP(sizeof(header->v3_b), *align_out); in read_cow_header()
416 *bitmap_offset_out = ROUND_UP(sizeof(struct cow_header_v3), alignment); in init_cow_file()
/openbmc/qemu/contrib/elf2dmp/
H A Dqemu_elf.c15 #ifndef ROUND_UP
16 #define ROUND_UP(n, d) (((n) + (d) - 1) & -(0 ? (n) : (d))) macro
47 offset = ROUND_UP(offset, 4); in advance_note_offset()
/openbmc/qemu/hw/microblaze/
H A Dboot.c180 high = ROUND_UP(high + kernel_size, 4); in microblaze_load_kernel()
198 high = ROUND_UP(high + initrd_size, 4); in microblaze_load_kernel()
/openbmc/qemu/linux-user/
H A Dmmap.c195 host_last = ROUND_UP(last, host_page_size) - 1; in target_mprotect()
449 start = ROUND_UP(start, align); in mmap_find_vma()
450 size = ROUND_UP(size, host_page_size); in mmap_find_vma()
501 addr = ROUND_UP(addr, align); in mmap_find_vma()
766 pass_last = ROUND_UP(last - fileend_adj, host_page_size) - 1; in mmap_h_lt_g()
827 real_last = ROUND_UP(last, host_page_size) - 1; in mmap_h_gt_g()
1029 real_last = ROUND_UP(last, host_page_size) - 1; in mmap_reserve_or_unmap()
1355 h_len = ROUND_UP(shm_info.shm_segsz, h_pagesize); in target_shmat()
/openbmc/qemu/hw/ppc/
H A Dvirtex_ml507.c263 initrd_base = high = ROUND_UP(high, 4); in virtex_init()
272 high = ROUND_UP(high + initrd_size, 4); in virtex_init()
/openbmc/qemu/tests/fp/
H A Dfp-bench.c65 ROUND_UP, enumerator
74 [ROUND_UP] = "up",
572 case ROUND_UP: in set_host_precision()
601 case ROUND_UP: in set_soft_precision()
/openbmc/qemu/hw/tpm/
H A Dtpm_ppi.c53 ROUND_UP(TPM_PPI_ADDR_SIZE, host_page_size)); in tpm_ppi_init()
/openbmc/qemu/util/
H A Datomic64.c78 lock_size = ROUND_UP(sizeof(QemuSpin), qemu_dcache_linesize);
/openbmc/qemu/target/arm/
H A Darch_dump.c149 return ROUND_UP(off, 16) + vq * 16 * n; in sve_zreg_offset()
160 return ROUND_UP(off, 16); in sve_fpsr_offset()
176 return ROUND_UP(off, 16); in sve_size_vq()
/openbmc/linux/fs/reiserfs/
H A Ddir.c330 put_deh_location(dot, EMPTY_DIR_SIZE - ROUND_UP(strlen("."))); in make_empty_dir_item()
340 put_deh_location(dotdot, deh_location(dot) - ROUND_UP(strlen(".."))); in make_empty_dir_item()
/openbmc/qemu/block/
H A Dqcow2-snapshot.c108 table_length = ROUND_UP(table_length, 8); in qcow2_do_read_snapshots()
111 offset = ROUND_UP(offset, 8); in qcow2_do_read_snapshots()
289 offset = ROUND_UP(offset, 8); in qcow2_write_snapshots()
351 offset = ROUND_UP(offset, 8); in qcow2_write_snapshots()
740 ROUND_UP(sn->vm_state_size, s->cluster_size), in qcow2_snapshot_create()
H A Dvhdx.c1273 *new_offset = ROUND_UP(*new_offset, 1 * MiB); in vhdx_allocate_block()
1767 sinfo.file_offset = ROUND_UP(sinfo.file_offset, MiB); in vhdx_create_bat()
1844 rt_bat->length = ROUND_UP(s->bat_entries * sizeof(VHDXBatEntry), MiB); in vhdx_create_new_region_table()
1845 rt_bat->file_offset = ROUND_UP(VHDX_HEADER_SECTION_END + log_size, MiB); in vhdx_create_new_region_table()
1849 rt_metadata->file_offset = ROUND_UP(rt_bat->file_offset + rt_bat->length, in vhdx_create_new_region_table()
2135 ROUND_UP(create_options->u.vhdx.size, BDRV_SECTOR_SIZE); in vhdx_co_create_opts()
2139 ROUND_UP(create_options->u.vhdx.log_size, MiB); in vhdx_co_create_opts()
2143 ROUND_UP(create_options->u.vhdx.block_size, MiB); in vhdx_co_create_opts()
H A Dparallels.c636 min_off = ROUND_UP(min_off, s->cluster_size / BDRV_SECTOR_SIZE); in parallels_test_data_off()
1151 ROUND_UP(create_options->u.parallels.size, BDRV_SECTOR_SIZE); in parallels_co_create_opts()
1153 ROUND_UP(create_options->u.parallels.cluster_size, BDRV_SECTOR_SIZE); in parallels_co_create_opts()
1303 s->header_size = ROUND_UP(size, bdrv_opt_mem_align(bs->file->bs)); in parallels_open()
/openbmc/qemu/target/riscv/
H A Dvector_internals.c49 uint32_t j = ROUND_UP(cnt, 8); in vext_set_elems_1s()
/openbmc/qemu/include/hw/ppc/
H A Dopenpic.h58 #define IRQQUEUE_SIZE_BITS ROUND_UP(OPENPIC_MAX_IRQ, 64)
/openbmc/qemu/include/qemu/
H A Dosdep.h489 #ifndef ROUND_UP
490 #define ROUND_UP(n, d) ROUND_DOWN((n) + (d) - 1, (d)) macro
/openbmc/qemu/hw/nubus/
H A Dnubus-device.c93 align_size = ROUND_UP(size, qemu_target_page_size()); in nubus_device_realize()
/openbmc/qemu/accel/tcg/
H A Dtranslate-all.c511 ROUND_UP((uintptr_t)gen_code_buf + gen_code_size + search_size, in tb_gen_code()
558 orig_aligned -= ROUND_UP(sizeof(*tb), qemu_icache_linesize); in tb_gen_code()
/openbmc/qemu/target/riscv/insn_trans/
H A Dtrans_rvzce.c.inc180 target_ulong stack_adj = ROUND_UP(ctpop32(reg_bitmap) * reg_size, 16) +
225 target_ulong stack_adj = ROUND_UP(ctpop32(reg_bitmap) * reg_size, 16) +
/openbmc/qemu/include/exec/
H A Dcpu-common.h29 #define REAL_HOST_PAGE_ALIGN(addr) ROUND_UP((addr), qemu_real_host_page_size())
H A Dcpu-all.h159 #define TARGET_PAGE_ALIGN(addr) ROUND_UP((addr), TARGET_PAGE_SIZE)

1234