Home
last modified time | relevance | path

Searched refs:l2_index (Results 1 – 7 of 7) sorted by relevance

/openbmc/qemu/block/
H A Dqcow2-cluster.c447 unsigned *l2_index) in count_contiguous_subclusters() argument
455 assert(*l2_index + nb_clusters <= s->l2_slice_size); in count_contiguous_subclusters()
459 uint64_t l2_entry = get_l2_entry(s, l2_slice, *l2_index + i); in count_contiguous_subclusters()
460 uint64_t l2_bitmap = get_l2_bitmap(s, l2_slice, *l2_index + i); in count_contiguous_subclusters()
464 *l2_index += i; /* Point to the invalid entry */ in count_contiguous_subclusters()
591 unsigned int l2_index, sc_index; in qcow2_get_host_offset() local
645 l2_index = offset_to_l2_slice_index(s, offset); in qcow2_get_host_offset()
647 l2_entry = get_l2_entry(s, l2_slice, l2_index); in qcow2_get_host_offset()
648 l2_bitmap = get_l2_bitmap(s, l2_slice, l2_index); in qcow2_get_host_offset()
661 ", L2 index: %#x)", l2_offset, l2_index); in qcow2_get_host_offset()
[all …]
H A Dqcow.c364 int min_index, i, j, l1_index, l2_index, ret; in get_cluster_offset() local
436 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1); in get_cluster_offset()
437 cluster_offset = be64_to_cpu(l2_table[l2_index]); in get_cluster_offset()
516 l2_table[l2_index] = tmp; in get_cluster_offset()
522 ret = bdrv_co_pwrite_sync(bs->file, l2_offset + l2_index * sizeof(tmp), in get_cluster_offset()
H A Dvmdk.c186 unsigned int l2_index; member
1538 + (m_data->l2_index * sizeof(offset)), in vmdk_L2update()
1547 + (m_data->l2_index * sizeof(offset)), in vmdk_L2update()
1588 unsigned int l1_index, l2_offset, l2_index; in get_cluster_offset() local
1677 l2_index = ((offset >> 9) / extent->cluster_sectors) % extent->l2_size; in get_cluster_offset()
1680 m_data->l2_index = l2_index; in get_cluster_offset()
1682 m_data->l2_cache_entry = ((uint32_t *)l2_table) + l2_index; in get_cluster_offset()
1686 cluster_sector = le64_to_cpu(((uint64_t *)l2_table)[l2_index]); in get_cluster_offset()
1711 cluster_sector = le32_to_cpu(((uint32_t *)l2_table)[l2_index]); in get_cluster_offset()
H A Dqcow2-refcount.c1345 int l2_index = slice * s->l2_slice_size + j; in qcow2_update_snapshot_refcount() local
1351 offset, l2_offset, l2_index); in qcow2_update_snapshot_refcount()
1605 int l2_index, bool active, in fix_l2_entry_by_zero() argument
1610 int idx = l2_index * (l2_entry_size(s) / sizeof(uint64_t)); in fix_l2_entry_by_zero()
1611 uint64_t l2e_offset = l2_offset + (uint64_t)l2_index * l2_entry_size(s); in fix_l2_entry_by_zero()
1615 uint64_t l2_bitmap = get_l2_bitmap(s, l2_table, l2_index); in fix_l2_entry_by_zero()
1621 set_l2_bitmap(s, l2_table, l2_index, l2_bitmap); in fix_l2_entry_by_zero()
1622 set_l2_entry(s, l2_table, l2_index, 0); in fix_l2_entry_by_zero()
1624 set_l2_entry(s, l2_table, l2_index, QCOW_OFLAG_ZERO); in fix_l2_entry_by_zero()
/openbmc/qemu/tests/qemu-iotests/
H A Dqed.py176 l2_index = (pos // qed.header['cluster_size']) % len(qed.l1_table)
177 l2_table[l2_index] = 1 # zero the data cluster
/openbmc/qemu/docs/interop/
H A Dqed_spec.txt121 def logical_to_cluster_offset(l1_index, l2_index, byte_offset):
124 cluster_offset = l2_table[l2_index] & offset_mask
H A Dqcow2.txt516 l2_index = (offset / cluster_size) % l2_entries
520 cluster_offset = l2_table[l2_index];