Lines Matching defs:cache
178 * IRQs being periodically raised to get the data cache/alarms status up to
195 * driver data cache. This solution is implemented if hwmon alarms are enabled
208 struct pvt_cache *cache;
223 cache = &pvt->cache[pvt->sensor];
251 * We can now update the data cache with data just retrieved from the
255 write_seqlock(&cache->data_seqlock);
257 cache->data = FIELD_GET(PVT_DATA_DATA_MASK, val);
259 write_sequnlock(&cache->data_seqlock);
267 if ((thres_sts & info->thres_sts_lo) ^ cache->thres_sts_lo) {
268 WRITE_ONCE(cache->thres_sts_lo, thres_sts & info->thres_sts_lo);
271 } else if ((thres_sts & info->thres_sts_hi) ^ cache->thres_sts_hi) {
272 WRITE_ONCE(cache->thres_sts_hi, thres_sts & info->thres_sts_hi);
293 struct pvt_cache *cache = &pvt->cache[type];
298 seq = read_seqbegin(&cache->data_seqlock);
299 data = cache->data;
300 } while (read_seqretry(&cache->data_seqlock, seq));
375 *val = !!READ_ONCE(pvt->cache[type].thres_sts_lo);
377 *val = !!READ_ONCE(pvt->cache[type].thres_sts_hi);
411 struct pvt_cache *cache;
423 * the cache and notify a waiter of this event.
431 cache = &pvt->cache[pvt->sensor];
433 WRITE_ONCE(cache->data, FIELD_GET(PVT_DATA_DATA_MASK, val));
435 complete(&cache->conversion);
455 struct pvt_cache *cache = &pvt->cache[type];
461 * Lock PVT conversion interface until data cache is updated. The
487 ret = wait_for_completion_timeout(&cache->conversion, timeout);
493 data = READ_ONCE(cache->data);
662 ktime_t kt, cache;
675 cache = kt = ms_to_ktime(val);
704 pvt->timeout = cache;
854 complete_all(&pvt->cache[idx].conversion);
882 seqlock_init(&pvt->cache[idx].data_seqlock);
885 init_completion(&pvt->cache[idx].conversion);