Lines Matching refs:l2_cache_size
882 uint64_t *l2_cache_size, in read_cache_sizes() argument
912 *l2_cache_size = MIN(max_l2_cache, l2_cache_max_setting); in read_cache_sizes()
932 *refcount_cache_size = combined_cache_size - *l2_cache_size; in read_cache_sizes()
934 *l2_cache_size = combined_cache_size - *refcount_cache_size; in read_cache_sizes()
939 *l2_cache_size = max_l2_cache; in read_cache_sizes()
940 *refcount_cache_size = combined_cache_size - *l2_cache_size; in read_cache_sizes()
944 *l2_cache_size = combined_cache_size - *refcount_cache_size; in read_cache_sizes()
954 if (*l2_cache_size < max_l2_cache && !l2_cache_entry_size_set) { in read_cache_sizes()
993 uint64_t l2_cache_size, l2_cache_entry_size, refcount_cache_size; in qcow2_update_options_prepare() local
1009 if (!read_cache_sizes(bs, opts, &l2_cache_size, &l2_cache_entry_size, in qcow2_update_options_prepare()
1015 l2_cache_size /= l2_cache_entry_size; in qcow2_update_options_prepare()
1016 if (l2_cache_size < MIN_L2_CACHE_SIZE) { in qcow2_update_options_prepare()
1017 l2_cache_size = MIN_L2_CACHE_SIZE; in qcow2_update_options_prepare()
1019 if (l2_cache_size > INT_MAX) { in qcow2_update_options_prepare()
1054 r->l2_table_cache = qcow2_cache_create(bs, l2_cache_size, in qcow2_update_options_prepare()