Searched refs:nobjs (Results 1 – 7 of 7) sorted by relevance
34 if (cache->nobjs >= min) in mmu_topup_memory_cache()36 while (cache->nobjs < max) { in mmu_topup_memory_cache()40 cache->objects[cache->nobjs++] = page; in mmu_topup_memory_cache()47 while (mc->nobjs) in mmu_free_memory_cache()48 free_page((unsigned long)mc->objects[--mc->nobjs]); in mmu_free_memory_cache()55 BUG_ON(!mc || !mc->nobjs); in mmu_memory_cache_alloc()56 p = mc->objects[--mc->nobjs]; in mmu_memory_cache_alloc()
129 if (cache->nobjs >= min) in mmu_topup_memory_cache()131 while (cache->nobjs < max) { in mmu_topup_memory_cache()135 cache->objects[cache->nobjs++] = page; in mmu_topup_memory_cache()142 while (mc->nobjs) in mmu_free_memory_cache()143 free_page((unsigned long)mc->objects[--mc->nobjs]); in mmu_free_memory_cache()150 BUG_ON(!mc || !mc->nobjs); in mmu_memory_cache_alloc()151 p = mc->objects[--mc->nobjs]; in mmu_memory_cache_alloc()
1060 if (cache->nobjs >= min) in mmu_topup_memory_cache()1062 while (cache->nobjs < ARRAY_SIZE(cache->objects)) { in mmu_topup_memory_cache()1065 return cache->nobjs >= min ? 0 : -ENOMEM; in mmu_topup_memory_cache()1066 cache->objects[cache->nobjs++] = obj; in mmu_topup_memory_cache()1073 return cache->nobjs; in mmu_memory_cache_free_objects()1079 while (mc->nobjs) in mmu_free_memory_cache()1080 kmem_cache_free(cache, mc->objects[--mc->nobjs]); in mmu_free_memory_cache()1088 if (cache->nobjs >= min) in mmu_topup_memory_cache_page()1090 while (cache->nobjs < ARRAY_SIZE(cache->objects)) { in mmu_topup_memory_cache_page()1093 return cache->nobjs >= min ? 0 : -ENOMEM; in mmu_topup_memory_cache_page()[all …]
88 int nobjs; member
95 int nobjs; member
303 int nobjs; member
239 int nobjs; member