Searched refs:l2_slice (Results 1 – 3 of 3) sorted by relevance
/openbmc/qemu/block/ |
H A D | qcow2-cluster.c | 212 uint64_t l2_offset, uint64_t **l2_slice) in l2_load() argument 219 (void **)l2_slice); in l2_load() 277 uint64_t *l2_slice = NULL; in l2_allocate() local 319 (void **) &l2_slice); in l2_allocate() 326 memset(l2_slice, 0, slice_size2); in l2_allocate() 340 memcpy(l2_slice, old_slice, slice_size2); in l2_allocate() 349 qcow2_cache_entry_mark_dirty(s->l2_table_cache, l2_slice); in l2_allocate() 350 qcow2_cache_put(s->l2_table_cache, (void **) &l2_slice); in l2_allocate() 371 if (l2_slice != NULL) { in l2_allocate() 372 qcow2_cache_put(s->l2_table_cache, (void **) &l2_slice); in l2_allocate() [all …]
|
H A D | qcow2.h | 611 static inline uint64_t get_l2_entry(BDRVQcow2State *s, uint64_t *l2_slice, in get_l2_entry() argument 615 return be64_to_cpu(l2_slice[idx]); in get_l2_entry() 618 static inline uint64_t get_l2_bitmap(BDRVQcow2State *s, uint64_t *l2_slice, in get_l2_bitmap() argument 623 return be64_to_cpu(l2_slice[idx + 1]); in get_l2_bitmap() 629 static inline void set_l2_entry(BDRVQcow2State *s, uint64_t *l2_slice, in set_l2_entry() argument 633 l2_slice[idx] = cpu_to_be64(entry); in set_l2_entry() 636 static inline void set_l2_bitmap(BDRVQcow2State *s, uint64_t *l2_slice, in set_l2_bitmap() argument 641 l2_slice[idx + 1] = cpu_to_be64(bitmap); in set_l2_bitmap()
|
H A D | qcow2-refcount.c | 1248 uint64_t *l1_table, *l2_slice, l2_offset, entry, l1_size2, refcount; in qcow2_update_snapshot_refcount() local 1257 l2_slice = NULL; in qcow2_update_snapshot_refcount() 1307 (void **) &l2_slice); in qcow2_update_snapshot_refcount() 1316 entry = get_l2_entry(s, l2_slice, j); in qcow2_update_snapshot_refcount() 1390 set_l2_entry(s, l2_slice, j, entry); in qcow2_update_snapshot_refcount() 1392 l2_slice); in qcow2_update_snapshot_refcount() 1396 qcow2_cache_put(s->l2_table_cache, (void **) &l2_slice); in qcow2_update_snapshot_refcount() 1424 if (l2_slice) { in qcow2_update_snapshot_refcount() 1425 qcow2_cache_put(s->l2_table_cache, (void **) &l2_slice); in qcow2_update_snapshot_refcount()
|