Lines Matching defs:temp
449 int temp;
451 temp = clamp_val(trip_temp, min_low_temp, max_high_temp);
452 if (temp != trip_temp)
454 trip_temp, temp);
455 return temp;
479 int temp;
485 temp = enforce_temp_range(dev, trip_temp) / ts->soc->thresh_grain;
488 r = REG_SET_MASK(r, sg->thermtrip_threshold_mask, temp);
519 int temp, cpu_throt, gpu_throt;
526 temp = enforce_temp_range(dev, trip_temp) / ts->soc->thresh_grain;
545 r = REG_SET_MASK(r, sg->thermctl_lvl0_up_thresh_mask, temp);
546 r = REG_SET_MASK(r, sg->thermctl_lvl0_dn_thresh_mask, temp);
569 int i, temp = min_low_temp;
573 return temp;
578 return tt[i].temp;
582 return temp;
585 static int tegra_thermctl_set_trip_temp(void *data, int trip, int temp)
609 return thermtrip_program(dev, sg, temp);
629 return throttrip_program(dev, sg, stc, temp);
641 int trip_temp, temp, last_temp, ret;
650 temp = READ_ONCE(tz->temperature);
653 if (temp > trip_temp) {
654 if (temp >= last_temp)
658 } else if (temp < trip_temp) {
723 static int get_hot_temp(struct thermal_zone_device *tz, int *trip, int *temp)
737 ret = tz->ops->get_trip_temp(tz, i, temp);
1587 "missing thermtrips, will use critical trips as shut down temp\n");
1609 tt[i].temp = tlb[j + 1];