Home
last modified time | relevance | path

Searched refs:l1_table (Results 1 – 20 of 20) sorted by relevance

/openbmc/qemu/tests/qemu-iotests/
H A Dqed.py81 self.l1_table = self.read_table(self.header['l1_table_offset'])
113 print(qed.l1_table)
124 table = qed.l1_table
126 _, offset = random_table_item(qed.l1_table)
137 table = qed.l1_table
139 _, offset = random_table_item(qed.l1_table)
169 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]
196 s = ''.join(pack_table_elem(x) for x in qed.l1_table)
[all …]
H A D16368 l1_table = fd.read(h.l1_size << entry_bits)
73 check_l1_table(h, l1_table)
/openbmc/linux/drivers/char/agp/
H A Defficeon-agp.c60 unsigned long l1_table[EFFICEON_L1_SIZE]; member
163 unsigned long page = efficeon_private.l1_table[index]; in efficeon_free_gatt_table()
165 efficeon_private.l1_table[index] = 0; in efficeon_free_gatt_table()
213 page = efficeon_private.l1_table[index]; in efficeon_create_gatt_table()
225 efficeon_private.l1_table[index] = page; in efficeon_create_gatt_table()
261 page = (unsigned int *) efficeon_private.l1_table[index >> 10]; in efficeon_insert_memory()
300 unsigned int *page = (unsigned int *) efficeon_private.l1_table[index >> 10]; in efficeon_remove_memory()
/openbmc/qemu/block/
H A Dparallels-ext.c63 parallels_load_bitmap_data(BlockDriverState *bs, const uint64_t *l1_table, in parallels_load_bitmap_data() argument
87 uint64_t entry = l1_table[i]; in parallels_load_bitmap_data()
128 g_autofree uint64_t *l1_table = NULL; in parallels_load_bitmap() local
166 l1_table = g_new(uint64_t, bf.l1_size); in parallels_load_bitmap()
168 l1_table[i] = ldq_le_p(data); in parallels_load_bitmap()
171 ret = parallels_load_bitmap_data(bs, l1_table, bf.l1_size, bitmap, errp); in parallels_load_bitmap()
H A Dqcow2-cluster.c71 s->l1_table[i] = 0; in qcow2_shrink_l1_table()
81 memset(s->l1_table + new_l1_size, 0, in qcow2_shrink_l1_table()
180 qemu_vfree(s->l1_table); in qcow2_grow_l1_table()
183 s->l1_table = new_l1_table; in qcow2_grow_l1_table()
282 old_l2_offset = s->l1_table[l1_index]; in l2_allocate()
2256 bool is_active_l1 = (l1_table == s->l1_table); in expand_zero_clusters_in_l1()
2469 uint64_t *l1_table = NULL; in qcow2_expand_zero_clusters() local
2522 l1_table = new_l1_table; in qcow2_expand_zero_clusters()
2525 l1_table, 0); in qcow2_expand_zero_clusters()
2531 be64_to_cpus(&l1_table[j]); in qcow2_expand_zero_clusters()
[all …]
H A Dqcow2-snapshot.c644 uint64_t *l1_table = NULL; in qcow2_snapshot_create() local
682 l1_table = g_try_new(uint64_t, s->l1_size); in qcow2_snapshot_create()
683 if (s->l1_size && l1_table == NULL) { in qcow2_snapshot_create()
689 l1_table[i] = cpu_to_be64(s->l1_table[i]); in qcow2_snapshot_create()
699 l1_table, 0); in qcow2_snapshot_create()
704 g_free(l1_table); in qcow2_snapshot_create()
705 l1_table = NULL; in qcow2_snapshot_create()
754 g_free(l1_table); in qcow2_snapshot_create()
1065 qemu_vfree(s->l1_table); in qcow2_snapshot_load_tmp()
1069 s->l1_table = new_l1_table; in qcow2_snapshot_load_tmp()
[all …]
H A Dqcow.c80 uint64_t *l1_table; member
257 s->l1_table = g_try_new(uint64_t, s->l1_size); in qcow_open()
258 if (s->l1_table == NULL) { in qcow_open()
265 s->l1_size * sizeof(uint64_t), s->l1_table, 0); in qcow_open()
271 s->l1_table[i] = be64_to_cpu(s->l1_table[i]); in qcow_open()
324 g_free(s->l1_table); in qcow_open()
372 l2_offset = s->l1_table[l1_index]; in get_cluster_offset()
385 s->l1_table[l1_index] = l2_offset; in get_cluster_offset()
802 g_free(s->l1_table); in qcow_close()
1036 memset(s->l1_table, 0, l1_length); in qcow_make_empty()
[all …]
H A Dqcow2-refcount.c1258 l1_table = NULL; in qcow2_update_snapshot_refcount()
1282 be64_to_cpus(&l1_table[i]); in qcow2_update_snapshot_refcount()
1286 l1_table = s->l1_table; in qcow2_update_snapshot_refcount()
1291 l2_offset = l1_table[i]; in qcow2_update_snapshot_refcount()
1416 l1_table[i] = l2_offset; in qcow2_update_snapshot_refcount()
1434 cpu_to_be64s(&l1_table[i]); in qcow2_update_snapshot_refcount()
1441 be64_to_cpus(&l1_table[i]); in qcow2_update_snapshot_refcount()
1445 g_free(l1_table); in qcow2_update_snapshot_refcount()
1886 if (l1_table == NULL) { in check_refcounts_l1()
1900 be64_to_cpus(&l1_table[i]); in check_refcounts_l1()
[all …]
H A Dqed-table.c118 return qed_read_table(s, s->header.l1_table_offset, s->l1_table); in qed_read_l1_table_sync()
127 s->l1_table, index, n, false); in qed_write_l1_table()
H A Dqed-cluster.c106 l2_offset = s->l1_table->offsets[qed_l1_index(s, pos)]; in qed_find_cluster()
H A Dqed.c515 s->l1_table = qed_alloc_table(s); in bdrv_qed_do_open()
548 qemu_vfree(s->l1_table); in bdrv_qed_do_open()
631 qemu_vfree(s->l1_table); in bdrv_qed_do_close()
651 uint8_t *l1_table = NULL; in bdrv_qed_co_create() local
749 l1_table = g_malloc0(l1_size); in bdrv_qed_co_create()
750 ret = blk_co_pwrite(blk, header.l1_table_offset, l1_size, l1_table, 0); in bdrv_qed_co_create()
757 g_free(l1_table); in bdrv_qed_co_create()
1012 s->l1_table->offsets[index] = l2_table->offset; in qed_aio_write_l1_update()
H A Dvmdk.c151 void *l1_table; member
277 g_free(e->l1_table); in vmdk_free_extents()
608 extent->l1_table = g_try_malloc(l1_size); in vmdk_init_tables()
609 if (l1_size && extent->l1_table == NULL) { in vmdk_init_tables()
614 extent->l1_table, 0); in vmdk_init_tables()
624 le64_to_cpus((uint64_t *)extent->l1_table + i); in vmdk_init_tables()
627 le32_to_cpus((uint32_t *)extent->l1_table + i); in vmdk_init_tables()
658 g_free(extent->l1_table); in vmdk_init_tables()
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()
H A Dqed-check.c242 ret = qed_check_l1_table(&check, s->l1_table); in qed_check()
H A Dqed.h161 QEDTable *l1_table; member
H A Dqcow2.c1598 s->l1_table = qemu_try_blockalign(bs->file->bs, s->l1_size * L1E_SIZE); in qcow2_do_open()
1599 if (s->l1_table == NULL) { in qcow2_do_open()
1605 s->l1_table, 0); in qcow2_do_open()
1611 s->l1_table[i] = be64_to_cpu(s->l1_table[i]); in qcow2_do_open()
1906 qemu_vfree(s->l1_table); in qcow2_do_open()
1908 s->l1_table = NULL; in qcow2_do_open()
2798 qemu_vfree(s->l1_table); in qcow2_do_close()
2800 s->l1_table = NULL; in qcow2_do_close()
4907 memset(s->l1_table, 0, l1_size2); in make_completely_empty()
5344 preallocated = s->l1_size > 0 && s->l1_table[0] != 0; in qcow2_has_zero_init()
H A Dqcow2.h344 uint64_t *l1_table; member
/openbmc/qemu/tests/image-fuzzer/qcow2/
H A Dlayout.py104 self.l1_table = FieldsList()
118 self.backing_file_name, self.l1_table, self.l2_tables,
331 self.l1_table = FieldsList(l1)
/openbmc/qemu/docs/interop/
H A Dparallels.rst219 variable: L1 offset table (l1_table), size: 8 * l1_size bytes
228 l1_table[offset / cluster_size]
240 offset = l1_table[offset / cluster_size] * 512 + (offset % cluster_size)
H A Dqed_spec.txt122 l2_offset = l1_table[l1_index]
H A Dqcow2.txt519 l2_table = load_cluster(l1_table[l1_index]);