Lines Matching refs:cpu_state
157 static struct cpu_pid_state cpu_state[2]; variable
691 struct cpu_pid_state *state0 = &cpu_state[0]; in fetch_cpu_pumps_minmax()
692 struct cpu_pid_state *state1 = &cpu_state[1]; in fetch_cpu_pumps_minmax()
744 BUILD_SHOW_FUNC_FIX(cpu0_temperature, cpu_state[0].last_temp)
745 BUILD_SHOW_FUNC_FIX(cpu0_voltage, cpu_state[0].voltage)
746 BUILD_SHOW_FUNC_FIX(cpu0_current, cpu_state[0].current_a)
747 BUILD_SHOW_FUNC_INT(cpu0_exhaust_fan_rpm, cpu_state[0].rpm)
748 BUILD_SHOW_FUNC_INT(cpu0_intake_fan_rpm, cpu_state[0].intake_rpm)
750 BUILD_SHOW_FUNC_FIX(cpu1_temperature, cpu_state[1].last_temp)
751 BUILD_SHOW_FUNC_FIX(cpu1_voltage, cpu_state[1].voltage)
752 BUILD_SHOW_FUNC_FIX(cpu1_current, cpu_state[1].current_a)
753 BUILD_SHOW_FUNC_INT(cpu1_exhaust_fan_rpm, cpu_state[1].rpm)
754 BUILD_SHOW_FUNC_INT(cpu1_intake_fan_rpm, cpu_state[1].intake_rpm)
946 struct cpu_pid_state *state0 = &cpu_state[0]; in do_monitor_cpu_combined()
947 struct cpu_pid_state *state1 = &cpu_state[1]; in do_monitor_cpu_combined()
1820 initialize_adc(&cpu_state[0]); in main_control_loop()
1821 if (cpu_state[1].monitor != NULL) in main_control_loop()
1822 initialize_adc(&cpu_state[1]); in main_control_loop()
1849 do_monitor_cpu_rack(&cpu_state[0]); in main_control_loop()
1850 if (cpu_state[1].monitor != NULL) in main_control_loop()
1851 do_monitor_cpu_rack(&cpu_state[1]); in main_control_loop()
1854 do_monitor_cpu_split(&cpu_state[0]); in main_control_loop()
1855 if (cpu_state[1].monitor != NULL) in main_control_loop()
1856 do_monitor_cpu_split(&cpu_state[1]); in main_control_loop()
1901 dispose_cpu_state(&cpu_state[0]); in dispose_control_loops()
1902 dispose_cpu_state(&cpu_state[1]); in dispose_control_loops()
1944 if (init_cpu_state(&cpu_state[0], 0)) in create_control_loops()
1949 if (cpu_count > 1 && init_cpu_state(&cpu_state[1], 1)) in create_control_loops()