Searched refs:l2_cache (Results 1 - 5 of 5) sorted by relevance

/external/qemu/block/
H A Dqcow.c67 uint64_t *l2_cache; member in struct:BDRVQcowState
142 s->l2_cache = qemu_malloc(s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t));
143 if (!s->l2_cache)
166 qemu_free(s->l2_cache);
290 l2_table = s->l2_cache + (i << s->l2_bits);
303 l2_table = s->l2_cache + (min_index << s->l2_bits);
737 qemu_free(s->l2_cache);
846 memset(s->l2_cache, 0, s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t));
H A Dvmdk.c73 uint32_t *l2_cache; member in struct:BDRVVmdkState
427 s->l2_cache = qemu_malloc(s->l2_size * L2_CACHE_SIZE * sizeof(uint32_t));
432 qemu_free(s->l2_cache);
514 l2_table = s->l2_cache + (i * s->l2_size);
527 l2_table = s->l2_cache + (min_index * s->l2_size);
823 qemu_free(s->l2_cache);
H A Dqcow2-cluster.c97 memset(s->l2_cache, 0, s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t));
123 * seek l2_offset in the l2_cache table
144 return s->l2_cache + (i << s->l2_bits);
177 *l2_table = s->l2_cache + (min_index << s->l2_bits);
250 l2_table = s->l2_cache + (min_index << s->l2_bits);
H A Dqcow2.h95 uint64_t *l2_cache; member in struct:BDRVQcowState
H A Dqcow2.c207 s->l2_cache = qemu_malloc(s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t));
248 qemu_free(s->l2_cache);
665 qemu_free(s->l2_cache);

Completed in 98 milliseconds