Home
last modified time | relevance | path

Searched refs:nobjs (Results 1 - 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
H A Dkvm_types.h72 int nobjs; member
/kernel/linux/linux-6.6/include/linux/
H A Dkvm_types.h98 int nobjs; member
/kernel/linux/linux-5.10/virt/kvm/
H A Dkvm_main.c413 if (mc->nobjs >= min) in kvm_mmu_topup_memory_cache()
415 while (mc->nobjs < ARRAY_SIZE(mc->objects)) { in kvm_mmu_topup_memory_cache()
418 return mc->nobjs >= min ? 0 : -ENOMEM; in kvm_mmu_topup_memory_cache()
419 mc->objects[mc->nobjs++] = obj; in kvm_mmu_topup_memory_cache()
426 return mc->nobjs; in kvm_mmu_memory_cache_nr_free_objects()
431 while (mc->nobjs) { in kvm_mmu_free_memory_cache()
433 kmem_cache_free(mc->kmem_cache, mc->objects[--mc->nobjs]); in kvm_mmu_free_memory_cache()
435 free_page((unsigned long)mc->objects[--mc->nobjs]); in kvm_mmu_free_memory_cache()
443 if (WARN_ON(!mc->nobjs)) in kvm_mmu_memory_cache_alloc()
446 p = mc->objects[--mc->nobjs]; in kvm_mmu_memory_cache_alloc()
[all...]
/kernel/linux/linux-6.6/virt/kvm/
H A Dkvm_main.c419 if (mc->nobjs >= min) in __kvm_mmu_topup_memory_cache()
437 while (mc->nobjs < mc->capacity) { in __kvm_mmu_topup_memory_cache()
440 return mc->nobjs >= min ? 0 : -ENOMEM; in __kvm_mmu_topup_memory_cache()
441 mc->objects[mc->nobjs++] = obj; in __kvm_mmu_topup_memory_cache()
453 return mc->nobjs; in kvm_mmu_memory_cache_nr_free_objects()
458 while (mc->nobjs) { in kvm_mmu_free_memory_cache()
460 kmem_cache_free(mc->kmem_cache, mc->objects[--mc->nobjs]); in kvm_mmu_free_memory_cache()
462 free_page((unsigned long)mc->objects[--mc->nobjs]); in kvm_mmu_free_memory_cache()
475 if (WARN_ON(!mc->nobjs)) in kvm_mmu_memory_cache_alloc()
478 p = mc->objects[--mc->nobjs]; in kvm_mmu_memory_cache_alloc()
[all...]
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/
H A Dpgtable.c1451 if (mc->nobjs >= nr_pages) { in stage2_split_walker()
1467 if (mc->nobjs < nr_pages) in stage2_split_walker()

Completed in 12 milliseconds