Searched refs:l2_index (Results 1 – 3 of 3) sorted by relevance
/external/qemu/block/ |
D | qcow2-cluster.c | 398 int l1_index, l2_index; in qcow2_get_cluster_offset() local 446 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1); in qcow2_get_cluster_offset() 447 cluster_offset = be64_to_cpu(l2_table[l2_index]); in qcow2_get_cluster_offset() 452 c = count_contiguous_free_clusters(nb_clusters, &l2_table[l2_index]); in qcow2_get_cluster_offset() 456 &l2_table[l2_index], 0, QCOW_OFLAG_COPIED); in qcow2_get_cluster_offset() 486 int l1_index, l2_index, ret; in get_cluster_table() local 518 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1); in get_cluster_table() 522 *new_l2_index = l2_index; in get_cluster_table() 545 int l2_index, ret; in qcow2_alloc_compressed_cluster_offset() local 549 ret = get_cluster_table(bs, offset, &l2_table, &l2_offset, &l2_index); in qcow2_alloc_compressed_cluster_offset() [all …]
|
D | vmdk.c | 85 unsigned int l2_index; member 494 …if (bdrv_pwrite(s->hd, ((int64_t)m_data->l2_offset * 512) + (m_data->l2_index * sizeof(m_data->off… in vmdk_L2update() 500 …if (bdrv_pwrite(s->hd, ((int64_t)m_data->l2_offset * 512) + (m_data->l2_index * sizeof(m_data->off… in vmdk_L2update() 512 unsigned int l1_index, l2_offset, l2_index; in get_cluster_offset() local 555 l2_index = ((offset >> 9) / s->cluster_sectors) % s->l2_size; in get_cluster_offset() 556 cluster_offset = le32_to_cpu(l2_table[l2_index]); in get_cluster_offset() 568 l2_table[l2_index] = tmp; in get_cluster_offset() 584 m_data->l2_index = l2_index; in get_cluster_offset()
|
D | qcow.c | 262 int min_index, i, j, l1_index, l2_index; in get_cluster_offset() local 320 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1); in get_cluster_offset() 321 cluster_offset = be64_to_cpu(l2_table[l2_index]); in get_cluster_offset() 374 l2_table[l2_index] = tmp; in get_cluster_offset() 376 l2_offset + l2_index * sizeof(tmp), &tmp, sizeof(tmp)) != sizeof(tmp)) in get_cluster_offset()
|