Home
last modified time | relevance | path

Searched +full:- +full:- +full:cache (Results 1 – 25 of 1268) sorted by relevance

12345678910>>...51

/external/libnl/lib/
Dcache.c1 /* SPDX-License-Identifier: LGPL-2.1-only */
3 * Copyright (c) 2003-2012 Thomas Graf <tgraf@suug.ch>
8 * @defgroup cache Cache
11 * Cache Management | | Type Specific Cache Operations
13 * | | +----------------+ +------------+
15 * | | +----------------+ +------------+
16 * +- - - - -^- - - - - - - -^- -|- - - -
18 * 1) --------- co_request_update ------+ | |
20 * 2) destroy old cache +----------- pp_cb ---------|---+
22 * 3) ---------- nl_recvmsgs ----------+ +- cb_valid -+
[all …]
Dcache_mngt.c1 /* SPDX-License-Identifier: LGPL-2.1-only */
3 * Copyright (c) 2003-2012 Thomas Graf <tgraf@suug.ch>
11 * - @core_doc{core_cache, Caching System}
16 * ------
18 * #include <netlink/cache.h>
22 #include "nl-default.h"
25 #include <netlink/cache.h>
28 #include "nl-priv-dynamic-core/nl-core.h"
29 #include "nl-priv-dynamic-core/object-api.h"
30 #include "nl-priv-dynamic-core/cache-api.h"
[all …]
/external/XNNPACK/src/
Dcache.c3 // This source code is licensed under the BSD-style license found in the
6 #include "xnnpack/cache.h"
50 for (; len >= sizeof(uint32_t); len -= sizeof(uint32_t)) { in murmur_hash3()
85 // This function is only used by an assert, so do not include it in non-debug
87 static inline size_t cache_size(struct xnn_cache* cache) { in cache_size() argument
88 switch (cache->type) { in cache_size()
90 return cache->code.size; in cache_size()
92 return cache->weights.size; in cache_size()
100 static inline void* cache_start(struct xnn_cache* cache) { in cache_start() argument
101 switch (cache->type) { in cache_start()
[all …]
/external/squashfs-tools/squashfs-tools/
Dcaches-queues-lists.c20 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 * caches-queues-lists.c
31 #include "caches-queues-lists.h"
50 queue->data = malloc(sizeof(void *) * (size + 1)); in queue_init()
51 if(queue->data == NULL) in queue_init()
54 queue->size = size + 1; in queue_init()
55 queue->readp = queue->writep = 0; in queue_init()
56 pthread_mutex_init(&queue->mutex, NULL); in queue_init()
57 pthread_cond_init(&queue->empty, NULL); in queue_init()
58 pthread_cond_init(&queue->full, NULL); in queue_init()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_cache.c20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
30 * Improved cache implementation.
74 /** Max entries in the cache */
80 /** Number of entries in the cache */
83 /** Head of list, sorted from Least-recently used to Most-recently used */
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()
[all …]
/external/libchrome/base/containers/
Dmru_cache_unittest.cc2 // Use of this source code is governed by a BSD-style license that can be
34 cached_item_live_count--; in ~CachedItem()
43 typedef base::MRUCache<int, CachedItem> Cache; in TEST() typedef
44 Cache cache(Cache::NO_AUTO_EVICT); in TEST() local
49 EXPECT_TRUE(cache.Get(0) == cache.end()); in TEST()
50 EXPECT_TRUE(cache.Peek(0) == cache.end()); in TEST()
55 Cache::iterator inserted_item = cache.Put(kItem1Key, item1); in TEST()
56 EXPECT_EQ(1U, cache.size()); in TEST()
60 Cache::iterator found = cache.Get(kItem1Key); in TEST()
61 EXPECT_TRUE(inserted_item == cache.begin()); in TEST()
[all …]
/external/mesa3d/src/util/
Ddisk_cache.c45 #include "util/mesa-sha1.h"
53 /* The cache version should be bumped whenever a change is made to the
54 * structure of cache entries or the index. This will give any 3rd party
55 * applications reading the cache entries a chance to adjust to the changes.
57 * - The cache version is checked internally when reading a cache entry. If we
58 * ever have a mismatch we are in big trouble as this means we had a cache
62 * - There is no strict requirement that cache versions be backwards
74 disk_cache_init_queue(struct disk_cache *cache) in disk_cache_init_queue() argument
76 if (util_queue_is_initialized(&cache->cache_queue)) in disk_cache_init_queue()
82 * avoiding excessive memory use due to a backlog of cache entrys building in disk_cache_init_queue()
[all …]
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_pipeline_cache.c55 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 …]
/external/freetype/src/cache/
Dftccache.c5 * The FreeType internal cache interface (body).
7 * Copyright (C) 2000-2023 by
27 #define FT_COMPONENT cache
32 #define FTC_HASH_SUB_LOAD ( FTC_HASH_MAX_LOAD - FTC_HASH_MIN_LOAD )
41 /***** CACHE NODE DEFINITIONS *****/
51 void *nl = &manager->nodes_list; in ftc_node_mru_link()
56 manager->num_nodes++; in ftc_node_mru_link()
65 void *nl = &manager->nodes_list; in ftc_node_mru_unlink()
70 manager->num_nodes--; in ftc_node_mru_unlink()
81 FTC_MruNode_Up( (FTC_MruNode*)&manager->nodes_list, in ftc_node_mru_up()
[all …]
/external/mesa3d/src/virtio/vulkan/
Dvn_renderer_internal.c3 * SPDX-License-Identifier: MIT
12 vn_renderer_shmem_cache_dump(struct vn_renderer_shmem_cache *cache) in vn_renderer_shmem_cache_dump() argument
14 simple_mtx_lock(&cache->mutex); in vn_renderer_shmem_cache_dump()
16 vn_log(NULL, "dumping renderer shmem cache"); in vn_renderer_shmem_cache_dump()
17 vn_log(NULL, " cache skip: %d", cache->debug.cache_skip_count); in vn_renderer_shmem_cache_dump()
18 vn_log(NULL, " cache hit: %d", cache->debug.cache_hit_count); in vn_renderer_shmem_cache_dump()
19 vn_log(NULL, " cache miss: %d", cache->debug.cache_miss_count); in vn_renderer_shmem_cache_dump()
21 uint32_t bucket_mask = cache->bucket_mask; in vn_renderer_shmem_cache_dump()
24 const struct vn_renderer_shmem_bucket *bucket = &cache->buckets[idx]; in vn_renderer_shmem_cache_dump()
26 list_for_each_entry(struct vn_renderer_shmem, shmem, &bucket->shmems, in vn_renderer_shmem_cache_dump()
[all …]
/external/squashfs-tools/kernel/fs/squashfs/
Dcache.c2 * Squashfs - a compressed read only filesystem for Linux
19 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 * cache.c
28 * This file implements a generic cache implementation used for both caches,
29 * plus functions layered ontop of the generic cache implementation to
32 * To avoid out of memory and fragmentation isssues with vmalloc the cache
35 * It should be noted that the cache is not used for file datablocks, these
36 * are decompressed and cached in the page-cache in the normal way. The
37 * cache is only used to temporarily cache fragment and metadata blocks
42 * have been packed with it, these because of locality-of-reference may be read
[all …]
/external/rust/crates/lru-cache/src/
Dlib.rs2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
11 //! A cache that holds a limited number of key-value pairs. When the
12 //! capacity of the cache is exceeded, the least-recently-used
13 //! (where "used" means a look-up or putting the pair into the cache)
21 //! let mut cache = LruCache::new(2);
23 //! cache.insert(1, 10);
[all …]
/external/cronet/net/http/
Dhttp_cache_unittest.cc2 // Use of this source code is governed by a BSD-style license that can be
78 #include "third_party/abseil-cpp/absl/types/optional.h"
154 explicit DeleteCacheCompletionCallback(std::unique_ptr<MockHttpCache> cache) in DeleteCacheCompletionCallback() argument
155 : cache_(std::move(cache)) {} in DeleteCacheCompletionCallback()
175 //-----------------------------------------------------------------------------
199 void RunTransactionTestBase(HttpCache* cache, in RunTransactionTestBase() argument
210 // write to the cache in RunTransactionTestBase()
213 int rv = cache->CreateTransaction(DEFAULT_PRIORITY, &trans); in RunTransactionTestBase()
217 rv = trans->Start(&request, callback.callback(), net_log); in RunTransactionTestBase()
225 const HttpResponseInfo* response = trans->GetResponseInfo(); in RunTransactionTestBase()
[all …]
/external/deqp-deps/amber/third_party/
DCMakeLists.txt7 # http://www.apache.org/licenses/LICENSE-2.0
23 set(SPIRV-Headers_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/spirv-headers CACHE STRING "")
24 set(SPIRV_SKIP_TESTS ON CACHE BOOL ON)
25 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/spirv-tools EXCLUDE_FROM_ALL)
29 set(ENABLE_HLSL ON CACHE BOOL ON)
30 set(BUILD_TESTING FALSE CACHE BOOL ON)
31 set(ENABLE_GLSLANG_BINARIES OFF CACHE BOOL ON)
32 set(ENABLE_SPVREMAPPER OFF CACHE BOOL ON)
34 set(LLVM_USE_CRT_DEBUG MTd CACHE STRING "")
35 set(LLVM_USE_CRT_RELEASE MT CACHE STRING "")
[all …]
/external/cronet/base/containers/
Dlru_cache_unittest.cc2 // Use of this source code is governed by a BSD-style license that can be
17 #include "base/trace_event/memory_usage_estimator.h" // no-presubmit-check
37 ~CachedItem() { cached_item_live_count--; } in ~CachedItem()
84 typedef typename TypeParam::template Type<int, CachedItem> Cache; in TYPED_TEST() typedef
85 Cache cache(Cache::NO_AUTO_EVICT); in TYPED_TEST() local
90 EXPECT_TRUE(cache.Get(0) == cache.end()); in TYPED_TEST()
91 EXPECT_TRUE(cache.Peek(0) == cache.end()); in TYPED_TEST()
96 auto inserted_item = cache.Put(kItem1Key, item1); in TYPED_TEST()
97 EXPECT_EQ(1U, cache.size()); in TYPED_TEST()
101 auto found = cache.Get(kItem1Key); in TYPED_TEST()
[all …]
/external/cronet/third_party/libc++/src/cmake/caches/
DArmv7M-picolibc.cmake1 set(CMAKE_ASM_COMPILER_TARGET "armv7m-none-eabi" CACHE STRING "")
2 set(CMAKE_CXX_COMPILER_TARGET "armv7m-none-eabi" CACHE STRING "")
3 set(CMAKE_CXX_FLAGS "-mfloat-abi=soft" CACHE STRING "")
4 set(CMAKE_C_COMPILER_TARGET "armv7m-none-eabi" CACHE STRING "")
5 set(CMAKE_C_FLAGS "-mfloat-abi=soft" CACHE STRING "")
6 set(CMAKE_SYSTEM_NAME Generic CACHE STRING "")
7 set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY CACHE STRING "")
8 set(COMPILER_RT_BAREMETAL_BUILD ON CACHE BOOL "")
9 set(COMPILER_RT_BUILD_LIBFUZZER OFF CACHE BOOL "")
10 set(COMPILER_RT_BUILD_PROFILE OFF CACHE BOOL "")
[all …]
/external/XNNPACK/test/
Dcode-cache.cc3 // This source code is licensed under the BSD-style license found in the
10 #include <xnnpack/cache.h>
14 static void* cache_end(const xnn_code_cache* cache) { in cache_end() argument
15 …urn reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(cache->cache.code.start) + cache->cache.c… in cache_end()
18 static void write_code(xnn_code_cache* cache, const std::string& str) { in write_code() argument
19 ASSERT_GE(cache->cache.code.capacity - cache->cache.code.size, str.length()); in write_code()
20 std::memcpy(cache_end(cache), str.data(), str.length()); in write_code()
21 cache->cache.code.size += str.length(); in write_code()
27 xnn_code_cache cache; in TEST() local
28 EXPECT_EQ(xnn_status_success, xnn_init_code_cache(&cache)); in TEST()
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DEmptyCachesTest.java7 * http://www.apache.org/licenses/LICENSE-2.0
15 package com.google.common.cache;
17 import static com.google.common.cache.CacheTesting.checkEmpty;
18 import static com.google.common.cache.TestingCacheLoaders.identityLoader;
25 import com.google.common.cache.CacheBuilderFactory.DurationSpec;
26 import com.google.common.cache.LocalCache.Strength;
46 for (LoadingCache<Object, Object> cache : caches()) { in testEmpty()
47 checkEmpty(cache); in testEmpty()
53 for (LoadingCache<Object, Object> cache : caches()) { in testInvalidate_empty()
54 cache.getUnchecked("a"); in testInvalidate_empty()
[all …]
/external/guava/android/guava-tests/test/com/google/common/cache/
DEmptyCachesTest.java7 * http://www.apache.org/licenses/LICENSE-2.0
15 package com.google.common.cache;
17 import static com.google.common.cache.CacheTesting.checkEmpty;
18 import static com.google.common.cache.TestingCacheLoaders.identityLoader;
25 import com.google.common.cache.CacheBuilderFactory.DurationSpec;
26 import com.google.common.cache.LocalCache.Strength;
46 for (LoadingCache<Object, Object> cache : caches()) { in testEmpty()
47 checkEmpty(cache); in testEmpty()
53 for (LoadingCache<Object, Object> cache : caches()) { in testInvalidate_empty()
54 cache.getUnchecked("a"); in testInvalidate_empty()
[all …]
/external/mesa3d/src/vulkan/runtime/
Dvk_pipeline_cache.c40 #define vk_pipeline_cache_log(cache, ...) \ argument
41 if (cache->base.client_visible) \
42 vk_logw(VK_LOG_OBJS(cache), __VA_ARGS__)
51 blob_write_bytes(blob, data_obj->data, data_obj->data_size); in vk_raw_data_cache_object_serialize()
57 vk_raw_data_cache_object_deserialize(struct vk_pipeline_cache *cache, in vk_raw_data_cache_object_deserialize() argument
62 /* We consume the entire blob_reader. Each call to ops->deserialize() in vk_raw_data_cache_object_deserialize()
67 assert(blob->current < blob->end); in vk_raw_data_cache_object_deserialize()
68 size_t data_size = blob->end - blob->current; in vk_raw_data_cache_object_deserialize()
72 vk_raw_data_cache_object_create(cache->base.device, key_data, key_size, in vk_raw_data_cache_object_deserialize()
75 return data_obj ? &data_obj->base : NULL; in vk_raw_data_cache_object_deserialize()
[all …]
/external/libwebsockets/lib/misc/cache-ttl/
Dheap.c2 * libwebsockets - small server side websockets and web server implementation
4 * Copyright (C) 2010 - 2021 Andy Green <andy@warmcat.com>
25 #include <private-lib-core.h>
26 #include "private-lib-misc-cache-ttl.h"
33 update_sul(lws_cache_ttl_lru_t_heap_t *cache);
45 if (c->expiry > d->expiry) in sort_expiry()
47 if (c->expiry < d->expiry) in sort_expiry()
48 return -1; in sort_expiry()
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()
[all …]
/external/cronet/net/ssl/
Dssl_client_session_cache_unittest.cc2 // Use of this source code is governed by a BSD-style license that can be
36 clock->SetNow(base::Time::FromTimeT(1000000000)); in MakeTestClock()
80 SSLClientSessionCache cache(config); in TEST_F() local
86 EXPECT_EQ(nullptr, cache.Lookup(MakeTestKey("key1")).get()); in TEST_F()
87 EXPECT_EQ(nullptr, cache.Lookup(MakeTestKey("key2")).get()); in TEST_F()
88 EXPECT_EQ(0u, cache.size()); in TEST_F()
90 cache.Insert(MakeTestKey("key1"), bssl::UpRef(session1)); in TEST_F()
91 EXPECT_EQ(session1.get(), cache.Lookup(MakeTestKey("key1")).get()); in TEST_F()
92 EXPECT_EQ(nullptr, cache.Lookup(MakeTestKey("key2")).get()); in TEST_F()
93 EXPECT_EQ(1u, cache.size()); in TEST_F()
[all …]
/external/cpuinfo/test/
Dinit.cc31 const cpuinfo_core* core = processor->core; in TEST()
34 EXPECT_LT(processor->smt_id, core->processor_count); in TEST()
45 EXPECT_TRUE(processor->core); in TEST()
55 const cpuinfo_core* core = processor->core; in TEST()
58 EXPECT_GE(i, core->processor_start); in TEST()
59 EXPECT_LT(i, core->processor_start + core->processor_count); in TEST()
70 EXPECT_TRUE(processor->cluster); in TEST()
80 const cpuinfo_cluster* cluster = processor->cluster; in TEST()
83 EXPECT_GE(i, cluster->processor_start); in TEST()
84 EXPECT_LT(i, cluster->processor_start + cluster->processor_count); in TEST()
[all …]
/external/volley/core/src/test/java/com/android/volley/toolbox/
DDiskBasedCacheTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
35 import com.android.volley.Cache;
67 private Cache cache; field in DiskBasedCacheTest
75 // Initialize empty cache in setup()
76 cache = new DiskBasedCache(temporaryFolder.getRoot(), MAX_SIZE); in setup()
77 cache.initialize(); in setup()
82 cache = null; in teardown()
87 assertThat(cache.get("key"), is(nullValue())); in testEmptyInitialize()
92 Cache.Entry entry = new Cache.Entry(); in testPutGetZeroBytes()
102 cache.put("my-magical-key", entry); in testPutGetZeroBytes()
[all …]
/external/clang/cmake/caches/
DApple-stage2.cmake1 # This file sets up a CMakeCache for Apple-style stage2 bootstrap. It is
4 set(LLVM_TARGETS_TO_BUILD X86 ARM AArch64 CACHE STRING "")
5 set(PACKAGE_VENDOR Apple CACHE STRING "")
6 set(LLVM_INCLUDE_EXAMPLES OFF CACHE BOOL "")
7 set(LLVM_INCLUDE_DOCS OFF CACHE BOOL "")
8 set(LLVM_TOOL_CLANG_TOOLS_EXTRA_BUILD OFF CACHE BOOL "")
9 set(CLANG_TOOL_SCAN_BUILD_BUILD OFF CACHE BOOL "")
10 set(CLANG_TOOL_SCAN_VIEW_BUILD OFF CACHE BOOL "")
11 set(CLANG_LINKS_TO_CREATE clang++ cc c++ CACHE STRING "")
12 set(CMAKE_MACOSX_RPATH ON CACHE BOOL "")
[all …]

12345678910>>...51