| /linux/drivers/macintosh/ |
| H A D | therm_windtunnel.c | 78 } fan_table[] = { variable 192 for( i=0; (temp & 0xffff) > fan_table[i].temp ; i++ ) in poll_temp() 195 level = fan_table[i].fan_down_setting; in poll_temp() 198 for( i=0; (temp & 0xffff) >= fan_table[i+1].temp ; i++ ) in poll_temp() 201 level = fan_table[i].fan_up_setting; in poll_temp()
|
| /linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
| H A D | fiji_smumgr.c | 495 struct pp_advance_fan_control_parameters *fan_table = in fiji_populate_bapm_parameters_in_dpm_table() local 533 scale_fan_gain_settings(fan_table->usFanGainEdge)); in fiji_populate_bapm_parameters_in_dpm_table() 535 scale_fan_gain_settings(fan_table->usFanGainHotspot)); in fiji_populate_bapm_parameters_in_dpm_table() 537 scale_fan_gain_settings(fan_table->usFanGainLiquid)); in fiji_populate_bapm_parameters_in_dpm_table() 539 scale_fan_gain_settings(fan_table->usFanGainVrVddc)); in fiji_populate_bapm_parameters_in_dpm_table() 541 scale_fan_gain_settings(fan_table->usFanGainVrMvdd)); in fiji_populate_bapm_parameters_in_dpm_table() 543 scale_fan_gain_settings(fan_table->usFanGainPlx)); in fiji_populate_bapm_parameters_in_dpm_table() 545 scale_fan_gain_settings(fan_table->usFanGainHbm)); in fiji_populate_bapm_parameters_in_dpm_table() 2132 SMU73_Discrete_FanTable fan_table = { FDO_MODE_HARDWARE }; in fiji_thermal_setup_fan_table() local 2179 fan_table.TempMin = cpu_to_be16((50 + hwmgr-> in fiji_thermal_setup_fan_table() [all …]
|
| H A D | polaris10_smumgr.c | 436 struct pp_advance_fan_control_parameters *fan_table = in polaris10_populate_bapm_parameters_in_dpm_table() local 454 scale_fan_gain_settings(fan_table->usFanGainEdge)); in polaris10_populate_bapm_parameters_in_dpm_table() 456 scale_fan_gain_settings(fan_table->usFanGainHotspot)); in polaris10_populate_bapm_parameters_in_dpm_table() 2170 SMU74_Discrete_FanTable fan_table = { FDO_MODE_HARDWARE }; in polaris10_thermal_setup_fan_table() local 2221 fan_table.TempMin = cpu_to_be16((50 + hwmgr-> in polaris10_thermal_setup_fan_table() 2223 fan_table.TempMed = cpu_to_be16((50 + hwmgr-> in polaris10_thermal_setup_fan_table() 2225 fan_table.TempMax = cpu_to_be16((50 + hwmgr-> in polaris10_thermal_setup_fan_table() 2228 fan_table.Slope1 = cpu_to_be16(slope1); in polaris10_thermal_setup_fan_table() 2229 fan_table.Slope2 = cpu_to_be16(slope2); in polaris10_thermal_setup_fan_table() 2231 fan_table.FdoMin = cpu_to_be16(fdo_min); in polaris10_thermal_setup_fan_table() [all …]
|
| H A D | iceland_smumgr.c | 2088 SMU71_Discrete_FanTable fan_table = { FDO_MODE_HARDWARE }; in iceland_thermal_setup_fan_table() local 2130 …fan_table.TempMin = cpu_to_be16((50 + hwmgr->thermal_controller.advanceFanControlParameters.usTMin… in iceland_thermal_setup_fan_table() 2131 …fan_table.TempMed = cpu_to_be16((50 + hwmgr->thermal_controller.advanceFanControlParameters.usTMed… in iceland_thermal_setup_fan_table() 2132 …fan_table.TempMax = cpu_to_be16((50 + hwmgr->thermal_controller.advanceFanControlParameters.usTMax… in iceland_thermal_setup_fan_table() 2134 fan_table.Slope1 = cpu_to_be16(slope1); in iceland_thermal_setup_fan_table() 2135 fan_table.Slope2 = cpu_to_be16(slope2); in iceland_thermal_setup_fan_table() 2137 fan_table.FdoMin = cpu_to_be16(fdo_min); in iceland_thermal_setup_fan_table() 2139 fan_table.HystDown = cpu_to_be16(hwmgr->thermal_controller.advanceFanControlParameters.ucTHyst); in iceland_thermal_setup_fan_table() 2141 fan_table.HystUp = cpu_to_be16(1); in iceland_thermal_setup_fan_table() 2143 fan_table.HystSlope = cpu_to_be16(1); in iceland_thermal_setup_fan_table() [all …]
|
| H A D | tonga_smumgr.c | 2464 SMU72_Discrete_FanTable fan_table = { FDO_MODE_HARDWARE }; in tonga_thermal_setup_fan_table() local 2515 …fan_table.TempMin = cpu_to_be16((50 + hwmgr->thermal_controller.advanceFanControlParameters.usTMin… in tonga_thermal_setup_fan_table() 2516 …fan_table.TempMed = cpu_to_be16((50 + hwmgr->thermal_controller.advanceFanControlParameters.usTMed… in tonga_thermal_setup_fan_table() 2517 …fan_table.TempMax = cpu_to_be16((50 + hwmgr->thermal_controller.advanceFanControlParameters.usTMax… in tonga_thermal_setup_fan_table() 2519 fan_table.Slope1 = cpu_to_be16(slope1); in tonga_thermal_setup_fan_table() 2520 fan_table.Slope2 = cpu_to_be16(slope2); in tonga_thermal_setup_fan_table() 2522 fan_table.FdoMin = cpu_to_be16(fdo_min); in tonga_thermal_setup_fan_table() 2524 fan_table.HystDown = cpu_to_be16(hwmgr->thermal_controller.advanceFanControlParameters.ucTHyst); in tonga_thermal_setup_fan_table() 2526 fan_table.HystUp = cpu_to_be16(1); in tonga_thermal_setup_fan_table() 2528 fan_table.HystSlope = cpu_to_be16(1); in tonga_thermal_setup_fan_table() [all …]
|
| H A D | ci_smumgr.c | 2128 SMU7_Discrete_FanTable fan_table = { FDO_MODE_HARDWARE }; in ci_thermal_setup_fan_table() local 2170 …fan_table.TempMin = cpu_to_be16((50 + hwmgr->thermal_controller.advanceFanControlParameters.usTMin… in ci_thermal_setup_fan_table() 2171 …fan_table.TempMed = cpu_to_be16((50 + hwmgr->thermal_controller.advanceFanControlParameters.usTMed… in ci_thermal_setup_fan_table() 2172 …fan_table.TempMax = cpu_to_be16((50 + hwmgr->thermal_controller.advanceFanControlParameters.usTMax… in ci_thermal_setup_fan_table() 2174 fan_table.Slope1 = cpu_to_be16(slope1); in ci_thermal_setup_fan_table() 2175 fan_table.Slope2 = cpu_to_be16(slope2); in ci_thermal_setup_fan_table() 2177 fan_table.FdoMin = cpu_to_be16(fdo_min); in ci_thermal_setup_fan_table() 2179 fan_table.HystDown = cpu_to_be16(hwmgr->thermal_controller.advanceFanControlParameters.ucTHyst); in ci_thermal_setup_fan_table() 2181 fan_table.HystUp = cpu_to_be16(1); in ci_thermal_setup_fan_table() 2183 fan_table.HystSlope = cpu_to_be16(1); in ci_thermal_setup_fan_table() [all …]
|
| H A D | vegam_smumgr.c | 1447 struct pp_advance_fan_control_parameters *fan_table = in vegam_populate_bapm_parameters_in_dpm_table() local 1465 scale_fan_gain_settings(fan_table->usFanGainEdge)); in vegam_populate_bapm_parameters_in_dpm_table() 1467 scale_fan_gain_settings(fan_table->usFanGainHotspot)); in vegam_populate_bapm_parameters_in_dpm_table()
|
| /linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
| H A D | processpptables.c | 1016 const ATOM_PPLIB_FANTABLE *fan_table = in init_thermal_controller() local 1020 if (1 <= fan_table->ucFanTableFormat) { in init_thermal_controller() 1022 fan_table->ucTHyst; in init_thermal_controller() 1024 le16_to_cpu(fan_table->usTMin); in init_thermal_controller() 1026 le16_to_cpu(fan_table->usTMed); in init_thermal_controller() 1028 le16_to_cpu(fan_table->usTHigh); in init_thermal_controller() 1030 le16_to_cpu(fan_table->usPWMMin); in init_thermal_controller() 1032 le16_to_cpu(fan_table->usPWMMed); in init_thermal_controller() 1034 le16_to_cpu(fan_table->usPWMHigh); in init_thermal_controller() 1042 if (2 <= fan_table->ucFanTableFormat) { in init_thermal_controller() [all …]
|
| H A D | process_pptables_v1_0.c | 910 const PPTable_Generic_SubTable_Header *fan_table; in init_thermal_controller() local 946 fan_table = (const PPTable_Generic_SubTable_Header *) in init_thermal_controller() 952 PP_ASSERT_WITH_CODE((0 < fan_table->ucRevId), in init_thermal_controller() 960 if (fan_table->ucRevId < 8) { in init_thermal_controller() 962 (ATOM_Tonga_Fan_Table *)fan_table; in init_thermal_controller() 995 } else if (fan_table->ucRevId == 8) { in init_thermal_controller() 997 (ATOM_Fiji_Fan_Table *)fan_table; in init_thermal_controller() 1045 } else if (fan_table->ucRevId >= 9) { in init_thermal_controller() 1047 (ATOM_Polaris_Fan_Table *)fan_table; in init_thermal_controller()
|
| /linux/drivers/platform/x86/hp/ |
| H A D | hp-wmi.c | 2525 struct victus_s_fan_table *fan_table; in hp_wmi_setup_fan_settings() local 2541 fan_table = (struct victus_s_fan_table *)fan_data; in hp_wmi_setup_fan_settings() 2542 if (fan_table->header.num_entries == 0 || in hp_wmi_setup_fan_settings() 2544 sizeof(struct victus_s_fan_table_entry) * fan_table->header.num_entries > sizeof(fan_data)) in hp_wmi_setup_fan_settings() 2547 min_rpm = fan_table->entries[0].cpu_rpm; in hp_wmi_setup_fan_settings() 2548 max_rpm = fan_table->entries[fan_table->header.num_entries - 1].cpu_rpm; in hp_wmi_setup_fan_settings() 2549 gpu_delta = fan_table->entries[0].gpu_rpm - fan_table->entries[0].cpu_rpm; in hp_wmi_setup_fan_settings()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | ci_dpm.c | 930 SMU7_Discrete_FanTable fan_table = { FDO_MODE_HARDWARE }; in ci_thermal_setup_fan_table() local 963 fan_table.TempMin = cpu_to_be16((50 + rdev->pm.dpm.fan.t_min) / 100); in ci_thermal_setup_fan_table() 964 fan_table.TempMed = cpu_to_be16((50 + rdev->pm.dpm.fan.t_med) / 100); in ci_thermal_setup_fan_table() 965 fan_table.TempMax = cpu_to_be16((50 + rdev->pm.dpm.fan.t_max) / 100); in ci_thermal_setup_fan_table() 967 fan_table.Slope1 = cpu_to_be16(slope1); in ci_thermal_setup_fan_table() 968 fan_table.Slope2 = cpu_to_be16(slope2); in ci_thermal_setup_fan_table() 970 fan_table.FdoMin = cpu_to_be16(fdo_min); in ci_thermal_setup_fan_table() 972 fan_table.HystDown = cpu_to_be16(rdev->pm.dpm.fan.t_hyst); in ci_thermal_setup_fan_table() 974 fan_table.HystUp = cpu_to_be16(1); in ci_thermal_setup_fan_table() 976 fan_table.HystSlope = cpu_to_be16(1); in ci_thermal_setup_fan_table() [all …]
|
| H A D | si_dpm.c | 5976 PP_SIslands_FanTable fan_table = { FDO_MODE_HARDWARE }; in si_thermal_setup_fan_table() local 6009 fan_table.temp_min = cpu_to_be16((50 + rdev->pm.dpm.fan.t_min) / 100); in si_thermal_setup_fan_table() 6010 fan_table.temp_med = cpu_to_be16((50 + rdev->pm.dpm.fan.t_med) / 100); in si_thermal_setup_fan_table() 6011 fan_table.temp_max = cpu_to_be16((50 + rdev->pm.dpm.fan.t_max) / 100); in si_thermal_setup_fan_table() 6013 fan_table.slope1 = cpu_to_be16(slope1); in si_thermal_setup_fan_table() 6014 fan_table.slope2 = cpu_to_be16(slope2); in si_thermal_setup_fan_table() 6016 fan_table.fdo_min = cpu_to_be16(fdo_min); in si_thermal_setup_fan_table() 6018 fan_table.hys_down = cpu_to_be16(rdev->pm.dpm.fan.t_hyst); in si_thermal_setup_fan_table() 6020 fan_table.hys_up = cpu_to_be16(1); in si_thermal_setup_fan_table() 6022 fan_table.hys_slope = cpu_to_be16(1); in si_thermal_setup_fan_table() [all …]
|
| /linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
| H A D | si_dpm.c | 6532 PP_SIslands_FanTable fan_table = { FDO_MODE_HARDWARE }; in si_thermal_setup_fan_table() local 6565 fan_table.temp_min = cpu_to_be16((50 + adev->pm.dpm.fan.t_min) / 100); in si_thermal_setup_fan_table() 6566 fan_table.temp_med = cpu_to_be16((50 + adev->pm.dpm.fan.t_med) / 100); in si_thermal_setup_fan_table() 6567 fan_table.temp_max = cpu_to_be16((50 + adev->pm.dpm.fan.t_max) / 100); in si_thermal_setup_fan_table() 6568 fan_table.slope1 = cpu_to_be16(slope1); in si_thermal_setup_fan_table() 6569 fan_table.slope2 = cpu_to_be16(slope2); in si_thermal_setup_fan_table() 6570 fan_table.fdo_min = cpu_to_be16(fdo_min); in si_thermal_setup_fan_table() 6571 fan_table.hys_down = cpu_to_be16(adev->pm.dpm.fan.t_hyst); in si_thermal_setup_fan_table() 6572 fan_table.hys_up = cpu_to_be16(1); in si_thermal_setup_fan_table() 6573 fan_table.hys_slope = cpu_to_be16(1); in si_thermal_setup_fan_table() [all …]
|