Searched refs:foz_db (Results 1 – 5 of 5) sorted by relevance
/third_party/mesa3d/src/util/ |
D | fossilize_db.c | 111 update_foz_index(struct foz_db *foz_db, FILE *db_idx, unsigned file_idx) in update_foz_index() argument 159 struct foz_db_entry *entry = ralloc(foz_db->mem_ctx, in update_foz_index() 173 _mesa_hash_table_u64_insert(foz_db->index_db, key, entry); in update_foz_index() 199 load_foz_dbs(struct foz_db *foz_db, FILE *db_idx, uint8_t file_idx, in load_foz_dbs() argument 211 int err = lock_file_with_timeout(foz_db->file[file_idx], 100000000); in load_foz_dbs() 238 sizeof(stream_reference_magic_and_version), foz_db->file[file_idx]) != in load_foz_dbs() 247 fflush(foz_db->file[file_idx]); in load_foz_dbs() 251 flock(fileno(foz_db->file[file_idx]), LOCK_UN); in load_foz_dbs() 253 update_foz_index(foz_db, db_idx, file_idx); in load_foz_dbs() 255 foz_db->alive = true; in load_foz_dbs() [all …]
|
D | fossilize_db.h | 75 struct foz_db { struct 86 foz_prepare(struct foz_db *foz_db, char *cache_path); argument 89 foz_destroy(struct foz_db *foz_db); 92 foz_read_entry(struct foz_db *foz_db, const uint8_t *cache_key_160bit, 96 foz_write_entry(struct foz_db *foz_db, const uint8_t *cache_key_160bit,
|
D | disk_cache_os.h | 54 struct foz_db foz_db; member
|
D | disk_cache_os.c | 933 void *cache_item = foz_read_entry(&cache->foz_db, key, &cache_tem_size); in disk_cache_load_item_foz() 953 bool r = foz_write_entry(&dc_job->cache->foz_db, dc_job->key, in disk_cache_write_item_to_disk_foz() 964 return foz_prepare(&cache->foz_db, cache->path); in disk_cache_load_cache_index()
|
D | disk_cache.c | 246 foz_destroy(&cache->foz_db); in disk_cache_destroy()
|