Home
last modified time | relevance | path

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

12

/openbmc/qemu/hw/mips/
H A Dloongson3_bootp.c119 p += ROUND_UP(sizeof(struct efi_cpuinfo_loongson), 64); in init_loongson_params()
123 p += ROUND_UP(sizeof(struct efi_memory_map_loongson), 64); in init_loongson_params()
127 p += ROUND_UP(sizeof(struct system_loongson), 64); in init_loongson_params()
131 p += ROUND_UP(sizeof(struct irq_source_routing_table), 64); in init_loongson_params()
135 p += ROUND_UP(sizeof(struct interface_info), 64); in init_loongson_params()
139 p += ROUND_UP(sizeof(struct board_devices), 64); in init_loongson_params()
143 p += ROUND_UP(sizeof(struct loongson_special_attribute), 64); in init_loongson_params()
/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/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/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/tests/fp/
H A Dfp-bench.c65 ROUND_UP, enumerator
74 [ROUND_UP] = "up",
580 case ROUND_UP: in set_host_precision()
609 case ROUND_UP: in set_soft_precision()
/openbmc/qemu/target/riscv/
H A Dvector_internals.c49 uint32_t j = ROUND_UP(cnt, 8); in vext_set_elems_1s()
/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/qemu/include/hw/ppc/
H A Dopenpic.h58 #define IRQQUEUE_SIZE_BITS ROUND_UP(OPENPIC_MAX_IRQ, 64)
/openbmc/qemu/hw/vfio/
H A Dhelpers.c34 vbmap->size = ROUND_UP(vbmap->pages, sizeof(__u64) * BITS_PER_BYTE) / in vfio_bitmap_alloc()
/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 Dblklogwrites.c376 const uint64_t qiov_aligned_size = ROUND_UP(lr->qiov->size, s->sectorsize); in blk_log_writes_co_do_log()
378 ROUND_UP(lr->zero_size, s->sectorsize); in blk_log_writes_co_do_log()
H A Dqcow2-bitmap.c418 return ROUND_UP(size, 8); in calc_dir_entry_size()
1800 bitmaps_size += ROUND_UP(bmclusters * BME_TABLE_ENTRY_SIZE, in qcow2_get_persistent_dirty_bitmap_size()
1806 bitmaps_size += ROUND_UP(bitmap_dir_size, cluster_size); in qcow2_get_persistent_dirty_bitmap_size()
/openbmc/qemu/hw/i386/
H A Dfw_cfg.c226 ROUND_UP(FW_CFG_CTL_SIZE, 4) + sizeof(dma_addr_t) : in fw_cfg_add_acpi_dsdt()
/openbmc/qemu/contrib/vhost-user-gpu/
H A Dvugbm.c56 return ROUND_UP(buf->width * buf->height * 4, qemu_real_host_page_size()); in udmabuf_get_size()
/openbmc/qemu/hw/nvram/
H A Dxlnx-efuse.c52 return ROUND_UP((s->efuse_nr * s->efuse_size) / 8, 4); in efuse_bytes()
/openbmc/qemu/hw/virtio/
H A Dvhost-shadow-virtqueue.c634 return ROUND_UP(desc_size + avail_size, qemu_real_host_page_size()); in vhost_svq_driver_area_size()
641 return ROUND_UP(used_size, qemu_real_host_page_size()); in vhost_svq_device_area_size()
H A Dvhost-vdpa.c346 iova = ROUND_UP(section->offset_within_address_space, page_size); in vhost_vdpa_listener_region_add()
438 iova = ROUND_UP(section->offset_within_address_space, page_size); in vhost_vdpa_listener_region_del()
1134 size = ROUND_UP(result->size, qemu_real_host_page_size()); in vhost_vdpa_svq_unmap_ring()
/openbmc/qemu/hw/core/
H A Dloader-fit.c204 load_addr = ROUND_UP(kernel_end, 64 * KiB) + (10 * MiB); in fit_load_fdt()
/openbmc/qemu/hw/ssi/
H A Dimx_spi.c135 burst = ROUND_UP(burst, 8); in imx_spi_burst_length()
/openbmc/qemu/hw/pci-host/
H A Di440fx.c215 hole64_end = ROUND_UP(hole64_start + s->pci_hole64_size, 1ULL << 30); in i440fx_pcihost_get_pci_hole64_end()
/openbmc/qemu/ui/
H A Dvnc.h84 #define VNC_MAX_WIDTH ROUND_UP(5120, VNC_DIRTY_PIXELS_PER_BIT)
/openbmc/qemu/bsd-user/
H A Dqemu.h51 #define HOST_PAGE_ALIGN(addr) ROUND_UP((addr), qemu_host_page_size)
/openbmc/qemu/dump/
H A Ddump.c958 head_size = ROUND_UP(head_size, 4); in note_name_equal()
1751 note_head_size = ROUND_UP(note_head_size, 4); in vmcoreinfo_update_phys_base()
1753 vmci = s->guest_note + note_head_size + ROUND_UP(name_size, 4); in vmcoreinfo_update_phys_base()
/openbmc/qemu/hw/i386/xen/
H A Dxen-hvm.c730 size = ROUND_UP(size, page_size); in arch_xen_set_memory()

12