Lines Matching refs:temp
189 static int _get_trip_temp(int trip, int *temp) in _get_trip_temp() argument
208 *temp = (out >> (trip * QRK_DTS_SHIFT_TP)) & QRK_DTS_MASK_TP_THRES; in _get_trip_temp()
209 *temp -= QRK_DTS_TEMP_BASE; in _get_trip_temp()
215 int trip, int *temp) in sys_get_trip_temp() argument
217 return _get_trip_temp(trip, temp); in sys_get_trip_temp()
220 static inline int sys_get_crit_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_crit_temp() argument
222 return _get_trip_temp(QRK_DTS_ID_TP_CRITICAL, temp); in sys_get_crit_temp()
226 int trip, int temp) in update_trip_temp() argument
250 if (temp > QRK_DTS_SAFE_TP_THRES) in update_trip_temp()
251 temp = QRK_DTS_SAFE_TP_THRES; in update_trip_temp()
259 temp_out = temp + QRK_DTS_TEMP_BASE; in update_trip_temp()
274 int temp) in sys_set_trip_temp() argument
276 return update_trip_temp(tzd->devdata, trip, temp); in sys_set_trip_temp()
291 int *temp) in sys_get_curr_temp() argument
310 *temp = out - QRK_DTS_TEMP_BASE; in sys_get_curr_temp()