Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dkvm_types.h92 int nobjs; member
/linux/virt/kvm/
H A Dkvm_main.c413 if (mc->nobjs >= min) in __kvm_mmu_topup_memory_cache()
438 while (mc->nobjs < mc->capacity) { in __kvm_mmu_topup_memory_cache()
441 return mc->nobjs >= min ? 0 : -ENOMEM; in __kvm_mmu_topup_memory_cache()
442 mc->objects[mc->nobjs++] = obj; in __kvm_mmu_topup_memory_cache()
454 return mc->nobjs; in kvm_mmu_memory_cache_nr_free_objects()
459 while (mc->nobjs) { in kvm_mmu_free_memory_cache()
461 kmem_cache_free(mc->kmem_cache, mc->objects[--mc->nobjs]); in kvm_mmu_free_memory_cache()
463 free_page((unsigned long)mc->objects[--mc->nobjs]); in kvm_mmu_free_memory_cache()
476 if (WARN_ON(!mc->nobjs)) in kvm_mmu_memory_cache_alloc()
479 p = mc->objects[--mc->nobjs]; in kvm_mmu_memory_cache_alloc()
/linux/arch/arm64/kvm/hyp/
H A Dpgtable.c1510 if (mc->nobjs >= nr_pages) { in stage2_split_walker()
1526 if (mc->nobjs < nr_pages) in stage2_split_walker()