/openbmc/qemu/hw/net/ |
H A D | allwinner_emac.c | 201 total_size = QEMU_ALIGN_UP(RX_HDR_SIZE + padded_size + CRC_SIZE, 4); in aw_emac_receive() 219 fifo8_push_all(fifo, padding, QEMU_ALIGN_UP(padded_size, 4) - padded_size); in aw_emac_receive() 278 s->rx_packet_size = QEMU_ALIGN_UP(extract32(ret, 0, 16), 4); in aw_emac_read()
|
/openbmc/qemu/hw/riscv/ |
H A D | boot.c | 73 return QEMU_ALIGN_UP(firmware_end_addr, 4 * MiB); in riscv_calc_kernel_start_addr() 75 return QEMU_ALIGN_UP(firmware_end_addr, 2 * MiB); in riscv_calc_kernel_start_addr()
|
H A D | riscv-iommu-pci.c | 98 QEMU_ALIGN_UP(memory_region_size(&iommu->regs_mr), TARGET_PAGE_SIZE)); in riscv_iommu_pci_realize()
|
/openbmc/qemu/hw/xtensa/ |
H A D | xtfpga.c | 331 uint32_t cur_lowmem = QEMU_ALIGN_UP(lowmem_end / 2, 4096); in xtfpga_init() 372 cur_lowmem = QEMU_ALIGN_UP(cur_lowmem + fdt_size, 4 * KiB); in xtfpga_init() 393 cur_lowmem = QEMU_ALIGN_UP(cur_lowmem + initrd_size, 4 * KiB); in xtfpga_init()
|
/openbmc/qemu/hw/pci/ |
H A D | msix.c | 334 pba_size = QEMU_ALIGN_UP(nentries, 64) / 8; in msix_init() 393 uint32_t bar_pba_size = QEMU_ALIGN_UP(nentries, 64) / 8; in msix_init_exclusive_bar() 554 memset(dev->msix_pba, 0, QEMU_ALIGN_UP(dev->msix_entries_nr, 64) / 8); in msix_reset()
|
/openbmc/qemu/hw/ppc/ |
H A D | pnv_pnor.c | 45 offset_end = QEMU_ALIGN_UP(offset_end, BDRV_SECTOR_SIZE); in pnv_pnor_update()
|
/openbmc/qemu/include/qemu/ |
H A D | osdep.h | 459 #define QEMU_ALIGN_UP(n, m) QEMU_ALIGN_DOWN((n) + (m) - 1, (m)) macro 470 ((typeof(p))QEMU_ALIGN_UP((uintptr_t)(p), (n)))
|
/openbmc/qemu/linux-user/aarch64/ |
H A D | signal.c | 96 QEMU_ALIGN_UP(sizeof(struct target_sve_context), TARGET_SVE_VQ_BYTES) 118 QEMU_ALIGN_UP(sizeof(struct target_za_context), TARGET_SVE_VQ_BYTES) 584 sve_size = QEMU_ALIGN_UP(TARGET_SVE_SIG_CONTEXT_SIZE(sve_vq(env)), 16); in target_setup_frame()
|
/openbmc/qemu/hw/mem/ |
H A D | memory-device.c | 248 if (range_init(&new, QEMU_ALIGN_UP(range_lob(&as), align), size)) { in memory_device_get_free_addr() 277 next_addr = QEMU_ALIGN_UP(range_upb(&tmp) + 1, align); in memory_device_get_free_addr()
|
/openbmc/qemu/block/ |
H A D | preallocate.c | 377 prealloc_start = QEMU_ALIGN_UP( in handle_write() 380 prealloc_end = QEMU_ALIGN_UP( in handle_write()
|
H A D | copy-before-write.c | 123 end = QEMU_ALIGN_UP(offset + bytes, cluster_size); in cbw_do_copy_before_write() 331 int64_t aligned_offset = QEMU_ALIGN_UP(offset, cluster_size); in cbw_co_pdiscard_snapshot()
|
H A D | block-copy.c | 205 bytes = QEMU_ALIGN_UP(bytes, s->cluster_size); in block_copy_task_create() 514 offset + bytes == QEMU_ALIGN_UP(s->len, s->cluster_size)); in block_copy_do_copy() 646 num = QEMU_ALIGN_UP(num, s->cluster_size); in block_copy_block_status()
|
H A D | parallels-ext.c | 269 pos = ext_cluster + QEMU_ALIGN_UP(pos + fh.data_size - ext_cluster, 8); in parallels_parse_format_extension()
|
H A D | qcow.c | 383 l2_offset = QEMU_ALIGN_UP(l2_offset, s->cluster_size); in get_cluster_offset() 457 cluster_offset = QEMU_ALIGN_UP(cluster_offset, s->cluster_size); in get_cluster_offset() 472 cluster_offset = QEMU_ALIGN_UP(cluster_offset, s->cluster_size); in get_cluster_offset()
|
H A D | nvme.c | 238 bytes = QEMU_ALIGN_UP(s->page_size * NVME_NUM_REQS, in nvme_create_queue_pair() 555 size_t id_size = QEMU_ALIGN_UP(sizeof(*id), qemu_real_host_page_size()); in nvme_identify() 1069 size_t len = QEMU_ALIGN_UP(qiov->iov[i].iov_len, in nvme_cmd_map_qiov() 1265 size_t len = QEMU_ALIGN_UP(bytes, qemu_real_host_page_size()); in nvme_co_prw()
|
/openbmc/qemu/util/ |
H A D | mmap-alloc.c | 272 offset = QEMU_ALIGN_UP((uintptr_t)guardptr, align) - (uintptr_t)guardptr; in qemu_ram_mmap()
|
/openbmc/qemu/target/arm/tcg/ |
H A D | translate-a64.h | 171 return QEMU_ALIGN_UP(size, 16); in size_for_gvec()
|
/openbmc/qemu/hw/i386/ |
H A D | x86-common.c | 557 QEMU_ALIGN_UP(nhdr_namesz, phdr_align); in read_pvh_start_addr() 568 QEMU_ALIGN_UP(nhdr_namesz, phdr_align); in read_pvh_start_addr() 927 setup_data_offset = QEMU_ALIGN_UP(kernel_size, 16); in x86_load_linux()
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | pci.c | 554 loc = QEMU_ALIGN_UP(bus->pio_alloc_ptr, size); in qpci_iomap() 564 loc = QEMU_ALIGN_UP(bus->mmio_alloc_ptr, size); in qpci_iomap()
|
/openbmc/qemu/linux-user/hppa/ |
H A D | signal.c | 123 frame_addr = QEMU_ALIGN_UP(sp, SIGFRAME); in setup_rt_frame()
|
/openbmc/qemu/disas/ |
H A D | capstone.c | 289 uint64_t epc = QEMU_ALIGN_UP(pc + csize + 1, 1024); in cap_disas_monitor()
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-mem.c | 725 newsize = QEMU_ALIGN_UP(newsize, vmem->block_size); in virtio_mem_resize_usable_region() 1508 memslot_size = QEMU_ALIGN_UP(region_size / limit, vmem->block_size); in virtio_mem_decide_memslots() 1512 memslots = QEMU_ALIGN_UP(region_size, memslot_size) / memslot_size; in virtio_mem_decide_memslots() 1719 end_gpa = QEMU_ALIGN_UP(end_gpa, vmem->block_size); in virtio_mem_rdm_is_populated()
|
/openbmc/qemu/hw/smbios/ |
H A D | smbios.c | 849 size_kb = QEMU_ALIGN_UP(current_machine->ram_size, KiB) / KiB; in smbios_build_type_16_table() 877 size_mb = QEMU_ALIGN_UP(size, MiB) / MiB; in smbios_build_type_17_table() 1130 dimm_cnt = QEMU_ALIGN_UP(current_machine->ram_size, in smbios_get_tables_ep()
|
/openbmc/qemu/hw/timer/ |
H A D | a9gtimer.c | 100 QEMU_ALIGN_UP(update.new - gtb->compare, gtb->inc); in a9_gtimer_update()
|
/openbmc/qemu/migration/ |
H A D | block-dirty-bitmap.c | 433 uint64_t buf_size = QEMU_ALIGN_UP(unaligned_size, align); in send_bitmap_bits() 1030 buf_size > QEMU_ALIGN_UP(needed_size, 4 * sizeof(long)) in dirty_bitmap_load_bits()
|