Lines Matching refs:nobjs
664 if (cache->nobjs >= min) in mmu_topup_memory_cache()
666 while (cache->nobjs < ARRAY_SIZE(cache->objects)) { in mmu_topup_memory_cache()
670 cache->objects[cache->nobjs++] = obj; in mmu_topup_memory_cache()
677 return cache->nobjs; in mmu_memory_cache_free_objects()
683 while (mc->nobjs) in mmu_free_memory_cache()
684 kmem_cache_free(cache, mc->objects[--mc->nobjs]); in mmu_free_memory_cache()
692 if (cache->nobjs >= min) in mmu_topup_memory_cache_page()
694 while (cache->nobjs < ARRAY_SIZE(cache->objects)) { in mmu_topup_memory_cache_page()
698 cache->objects[cache->nobjs++] = page; in mmu_topup_memory_cache_page()
705 while (mc->nobjs) in mmu_free_memory_cache_page()
706 free_page((unsigned long)mc->objects[--mc->nobjs]); in mmu_free_memory_cache_page()
739 BUG_ON(!mc->nobjs); in mmu_memory_cache_alloc()
740 p = mc->objects[--mc->nobjs]; in mmu_memory_cache_alloc()