Lines Matching refs:bucket
92 struct fd_bo_bucket *bucket = &dev->cache_bucket[i]; in fd_cleanup_bo_cache() local
95 while (!LIST_IS_EMPTY(&bucket->list)) { in fd_cleanup_bo_cache()
96 bo = LIST_ENTRY(struct fd_bo, bucket->list.next, list); in fd_cleanup_bo_cache()
118 struct fd_bo_bucket *bucket = &dev->cache_bucket[i]; in get_bucket() local
119 if (bucket->size >= size) { in get_bucket()
120 return bucket; in get_bucket()
136 struct fd_bo_bucket *bucket, uint32_t flags) in find_in_bucket() argument
148 while (!LIST_IS_EMPTY(&bucket->list)) { in find_in_bucket()
149 bo = LIST_ENTRY(struct fd_bo, bucket->list.next, list); in find_in_bucket()
174 struct fd_bo_bucket *bucket; in fd_bo_new() local
179 bucket = get_bucket(dev, size); in fd_bo_new()
182 if (bucket) { in fd_bo_new()
183 size = bucket->size; in fd_bo_new()
184 bo = find_in_bucket(dev, bucket, flags); in fd_bo_new()
296 struct fd_bo_bucket *bucket = get_bucket(dev, bo->size); in fd_bo_del() local
299 if (bucket) { in fd_bo_del()
305 list_addtail(&bo->list, &bucket->list); in fd_bo_del()