Lines Matching defs:temp
150 u32 temp = 0;
156 ret = regmap_field_read(priv->rf[field], &temp);
162 return code_to_degc(temp, s) * 1000;
165 return sign_extend32(temp, resolution) * 100;
171 * @temp: temperature in milliCelsius to be programmed to hardware
178 static int tsens_mC_to_hw(const struct tsens_sensor *s, int temp)
184 return degc_to_code(temp / 1000, s);
187 return temp / 100;
389 int temp, ret, i;
422 ret = get_temp_tsens_valid(s, &temp);
461 int temp, ret, i;
472 ret = get_temp_tsens_valid(s, &temp);
486 if (d.up_thresh > temp) {
497 if (d.low_thresh < temp) {
511 hw_id, __func__, temp);
516 hw_id, __func__, temp);
578 int get_temp_tsens_valid(const struct tsens_sensor *s, int *temp)
602 *temp = tsens_hw_to_mC(s, temp_idx);
607 int get_temp_common(const struct tsens_sensor *s, int *temp)
617 *temp = code_to_degc(last_temp, s) * 1000;
857 static int tsens_get_temp(void *data, int *temp)
862 return priv->ops->get_temp(s, temp);