| /third_party/mesa3d/src/gallium/auxiliary/util/ |
| D | u_cache.c | 30 * Improved cache implementation. 74 /** Max entries in the cache */ 80 /** Number of entries in the cache */ 89 ensure_sanity(const struct util_cache *cache); 94 * Create a new cache with 'size' entries. Also provide functions for 103 struct util_cache *cache; in util_cache_create() local 105 cache = CALLOC_STRUCT(util_cache); in util_cache_create() 106 if (!cache) in util_cache_create() 109 cache->hash = hash; in util_cache_create() 110 cache->compare = compare; in util_cache_create() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/tests/SystemUnitTests/ |
| D | LRUCacheTests.cpp | 26 template<typename Cache> 27 void checkRange(const Cache &cache, std::vector<std::pair<typename Cache::Key, typename Cache::Data… in checkRange() argument 30 for(auto it : cache) in checkRange() 46 LRUCache<std::string, std::string> cache(8); in TEST() local 47 ASSERT_EQ(cache.lookup(""), ""); in TEST() 48 ASSERT_EQ(cache.lookup("123"), ""); in TEST() 50 for(auto ignored : cache) in TEST() 57 FAIL() << "Should not loop on empty cache"; in TEST() 63 LRUCache<std::string, std::string> cache(4); in TEST() local 65 cache.add("1", "one"); in TEST() [all …]
|
| /third_party/ntfs-3g/libntfs-3g/ |
| D | cache.c | 2 * cache.c : deal with LRU caches 35 #include "cache.h" 48 * in the cache. Another function may be provided for invalidating 63 static void inserthashindex(struct CACHE_HEADER *cache, in inserthashindex() argument 70 if (cache->dohash) { in inserthashindex() 71 h = cache->dohash(current); in inserthashindex() 72 if ((h >= 0) && (h < cache->max_hash)) { in inserthashindex() 74 link = cache->free_hash; in inserthashindex() 76 cache->free_hash = link->next; in inserthashindex() 77 first = cache->first_hash[h]; in inserthashindex() [all …]
|
| /third_party/mesa3d/src/broadcom/vulkan/ |
| D | v3dv_pipeline_cache.c | 55 cache_dump_stats(struct v3dv_pipeline_cache *cache) in cache_dump_stats() argument 57 fprintf(stderr, " NIR cache entries: %d\n", cache->nir_stats.count); in cache_dump_stats() 58 fprintf(stderr, " NIR cache miss count: %d\n", cache->nir_stats.miss); in cache_dump_stats() 59 fprintf(stderr, " NIR cache hit count: %d\n", cache->nir_stats.hit); in cache_dump_stats() 61 fprintf(stderr, " cache entries: %d\n", cache->stats.count); in cache_dump_stats() 62 fprintf(stderr, " cache miss count: %d\n", cache->stats.miss); in cache_dump_stats() 63 fprintf(stderr, " cache hit count: %d\n", cache->stats.hit); in cache_dump_stats() 65 fprintf(stderr, " on-disk cache hit count: %d\n", cache->stats.on_disk_hit); in cache_dump_stats() 69 pipeline_cache_lock(struct v3dv_pipeline_cache *cache) in pipeline_cache_lock() argument 71 if (!cache->externally_synchronized) in pipeline_cache_lock() [all …]
|
| /third_party/mesa3d/src/virtio/vulkan/ |
| D | vn_renderer_internal.c | 12 vn_renderer_shmem_cache_init(struct vn_renderer_shmem_cache *cache, in vn_renderer_shmem_cache_init() argument 16 /* cache->bucket_mask is 32-bit and u_bit_scan is used */ in vn_renderer_shmem_cache_init() 17 static_assert(ARRAY_SIZE(cache->buckets) <= 32, ""); in vn_renderer_shmem_cache_init() 19 cache->renderer = renderer; in vn_renderer_shmem_cache_init() 20 cache->destroy_func = destroy_func; in vn_renderer_shmem_cache_init() 22 simple_mtx_init(&cache->mutex, mtx_plain); in vn_renderer_shmem_cache_init() 24 for (uint32_t i = 0; i < ARRAY_SIZE(cache->buckets); i++) { in vn_renderer_shmem_cache_init() 25 struct vn_renderer_shmem_bucket *bucket = &cache->buckets[i]; in vn_renderer_shmem_cache_init() 29 cache->initialized = true; in vn_renderer_shmem_cache_init() 33 vn_renderer_shmem_cache_fini(struct vn_renderer_shmem_cache *cache) in vn_renderer_shmem_cache_fini() argument [all …]
|
| /third_party/node/deps/npm/node_modules/cacache/locales/ |
| D | en.js | 16 x.ls = cache => ls(cache) argument 17 x.ls.stream = cache => ls.stream(cache) argument 19 x.get = (cache, key, opts) => get(cache, key, opts) argument 20 x.get.byDigest = (cache, hash, opts) => get.byDigest(cache, hash, opts) argument 21 x.get.sync = (cache, key, opts) => get.sync(cache, key, opts) argument 22 x.get.sync.byDigest = (cache, key, opts) => get.sync.byDigest(cache, key, opts) argument 23 x.get.stream = (cache, key, opts) => get.stream(cache, key, opts) argument 24 x.get.stream.byDigest = (cache, hash, opts) => get.stream.byDigest(cache, hash, opts) argument 25 x.get.copy = (cache, key, dest, opts) => get.copy(cache, key, dest, opts) argument 26 x.get.copy.byDigest = (cache, hash, dest, opts) => get.copy.byDigest(cache, hash, dest, opts) argument [all …]
|
| D | es.js | 16 x.ls = cache => ls(cache) argument 17 x.ls.flujo = cache => ls.stream(cache) argument 19 x.saca = (cache, clave, ops) => get(cache, clave, ops) argument 20 x.saca.porHacheo = (cache, hacheo, ops) => get.byDigest(cache, hacheo, ops) argument 21 x.saca.sinc = (cache, clave, ops) => get.sync(cache, clave, ops) argument 22 x.saca.sinc.porHacheo = (cache, hacheo, ops) => get.sync.byDigest(cache, hacheo, ops) argument 23 x.saca.flujo = (cache, clave, ops) => get.stream(cache, clave, ops) argument 24 x.saca.flujo.porHacheo = (cache, hacheo, ops) => get.stream.byDigest(cache, hacheo, ops) argument 25 x.sava.copia = (cache, clave, destino, opts) => get.copy(cache, clave, destino, opts) argument 26 x.sava.copia.porHacheo = (cache, hacheo, destino, opts) => get.copy.byDigest(cache, hacheo, destino… argument [all …]
|
| /third_party/flutter/skia/third_party/externals/freetype/src/cache/ |
| D | ftccache.c | 5 * The FreeType internal cache interface (body). 28 #define FT_COMPONENT cache 42 /***** CACHE NODE DEFINITIONS *****/ 87 /* get a top bucket for specified hash from cache, 88 * body for FTC_NODE_TOP_FOR_HASH( cache, hash ) 91 ftc_get_top_node_for_hash( FTC_Cache cache, in ftc_get_top_node_for_hash() argument 98 idx = hash & cache->mask; in ftc_get_top_node_for_hash() 99 if ( idx < cache->p ) in ftc_get_top_node_for_hash() 100 idx = hash & ( 2 * cache->mask + 1 ); in ftc_get_top_node_for_hash() 101 pnode = cache->buckets + idx; in ftc_get_top_node_for_hash() [all …]
|
| /third_party/skia/third_party/externals/freetype/src/cache/ |
| D | ftccache.c | 5 * The FreeType internal cache interface (body). 27 #define FT_COMPONENT cache 41 /***** CACHE NODE DEFINITIONS *****/ 86 /* get a top bucket for specified hash from cache, 87 * body for FTC_NODE_TOP_FOR_HASH( cache, hash ) 90 ftc_get_top_node_for_hash( FTC_Cache cache, in ftc_get_top_node_for_hash() argument 96 idx = hash & cache->mask; in ftc_get_top_node_for_hash() 97 if ( idx < cache->p ) in ftc_get_top_node_for_hash() 98 idx = hash & ( 2 * cache->mask + 1 ); in ftc_get_top_node_for_hash() 100 return cache->buckets + idx; in ftc_get_top_node_for_hash() [all …]
|
| /third_party/freetype/src/cache/ |
| D | ftccache.c | 5 * The FreeType internal cache interface (body). 27 #define FT_COMPONENT cache 41 /***** CACHE NODE DEFINITIONS *****/ 86 /* get a top bucket for specified hash from cache, 87 * body for FTC_NODE_TOP_FOR_HASH( cache, hash ) 90 ftc_get_top_node_for_hash( FTC_Cache cache, in ftc_get_top_node_for_hash() argument 96 idx = hash & cache->mask; in ftc_get_top_node_for_hash() 97 if ( idx < cache->p ) in ftc_get_top_node_for_hash() 98 idx = hash & ( 2 * cache->mask + 1 ); in ftc_get_top_node_for_hash() 100 return cache->buckets + idx; in ftc_get_top_node_for_hash() [all …]
|
| /third_party/alsa-utils/axfer/ |
| D | frame-cache.c | 3 // frame-cache.c - maintainer of cache for data frame. 9 #include "frame-cache.h" 11 static void align_frames_in_i(struct frame_cache *cache, in align_frames_in_i() argument 14 char *buf = cache->buf; in align_frames_in_i() 18 cache->remained_count -= consumed_count; in align_frames_in_i() 20 offset = cache->bytes_per_sample * cache->samples_per_frame * in align_frames_in_i() 22 size = cache->bytes_per_sample * cache->samples_per_frame * in align_frames_in_i() 23 cache->remained_count; in align_frames_in_i() 26 cache->buf_ptr = buf + size; in align_frames_in_i() 29 static void align_frames_in_n(struct frame_cache *cache, in align_frames_in_n() argument [all …]
|
| /third_party/mesa3d/src/amd/vulkan/ |
| D | radv_pipeline_cache.c | 48 radv_pipeline_cache_lock(struct radv_pipeline_cache *cache) in radv_pipeline_cache_lock() argument 50 if (cache->flags & VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT) in radv_pipeline_cache_lock() 53 mtx_lock(&cache->mutex); in radv_pipeline_cache_lock() 57 radv_pipeline_cache_unlock(struct radv_pipeline_cache *cache) in radv_pipeline_cache_unlock() argument 59 if (cache->flags & VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT) in radv_pipeline_cache_unlock() 62 mtx_unlock(&cache->mutex); in radv_pipeline_cache_unlock() 76 radv_pipeline_cache_init(struct radv_pipeline_cache *cache, struct radv_device *device) in radv_pipeline_cache_init() argument 78 vk_object_base_init(&device->vk, &cache->base, VK_OBJECT_TYPE_PIPELINE_CACHE); in radv_pipeline_cache_init() 80 cache->device = device; in radv_pipeline_cache_init() 81 mtx_init(&cache->mutex, mtx_plain); in radv_pipeline_cache_init() [all …]
|
| /third_party/mesa3d/src/util/ |
| D | disk_cache.c | 51 /* The cache version should be bumped whenever a change is made to the 52 * structure of cache entries or the index. This will give any 3rd party 53 * applications reading the cache entries a chance to adjust to the changes. 55 * - The cache version is checked internally when reading a cache entry. If we 56 * ever have a mismatch we are in big trouble as this means we had a cache 60 * - There is no strict requirement that cache versions be backwards 76 struct disk_cache *cache = NULL; in disk_cache_create() local 91 cache = rzalloc(NULL, struct disk_cache); in disk_cache_create() 92 if (cache == NULL) in disk_cache_create() 96 cache->path_init_failed = true; in disk_cache_create() [all …]
|
| /third_party/icu/icu4c/source/test/intltest/ |
| D | unifiedcachetest.cpp | 98 const UnifiedCache *cache = UnifiedCache::getInstance(status); in TestEvictionUnderStress() local 99 int64_t evictedCountBefore = cache->autoEvictedCount(); in TestEvictionUnderStress() 103 int64_t evictedCountAfter = cache->autoEvictedCount(); in TestEvictionUnderStress() 105 dataerrln("%s:%d Items should have been evicted from cache", in TestEvictionUnderStress() 116 // cache API incorrectly by creating their own cache instances. in TestEvictionPolicy() 121 // their own cache! in TestEvictionPolicy() 122 UnifiedCache cache(status); in TestEvictionPolicy() local 126 cache.setEvictionPolicy(0, 100, status); in TestEvictionPolicy() 137 cache.get( in TestEvictionPolicy() 139 &cache, in TestEvictionPolicy() [all …]
|
| /third_party/node/deps/npm/man/man1/ |
| D | npm-cache.1 | 1 .TH "NPM\-CACHE" "1" "April 2022" "" "" 3 \fBnpm-cache\fR \- Manipulates packages cache 8 npm cache add <tarball file> 9 npm cache add <folder> 10 npm cache add <tarball url> 11 npm cache add <name>@<version> 13 npm cache clean [<path>] 14 aliases: npm cache clear, npm cache rm 16 npm cache verify 21 Used to add, list, or clean the npm cache folder\. [all …]
|
| /third_party/mesa3d/src/mesa/program/ |
| D | prog_cache.c | 84 rehash(struct gl_program_cache *cache) in rehash() argument 90 cache->last = NULL; in rehash() 92 size = cache->size * 3; in rehash() 96 for (i = 0; i < cache->size; i++) in rehash() 97 for (c = cache->items[i]; c; c = next) { in rehash() 103 free(cache->items); in rehash() 104 cache->items = items; in rehash() 105 cache->size = size; in rehash() 110 clear_cache(struct gl_context *ctx, struct gl_program_cache *cache, in clear_cache() argument 116 cache->last = NULL; in clear_cache() [all …]
|
| /third_party/libwebsockets/lib/misc/cache-ttl/ |
| D | heap.c | 26 #include "private-lib-misc-cache-ttl.h" 33 update_sul(lws_cache_ttl_lru_t_heap_t *cache); 54 _lws_cache_heap_item_destroy(lws_cache_ttl_lru_t_heap_t *cache, in _lws_cache_heap_item_destroy() argument 57 lwsl_cache("%s: %s (%s)\n", __func__, cache->cache.info.name, in _lws_cache_heap_item_destroy() 63 cache->cache.current_footprint -= item->size; in _lws_cache_heap_item_destroy() 65 update_sul(cache); in _lws_cache_heap_item_destroy() 67 if (cache->cache.info.cb) in _lws_cache_heap_item_destroy() 68 cache->cache.info.cb((void *)((uint8_t *)&item[1]), item->size); in _lws_cache_heap_item_destroy() 74 lws_cache_heap_item_destroy(lws_cache_ttl_lru_t_heap_t *cache, in lws_cache_heap_item_destroy() argument 77 struct lws_cache_ttl_lru *backing = &cache->cache; in lws_cache_heap_item_destroy() [all …]
|
| /third_party/libwebsockets/include/libwebsockets/ |
| D | lws-cache-ttl.h | 25 /** \defgroup lws_cache_ttl Cache supporting expiry 26 * ##Cache supporting expiry 29 * that have a "destroy-by date" and cache limits that will be observed. 32 * L1 / heap cache type, it can have parents and grandparents of other types 33 * which are accessible why writing / looking up and getting from the L1 cache. 34 * The outer "cache" layer may persistently store items to a backing store. 46 * you allocate new objects (to keep the whole cache under the specified limit), 56 * lws_cache_write_through() - add a new cache item object in all layers 58 * \param cache: the existing cache to allocate the object in 59 * \param specific_key: a key string that identifies the item in the cache [all …]
|
| D | lws-diskcache.h | 25 /*! \defgroup diskcache LWS disk cache 26 * ## Disk cache API 28 * Lws provides helper apis useful if you need a disk cache containing hashed 32 * The API `lws_diskcache_prepare()` deals with creating the cache dir and 34 * hash of the cache file. 37 * an opaque struct that represents the disk cache. 40 * cache dir monitoring and LRU autodelete in the background lazily. It can 42 * stateful way that stats one or more file in the cache per call, and keeps 47 * The cache size monitoring is extremely efficient in time and memory even when 48 * the cache directory becomes huge. [all …]
|
| /third_party/node/deps/npm/docs/content/cli-commands/ |
| D | npm-cache.md | 3 title: npm-cache 4 description: Manipulates packages cache 7 # npm-cache(1) 9 ## Manipulates packages cache 14 npm cache add <tarball file> 15 npm cache add <folder> 16 npm cache add <tarball url> 17 npm cache add <name>@<version> 19 npm cache clean [<path>] 20 aliases: npm cache clear, npm cache rm [all …]
|
| /third_party/mesa3d/src/util/tests/ |
| D | cache_test.cpp | 24 /* A collection of unit tests for cache.c */ 96 does_cache_contain(struct disk_cache *cache, const cache_key key) in does_cache_contain() argument 100 result = disk_cache_get(cache, key, NULL); in does_cache_contain() 111 cache_exists(struct disk_cache *cache) in cache_exists() argument 116 if (!cache) in cache_exists() 119 disk_cache_compute_key(cache, data, sizeof(data), key); in cache_exists() 120 disk_cache_put(cache, key, data, sizeof(data), NULL); in cache_exists() 121 disk_cache_wait_for_idle(cache); in cache_exists() 122 void *result = disk_cache_get(cache, key, NULL); in cache_exists() 128 #define CACHE_TEST_TMP "./cache-test-tmp" [all …]
|
| /third_party/node/deps/npm/lib/ |
| D | cache.js | 19 cache.usage = 'npm cache add <tarball file>' + 20 '\nnpm cache add <folder>' + 21 '\nnpm cache add <tarball url>' + 22 '\nnpm cache add <git url>' + 23 '\nnpm cache add <name>@<version>' + 24 '\nnpm cache clean' + 25 '\nnpm cache verify' 27 cache.completion = function (opts, cb) { 41 exports = module.exports = cache 42 function cache (args, cb) { function [all …]
|
| /third_party/mesa3d/src/vulkan/runtime/ |
| D | vk_pipeline_cache.c | 144 vk_pipeline_cache_lock(struct vk_pipeline_cache *cache) in vk_pipeline_cache_lock() argument 147 if (!(cache->flags & VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT)) in vk_pipeline_cache_lock() 148 simple_mtx_lock(&cache->lock); in vk_pipeline_cache_lock() 152 vk_pipeline_cache_unlock(struct vk_pipeline_cache *cache) in vk_pipeline_cache_unlock() argument 154 if (!(cache->flags & VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT)) in vk_pipeline_cache_unlock() 155 simple_mtx_unlock(&cache->lock); in vk_pipeline_cache_unlock() 159 vk_pipeline_cache_remove_object(struct vk_pipeline_cache *cache, in vk_pipeline_cache_remove_object() argument 163 vk_pipeline_cache_lock(cache); in vk_pipeline_cache_remove_object() 165 _mesa_set_search_pre_hashed(cache->object_cache, hash, object); in vk_pipeline_cache_remove_object() 167 /* Drop the reference owned by the cache */ in vk_pipeline_cache_remove_object() [all …]
|
| /third_party/libcoap/include/coap3/ |
| D | coap_cache.h | 13 * @brief Provides a simple cache request storage for CoAP requests 22 * @defgroup cache Cache Support 28 * Callback to free off the app data when the cache-entry is 46 * Calculates a cache-key for the given CoAP PDU. See 48 * for an explanation of CoAP cache keys. 50 * Specific CoAP options can be removed from the cache-key. Examples of 57 * NOTE: The returned cache-key needs to be freed off by the caller by 60 * @param session The session to add into cache-key if @p session_based 62 * @param pdu The CoAP PDU for which a cache-key is to be 65 * cache-key, else COAP_CACHE_NOT_SESSION_BASED. [all …]
|
| /third_party/ejdb/src/bindings/ejdb2_dart/ |
| D | .packages | 2 _fe_analyzer_shared:file:///home/adam/.pub-cache/hosted/pub.dartlang.org/_fe_analyzer_shared-7.0.0/… 3 analyzer:file:///home/adam/.pub-cache/hosted/pub.dartlang.org/analyzer-0.39.17/lib/ 4 args:file:///home/adam/.pub-cache/hosted/pub.dartlang.org/args-1.6.0/lib/ 5 async:file:///home/adam/.pub-cache/hosted/pub.dartlang.org/async-2.5.0-nullsafety.3/lib/ 6 boolean_selector:file:///home/adam/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0-nullsa… 7 charcode:file:///home/adam/.pub-cache/hosted/pub.dartlang.org/charcode-1.2.0-nullsafety.3/lib/ 8 cli_util:file:///home/adam/.pub-cache/hosted/pub.dartlang.org/cli_util-0.2.0/lib/ 9 collection:file:///home/adam/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0-nullsafety.5/lib/ 10 convert:file:///home/adam/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1/lib/ 11 coverage:file:///home/adam/.pub-cache/hosted/pub.dartlang.org/coverage-0.14.0/lib/ [all …]
|