Searched refs:nobjs (Results 1 – 2 of 2) sorted by relevance
72 int nobjs; member
369 if (mc->nobjs >= min) in kvm_mmu_topup_memory_cache()371 while (mc->nobjs < ARRAY_SIZE(mc->objects)) { in kvm_mmu_topup_memory_cache()374 return mc->nobjs >= min ? 0 : -ENOMEM; in kvm_mmu_topup_memory_cache()375 mc->objects[mc->nobjs++] = obj; in kvm_mmu_topup_memory_cache()382 return mc->nobjs; in kvm_mmu_memory_cache_nr_free_objects()387 while (mc->nobjs) { in kvm_mmu_free_memory_cache()389 kmem_cache_free(mc->kmem_cache, mc->objects[--mc->nobjs]); in kvm_mmu_free_memory_cache()391 free_page((unsigned long)mc->objects[--mc->nobjs]); in kvm_mmu_free_memory_cache()399 if (WARN_ON(!mc->nobjs)) in kvm_mmu_memory_cache_alloc()402 p = mc->objects[--mc->nobjs]; in kvm_mmu_memory_cache_alloc()