Lines Matching defs:temp

125 static int cpu_check_overtemp(s32 temp)
132 if (temp >= (cpu_all_tmax + LOW_OVER_IMMEDIATE)) {
138 if (temp >= (cpu_all_tmax + HIGH_OVER_IMMEDIATE)) {
154 cpu_thist[i] = temp;
155 cpu_thist_total += temp;
165 cpu_thist[cpu_thist_pt] = temp;
168 cpu_thist_total += temp;
172 FIX32TOPRINT(t_avg), FIX32TOPRINT(t_old), FIX32TOPRINT(temp));
200 (temp < (cpu_all_tmax + LOW_OVER_CLEAR))) {
208 static int read_one_cpu_vals(int cpu, s32 *temp, s32 *power)
216 DBG(" CPU%d: temp reading error !\n", cpu);
219 DBG_LOTS(" CPU%d: temp = %d.%03d\n", cpu, FIX32TOPRINT((dtemp)));
220 *temp = dtemp;
254 s32 intake, temp, power, t_max = 0;
266 err = read_one_cpu_vals(cpu, &temp, &power);
273 /* Keep track of highest temp */
274 t_max = max(t_max, temp);
281 wf_cpu_pid_run(sp, power, temp);
310 s32 temp, power, intake, pump;
336 /* Keep track of highest temp */
343 /* Use the max temp & power of both */
344 temp = max(temp0, temp1);
348 wf_cpu_pid_run(sp, power, temp);
465 s32 temp;
482 err = wf_sensor_get(backside_temp, &temp);
484 printk(KERN_WARNING "windfarm: U4 temp sensor error %d\n",
490 speed = wf_pid_run(&backside_pid, temp);
492 DBG_LOTS("backside PID temp=%d.%.3d speed=%d\n",
493 FIX32TOPRINT(temp), speed);
545 s32 temp;
562 err = wf_sensor_get(drives_temp, &temp);
564 pr_warn("wf_pm72: drive bay temp sensor error %d\n", err);
569 speed = wf_pid_run(&drives_pid, temp);
571 DBG_LOTS("drives PID temp=%d.%.3d speed=%d\n",
572 FIX32TOPRINT(temp), speed);
719 if (!strcmp(sr->name, "cpu-diode-temp-0"))
721 else if (!strcmp(sr->name, "cpu-diode-temp-1"))
731 else if (!strcmp(sr->name, "backside-temp"))
733 else if (!strcmp(sr->name, "hd-temp"))