Lines Matching refs:bucket
75 struct etna_bo_bucket *bucket = &cache->cache_bucket[i];
78 while (!list_is_empty(&bucket->list)) {
79 bo = list_entry(bucket->list.next, struct etna_bo, list);
99 * way to the correct bucket size rather than looping..
102 struct etna_bo_bucket *bucket = &cache->cache_bucket[i];
103 if (bucket->size >= size) {
104 return bucket;
111 static struct etna_bo *find_in_bucket(struct etna_bo_bucket *bucket, uint32_t flags)
117 if (list_is_empty(&bucket->list))
120 LIST_FOR_EACH_ENTRY_SAFE(bo, tmp, &bucket->list, list) {
146 * NOTE: size is potentially rounded up to bucket size
152 struct etna_bo_bucket *bucket;
155 bucket = get_bucket(cache, *size);
158 if (bucket) {
159 *size = bucket->size;
160 bo = find_in_bucket(bucket, flags);
174 struct etna_bo_bucket *bucket;
178 bucket = get_bucket(cache, bo->size);
181 if (bucket) {
188 list_addtail(&bo->list, &bucket->list);
191 /* bo's in the bucket cache don't have a ref and