Home
last modified time | relevance | path

Searched refs:l2_cache (Results 1 – 4 of 4) sorted by relevance

/openbmc/qemu/block/
H A Dqed-l2-cache.c64 void qed_init_l2_cache(L2TableCache *l2_cache) in qed_init_l2_cache() argument
66 QTAILQ_INIT(&l2_cache->entries); in qed_init_l2_cache()
67 l2_cache->n_entries = 0; in qed_init_l2_cache()
73 void qed_free_l2_cache(L2TableCache *l2_cache) in qed_free_l2_cache() argument
77 QTAILQ_FOREACH_SAFE(entry, &l2_cache->entries, node, next_entry) { in qed_free_l2_cache()
90 CachedL2Table *qed_alloc_l2_cache_entry(L2TableCache *l2_cache) in qed_alloc_l2_cache_entry() argument
97 trace_qed_alloc_l2_cache_entry(l2_cache, entry); in qed_alloc_l2_cache_entry()
131 CachedL2Table *qed_find_l2_cache_entry(L2TableCache *l2_cache, uint64_t offset) in qed_find_l2_cache_entry() argument
135 QTAILQ_FOREACH(entry, &l2_cache->entries, node) { in qed_find_l2_cache_entry()
137 trace_qed_find_l2_cache_entry(l2_cache, entry, offset, entry->ref); in qed_find_l2_cache_entry()
[all …]
H A Dqed.h162 L2TableCache l2_cache; /* l2 table cache */ member
193 void qed_init_l2_cache(L2TableCache *l2_cache);
194 void qed_free_l2_cache(L2TableCache *l2_cache);
195 CachedL2Table *qed_alloc_l2_cache_entry(L2TableCache *l2_cache);
197 CachedL2Table *qed_find_l2_cache_entry(L2TableCache *l2_cache, uint64_t offset);
198 void qed_commit_l2_cache_entry(L2TableCache *l2_cache, CachedL2Table *l2_table);
H A Dqed-table.c145 request->l2_table = qed_find_l2_cache_entry(&s->l2_cache, offset); in qed_read_l2_table()
150 request->l2_table = qed_alloc_l2_cache_entry(&s->l2_cache); in qed_read_l2_table()
163 qed_commit_l2_cache_entry(&s->l2_cache, request->l2_table); in qed_read_l2_table()
168 request->l2_table = qed_find_l2_cache_entry(&s->l2_cache, offset); in qed_read_l2_table()
/openbmc/qemu/contrib/plugins/
H A Dcache.c606 Cache *icache, *dcache, *l2_cache = NULL; in log_stats() local
622 l2_cache = use_l2 ? l2_ucaches[i] : NULL; in log_stats()
625 l2_cache ? l2_cache->accesses : 0, in log_stats()
626 l2_cache ? l2_cache->misses : 0); in log_stats()
634 l2_cache ? l2_mem_accesses : 0, l2_cache ? l2_misses : 0); in log_stats()