Home | History | Annotate | Download | only in nouveau

Lines Matching refs:bucket

29    struct mm_bucket bucket[MM_NUM_BUCKETS];
90 return &cache->bucket[MAX2(order, MM_MIN_ORDER) - MM_MIN_ORDER];
160 struct mm_bucket *bucket;
165 bucket = mm_bucket_by_size(cache, size);
166 if (!bucket) {
177 if (!LIST_IS_EMPTY(&bucket->used)) {
178 slab = LIST_ENTRY(struct mm_slab, bucket->used.next, head);
180 if (LIST_IS_EMPTY(&bucket->free)) {
183 slab = LIST_ENTRY(struct mm_slab, bucket->free.next, head);
186 LIST_ADD(&slab->head, &bucket->used);
199 LIST_ADD(&slab->head, &bucket->full);
213 struct mm_bucket *bucket = mm_bucket_by_order(slab->cache, slab->order);
219 LIST_ADDTAIL(&slab->head, &bucket->free);
223 LIST_ADDTAIL(&slab->head, &bucket->used);
251 LIST_INITHEAD(&cache->bucket[i].free);
252 LIST_INITHEAD(&cache->bucket[i].used);
253 LIST_INITHEAD(&cache->bucket[i].full);
280 if (!LIST_IS_EMPTY(&cache->bucket[i].used) ||
281 !LIST_IS_EMPTY(&cache->bucket[i].full))
285 nouveau_mm_free_slabs(&cache->bucket[i].free);
286 nouveau_mm_free_slabs(&cache->bucket[i].used);
287 nouveau_mm_free_slabs(&cache->bucket[i].full);