Home
last modified time | relevance | path

Searched refs:cluster_offset (Results 1 – 10 of 10) sorted by relevance

/qemu/block/
H A Dqcow.c96 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 Dqcow2-cluster.c539 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 Dvmdk.c1463 uint64_t cluster_offset, uint64_t offset, in get_whole_cluster()
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()
1576 * @cluster_offset.
1595 uint64_t *cluster_offset, uint64_t skip_start_bytes, in get_cluster_offset()
1611 *cluster_offset = extent->flat_start_offset; in get_cluster_offset()
1756 *cluster_offset = cluster_sector << BDRV_SECTOR_BITS; in find_extent()
1796 uint64_t cluster_offset; in vmdk_co_block_status()
1804 ret = get_cluster_offset(bs, extent, NULL, offset, false, &cluster_offset, in vmdk_co_block_status()
1823 *map = cluster_offset in vmdk_co_block_status()
1453 get_whole_cluster(BlockDriverState * bs,VmdkExtent * extent,uint64_t cluster_offset,uint64_t offset,uint64_t skip_start_bytes,uint64_t skip_end_bytes,bool zeroed) get_whole_cluster() argument
1585 get_cluster_offset(BlockDriverState * bs,VmdkExtent * extent,VmdkMetaData * m_data,uint64_t offset,bool allocate,uint64_t * cluster_offset,uint64_t skip_start_bytes,uint64_t skip_end_bytes) get_cluster_offset() argument
1786 uint64_t cluster_offset; vmdk_co_block_status() local
1830 vmdk_write_extent(VmdkExtent * extent,int64_t cluster_offset,int64_t offset_in_cluster,QEMUIOVector * qiov,uint64_t qiov_offset,uint64_t n_bytes,uint64_t offset) vmdk_write_extent() argument
1912 vmdk_read_extent(VmdkExtent * extent,int64_t cluster_offset,int64_t offset_in_cluster,QEMUIOVector * qiov,int bytes) vmdk_read_extent() argument
1986 uint64_t cluster_offset; vmdk_co_preadv() local
2067 uint64_t cluster_offset; vmdk_pwritev() local
2963 uint64_t cluster_offset; vmdk_co_check() local
[all...]
H A Dqcow2-refcount.c815 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 Dtrace-events17 …set, int64_t bytes, int64_t cluster_offset, int64_t cluster_bytes) "bs %p offset %" PRId64 " bytes…
H A Dqcow2.c4687 uint64_t cluster_offset; in qcow2_co_pwritev_compressed_task()
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()
4683 uint64_t cluster_offset; qcow2_co_pwritev_compressed_task() local
/qemu/docs/interop/
H A Dqed_spec.txt124 cluster_offset = l2_table[l2_index] & offset_mask
125 return cluster_offset + byte_offset
H A Dqcow2.rst540 cluster_offset = l2_table[l2_index];
542 return cluster_offset + (offset % cluster_size)
/qemu/hw/acpi/
H A Daml-build.c2154 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 Dblock-io.h208 int64_t *cluster_offset,