/openbmc/qemu/hw/nvram/ |
H A D | xlnx-versal-efuse-cache.c | 36 unsigned int w0 = QEMU_ALIGN_DOWN(addr * 8, 32); in efuse_cache_read() 37 unsigned int w1 = QEMU_ALIGN_DOWN((addr + size - 1) * 8, 32); in efuse_cache_read()
|
/openbmc/qemu/target/arm/tcg/ |
H A D | mte_helper.c | 429 ptr = QEMU_ALIGN_DOWN(ptr, gm_bs_bytes); in HELPER() 488 ptr = QEMU_ALIGN_DOWN(ptr, gm_bs_bytes); in HELPER() 803 tag_first = QEMU_ALIGN_DOWN(ptr, TAG_GRANULE); in mte_probe_int() 804 tag_last = QEMU_ALIGN_DOWN(ptr_last, TAG_GRANULE); in mte_probe_int() 1047 tag_first = QEMU_ALIGN_DOWN(ptr, TAG_GRANULE); in mte_mops_probe() 1048 tag_last = QEMU_ALIGN_DOWN(ptr + size - 1, TAG_GRANULE); in mte_mops_probe() 1105 tag_first = QEMU_ALIGN_DOWN(ptr - (size - 1), TAG_GRANULE); in mte_mops_probe_rev() 1106 tag_last = QEMU_ALIGN_DOWN(ptr, TAG_GRANULE); in mte_mops_probe_rev()
|
/openbmc/qemu/include/qemu/ |
H A D | osdep.h | 449 #define QEMU_ALIGN_DOWN(n, m) ((n) / (m) * (m)) macro 455 #define QEMU_ALIGN_UP(n, m) QEMU_ALIGN_DOWN((n) + (m) - 1, (m)) 462 ((typeof(p))QEMU_ALIGN_DOWN((uintptr_t)(p), (n)))
|
H A D | bitmap.h | 239 long aligned_offset = QEMU_ALIGN_DOWN(offset, BITS_PER_LONG); in bitmap_count_one_with_offset()
|
/openbmc/qemu/hw/timer/ |
H A D | i8254_common.c | 95 base = QEMU_ALIGN_DOWN(d, s->count); in pit_get_next_transition_time() 103 base = QEMU_ALIGN_DOWN(d, s->count); in pit_get_next_transition_time()
|
/openbmc/qemu/hw/ppc/ |
H A D | pnv_pnor.c | 44 offset = QEMU_ALIGN_DOWN(offset, BDRV_SECTOR_SIZE); in pnv_pnor_update()
|
/openbmc/qemu/tcg/ |
H A D | region.c | 522 size = QEMU_ALIGN_DOWN(tb_size, qemu_real_host_page_size()); in alloc_code_gen_buffer() 764 tb_size = QEMU_ALIGN_DOWN(phys_mem / 8, page_size); in tcg_region_init() 792 region_size = QEMU_ALIGN_DOWN(region_size, page_size); in tcg_region_init()
|
H A D | tcg-op-gvec.c | 1219 some = QEMU_ALIGN_DOWN(oprsz, 32); in tcg_gen_gvec_2() 1283 some = QEMU_ALIGN_DOWN(oprsz, 32); in tcg_gen_gvec_2i() 1357 some = QEMU_ALIGN_DOWN(oprsz, 32); in tcg_gen_gvec_2s() 1429 some = QEMU_ALIGN_DOWN(oprsz, 32); in tcg_gen_gvec_3() 1497 some = QEMU_ALIGN_DOWN(oprsz, 32); in tcg_gen_gvec_3i() 1564 some = QEMU_ALIGN_DOWN(oprsz, 32); in tcg_gen_gvec_4() 1635 some = QEMU_ALIGN_DOWN(oprsz, 32); in tcg_gen_gvec_4i() 3159 some = QEMU_ALIGN_DOWN(oprsz, 32); in do_gvec_shifts() 3202 some = QEMU_ALIGN_DOWN(oprsz, 32); in do_gvec_shifts() 3792 some = QEMU_ALIGN_DOWN(oprsz, 32); in tcg_gen_gvec_cmp() [all …]
|
/openbmc/qemu/include/block/ |
H A D | block-common.h | 283 #define BDRV_MAX_LENGTH (QEMU_ALIGN_DOWN(INT64_MAX, BDRV_MAX_ALIGNMENT))
|
/openbmc/qemu/linux-user/openrisc/ |
H A D | signal.c | 86 sp = QEMU_ALIGN_DOWN(sp, 4); in get_sigframe()
|
/openbmc/qemu/block/ |
H A D | copy-before-write.c | 122 off = QEMU_ALIGN_DOWN(offset, cluster_size); in cbw_do_copy_before_write() 332 int64_t aligned_end = QEMU_ALIGN_DOWN(offset + bytes, cluster_size); in cbw_co_pdiscard_snapshot()
|
H A D | mirror.c | 302 align_bytes = QEMU_ALIGN_DOWN(align_bytes, s->target_cluster_size); in mirror_cow_align() 860 QEMU_ALIGN_DOWN(INT_MAX, s->granularity)); in mirror_dirty_init() 888 QEMU_ALIGN_DOWN(INT_MAX, s->granularity)); in mirror_dirty_init() 1392 bitmap_end = QEMU_ALIGN_DOWN(offset + bytes, job->granularity); in do_sync_target_write() 1433 bitmap_offset = QEMU_ALIGN_DOWN(offset, job->granularity); in do_sync_target_write()
|
H A D | block-copy.c | 418 .max_transfer = QEMU_ALIGN_DOWN( in block_copy_state_new() 632 num = QEMU_ALIGN_DOWN(num, s->cluster_size); in block_copy_block_status()
|
H A D | io.c | 747 *align_offset = QEMU_ALIGN_DOWN(offset, c); in bdrv_round_to_subclusters() 1340 max_transfer = QEMU_ALIGN_DOWN(MIN_NON_ZERO(bs->bl.max_transfer, INT_MAX), in bdrv_aligned_preadv() 1876 max_write_zeroes = QEMU_ALIGN_DOWN(max_write_zeroes, alignment); in bdrv_co_do_pwrite_zeroes() 2084 max_transfer = QEMU_ALIGN_DOWN(MIN_NON_ZERO(bs->bl.max_transfer, INT_MAX), in bdrv_aligned_pwritev() 2443 aligned_offset = QEMU_ALIGN_DOWN(offset, align); in bdrv_co_do_block_status() 3126 max_pdiscard = QEMU_ALIGN_DOWN(MIN_NON_ZERO(bs->bl.max_pdiscard, INT64_MAX), in bdrv_co_pdiscard()
|
H A D | qcow2-cache.c | 82 size_t length = QEMU_ALIGN_DOWN(mem_size - offset, align); in qcow2_cache_table_release()
|
H A D | nbd.c | 675 extent->length = QEMU_ALIGN_DOWN(extent->length, in nbd_parse_blockstatus_payload() 1422 request.len = MIN(QEMU_ALIGN_DOWN(INT_MAX, bs->bl.request_alignment), in nbd_client_co_block_status() 1984 bs->bl.max_pdiscard = QEMU_ALIGN_DOWN(INT_MAX, min); in nbd_refresh_limits()
|
H A D | vhdx-log.c | 912 file_offset = QEMU_ALIGN_DOWN(offset, VHDX_LOG_SECTOR_SIZE); in vhdx_log_write()
|
/openbmc/qemu/hw/audio/ |
H A D | pcspk.c | 74 s->samples = (QEMU_ALIGN_DOWN(PCSPK_BUF_LEN * PIT_FREQ, m) / (PIT_FREQ >> 1) + 1) >> 1; in generate_samples()
|
/openbmc/qemu/hw/mem/ |
H A D | nvdimm.c | 136 pmem_size = QEMU_ALIGN_DOWN(pmem_size, align); in nvdimm_prepare_memory_region()
|
/openbmc/qemu/hw/riscv/ |
H A D | boot.c | 325 return QEMU_ALIGN_DOWN(temp - fdtsize, 2 * MiB); in riscv_compute_fdt_addr()
|
/openbmc/qemu/system/ |
H A D | dma-helpers.c | 178 QEMU_ALIGN_DOWN(dbs->iov.size, dbs->align)); in dma_blk_cb()
|
/openbmc/qemu/linux-user/hexagon/ |
H A D | signal.c | 72 sp = QEMU_ALIGN_DOWN(sp, 8); in get_sigframe()
|
/openbmc/qemu/migration/ |
H A D | ram.c | 758 start = QEMU_ALIGN_DOWN((ram_addr_t)page << TARGET_PAGE_BITS, size); in migration_clear_memory_region_dirty_bitmap() 769 unsigned long chunk_start = QEMU_ALIGN_DOWN(start, chunk_pages); in migration_clear_memory_region_dirty_bitmap_range() 2552 unsigned long fixup_start_addr = QEMU_ALIGN_DOWN(run_start, in postcopy_chunk_hostpages_pass() 3444 return (void *)QEMU_ALIGN_DOWN((uintptr_t)(block->host + offset), in host_page_from_ram_block_offset()
|
/openbmc/qemu/hw/hyperv/ |
H A D | hv-balloon.c | 498 hot_add_range->count = QEMU_ALIGN_DOWN(hot_add_range->count, align); in hv_balloon_hot_add_setup() 551 chunk_max_size = QEMU_ALIGN_DOWN(HV_BALLOON_HA_CHUNK_PAGES, align); in hv_balloon_hot_add_posting()
|
/openbmc/qemu/hw/block/ |
H A D | pflash_cfi01.c | 395 offset = QEMU_ALIGN_DOWN(offset, BDRV_SECTOR_SIZE); in pflash_update()
|