Home
last modified time | relevance | path

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

/linux/arch/riscv/kvm/
A Dmmu.c92 if (pcache->nobjs >= min) in stage2_cache_topup()
94 while (pcache->nobjs < max) { in stage2_cache_topup()
98 pcache->objects[pcache->nobjs++] = page; in stage2_cache_topup()
106 while (pcache && pcache->nobjs) in stage2_cache_flush()
107 free_page((unsigned long)pcache->objects[--pcache->nobjs]); in stage2_cache_flush()
117 BUG_ON(!pcache->nobjs); in stage2_cache_alloc()
118 p = pcache->objects[--pcache->nobjs]; in stage2_cache_alloc()
/linux/include/linux/
A Dkvm_types.h65 int nobjs; member
/linux/arch/riscv/include/asm/
A Dkvm_host.h83 int nobjs; member
/linux/virt/kvm/
A Dkvm_main.c378 if (mc->nobjs >= min) in kvm_mmu_topup_memory_cache()
380 while (mc->nobjs < ARRAY_SIZE(mc->objects)) { in kvm_mmu_topup_memory_cache()
383 return mc->nobjs >= min ? 0 : -ENOMEM; in kvm_mmu_topup_memory_cache()
384 mc->objects[mc->nobjs++] = obj; in kvm_mmu_topup_memory_cache()
391 return mc->nobjs; in kvm_mmu_memory_cache_nr_free_objects()
396 while (mc->nobjs) { in kvm_mmu_free_memory_cache()
398 kmem_cache_free(mc->kmem_cache, mc->objects[--mc->nobjs]); in kvm_mmu_free_memory_cache()
400 free_page((unsigned long)mc->objects[--mc->nobjs]); in kvm_mmu_free_memory_cache()
408 if (WARN_ON(!mc->nobjs)) in kvm_mmu_memory_cache_alloc()
411 p = mc->objects[--mc->nobjs]; in kvm_mmu_memory_cache_alloc()

Completed in 18 milliseconds