Lines Matching defs:cache
2211 void kvm_release_pfn(kvm_pfn_t pfn, bool dirty, struct gfn_to_pfn_cache *cache)
2216 if (cache)
2217 cache->pfn = cache->gfn = 0;
2226 struct gfn_to_pfn_cache *cache, u64 gen)
2228 kvm_release_pfn(cache->pfn, cache->dirty, cache);
2230 cache->pfn = gfn_to_pfn_memslot(slot, gfn);
2231 cache->gfn = gfn;
2232 cache->dirty = false;
2233 cache->generation = gen;
2238 struct gfn_to_pfn_cache *cache,
2250 if (cache) {
2251 if (!cache->pfn || cache->gfn != gfn ||
2252 cache->generation != gen) {
2255 kvm_cache_gfn_to_pfn(slot, gfn, cache, gen);
2257 pfn = cache->pfn;
2292 struct gfn_to_pfn_cache *cache, bool atomic)
2295 cache, atomic);
2308 struct gfn_to_pfn_cache *cache,
2333 if (cache)
2334 cache->dirty |= dirty;
2343 struct gfn_to_pfn_cache *cache, bool dirty, bool atomic)
2346 cache, dirty, atomic);
4993 /* A kmem cache lets us meet the alignment requirements of fx_save. */