Lines Matching defs:key
202 * use pointer size as a key to avoid hard to debug issues.
261 disk_cache_remove(struct disk_cache *cache, const cache_key key)
263 char *filename = disk_cache_get_cache_filename(cache, key);
272 create_put_job(struct disk_cache *cache, const cache_key key,
282 memcpy(dc_job->key, key, sizeof(cache_key));
351 filename = disk_cache_get_cache_filename(dc_job->cache, dc_job->key);
370 disk_cache_put(struct disk_cache *cache, const cache_key key,
375 cache->blob_put_cb(key, CACHE_KEY_SIZE, data, size);
383 create_put_job(cache, key, (void*)data, size, cache_item_metadata, false);
393 disk_cache_put_nocopy(struct disk_cache *cache, const cache_key key,
398 cache->blob_put_cb(key, CACHE_KEY_SIZE, data, size);
409 create_put_job(cache, key, data, size, cache_item_metadata, true);
419 disk_cache_get(struct disk_cache *cache, const cache_key key, size_t *size)
434 cache->blob_get_cb(key, CACHE_KEY_SIZE, blob, max_blob_size);
447 return disk_cache_load_item_foz(cache, key, size);
449 char *filename = disk_cache_get_cache_filename(cache, key);
458 disk_cache_put_key(struct disk_cache *cache, const cache_key key)
460 const uint32_t *key_chunk = (const uint32_t *) key;
465 cache->blob_put_cb(key, CACHE_KEY_SIZE, key_chunk, sizeof(uint32_t));
474 memcpy(entry, key, CACHE_KEY_SIZE);
477 /* This function lets us test whether a given key was previously
485 disk_cache_has_key(struct disk_cache *cache, const cache_key key)
487 const uint32_t *key_chunk = (const uint32_t *) key;
493 return cache->blob_get_cb(key, CACHE_KEY_SIZE, &blob, sizeof(uint32_t));
501 return memcmp(entry, key, CACHE_KEY_SIZE) == 0;
506 cache_key key)
514 _mesa_sha1_final(&ctx, key);