Searched refs:nb_clusters (Results 1 – 5 of 5) sorted by relevance
/openbmc/qemu/block/ |
H A D | qcow2-cluster.c | 445 count_contiguous_subclusters(BlockDriverState *bs, int nb_clusters, in count_contiguous_subclusters() argument 455 assert(*l2_index + nb_clusters <= s->l2_slice_size); in count_contiguous_subclusters() 457 for (i = 0; i < nb_clusters; i++) { in count_contiguous_subclusters() 595 uint64_t bytes_available, bytes_needed, nb_clusters; in qcow2_get_host_offset() local 650 nb_clusters = size_to_clusters(s, bytes_needed); in qcow2_get_host_offset() 654 assert(nb_clusters <= INT_MAX); in qcow2_get_host_offset() 712 sc = count_contiguous_subclusters(bs, nb_clusters, sc_index, in qcow2_get_host_offset() 1036 trace_qcow2_cluster_link_l2(qemu_coroutine_self(), m->nb_clusters); in qcow2_alloc_cluster_link_l2() 1037 assert(m->nb_clusters > 0); in qcow2_alloc_cluster_link_l2() 1039 old_cluster = g_try_new(uint64_t, m->nb_clusters); in qcow2_alloc_cluster_link_l2() [all …]
|
H A D | qcow2-refcount.c | 972 uint64_t i, nb_clusters, refcount; in alloc_clusters_noref() local 980 nb_clusters = size_to_clusters(s, size); in alloc_clusters_noref() 982 for(i = 0; i < nb_clusters; i++) { in alloc_clusters_noref() 1004 (s->free_cluster_index - nb_clusters) << s->cluster_bits); in alloc_clusters_noref() 1006 return (s->free_cluster_index - nb_clusters) << s->cluster_bits; in alloc_clusters_noref() 1032 int64_t nb_clusters) in qcow2_alloc_clusters_at() argument 1039 assert(nb_clusters >= 0); in qcow2_alloc_clusters_at() 1040 if (nb_clusters == 0) { in qcow2_alloc_clusters_at() 1047 for(i = 0; i < nb_clusters; i++) { in qcow2_alloc_clusters_at() 2088 void **refcount_table, int64_t *nb_clusters) in check_refblocks() argument [all …]
|
H A D | trace-events | 84 qcow2_skip_cow(void *co, uint64_t offset, int nb_clusters) "co %p offset 0x%" PRIx64 " nb_clusters … 90 …offset, uint64_t host_offset, int nb_clusters) "co %p guest_offset 0x%" PRIx64 " host_offset 0x%" … 92 qcow2_cluster_link_l2(void *co, int nb_clusters) "co %p nb_clusters %d"
|
H A D | qcow2.h | 452 int nb_clusters; member 874 int64_t nb_clusters);
|
H A D | qcow2.c | 2580 trace_qcow2_skip_cow(qemu_coroutine_self(), m->offset, m->nb_clusters); in handle_alloc_space() 4560 int64_t nb_clusters = MIN( in qcow2_co_truncate() local 4569 .nb_clusters = nb_clusters, in qcow2_co_truncate() 4575 .offset = nb_clusters << s->cluster_bits, in qcow2_co_truncate() 4591 guest_offset += nb_clusters * s->cluster_size; in qcow2_co_truncate() 4592 host_offset += nb_clusters * s->cluster_size; in qcow2_co_truncate() 4593 nb_new_data_clusters -= nb_clusters; in qcow2_co_truncate()
|