Home
last modified time | relevance | path

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

/openbmc/qemu/tests/qemu-iotests/
H A Dcommon.pattern74 local l2_size=$((cluster_size * cluster_size / 8))
98 offset=$(( ((offset + l2_size - 1) & ~(l2_size - 1)) - (3 * half_cluster) ))
99 io "$op" $offset $((6 * half_cluster)) $(( l2_size + half_cluster )) $num_large
100 offset=$((offset + num_large * ( l2_size + half_cluster )))
/openbmc/linux/arch/powerpc/platforms/4xx/
H A Dsoc.c81 u32 l2_size; in ppc4xx_l2c_probe() local
94 l2_size = prop[0]; in ppc4xx_l2c_probe()
183 printk(KERN_INFO "%dk L2-cache enabled\n", l2_size >> 10); in ppc4xx_l2c_probe()
/openbmc/qemu/block/
H A Dqcow.c76 int l2_size; member
236 s->l2_size = 1 << s->l2_bits; in qcow_open()
277 s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t)); in qcow_open()
420 memset(l2_table, 0, s->l2_size * sizeof(uint64_t)); in get_cluster_offset()
422 s->l2_size * sizeof(uint64_t), l2_table, 0); in get_cluster_offset()
428 s->l2_size * sizeof(uint64_t), l2_table, 0); in get_cluster_offset()
436 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1); in get_cluster_offset()
1045 memset(s->l2_cache, 0, s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t)); in qcow_make_empty()
H A Dvmdk.c156 unsigned int l2_size; member
532 int l2_size, uint64_t cluster_sectors, in vmdk_add_extent() argument
581 extent->l1_entry_sectors = l2_size * cluster_sectors; in vmdk_add_extent()
582 extent->l2_size = l2_size; in vmdk_add_extent()
653 g_malloc(extent->entry_size * extent->l2_size * L2_CACHE_SIZE); in vmdk_init_tables()
1595 unsigned int l2_size_bytes = extent->l2_size * extent->entry_size; in get_cluster_offset()
1677 l2_index = ((offset >> 9) / extent->cluster_sectors) % extent->l2_size; in get_cluster_offset()
H A Dqcow2.h335 int l2_size; member
694 return (offset >> s->cluster_bits) & (s->l2_size - 1); in offset_to_l2_index()
H A Dqed.c142 uint64_t l2_size; in qed_max_image_size() local
145 l2_size = table_entries * cluster_size; in qed_max_image_size()
147 return l2_size * table_entries; in qed_max_image_size()
H A Dqcow2-cluster.c288 l2_offset = qcow2_alloc_clusters(bs, s->l2_size * l2_entry_size(s)); in l2_allocate()
376 qcow2_free_clusters(bs, l2_offset, s->l2_size * l2_entry_size(s), in l2_allocate()
793 qcow2_free_clusters(bs, l2_offset, s->l2_size * l2_entry_size(s), in get_cluster_table()
H A Dqcow2-refcount.c1672 size_t l2_size_bytes = s->l2_size * l2_entry_size(s); in check_refcounts_l2()
1685 for (i = 0; i < s->l2_size; i++) { in check_refcounts_l2()
2008 ret = bdrv_co_pread(bs->file, l2_offset, s->l2_size * l2_entry_size(s), in check_oflag_copied()
2017 for (j = 0; j < s->l2_size; j++) { in check_oflag_copied()
H A Dqcow2.c1526 s->l2_size = 1 << s->l2_bits; in qcow2_do_open()
/openbmc/qemu/tests/image-fuzzer/qcow2/
H A Dlayout.py273 l2_size = self.cluster_size // UINT64_S
274 entry_offset = offset + UINT64_S * (guest % l2_size)
285 l2_size = self.cluster_size // UINT64_S
286 entry_offset = l1_offset + UINT64_S * (guest // l2_size)