Lines Matching defs:size
36 add_bucket(struct fd_bo_cache *cache, int size)
43 cache->cache_bucket[i].size = size;
49 * fill in for a bit smoother size curve..
54 unsigned long size, cache_max_size = 64 * 1024 * 1024;
70 for (size = 4 * 4096; size <= cache_max_size; size *= 2) {
71 add_bucket(cache, size);
73 add_bucket(cache, size + size * 1 / 4);
74 add_bucket(cache, size + size * 2 / 4);
75 add_bucket(cache, size + size * 3 / 4);
109 static struct fd_bo_bucket * get_bucket(struct fd_bo_cache *cache, uint32_t size)
114 * way to the correct bucket size rather than looping..
118 if (bucket->size >= size) {
160 /* NOTE: size is potentially rounded up to bucket size: */
162 fd_bo_cache_alloc(struct fd_bo_cache *cache, uint32_t *size, uint32_t flags)
167 *size = ALIGN(*size, 4096);
168 bucket = get_bucket(cache, *size);
173 *size = bucket->size;
196 struct fd_bo_bucket *bucket = get_bucket(cache, bo->size);