Lines Matching defs:temp
332 u32 temp = 0;
338 ret = regmap_field_read(priv->rf[field], &temp);
344 return code_to_degc(temp, s) * 1000;
347 return sign_extend32(temp, resolution) * 100;
353 * @temp: temperature in milliCelsius to be programmed to hardware
360 static int tsens_mC_to_hw(const struct tsens_sensor *s, int temp)
366 return degc_to_code(temp / 1000, s);
369 return temp / 100;
571 int temp, ret, i;
604 ret = get_temp_tsens_valid(s, &temp);
750 int get_temp_tsens_valid(const struct tsens_sensor *s, int *temp)
776 *temp = tsens_hw_to_mC(s, temp_idx);
781 int get_temp_common(const struct tsens_sensor *s, int *temp)
802 *temp = code_to_degc(last_temp, s) * 1000;
1072 static int tsens_get_temp(struct thermal_zone_device *tz, int *temp)
1077 return priv->ops->get_temp(s, temp);