Lines Matching refs:bucket
78 struct etna_bo_bucket *bucket = &cache->cache_bucket[i]; in etna_bo_cache_cleanup() local
81 while (!LIST_IS_EMPTY(&bucket->list)) { in etna_bo_cache_cleanup()
82 bo = LIST_ENTRY(struct etna_bo, bucket->list.next, list); in etna_bo_cache_cleanup()
104 struct etna_bo_bucket *bucket = &cache->cache_bucket[i]; in get_bucket() local
105 if (bucket->size >= size) { in get_bucket()
106 return bucket; in get_bucket()
121 static struct etna_bo *find_in_bucket(struct etna_bo_bucket *bucket, uint32_t flags) in find_in_bucket() argument
127 if (LIST_IS_EMPTY(&bucket->list)) in find_in_bucket()
130 LIST_FOR_EACH_ENTRY_SAFE(bo, tmp, &bucket->list, list) { in find_in_bucket()
162 struct etna_bo_bucket *bucket; in etna_bo_cache_alloc() local
165 bucket = get_bucket(cache, *size); in etna_bo_cache_alloc()
168 if (bucket) { in etna_bo_cache_alloc()
169 *size = bucket->size; in etna_bo_cache_alloc()
170 bo = find_in_bucket(bucket, flags); in etna_bo_cache_alloc()
183 struct etna_bo_bucket *bucket = get_bucket(cache, bo->size); in etna_bo_cache_free() local
186 if (bucket) { in etna_bo_cache_free()
192 list_addtail(&bo->list, &bucket->list); in etna_bo_cache_free()