Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 25 of 27) sorted by relevance

12

/subsys/net/lib/dns/
A Ddns_cache.c17 k_mutex_lock(cache->lock, K_FOREVER); in dns_cache_flush()
19 cache->entries[i].in_use = false; in dns_cache_flush()
21 k_mutex_unlock(cache->lock); in dns_cache_flush()
48 dns_cache_clean(cache); in dns_cache_add()
51 if (!cache->entries[i].in_use) { in dns_cache_add()
71 k_mutex_unlock(cache->lock); in dns_cache_add()
92 dns_cache_clean(cache); in dns_cache_remove()
95 if (cache->entries[i].in_use && strcmp(cache->entries[i].query, query) == 0) { in dns_cache_remove()
100 k_mutex_unlock(cache->lock); in dns_cache_remove()
131 dns_cache_clean(cache); in dns_cache_find()
[all …]
A Ddns_cache.h56 int dns_cache_flush(struct dns_cache *cache);
71 int dns_cache_add(struct dns_cache *cache, char const *query, struct dns_addrinfo const *addrinfo,
82 int dns_cache_remove(struct dns_cache *cache, char const *query);
98 int dns_cache_find(struct dns_cache const *cache, const char *query, enum dns_query_type type,
A DKconfig169 bool "DNS resolver cache"
171 This option enables the dns resolver cache. DNS queries
172 will be cached based on TTL and delivered from cache
178 int "Number of cache entries supported by the dns cache"
181 This defines how many entries the DNS cache can hold. If
/subsys/logging/
A Dlog_cache.c26 sys_slist_init(&cache->active); in log_cache_init()
27 sys_slist_init(&cache->idle); in log_cache_init()
41 sys_slist_append(&cache->idle, &entry->node); in log_cache_init()
45 cache->cmp = config->cmp; in log_cache_init()
46 cache->item_size = config->item_size; in log_cache_init()
47 cache->hit = 0; in log_cache_init()
48 cache->miss = 0; in log_cache_init()
62 if (cache->cmp(entry->id, id)) { in log_cache_get()
63 cache->hit++; in log_cache_get()
79 cache->miss++; in log_cache_get()
[all …]
A Dlog_cache.h39 int log_cache_init(struct log_cache *cache, const struct log_cache_config *config);
50 bool log_cache_get(struct log_cache *cache, uintptr_t id, uint8_t **data);
58 void log_cache_put(struct log_cache *cache, uint8_t *data);
68 void log_cache_release(struct log_cache *cache, uint8_t *data);
76 static inline uint32_t log_cache_get_hit(struct log_cache *cache) in log_cache_get_hit() argument
78 return cache->hit; in log_cache_get_hit()
87 static inline uint32_t log_cache_get_miss(struct log_cache *cache) in log_cache_get_miss() argument
89 return cache->miss; in log_cache_get_miss()
A DKconfig.processing137 int "Number of entries in domain name cache"
145 int "Number of entries in source name cache"
/subsys/net/l2/ieee802154/
A Dieee802154_6lo_fragment.c264 if (!(cache[i].size == size && cache[i].tag == tag)) { in clear_reass_cache()
268 if (cache[i].pkt) { in clear_reass_cache()
272 cache[i].pkt = NULL; in clear_reass_cache()
273 cache[i].size = 0U; in clear_reass_cache()
274 cache[i].tag = 0U; in clear_reass_cache()
309 if (cache[i].used) { in set_reass_cache()
313 cache[i].pkt = pkt; in set_reass_cache()
315 cache[i].tag = tag; in set_reass_cache()
320 return &cache[i]; in set_reass_cache()
336 if (cache[i].size == size && cache[i].tag == tag) { in get_reass_cache()
[all …]
A DKconfig89 int "IEEE 802.15.4 Reassembly cache size"
93 cache size.
/subsys/fs/zms/
A DKconfig20 bool "ZMS lookup cache"
22 Enable ZMS cache to reduce the ZMS data lookup time.
23 Each cache entry holds an address of the most recent allocation
24 table entry (ATE) for all ZMS IDs that fall into that cache position.
27 int "ZMS lookup cache size"
32 Number of entries in the ZMS lookup cache.
33 Every additional entry in cache will use 8 bytes of RAM.
55 bool "ZMS Storage lookup cache optimized for settings"
58 Enable usage of lookup cache based on hashes to get, the best ZMS performance,
/subsys/fs/nvs/
A DKconfig17 bool "Non-volatile Storage lookup cache"
19 Enable Non-volatile Storage cache, used to reduce the NVS data lookup
20 time. Each cache entry holds an address of the most recent allocation
21 table entry (ATE) for all NVS IDs that fall into that cache position.
24 int "Non-volatile Storage lookup cache size"
29 Number of entries in Non-volatile Storage lookup cache.
/subsys/fs/
A DKconfig.littlefs46 Each cache buffers a portion of a block in RAM. The littlefs
47 needs a read cache, a program cache, and one additional cache
72 int "Enable flexible file cache sizes for littlefs"
75 littlefs requires a per-file buffer to cache data.
78 different cache sizes for different partitions this preallocation is
80 using a large cache size and a larger number of files using a
81 smaller cache size. In that case application should provide a
98 For the purpose of heap size calculation the size of each cache block
/subsys/settings/src/
A Dsettings_nvs.c77 #define SETTINGS_NVS_CACHE_OVFL(cf) ((cf)->cache_total > ARRAY_SIZE((cf)->cache))
84 cf->cache[cf->cache_next].name_hash = name_hash; in settings_nvs_cache_add()
85 cf->cache[cf->cache_next++].name_id = name_id; in settings_nvs_cache_add()
97 if (cf->cache[i].name_hash != name_hash) { in settings_nvs_cache_match()
101 if (cf->cache[i].name_id <= NVS_NAMECNT_ID) { in settings_nvs_cache_match()
105 rc = nvs_read(&cf->cf_nvs, cf->cache[i].name_id, rdname, len); in settings_nvs_cache_match()
116 return cf->cache[i].name_id; in settings_nvs_cache_match()
/subsys/ipc/ipc_service/lib/
A DKconfig19 Static VRINGs alignment. This should take into account the cache line
20 alignment if the cache is enabled.
A DKconfig.icmsg100 reader and writer. It optionally embeds cache and memory barrier
/subsys/settings/
A DKconfig63 bool "ZMS linked list lookup cache"
65 Enable ZMS lookup cache for linked list, used to reduce the
67 in cache.
70 int "ZMS linked list lookup cache size"
75 Number of entries in Settings ZMS linked list cache.
102 bool "NVS name lookup cache"
104 Enable NVS name lookup cache, used to reduce the Settings name
108 int "NVS name lookup cache size"
113 Number of entries in Settings NVS name cache.
/subsys/bluetooth/mesh/
A Dbeacon.c100 return !memcmp(beacon->cache, params->auth, sizeof(beacon->cache)); in beacon_cache_match()
105 memcpy(beacon->cache, auth, sizeof(beacon->cache)); in cache_add()
110 (void)memset(sub->secure_beacon.cache, 0, sizeof(sub->secure_beacon.cache)); in bt_mesh_beacon_cache_clear()
112 (void)memset(sub->priv_beacon.cache, 0, sizeof(sub->priv_beacon.cache)); in bt_mesh_beacon_cache_clear()
A Dsubnet.h48 uint8_t cache[8]; /* Cached last beacon auth value */ member
A DKconfig432 int "Network message cache size"
439 cache helps prevent unnecessary decryption operations. This also prevents
731 cache size, but has a purpose of preventing replay attacks.
767 any message that passed over network cache if this option is enabled.
770 will update the replay protection cache for messages those cannot be handled
/subsys/usb/host/
A DKconfig26 int "Memory used to cache device descriptors"
30 Memory used to cache device descriptors.
/subsys/net/lib/lwm2m/
A Dlwm2m_shell.c578 struct lwm2m_time_series_elem *cache; in cmd_cache() local
608 cache = k_malloc(sizeof(struct lwm2m_time_series_elem) * elems); in cmd_cache()
609 if (!cache) { in cmd_cache()
614 rc = lwm2m_enable_cache(&obj_path, cache, elems); in cmd_cache()
618 obj_path.res_inst_id, cache, elems, rc); in cmd_cache()
619 k_free(cache); in cmd_cache()
848 SHELL_CMD_ARG(cache, NULL, LWM2M_HELP_CACHE, cmd_cache, 3, 0),
A DKconfig228 bool "Resource Time series data cache support"
240 This settings define how many different resources may have cache enabled.
247 bool "Drop new data when cache is full"
250 bool "Drop oldest data when cache is full"
/subsys/settings/include/settings/
A Dsettings_nvs.h45 } cache[CONFIG_SETTINGS_NVS_NAME_CACHE_SIZE]; member
/subsys/net/ip/
A DKconfig.ipv656 int "Number of IPv6 PMTU destination cache entries"
156 bool "Neighbor cache"
159 The value depends on your network needs. Neighbor cache should
364 module-str = Log level for IPv6 neighbor cache
A DKconfig.ipv4184 int "Number of IPv4 PMTU destination cache entries"
/subsys/debug/thread_analyzer/
A DKconfig87 on cache-incoherent architectures.

Completed in 63 milliseconds

12