Lines Matching defs:cache
1556 anv_bo_cache_init(struct anv_bo_cache *cache, struct anv_device *device)
1558 util_sparse_array_init(&cache->bo_map, sizeof(struct anv_bo), 1024);
1560 if (pthread_mutex_init(&cache->mutex, NULL)) {
1561 util_sparse_array_finish(&cache->bo_map);
1570 anv_bo_cache_finish(struct anv_bo_cache *cache)
1572 util_sparse_array_finish(&cache->bo_map);
1573 pthread_mutex_destroy(&cache->mutex);
1849 struct anv_bo_cache *cache = &device->bo_cache;
1858 pthread_mutex_lock(&cache->mutex);
1868 pthread_mutex_unlock(&cache->mutex);
1875 pthread_mutex_unlock(&cache->mutex);
1882 pthread_mutex_unlock(&cache->mutex);
1909 pthread_mutex_unlock(&cache->mutex);
1919 pthread_mutex_unlock(&cache->mutex);
1939 struct anv_bo_cache *cache = &device->bo_cache;
1944 pthread_mutex_lock(&cache->mutex);
1948 pthread_mutex_unlock(&cache->mutex);
1973 pthread_mutex_unlock(&cache->mutex);
1988 pthread_mutex_unlock(&cache->mutex);
1995 pthread_mutex_unlock(&cache->mutex);
2002 pthread_mutex_unlock(&cache->mutex);
2015 pthread_mutex_unlock(&cache->mutex);
2037 pthread_mutex_unlock(&cache->mutex);
2047 pthread_mutex_unlock(&cache->mutex);
2128 struct anv_bo_cache *cache = &device->bo_cache;
2138 pthread_mutex_lock(&cache->mutex);
2147 pthread_mutex_unlock(&cache->mutex);
2175 * the BO cache is to ensure that we correctly handle races with creating
2179 pthread_mutex_unlock(&cache->mutex);