/openbmc/qemu/block/ |
H A D | qcow2-snapshot.c | 121 sn->l1_size = be32_to_cpu(h.l1_size); in qcow2_do_read_snapshots() 329 h.l1_size = cpu_to_be32(sn->l1_size); in qcow2_write_snapshots() 680 sn->l1_size = s->l1_size; in qcow2_snapshot_create() 683 if (s->l1_size && l1_table == NULL) { in qcow2_snapshot_create() 688 for(i = 0; i < s->l1_size; i++) { in qcow2_snapshot_create() 817 cur_l1_bytes = s->l1_size * L1E_SIZE; in qcow2_snapshot_goto() 818 sn_l1_bytes = sn->l1_size * L1E_SIZE; in qcow2_snapshot_goto() 876 for(i = 0;i < s->l1_size; i++) { in qcow2_snapshot_goto() 1050 new_l1_bytes = sn->l1_size * L1E_SIZE; in qcow2_snapshot_load_tmp() 1067 s->l1_size = sn->l1_size; in qcow2_snapshot_load_tmp() [all …]
|
H A D | parallels-ext.c | 57 uint32_t l1_size; member 64 uint32_t l1_size, BdrvDirtyBitmap *bitmap, in parallels_load_bitmap_data() argument 76 if (tab_size != l1_size) { in parallels_load_bitmap_data() 79 l1_size, tab_size); in parallels_load_bitmap_data() 143 bf.l1_size = le32_to_cpu(bf.l1_size); in parallels_load_bitmap() 153 if (bf.l1_size * sizeof(uint64_t) > data_size) { in parallels_load_bitmap() 166 l1_table = g_new(uint64_t, bf.l1_size); in parallels_load_bitmap() 167 for (i = 0; i < bf.l1_size; i++, data += sizeof(uint64_t)) { in parallels_load_bitmap() 171 ret = parallels_load_bitmap_data(bs, l1_table, bf.l1_size, bitmap, errp); in parallels_load_bitmap()
|
H A D | qcow2-cluster.c | 41 if (exact_size >= s->l1_size) { in qcow2_shrink_l1_table() 96 if (min_size <= s->l1_size) in qcow2_grow_l1_table() 110 new_l1_size = s->l1_size; in qcow2_grow_l1_table() 136 if (s->l1_size) { in qcow2_grow_l1_table() 162 for(i = 0; i < s->l1_size; i++) in qcow2_grow_l1_table() 168 for(i = 0; i < s->l1_size; i++) in qcow2_grow_l1_table() 184 old_l1_size = s->l1_size; in qcow2_grow_l1_table() 185 s->l1_size = new_l1_size; in qcow2_grow_l1_table() 618 if (l1_index >= s->l1_size) { in qcow2_get_host_offset() 768 if (l1_index >= s->l1_size) { in get_cluster_table() [all …]
|
H A D | qcow.c | 77 unsigned int l1_size; member 247 uint64_t l1_size = (header.size + (1LL << shift) - 1) >> shift; in qcow_open() local 248 if (l1_size > INT_MAX / sizeof(uint64_t)) { in qcow_open() 253 s->l1_size = l1_size; in qcow_open() 257 s->l1_table = g_try_new(uint64_t, s->l1_size); in qcow_open() 265 s->l1_size * sizeof(uint64_t), s->l1_table, 0); in qcow_open() 270 for(i = 0;i < s->l1_size; i++) { in qcow_open() 814 int header_size, backing_filename_len, l1_size, shift, i; in qcow_co_create() local 880 l1_size = (total_size + (1LL << shift) - 1) >> shift; in qcow_co_create() 912 for (i = 0; i < DIV_ROUND_UP(sizeof(uint64_t) * l1_size, BDRV_SECTOR_SIZE); in qcow_co_create() [all …]
|
H A D | qcow2-refcount.c | 1259 l1_size2 = l1_size * L1E_SIZE; in qcow2_update_snapshot_refcount() 1281 for (i = 0; i < l1_size; i++) { in qcow2_update_snapshot_refcount() 1285 assert(l1_size == s->l1_size); in qcow2_update_snapshot_refcount() 1290 for (i = 0; i < l1_size; i++) { in qcow2_update_snapshot_refcount() 1433 for (i = 0; i < l1_size; i++) { in qcow2_update_snapshot_refcount() 1440 for (i = 0; i < l1_size; i++) { in qcow2_update_snapshot_refcount() 1874 if (!l1_size) { in check_refcounts_l1() 1899 for (i = 0; i < l1_size; i++) { in check_refcounts_l1() 1904 for (i = 0; i < l1_size; i++) { in check_refcounts_l1() 1974 for (i = 0; i < s->l1_size; i++) { in check_oflag_copied() [all …]
|
H A D | vmdk.c | 153 unsigned int l1_size; member 531 uint32_t l1_size, in vmdk_add_extent() argument 545 if (l1_size > 32 * 1024 * 1024) { in vmdk_add_extent() 580 extent->l1_size = l1_size; in vmdk_add_extent() 603 size_t l1_size; in vmdk_init_tables() local 607 l1_size = extent->l1_size * extent->entry_size; in vmdk_init_tables() 608 extent->l1_table = g_try_malloc(l1_size); in vmdk_init_tables() 622 for (i = 0; i < extent->l1_size; i++) { in vmdk_init_tables() 940 uint32_t l1_size, l1_entry_sectors; in vmdk_open_vmdk4() local 1063 l1_size, in vmdk_open_vmdk4() [all …]
|
H A D | qcow2.h | 162 uint32_t l1_size; /* XXX: save number of clusters instead ? */ member 190 uint32_t l1_size; member 215 uint32_t l1_size; member 336 int l1_size; member 886 int l1_size, int addend);
|
H A D | qcow2.c | 1344 header.l1_size = be32_to_cpu(header.l1_size); in qcow2_do_open() 1573 header.l1_size, L1E_SIZE, in qcow2_do_open() 1578 s->l1_size = header.l1_size; in qcow2_do_open() 1591 if (s->l1_size < s->l1_vm_state_index) { in qcow2_do_open() 1597 if (s->l1_size > 0) { in qcow2_do_open() 1610 for(i = 0;i < s->l1_size; i++) { in qcow2_do_open() 2961 .l1_size = cpu_to_be32(s->l1_size), in qcow2_update_header() 3722 .l1_size = cpu_to_be32(0), in qcow2_co_create() 4896 l1_clusters = DIV_ROUND_UP(s->l1_size, s->cluster_size / L1E_SIZE); in make_completely_empty() 4897 l1_size2 = (uint64_t)s->l1_size * L1E_SIZE; in make_completely_empty() [all …]
|
H A D | qed.c | 652 size_t l1_size; in bdrv_qed_co_create() local 714 l1_size = header.cluster_size * header.table_size; in bdrv_qed_co_create() 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()
|
/openbmc/linux/drivers/acpi/ |
H A D | acpi_extlog.c | 52 static size_t l1_size; variable 255 l1_size = l1_head->total_len; in extlog_init() 263 r = request_mem_region(l1_dirbase, l1_size, "L1 Table"); in extlog_init() 267 (unsigned long long)l1_dirbase + l1_size); in extlog_init() 270 extlog_l1_addr = acpi_os_map_iomem(l1_dirbase, l1_size); in extlog_init() 301 acpi_os_unmap_iomem(extlog_l1_addr, l1_size); in extlog_init() 302 release_mem_region(l1_dirbase, l1_size); in extlog_init() 313 acpi_os_unmap_iomem(extlog_l1_addr, l1_size); in extlog_exit() 318 release_mem_region(l1_dirbase, l1_size); in extlog_exit()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 031.out | 15 l1_size 1 43 l1_size 1 71 l1_size 1 106 l1_size 1 139 l1_size 1 172 l1_size 1
|
H A D | 044 | 51 h.l1_size = 512 * 512 * 4 71 assert(off_l2 + 512 * h.l1_size == off_data) 73 for j in range(0, h.l1_size))
|
H A D | 061.out | 15 l1_size 1 39 l1_size 1 73 l1_size 1 97 l1_size 1 129 l1_size 1 158 l1_size 1 184 l1_size 1 208 l1_size 1 234 l1_size 1 253 l1_size 1 [all …]
|
H A D | 303.out | 36 l1_size 1 119 "l1_size": 1,
|
H A D | 163 | 68 l1_table = fd.read(h.l1_size << entry_bits)
|
H A D | 080.out | 97 ERROR snapshot 1 (test) l1_size=0x10000000: L1 table is too large; snapshot table entry corrupted
|
/openbmc/qemu/tests/image-fuzzer/qcow2/ |
H A D | layout.py | 306 l1_size = int(ceil((max(guest_clusters) + 1) / float(l_size**2))) 308 meta_data, l1_size) 309 meta_data |= set(range(l1_start, l1_start + l1_size))
|
H A D | fuzz.py | 206 def l1_size(current): function
|
/openbmc/qemu/docs/interop/ |
H A D | parallels.rst | 216 28 - 31: l1_size 219 variable: L1 offset table (l1_table), size: 8 * l1_size bytes
|
H A D | qcow2.txt | 67 36 - 39: l1_size
|