Lines Matching refs:temp
74 long temp;
149 * This function updates the internal temp value based on the
174 chip->temp = qpnp_tm_decode_temp(chip, stage_new)
178 chip->temp = qpnp_tm_decode_temp(chip, stage_new + 1)
187 static int qpnp_tm_get_temp(struct thermal_zone_device *tz, int *temp)
192 if (!temp)
196 *temp = DEFAULT_TEMP;
211 chip->temp = mili_celsius;
214 *temp = chip->temp;
220 int temp)
235 if (temp == THERMAL_TEMP_INVALID ||
236 temp < stage2_threshold_min) {
241 if (temp <= stage2_threshold_max) {
243 ((stage2_threshold_max - temp) /
254 temp, stage2_threshold_max, stage2_threshold_max);
265 static int qpnp_tm_set_trip_temp(struct thermal_zone_device *tz, int trip_id, int temp)
279 ret = qpnp_tm_update_critical_trip_temp(chip, temp);
318 * This function initializes the internal temp value based on only the
336 chip->temp = DEFAULT_TEMP;
347 chip->temp = qpnp_tm_decode_temp(chip, stage);
468 { .compatible = "qcom,spmi-temp-alarm" },
475 .name = "spmi-temp-alarm",
482 MODULE_ALIAS("platform:spmi-temp-alarm");