Lines Matching refs:cache
480 struct cache {
486 static void refresh_cache(struct cache *cache, const char *key)
488 if (!cache->pinfo) {
489 cache->pinfo = __system_property_find(key);
490 if (!cache->pinfo) {
494 uint32_t serial = __system_property_serial(cache->pinfo);
495 if (serial == cache->serial) {
498 cache->serial = serial;
501 __system_property_read(cache->pinfo, 0, buf);
502 cache->c = buf[0];
511 static struct cache r_time_cache = { NULL, static_cast<uint32_t>(-1), 0 };
512 static struct cache p_time_cache = { NULL, static_cast<uint32_t>(-1), 0 };