Home
last modified time | relevance | path

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

/qemu/block/
H A Dqcow2-cluster.c282 old_l2_offset = s->l1_table[l1_index]; in l2_allocate()
284 trace_qcow2_l2_allocate(bs, l1_index); in l2_allocate()
361 ret = qcow2_write_l1_entry(bs, l1_index); in l2_allocate()
374 s->l1_table[l1_index] = old_l2_offset; in l2_allocate()
617 l1_index = offset_to_l1_index(s, offset); in qcow2_get_host_offset()
618 if (l1_index >= s->l1_size) { in qcow2_get_host_offset()
761 uint64_t l1_index, l2_offset; in get_cluster_table() local
767 l1_index = offset_to_l1_index(s, offset); in get_cluster_table()
768 if (l1_index >= s->l1_size) { in get_cluster_table()
775 assert(l1_index < s->l1_size); in get_cluster_table()
[all …]
H A Dtrace-events94 qcow2_l2_allocate(void *bs, int l1_index) "bs %p l1_index %d"
95 qcow2_l2_allocate_get_empty(void *bs, int l1_index) "bs %p l1_index %d"
96 qcow2_l2_allocate_write_l2(void *bs, int l1_index) "bs %p l1_index %d"
97 qcow2_l2_allocate_write_l1(void *bs, int l1_index) "bs %p l1_index %d"
98 qcow2_l2_allocate_done(void *bs, int l1_index, int ret) "bs %p l1_index %d ret %d"
H A Dqcow.c364 int min_index, i, j, l1_index, l2_index, ret; in get_cluster_offset() local
371 l1_index = offset >> (s->l2_bits + s->cluster_bits); in get_cluster_offset()
372 l2_offset = s->l1_table[l1_index]; in get_cluster_offset()
385 s->l1_table[l1_index] = l2_offset; in get_cluster_offset()
389 s->l1_table_offset + l1_index * sizeof(tmp), in get_cluster_offset()
H A Dvmdk.c185 unsigned int l1_index; member
1544 m_data->l2_offset = extent->l1_backup_table[m_data->l1_index]; in vmdk_L2update()
1588 unsigned int l1_index, l2_offset, l2_index; in get_cluster_offset() local
1606 l1_index = (offset >> 9) / extent->l1_entry_sectors; in get_cluster_offset()
1607 if (l1_index >= extent->l1_size) { in get_cluster_offset()
1615 l2_offset_u64 = ((uint64_t *)extent->l1_table)[l1_index]; in get_cluster_offset()
1638 l2_offset = ((uint32_t *)extent->l1_table)[l1_index]; in get_cluster_offset()
1679 m_data->l1_index = l1_index; in get_cluster_offset()
H A Dqcow2.h926 int GRAPH_RDLOCK qcow2_write_l1_entry(BlockDriverState *bs, int l1_index);
/qemu/tests/qemu-iotests/
H A Dqed.py169 l1_index = pos // qed.header['cluster_size'] // len(qed.l1_table)
170 if qed.l1_table[l1_index] == 0:
173 l2_offset = qed.l1_table[l1_index]
H A D138.out21 Repairing OFLAG_COPIED L2 cluster: l1_index=0 l1_entry=L1_ENTRY_VALUE refcount=1
H A D217.out33 Repairing OFLAG_COPIED L2 cluster: l1_index=0 l1_entry=40000 refcount=1
/qemu/docs/interop/
H A Dqed_spec.txt121 def logical_to_cluster_offset(l1_index, l2_index, byte_offset):
122 l2_offset = l1_table[l1_index]
H A Dqcow2.txt517 l1_index = (offset / cluster_size) / l2_entries
519 l2_table = load_cluster(l1_table[l1_index]);