/hardware/google/gfxstream/guest/mesa/src/util/ |
D | disk_cache.h | 50 typedef uint8_t cache_key[CACHE_KEY_SIZE]; typedef 76 cache_key *keys; /* sha1 list of shaders that make up the cache item */ 184 disk_cache_remove(struct disk_cache *cache, const cache_key key); 196 disk_cache_put(struct disk_cache *cache, const cache_key key, 212 disk_cache_put_nocopy(struct disk_cache *cache, const cache_key key, 230 disk_cache_get(struct disk_cache *cache, const cache_key key, size_t *size); 242 disk_cache_put_key(struct disk_cache *cache, const cache_key key); 255 disk_cache_has_key(struct disk_cache *cache, const cache_key key); 262 cache_key key); 283 disk_cache_put(struct disk_cache *cache, const cache_key key, in disk_cache_put() [all …]
|
D | disk_cache_os.h | 119 cache_key key; 142 disk_cache_load_item_foz(struct disk_cache *cache, const cache_key key, 149 disk_cache_get_cache_filename(struct disk_cache *cache, const cache_key key); 172 disk_cache_db_load_item(struct disk_cache *cache, const cache_key key,
|
D | disk_cache.c | 337 disk_cache_remove(struct disk_cache *cache, const cache_key key) in disk_cache_remove() 353 create_put_job(struct disk_cache *cache, const cache_key key, in create_put_job() 363 memcpy(dc_job->key, key, sizeof(cache_key)); in create_put_job() 378 dc_job->cache_item_metadata.keys = (cache_key *) in create_put_job() 379 malloc(cache_item_metadata->num_keys * sizeof(cache_key)); in create_put_job() 386 sizeof(cache_key) * cache_item_metadata->num_keys); in create_put_job() 421 blob_put_compressed(struct disk_cache *cache, const cache_key key, 464 blob_put_compressed(struct disk_cache *cache, const cache_key key, in blob_put_compressed() 493 blob_get_compressed(struct disk_cache *cache, const cache_key key, in blob_get_compressed() 542 disk_cache_put(struct disk_cache *cache, const cache_key key, in disk_cache_put() [all …]
|
D | disk_cache_os.c | 396 make_cache_file_directory(struct disk_cache *cache, const cache_key key) in make_cache_file_directory() 541 blob_read_bytes(&ci_blob_reader, num_keys * sizeof(cache_key)); in parse_and_validate_cache_item() 637 disk_cache_get_cache_filename(struct disk_cache *cache, const cache_key key) in disk_cache_get_cache_filename() 697 dc_job->cache_item_metadata.num_keys * sizeof(cache_key); in create_cache_item_header_and_blob() 968 disk_cache_load_item_foz(struct disk_cache *cache, const cache_key key, in disk_cache_load_item_foz() 1083 disk_cache_db_load_item(struct disk_cache *cache, const cache_key key, in disk_cache_db_load_item()
|
D | fossilize_db.c | 70 truncate_hash_to_64bits(const uint8_t *cache_key) in truncate_hash_to_64bits() argument 75 hash |= ((uint64_t)cache_key[i]) << shift * 8; in truncate_hash_to_64bits()
|
D | mesa_cache_db.c | 41 cache_key key;
|
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/ |
D | vk_pipeline_cache.c | 361 cache_key cache_key; in vk_pipeline_cache_lookup_object() local 362 disk_cache_compute_key(disk_cache, key_data, key_size, cache_key); in vk_pipeline_cache_lookup_object() 365 uint8_t *data = disk_cache_get(disk_cache, cache_key, &data_size); in vk_pipeline_cache_lookup_object() 434 cache_key cache_key; in vk_pipeline_cache_add_object() local 436 object->key_size, cache_key); in vk_pipeline_cache_add_object() 438 disk_cache_put(disk_cache, cache_key, blob.data, blob.size, NULL); in vk_pipeline_cache_add_object() 456 cache_key cache_key; in vk_pipeline_cache_create_and_insert_object() local 457 disk_cache_compute_key(disk_cache, key_data, key_size, cache_key); in vk_pipeline_cache_create_and_insert_object() 458 disk_cache_put(disk_cache, cache_key, data, data_size, NULL); in vk_pipeline_cache_create_and_insert_object()
|
D | vk_meta.c | 35 struct cache_key { struct 41 static struct cache_key * argument 46 struct cache_key *key = malloc(sizeof(*key) + key_size); in cache_key_create() 47 *key = (struct cache_key) { in cache_key_create() 60 const struct cache_key *key = _key; in cache_key_hash() 70 const struct cache_key *a = _a, *b = _b; in cache_key_equal() 144 struct cache_key key = { in vk_meta_lookup_object() 177 struct cache_key *key = cache_key_create(obj_type, key_data, key_size); in vk_meta_cache_object()
|
/hardware/google/gfxstream/guest/mesa/src/util/tests/ |
D | cache_test.cpp | 97 does_cache_contain(struct disk_cache *cache, const cache_key key) in does_cache_contain() 132 const cache_key key, in poll_disk_cache_get() 549 cache_key small_key[8], small_key2, big_key[2]; in test_put_and_get_between_instances_with_eviction() 567 cache_key two_KB_key = { 'T', 'W', 'O', 'K', 'B' }; in test_put_and_get_between_instances_with_eviction() 1185 cache_key keys[7]; in test_multipart_eviction()
|