Lines Matching defs:temp
70 long temp;
127 * This function updates the internal temp value based on the
152 chip->temp = (stage_new - 1) * TEMP_STAGE_STEP +
157 chip->temp = stage_new * TEMP_STAGE_STEP +
167 static int qpnp_tm_get_temp(void *data, int *temp)
172 if (!temp)
176 *temp = DEFAULT_TEMP;
191 chip->temp = mili_celsius;
194 *temp = chip->temp;
200 int temp)
213 if (temp == THERMAL_TEMP_INVALID ||
214 temp < STAGE2_THRESHOLD_MIN) {
219 if (temp <= STAGE2_THRESHOLD_MAX) {
221 ((STAGE2_THRESHOLD_MAX - temp) /
242 static int qpnp_tm_set_trip_temp(void *data, int trip, int temp)
256 ret = qpnp_tm_update_critical_trip_temp(chip, temp);
300 * This function initializes the internal temp value based on only the
318 chip->temp = DEFAULT_TEMP;
329 chip->temp = chip->thresh * TEMP_THRESH_STEP +
441 { .compatible = "qcom,spmi-temp-alarm" },
448 .name = "spmi-temp-alarm",
455 MODULE_ALIAS("platform:spmi-temp-alarm");