Lines Matching refs:temp
126 static int cpu_check_overtemp(s32 temp) in cpu_check_overtemp() argument
133 if (temp >= (cpu_all_tmax + LOW_OVER_IMMEDIATE)) { in cpu_check_overtemp()
139 if (temp >= (cpu_all_tmax + HIGH_OVER_IMMEDIATE)) { in cpu_check_overtemp()
155 cpu_thist[i] = temp; in cpu_check_overtemp()
156 cpu_thist_total += temp; in cpu_check_overtemp()
166 cpu_thist[cpu_thist_pt] = temp; in cpu_check_overtemp()
169 cpu_thist_total += temp; in cpu_check_overtemp()
173 FIX32TOPRINT(t_avg), FIX32TOPRINT(t_old), FIX32TOPRINT(temp)); in cpu_check_overtemp()
201 (temp < (cpu_all_tmax + LOW_OVER_CLEAR))) { in cpu_check_overtemp()
209 static int read_one_cpu_vals(int cpu, s32 *temp, s32 *power) in read_one_cpu_vals() argument
221 *temp = dtemp; in read_one_cpu_vals()
255 s32 intake, temp, power, t_max = 0; in cpu_fans_tick_split() local
267 err = read_one_cpu_vals(cpu, &temp, &power); in cpu_fans_tick_split()
275 t_max = max(t_max, temp); in cpu_fans_tick_split()
282 wf_cpu_pid_run(sp, power, temp); in cpu_fans_tick_split()
311 s32 temp, power, intake, pump; in cpu_fans_tick_combined() local
345 temp = max(temp0, temp1); in cpu_fans_tick_combined()
349 wf_cpu_pid_run(sp, power, temp); in cpu_fans_tick_combined()
466 s32 temp; in backside_fan_tick() local
483 err = wf_sensor_get(backside_temp, &temp); in backside_fan_tick()
491 speed = wf_pid_run(&backside_pid, temp); in backside_fan_tick()
494 FIX32TOPRINT(temp), speed); in backside_fan_tick()
546 s32 temp; in drives_fan_tick() local
563 err = wf_sensor_get(drives_temp, &temp); in drives_fan_tick()
570 speed = wf_pid_run(&drives_pid, temp); in drives_fan_tick()
573 FIX32TOPRINT(temp), speed); in drives_fan_tick()