/qemu/block/ |
H A D | qcow.c | 96 decompress_cluster(BlockDriverState *bs, uint64_t cluster_offset); 366 uint64_t *l2_table, cluster_offset, tmp; in get_cluster_offset() local 437 cluster_offset = be64_to_cpu(l2_table[l2_index]); in get_cluster_offset() 438 if (!cluster_offset || in get_cluster_offset() 439 ((cluster_offset & QCOW_OFLAG_COMPRESSED) && allocate == 1)) { in get_cluster_offset() 445 if ((cluster_offset & QCOW_OFLAG_COMPRESSED) && in get_cluster_offset() 450 if (decompress_cluster(bs, cluster_offset) < 0) { in get_cluster_offset() 453 cluster_offset = bdrv_co_getlength(bs->file->bs); in get_cluster_offset() 454 if ((int64_t) cluster_offset < 0) { in get_cluster_offset() 455 return cluster_offset; in get_cluster_offset() [all …]
|
H A D | qcow2-cluster.c | 539 do_perform_cow_write(BlockDriverState *bs, uint64_t cluster_offset, in do_perform_cow_write() argument 550 cluster_offset + offset_in_cluster, qiov->size, true); in do_perform_cow_write() 556 ret = bdrv_co_pwritev(s->data_file, cluster_offset + offset_in_cluster, in do_perform_cow_write() 834 int64_t cluster_offset; in qcow2_alloc_compressed_cluster_offset() local 848 cluster_offset = get_l2_entry(s, l2_slice, l2_index); in qcow2_alloc_compressed_cluster_offset() 849 if (cluster_offset & L2E_OFFSET_MASK) { in qcow2_alloc_compressed_cluster_offset() 854 cluster_offset = qcow2_alloc_bytes(bs, compressed_size); in qcow2_alloc_compressed_cluster_offset() 855 if (cluster_offset < 0) { in qcow2_alloc_compressed_cluster_offset() 857 return cluster_offset; in qcow2_alloc_compressed_cluster_offset() 861 (cluster_offset + compressed_size - 1) / QCOW2_COMPRESSED_SECTOR_SIZE - in qcow2_alloc_compressed_cluster_offset() [all …]
|
H A D | vmdk.c | 1463 uint64_t cluster_offset, uint64_t offset, in get_whole_cluster() argument 1504 ret = bdrv_co_pwrite(extent->file, cluster_offset, skip_start_bytes, in get_whole_cluster() 1525 ret = bdrv_co_pwrite(extent->file, cluster_offset + skip_end_bytes, in get_whole_cluster() 1595 uint64_t *cluster_offset, uint64_t skip_start_bytes, in get_cluster_offset() argument 1611 *cluster_offset = extent->flat_start_offset; in get_cluster_offset() 1756 *cluster_offset = cluster_sector << BDRV_SECTOR_BITS; in get_cluster_offset() 1796 uint64_t cluster_offset; in vmdk_co_block_status() local 1804 ret = get_cluster_offset(bs, extent, NULL, offset, false, &cluster_offset, in vmdk_co_block_status() 1823 *map = cluster_offset + index_in_cluster; in vmdk_co_block_status() 1840 vmdk_write_extent(VmdkExtent *extent, int64_t cluster_offset, in vmdk_write_extent() argument [all …]
|
H A D | qcow2-refcount.c | 815 int64_t start, last, cluster_offset; in update_refcount() local 838 for(cluster_offset = start; cluster_offset <= last; in update_refcount() 839 cluster_offset += s->cluster_size) in update_refcount() 843 int64_t cluster_index = cluster_offset >> s->cluster_bits; in update_refcount() 905 update_refcount_discard(bs, cluster_offset, s->cluster_size); in update_refcount() 927 dummy = update_refcount(bs, offset, cluster_offset - offset, addend, in update_refcount() 1532 uint64_t start, last, cluster_offset, k, refcount; in qcow2_inc_refcounts_imrt() local 1560 for(cluster_offset = start; cluster_offset <= last; in qcow2_inc_refcounts_imrt() 1561 cluster_offset += s->cluster_size) { in qcow2_inc_refcounts_imrt() 1562 k = cluster_offset >> s->cluster_bits; in qcow2_inc_refcounts_imrt() [all …]
|
H A D | trace-events | 17 …set, int64_t bytes, int64_t cluster_offset, int64_t cluster_bytes) "bs %p offset %" PRId64 " bytes…
|
H A D | qcow2.c | 4687 uint64_t cluster_offset; in qcow2_co_pwritev_compressed_task() local 4717 &cluster_offset); in qcow2_co_pwritev_compressed_task() 4723 ret = qcow2_pre_write_overlap_check(bs, 0, cluster_offset, out_len, true); in qcow2_co_pwritev_compressed_task() 4730 ret = bdrv_co_pwrite(s->data_file, cluster_offset, out_len, out_buf, 0); in qcow2_co_pwritev_compressed_task()
|
/qemu/docs/interop/ |
H A D | qed_spec.txt | 124 cluster_offset = l2_table[l2_index] & offset_mask 125 return cluster_offset + byte_offset
|
H A D | qcow2.rst | 540 cluster_offset = l2_table[l2_index]; 542 return cluster_offset + (offset % cluster_size)
|
/qemu/hw/acpi/ |
H A D | aml-build.c | 2154 uint32_t socket_offset = 0, cluster_offset = 0, core_offset = 0; in build_pptt() local 2185 cluster_offset = table_data->len - pptt_start; in build_pptt() 2191 cluster_offset = socket_offset; in build_pptt() 2198 cluster_offset, n, NULL, 0); in build_pptt() 2206 cluster_offset, core_id, NULL, 0); in build_pptt()
|
/qemu/include/block/ |
H A D | block-io.h | 208 int64_t *cluster_offset,
|