Home
last modified time | relevance | path

Searched refs:QEMU_IS_ALIGNED (Results 1 – 25 of 78) sorted by relevance

1234

/openbmc/qemu/block/
H A Dblkdebug.c532 !QEMU_IS_ALIGNED(s->max_transfer, align))) { in blkdebug_open()
541 !QEMU_IS_ALIGNED(s->opt_write_zero, align))) { in blkdebug_open()
550 !QEMU_IS_ALIGNED(s->max_write_zero, in blkdebug_open()
560 !QEMU_IS_ALIGNED(s->opt_discard, align))) { in blkdebug_open()
569 !QEMU_IS_ALIGNED(s->max_discard, in blkdebug_open()
640 assert(QEMU_IS_ALIGNED(offset, bs->bl.request_alignment)); in blkdebug_co_preadv()
641 assert(QEMU_IS_ALIGNED(bytes, bs->bl.request_alignment)); in blkdebug_co_preadv()
661 assert(QEMU_IS_ALIGNED(offset, bs->bl.request_alignment)); in blkdebug_co_pwritev()
662 assert(QEMU_IS_ALIGNED(bytes, bs->bl.request_alignment)); in blkdebug_co_pwritev()
699 assert(QEMU_IS_ALIGNED(offset, align) || in blkdebug_co_pwrite_zeroes()
[all …]
H A Dqcow2-threads.c474 assert(QEMU_IS_ALIGNED(guest_offset, sector_size)); in qcow2_co_encdec()
475 assert(QEMU_IS_ALIGNED(host_offset, sector_size)); in qcow2_co_encdec()
476 assert(QEMU_IS_ALIGNED(len, sector_size)); in qcow2_co_encdec()
H A Dblock-copy.c204 assert(QEMU_IS_ALIGNED(offset, s->cluster_size)); in block_copy_task_create()
510 assert(QEMU_IS_ALIGNED(offset, s->cluster_size)); in block_copy_do_copy()
511 assert(QEMU_IS_ALIGNED(bytes, s->cluster_size)); in block_copy_do_copy()
668 assert(QEMU_IS_ALIGNED(offset, s->cluster_size)); in block_copy_is_cluster_allocated()
765 assert(QEMU_IS_ALIGNED(offset, s->cluster_size)); in block_copy_dirty_clusters()
766 assert(QEMU_IS_ALIGNED(bytes, s->cluster_size)); in block_copy_dirty_clusters()
H A Dbochs.c258 assert(QEMU_IS_ALIGNED(offset, BDRV_SECTOR_SIZE)); in bochs_co_preadv()
259 assert(QEMU_IS_ALIGNED(bytes, BDRV_SECTOR_SIZE)); in bochs_co_preadv()
H A Dcloop.c263 assert(QEMU_IS_ALIGNED(offset, BDRV_SECTOR_SIZE)); in cloop_co_preadv()
264 assert(QEMU_IS_ALIGNED(bytes, BDRV_SECTOR_SIZE)); in cloop_co_preadv()
H A Dpreallocate.c123 if (!QEMU_IS_ALIGNED(dest->prealloc_align, BDRV_SECTOR_SIZE)) { in preallocate_absorb_opts()
129 if (!QEMU_IS_ALIGNED(dest->prealloc_align, in preallocate_absorb_opts()
332 assert(QEMU_IS_ALIGNED(prealloc_align, file_align)); in handle_write()
H A Dcrypto.c483 assert(QEMU_IS_ALIGNED(offset, sector_size)); in block_crypto_co_preadv()
484 assert(QEMU_IS_ALIGNED(bytes, sector_size)); in block_crypto_co_preadv()
547 assert(QEMU_IS_ALIGNED(offset, sector_size)); in block_crypto_co_pwritev()
548 assert(QEMU_IS_ALIGNED(bytes, sector_size)); in block_crypto_co_pwritev()
H A Dparallels.c426 assert(QEMU_IS_ALIGNED(offset | bytes, BDRV_SECTOR_SIZE)); in parallels_co_block_status()
552 if (!QEMU_IS_ALIGNED(offset, s->cluster_size)) { in parallels_co_pdiscard()
554 } else if (!QEMU_IS_ALIGNED(bytes, s->cluster_size)) { in parallels_co_pdiscard()
1029 if (!QEMU_IS_ALIGNED(total_size, BDRV_SECTOR_SIZE)) { in parallels_co_create()
1034 if (!QEMU_IS_ALIGNED(cl_size, BDRV_SECTOR_SIZE)) { in parallels_co_create()
H A Dnvme.c1064 assert(QEMU_IS_ALIGNED(qiov->size, s->page_size)); in nvme_cmd_map_qiov()
1247 !QEMU_IS_ALIGNED(qiov->iov[i].iov_len, qemu_real_host_page_size())) { in nvme_qiov_aligned()
1266 assert(QEMU_IS_ALIGNED(offset, s->page_size)); in nvme_co_prw()
1267 assert(QEMU_IS_ALIGNED(bytes, s->page_size)); in nvme_co_prw()
1434 assert(QEMU_IS_ALIGNED(bytes, 1UL << s->blkshift)); in nvme_co_pdiscard()
1435 assert(QEMU_IS_ALIGNED(offset, 1UL << s->blkshift)); in nvme_co_pdiscard()
H A Dio.c1027 assert(QEMU_IS_ALIGNED(offset, BDRV_SECTOR_SIZE)); in bdrv_driver_preadv()
1028 assert(QEMU_IS_ALIGNED(bytes, BDRV_SECTOR_SIZE)); in bdrv_driver_preadv()
1105 assert(QEMU_IS_ALIGNED(offset, BDRV_SECTOR_SIZE)); in bdrv_driver_pwritev()
1106 assert(QEMU_IS_ALIGNED(bytes, BDRV_SECTOR_SIZE)); in bdrv_driver_pwritev()
1793 if (bytes == 0 && !QEMU_IS_ALIGNED(offset, bs->bl.request_alignment)) { in bdrv_co_preadv_part()
2253 !QEMU_IS_ALIGNED(offset | bytes, align)) in bdrv_co_pwritev_part()
2258 if (bytes == 0 && !QEMU_IS_ALIGNED(offset, bs->bl.request_alignment)) { in bdrv_co_pwritev_part()
2529 assert(*pnum && QEMU_IS_ALIGNED(*pnum, align) && in bdrv_co_do_block_status()
3136 if (!QEMU_IS_ALIGNED(num, bs->bl.request_alignment)) { in bdrv_co_pdiscard()
3145 } else if (!QEMU_IS_ALIGNED(tail, bs->bl.request_alignment) && in bdrv_co_pdiscard()
H A Dblklogwrites.c501 assert(QEMU_IS_ALIGNED(offset, bs->bl.request_alignment)); in blk_log_writes_co_log()
502 assert(QEMU_IS_ALIGNED(bytes, bs->bl.request_alignment)); in blk_log_writes_co_log()
H A Draw-format.c128 if (has_size && !QEMU_IS_ALIGNED(size, BDRV_SECTOR_SIZE)) { in raw_apply_options()
556 if (!QEMU_IS_ALIGNED(s->offset, MAX(bsz->log, bsz->phys))) { in raw_probe_blocksizes()
/openbmc/qemu/crypto/
H A Dblock-qcow.c153 assert(QEMU_IS_ALIGNED(offset, QCRYPTO_BLOCK_QCOW_SECTOR_SIZE)); in qcrypto_block_qcow_decrypt()
154 assert(QEMU_IS_ALIGNED(len, QCRYPTO_BLOCK_QCOW_SECTOR_SIZE)); in qcrypto_block_qcow_decrypt()
168 assert(QEMU_IS_ALIGNED(offset, QCRYPTO_BLOCK_QCOW_SECTOR_SIZE)); in qcrypto_block_qcow_encrypt()
169 assert(QEMU_IS_ALIGNED(len, QCRYPTO_BLOCK_QCOW_SECTOR_SIZE)); in qcrypto_block_qcow_encrypt()
H A Dblock.c389 assert(QEMU_IS_ALIGNED(offset, sectorsize)); in do_qcrypto_block_cipher_encdec()
390 assert(QEMU_IS_ALIGNED(len, sectorsize)); in do_qcrypto_block_cipher_encdec()
H A Dblock-luks.c1937 assert(QEMU_IS_ALIGNED(offset, QCRYPTO_BLOCK_LUKS_SECTOR_SIZE)); in qcrypto_block_luks_decrypt()
1938 assert(QEMU_IS_ALIGNED(len, QCRYPTO_BLOCK_LUKS_SECTOR_SIZE)); in qcrypto_block_luks_decrypt()
1952 assert(QEMU_IS_ALIGNED(offset, QCRYPTO_BLOCK_LUKS_SECTOR_SIZE)); in qcrypto_block_luks_encrypt()
1953 assert(QEMU_IS_ALIGNED(len, QCRYPTO_BLOCK_LUKS_SECTOR_SIZE)); in qcrypto_block_luks_encrypt()
/openbmc/qemu/hw/block/
H A Dblock.c166 if (!QEMU_IS_ALIGNED(conf->min_io_size, conf->logical_block_size)) { in blkconf_blocksizes()
182 if (!QEMU_IS_ALIGNED(conf->opt_io_size, conf->logical_block_size)) { in blkconf_blocksizes()
189 !QEMU_IS_ALIGNED(conf->discard_granularity, in blkconf_blocksizes()
/openbmc/qemu/util/
H A Dvfio-helpers.c168 assert(QEMU_IS_ALIGNED(offset, qemu_real_host_page_size())); in qemu_vfio_pci_map_bar()
244 assert(QEMU_IS_ALIGNED(s->config_region_info.offset + ofs, size)); in qemu_vfio_pci_read_config()
258 assert(QEMU_IS_ALIGNED(s->config_region_info.offset + ofs, size)); in qemu_vfio_pci_write_config()
596 assert(QEMU_IS_ALIGNED(size, qemu_real_host_page_size())); in qemu_vfio_add_mapping()
597 assert(QEMU_IS_ALIGNED(s->low_water_mark, qemu_real_host_page_size())); in qemu_vfio_add_mapping()
598 assert(QEMU_IS_ALIGNED(s->high_water_mark, qemu_real_host_page_size())); in qemu_vfio_add_mapping()
649 assert(QEMU_IS_ALIGNED(mapping->size, qemu_real_host_page_size())); in qemu_vfio_undo_mapping()
758 assert(QEMU_IS_ALIGNED(size, qemu_real_host_page_size())); in qemu_vfio_dma_map()
/openbmc/qemu/hw/s390x/
H A Ds390-skeys.c188 assert(QEMU_IS_ALIGNED(block->target_start, TARGET_PAGE_SIZE)); in qmp_dump_skeys()
189 assert(QEMU_IS_ALIGNED(block->target_end, TARGET_PAGE_SIZE)); in qmp_dump_skeys()
352 assert(QEMU_IS_ALIGNED(block->target_start, TARGET_PAGE_SIZE)); in s390_storage_keys_save()
353 assert(QEMU_IS_ALIGNED(block->target_end, TARGET_PAGE_SIZE)); in s390_storage_keys_save()
/openbmc/qemu/hw/mem/
H A Dmemory-device.c226 if (!QEMU_IS_ALIGNED(range_lob(&as), align)) { in memory_device_get_free_addr()
233 if (hint && !QEMU_IS_ALIGNED(*hint, align)) { in memory_device_get_free_addr()
384 if (!QEMU_IS_ALIGNED(memory_region_size(mr), in memory_device_pre_plug()
/openbmc/qemu/include/qemu/
H A Dosdep.h462 #define QEMU_IS_ALIGNED(n, m) (((n) % (m)) == 0) macro
473 #define QEMU_PTR_IS_ALIGNED(p, n) QEMU_IS_ALIGNED((uintptr_t)(p), (n))
/openbmc/qemu/ui/
H A Dconsole-gl.c50 assert(QEMU_IS_ALIGNED(surface_stride(surface), surface_bytes_per_pixel(surface))); in surface_gl_create_texture()
/openbmc/qemu/hw/virtio/
H A Dvirtio-mem.c485 if (!QEMU_IS_ALIGNED(gpa, vmem->block_size)) { in virtio_mem_valid_range()
1048 if (!QEMU_IS_ALIGNED(vmem->requested_size, vmem->block_size)) { in virtio_mem_device_realize()
1053 } else if (!QEMU_IS_ALIGNED(vmem->addr, vmem->block_size)) { in virtio_mem_device_realize()
1058 } else if (!QEMU_IS_ALIGNED(memory_region_size(&vmem->memdev->mr), in virtio_mem_device_realize()
1499 !QEMU_IS_ALIGNED(region_size, vmem->block_size)) { in virtio_mem_decide_memslots()
1578 if (!QEMU_IS_ALIGNED(value, vmem->block_size)) { in virtio_mem_set_requested_size()
/openbmc/qemu/accel/hvf/
H A Dhvf-accel-ops.c137 if (!QEMU_IS_ALIGNED(int128_get64(section->size), page_size) || in hvf_set_phys_mem()
138 !QEMU_IS_ALIGNED(section->offset_within_address_space, page_size)) { in hvf_set_phys_mem()
/openbmc/qemu/hw/cxl/
H A Dcxl-mailbox-utils.c664 if (!QEMU_IS_ALIGNED(cxl_dstate->vmem_size, CXL_CAPACITY_MULTIPLIER) || in cmd_firmware_update_get_info()
665 !QEMU_IS_ALIGNED(cxl_dstate->pmem_size, CXL_CAPACITY_MULTIPLIER) || in cmd_firmware_update_get_info()
666 !QEMU_IS_ALIGNED(ct3d->dc.total_capacity, CXL_CAPACITY_MULTIPLIER)) { in cmd_firmware_update_get_info()
1399 if ((!QEMU_IS_ALIGNED(cxl_dstate->vmem_size, CXL_CAPACITY_MULTIPLIER)) || in cmd_identify_memory_device()
1400 (!QEMU_IS_ALIGNED(cxl_dstate->pmem_size, CXL_CAPACITY_MULTIPLIER)) || in cmd_identify_memory_device()
1401 (!QEMU_IS_ALIGNED(ct3d->dc.total_capacity, CXL_CAPACITY_MULTIPLIER))) { in cmd_identify_memory_device()
1444 if ((!QEMU_IS_ALIGNED(cxl_dstate->vmem_size, CXL_CAPACITY_MULTIPLIER)) || in cmd_ccls_get_partition_info()
1445 (!QEMU_IS_ALIGNED(cxl_dstate->pmem_size, CXL_CAPACITY_MULTIPLIER)) || in cmd_ccls_get_partition_info()
1446 (!QEMU_IS_ALIGNED(ct3d->dc.total_capacity, CXL_CAPACITY_MULTIPLIER))) { in cmd_ccls_get_partition_info()
/openbmc/qemu/hw/i386/
H A Dpc_sysfw.c171 if (size == 0 || !QEMU_IS_ALIGNED(size, FLASH_SECTOR_SIZE)) { in pc_system_flash_map()

1234