Lines Matching defs:cache
42 struct translate_cache *cache = MALLOC_STRUCT(translate_cache);
43 if (!cache) {
47 cso_hash_init(&cache->hash);
48 return cache;
52 static inline void delete_translates(struct translate_cache *cache)
54 struct cso_hash *hash = &cache->hash;
65 void translate_cache_destroy(struct translate_cache *cache)
67 delete_translates(cache);
68 cso_hash_deinit(&cache->hash);
69 FREE(cache);
90 struct translate * translate_cache_find(struct translate_cache *cache,
95 cso_hash_find_data_from_template(&cache->hash,
102 cso_hash_insert(&cache->hash, hash_key, translate);