Lines Matching refs:bo_cache
181 return &dev->bo_cache.buckets[pan_bucket_index(size)]; in pan_bucket()
193 pthread_mutex_lock(&dev->bo_cache.lock); in panfrost_bo_cache_fetch()
226 pthread_mutex_unlock(&dev->bo_cache.lock); in panfrost_bo_cache_fetch()
238 &dev->bo_cache.lru, lru_link) { in panfrost_bo_cache_evict_stale_bos()
267 pthread_mutex_lock(&dev->bo_cache.lock); in panfrost_bo_cache_put()
282 list_addtail(&bo->lru_link, &dev->bo_cache.lru); in panfrost_bo_cache_put()
290 pthread_mutex_unlock(&dev->bo_cache.lock); in panfrost_bo_cache_put()
305 pthread_mutex_lock(&dev->bo_cache.lock); in panfrost_bo_cache_evict_all()
306 for (unsigned i = 0; i < ARRAY_SIZE(dev->bo_cache.buckets); ++i) { in panfrost_bo_cache_evict_all()
307 struct list_head *bucket = &dev->bo_cache.buckets[i]; in panfrost_bo_cache_evict_all()
316 pthread_mutex_unlock(&dev->bo_cache.lock); in panfrost_bo_cache_evict_all()