Home
last modified time | relevance | path

Searched refs:nobjs (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/arch/mips/kvm/
Dmmu.c34 if (cache->nobjs >= min) in mmu_topup_memory_cache()
36 while (cache->nobjs < max) { in mmu_topup_memory_cache()
40 cache->objects[cache->nobjs++] = page; in mmu_topup_memory_cache()
47 while (mc->nobjs) in mmu_free_memory_cache()
48 free_page((unsigned long)mc->objects[--mc->nobjs]); in mmu_free_memory_cache()
55 BUG_ON(!mc || !mc->nobjs); in mmu_memory_cache_alloc()
56 p = mc->objects[--mc->nobjs]; in mmu_memory_cache_alloc()
/Linux-v5.4/virt/kvm/arm/
Dmmu.c129 if (cache->nobjs >= min) in mmu_topup_memory_cache()
131 while (cache->nobjs < max) { in mmu_topup_memory_cache()
135 cache->objects[cache->nobjs++] = page; in mmu_topup_memory_cache()
142 while (mc->nobjs) in mmu_free_memory_cache()
143 free_page((unsigned long)mc->objects[--mc->nobjs]); in mmu_free_memory_cache()
150 BUG_ON(!mc || !mc->nobjs); in mmu_memory_cache_alloc()
151 p = mc->objects[--mc->nobjs]; in mmu_memory_cache_alloc()
/Linux-v5.4/arch/x86/kvm/
Dmmu.c1060 if (cache->nobjs >= min) in mmu_topup_memory_cache()
1062 while (cache->nobjs < ARRAY_SIZE(cache->objects)) { in mmu_topup_memory_cache()
1065 return cache->nobjs >= min ? 0 : -ENOMEM; in mmu_topup_memory_cache()
1066 cache->objects[cache->nobjs++] = obj; in mmu_topup_memory_cache()
1073 return cache->nobjs; in mmu_memory_cache_free_objects()
1079 while (mc->nobjs) in mmu_free_memory_cache()
1080 kmem_cache_free(cache, mc->objects[--mc->nobjs]); in mmu_free_memory_cache()
1088 if (cache->nobjs >= min) in mmu_topup_memory_cache_page()
1090 while (cache->nobjs < ARRAY_SIZE(cache->objects)) { in mmu_topup_memory_cache_page()
1093 return cache->nobjs >= min ? 0 : -ENOMEM; in mmu_topup_memory_cache_page()
[all …]
/Linux-v5.4/arch/arm/include/asm/
Dkvm_host.h88 int nobjs; member
/Linux-v5.4/arch/arm64/include/asm/
Dkvm_host.h95 int nobjs; member
/Linux-v5.4/arch/mips/include/asm/
Dkvm_host.h303 int nobjs; member
/Linux-v5.4/arch/x86/include/asm/
Dkvm_host.h239 int nobjs; member