Home | History | Annotate | Download | only in freedreno

Lines Matching refs:bucket

48  * @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(struct fd_bo, bucket->list.next, list);
114 * way to the correct bucket size rather than looping..
117 struct fd_bo_bucket *bucket = &cache->cache_bucket[i];
118 if (bucket->size >= size) {
119 return bucket;
134 static struct fd_bo *find_in_bucket(struct fd_bo_bucket *bucket, uint32_t flags)
146 if (!LIST_IS_EMPTY(&bucket->list)) {
147 bo = LIST_ENTRY(struct fd_bo, bucket->list.next, list);
160 /* NOTE: size is potentially rounded up to bucket size: */
165 struct fd_bo_bucket *bucket;
168 bucket = get_bucket(cache, *size);
172 if (bucket) {
173 *size = bucket->size;
174 bo = find_in_bucket(bucket, flags);
196 struct fd_bo_bucket *bucket = get_bucket(cache, bo->size);
199 if (bucket) {
208 list_addtail(&bo->list, &bucket->list);
211 /* bo's in the bucket cache don't have a ref and