Lines Matching defs:cache

202  * IRQs being periodically raised to get the data cache/alarms status up to
219 * driver data cache. This solution is implemented if hwmon alarms are enabled
232 struct pvt_cache *cache;
247 cache = &pvt->cache[pvt->sensor];
275 * We can now update the data cache with data just retrieved from the
279 write_seqlock(&cache->data_seqlock);
281 cache->data = FIELD_GET(PVT_DATA_DATA_MASK, val);
283 write_sequnlock(&cache->data_seqlock);
291 if ((thres_sts & info->thres_sts_lo) ^ cache->thres_sts_lo) {
292 WRITE_ONCE(cache->thres_sts_lo, thres_sts & info->thres_sts_lo);
295 } else if ((thres_sts & info->thres_sts_hi) ^ cache->thres_sts_hi) {
296 WRITE_ONCE(cache->thres_sts_hi, thres_sts & info->thres_sts_hi);
317 struct pvt_cache *cache = &pvt->cache[type];
322 seq = read_seqbegin(&cache->data_seqlock);
323 data = cache->data;
324 } while (read_seqretry(&cache->data_seqlock, seq));
399 *val = !!READ_ONCE(pvt->cache[type].thres_sts_lo);
401 *val = !!READ_ONCE(pvt->cache[type].thres_sts_hi);
435 struct pvt_cache *cache;
447 * the cache and notify a waiter of this event.
455 cache = &pvt->cache[pvt->sensor];
457 WRITE_ONCE(cache->data, FIELD_GET(PVT_DATA_DATA_MASK, val));
459 complete(&cache->conversion);
479 struct pvt_cache *cache = &pvt->cache[type];
485 * Lock PVT conversion interface until data cache is updated. The
511 ret = wait_for_completion_timeout(&cache->conversion, timeout);
517 data = READ_ONCE(cache->data);
686 ktime_t kt, cache;
699 cache = kt = ms_to_ktime(val);
728 pvt->timeout = cache;
878 complete_all(&pvt->cache[idx].conversion);
906 seqlock_init(&pvt->cache[idx].data_seqlock);
909 init_completion(&pvt->cache[idx].conversion);