• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/macintosh/

Lines Matching refs:state0

555 	struct cpu_pid_state *state0 = &cpu_state[0];
562 memcpy(&tmp, &state0->mpu.processor_part_num, 8);
581 state0->pump_min = state1->pump_min = pump_min;
582 state0->pump_max = state1->pump_max = pump_max;
806 struct cpu_pid_state *state0 = &cpu_state[0];
812 rc = do_read_one_cpu_values(state0, &temp0, &power0);
820 state0->overtemp++;
828 if (temp_combi >= ((state0->mpu.tmax + 8) << 16)) {
831 state0->overtemp += CPU_MAX_OVERTEMP / 4;
832 } else if (temp_combi > (state0->mpu.tmax << 16)) {
833 state0->overtemp++;
835 temp_combi >> 16, state0->mpu.tmax, state0->overtemp);
837 if (state0->overtemp)
840 state0->overtemp = 0;
842 if (state0->overtemp >= CPU_MAX_OVERTEMP)
844 if (state0->overtemp > 0) {
845 state0->rpm = state0->mpu.rmaxn_exhaust_fan;
846 state0->intake_rpm = intake = state0->mpu.rmaxn_intake_fan;
847 pump = state0->pump_max;
852 do_cpu_pid(state0, temp_combi, power_combi);
855 state0->rpm = max(state0->rpm, (int)state0->mpu.rminn_exhaust_fan);
856 state0->rpm = min(state0->rpm, (int)state0->mpu.rmaxn_exhaust_fan);
859 intake = (state0->rpm * CPU_INTAKE_SCALE) >> 16;
860 intake = max(intake, (int)state0->mpu.rminn_intake_fan);
861 intake = min(intake, (int)state0->mpu.rmaxn_intake_fan);
862 state0->intake_rpm = intake;
865 pump = (state0->rpm * state0->pump_max) /
866 state0->mpu.rmaxn_exhaust_fan;
867 pump = min(pump, state0->pump_max);
868 pump = max(pump, state0->pump_min);
872 state1->rpm = state0->rpm;
873 state1->intake_rpm = state0->intake_rpm;
884 set_rpm_fan(CPUA_EXHAUST_FAN_RPM_INDEX, state0->rpm);
886 set_rpm_fan(CPUB_EXHAUST_FAN_RPM_INDEX, state0->rpm);