Searched refs:nobjs (Results 1 – 2 of 2) sorted by relevance
72 int nobjs; member
357 if (mc->nobjs >= min) in kvm_mmu_topup_memory_cache()359 while (mc->nobjs < ARRAY_SIZE(mc->objects)) { in kvm_mmu_topup_memory_cache()362 return mc->nobjs >= min ? 0 : -ENOMEM; in kvm_mmu_topup_memory_cache()363 mc->objects[mc->nobjs++] = obj; in kvm_mmu_topup_memory_cache()370 return mc->nobjs; in kvm_mmu_memory_cache_nr_free_objects()375 while (mc->nobjs) { in kvm_mmu_free_memory_cache()377 kmem_cache_free(mc->kmem_cache, mc->objects[--mc->nobjs]); in kvm_mmu_free_memory_cache()379 free_page((unsigned long)mc->objects[--mc->nobjs]); in kvm_mmu_free_memory_cache()387 if (WARN_ON(!mc->nobjs)) in kvm_mmu_memory_cache_alloc()390 p = mc->objects[--mc->nobjs]; in kvm_mmu_memory_cache_alloc()