Lines Matching refs:state
13 * struct peci_sensor_state - PECI state information
27 * @state: sensor update state
32 struct peci_sensor_state state;
42 static inline bool peci_sensor_need_update(struct peci_sensor_state *state)
44 return !state->valid ||
45 time_after(jiffies, state->last_updated + PECI_HWMON_UPDATE_INTERVAL);
52 static inline void peci_sensor_mark_updated(struct peci_sensor_state *state)
54 state->valid = true;
55 state->last_updated = jiffies;