Lines Matching refs:bucket
46 * @coarse: if true, only power-of-two bucket sizes, otherwise
90 struct fd_bo_bucket *bucket = &cache->cache_bucket[i];
93 while (!list_is_empty(&bucket->list)) {
94 bo = list_entry(bucket->list.next, struct fd_bo, list);
115 * way to the correct bucket size rather than looping..
118 struct fd_bo_bucket *bucket = &cache->cache_bucket[i];
119 if (bucket->size >= size) {
120 return bucket;
128 find_in_bucket(struct fd_bo_bucket *bucket, uint32_t flags)
140 list_for_each_entry (struct fd_bo, entry, &bucket->list, list) {
154 /* NOTE: size is potentially rounded up to bucket size: */
159 struct fd_bo_bucket *bucket;
162 bucket = get_bucket(cache, *size);
166 if (bucket) {
167 *size = bucket->size;
168 bo = find_in_bucket(bucket, flags);
195 struct fd_bo_bucket *bucket = get_bucket(cache, bo->size);
198 if (bucket) {
207 list_addtail(&bo->list, &bucket->list);