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.c591 unsigned int l2_index, sc_index; in qcow2_get_host_offset() local
760 unsigned int l2_index; in get_cluster_table() local
813 *new_l2_index = l2_index; in get_cluster_table()
832 int l2_index, ret; in qcow2_alloc_compressed_cluster_offset() local
1032 int i, j = 0, l2_index, ret; in qcow2_alloc_cluster_link_l2() local
1257 l2_index += nb_clusters - 1; in calculate_l2_meta()
1499 int l2_index; in handle_copied() local
1666 int l2_index; in handle_alloc() local
1907 int l2_index; in discard_in_l2_slice() local
2046 int l2_index; in zero_in_l2_slice() local
[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];