| H A D | amdgpu_pm.c | 96 static ssize_t amdgpu_get_power_dpm_state(struct device *dev, in amdgpu_get_power_dpm_state() argument 100 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_power_dpm_state() 110 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_power_dpm_state() 112 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_state() 118 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_power_dpm_state() 119 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_state() 126 static ssize_t amdgpu_set_power_dpm_state(struct device *dev, in amdgpu_set_power_dpm_state() argument 131 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_power_dpm_state() 150 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_power_dpm_state() 152 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_state() 224 amdgpu_get_power_dpm_force_performance_level(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_power_dpm_force_performance_level() argument 262 amdgpu_set_power_dpm_force_performance_level(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_power_dpm_force_performance_level() argument 324 amdgpu_get_pp_num_states(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_num_states() argument 362 amdgpu_get_pp_cur_state(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_cur_state() argument 404 amdgpu_get_pp_force_state(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_force_state() argument 422 amdgpu_set_pp_force_state(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_force_state() argument 495 amdgpu_get_pp_table(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_table() argument 531 amdgpu_set_pp_table(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_table() argument 718 amdgpu_set_pp_od_clk_voltage(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_od_clk_voltage() argument 818 amdgpu_get_pp_od_clk_voltage(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_od_clk_voltage() argument 886 amdgpu_set_pp_features(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_features() argument 922 amdgpu_get_pp_features(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_features() argument 982 amdgpu_get_pp_dpm_clock(struct device * dev,enum pp_clock_type type,char * buf) amdgpu_get_pp_dpm_clock() argument 1050 amdgpu_set_pp_dpm_clock(struct device * dev,enum pp_clock_type type,const char * buf,size_t count) amdgpu_set_pp_dpm_clock() argument 1086 amdgpu_get_pp_dpm_sclk(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_dpm_sclk() argument 1093 amdgpu_set_pp_dpm_sclk(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_dpm_sclk() argument 1101 amdgpu_get_pp_dpm_mclk(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_dpm_mclk() argument 1108 amdgpu_set_pp_dpm_mclk(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_dpm_mclk() argument 1116 amdgpu_get_pp_dpm_socclk(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_dpm_socclk() argument 1123 amdgpu_set_pp_dpm_socclk(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_dpm_socclk() argument 1131 amdgpu_get_pp_dpm_fclk(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_dpm_fclk() argument 1138 amdgpu_set_pp_dpm_fclk(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_dpm_fclk() argument 1146 amdgpu_get_pp_dpm_vclk(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_dpm_vclk() argument 1153 amdgpu_set_pp_dpm_vclk(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_dpm_vclk() argument 1161 amdgpu_get_pp_dpm_vclk1(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_dpm_vclk1() argument 1168 amdgpu_set_pp_dpm_vclk1(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_dpm_vclk1() argument 1176 amdgpu_get_pp_dpm_dclk(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_dpm_dclk() argument 1183 amdgpu_set_pp_dpm_dclk(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_dpm_dclk() argument 1191 amdgpu_get_pp_dpm_dclk1(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_dpm_dclk1() argument 1198 amdgpu_set_pp_dpm_dclk1(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_dpm_dclk1() argument 1206 amdgpu_get_pp_dpm_dcefclk(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_dpm_dcefclk() argument 1213 amdgpu_set_pp_dpm_dcefclk(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_dpm_dcefclk() argument 1221 amdgpu_get_pp_dpm_pcie(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_dpm_pcie() argument 1228 amdgpu_set_pp_dpm_pcie(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_dpm_pcie() argument 1236 amdgpu_get_pp_sclk_od(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_sclk_od() argument 1264 amdgpu_set_pp_sclk_od(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_sclk_od() argument 1298 amdgpu_get_pp_mclk_od(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_mclk_od() argument 1326 amdgpu_set_pp_mclk_od(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_mclk_od() argument 1380 amdgpu_get_pp_power_profile_mode(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pp_power_profile_mode() argument 1411 amdgpu_set_pp_power_profile_mode(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_pp_power_profile_mode() argument 1510 amdgpu_get_gpu_busy_percent(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_gpu_busy_percent() argument 1534 amdgpu_get_mem_busy_percent(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_mem_busy_percent() argument 1562 amdgpu_get_pcie_bw(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_pcie_bw() argument 1607 amdgpu_get_unique_id(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_unique_id() argument 1640 amdgpu_get_thermal_throttling_logging(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_thermal_throttling_logging() argument 1653 amdgpu_set_thermal_throttling_logging(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_thermal_throttling_logging() argument 1704 amdgpu_get_apu_thermal_cap(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_apu_thermal_cap() argument 1731 amdgpu_set_apu_thermal_cap(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_apu_thermal_cap() argument 1780 amdgpu_get_gpu_metrics(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_gpu_metrics() argument 1817 amdgpu_show_powershift_percent(struct device * dev,char * buf,enum amd_pp_sensors sensor) amdgpu_show_powershift_percent() argument 1857 amdgpu_get_smartshift_apu_power(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_smartshift_apu_power() argument 1873 amdgpu_get_smartshift_dgpu_power(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_smartshift_dgpu_power() argument 1888 amdgpu_get_smartshift_bias(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_get_smartshift_bias() argument 1899 amdgpu_set_smartshift_bias(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_set_smartshift_bias() argument 2239 amdgpu_hwmon_show_temp(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_temp() argument 2277 amdgpu_hwmon_show_temp_thresh(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_temp_thresh() argument 2293 amdgpu_hwmon_show_hotspot_temp_thresh(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_hotspot_temp_thresh() argument 2309 amdgpu_hwmon_show_mem_temp_thresh(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_mem_temp_thresh() argument 2325 amdgpu_hwmon_show_temp_label(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_temp_label() argument 2337 amdgpu_hwmon_show_temp_emergency(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_temp_emergency() argument 2363 amdgpu_hwmon_get_pwm1_enable(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_get_pwm1_enable() argument 2393 amdgpu_hwmon_set_pwm1_enable(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_hwmon_set_pwm1_enable() argument 2438 amdgpu_hwmon_get_pwm1_min(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_get_pwm1_min() argument 2445 amdgpu_hwmon_get_pwm1_max(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_get_pwm1_max() argument 2452 amdgpu_hwmon_set_pwm1(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_hwmon_set_pwm1() argument 2498 amdgpu_hwmon_get_pwm1(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_get_pwm1() argument 2528 amdgpu_hwmon_get_fan1_input(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_get_fan1_input() argument 2558 amdgpu_hwmon_get_fan1_min(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_get_fan1_min() argument 2575 amdgpu_hwmon_get_fan1_max(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_get_fan1_max() argument 2592 amdgpu_hwmon_get_fan1_target(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_get_fan1_target() argument 2622 amdgpu_hwmon_set_fan1_target(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_hwmon_set_fan1_target() argument 2667 amdgpu_hwmon_get_fan1_enable(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_get_fan1_enable() argument 2697 amdgpu_hwmon_set_fan1_enable(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_hwmon_set_fan1_enable() argument 2740 amdgpu_hwmon_show_vddgfx(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_vddgfx() argument 2757 amdgpu_hwmon_show_vddgfx_label(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_vddgfx_label() argument 2764 amdgpu_hwmon_show_vddnb(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_vddnb() argument 2785 amdgpu_hwmon_show_vddnb_label(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_vddnb_label() argument 2792 amdgpu_hwmon_get_power(struct device * dev,enum amd_pp_sensors sensor) amdgpu_hwmon_get_power() argument 2810 amdgpu_hwmon_show_power_avg(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_power_avg() argument 2823 amdgpu_hwmon_show_power_input(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_power_input() argument 2836 amdgpu_hwmon_show_power_cap_min(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_power_cap_min() argument 2844 amdgpu_hwmon_show_power_cap_generic(struct device * dev,struct device_attribute * attr,char * buf,enum pp_power_limit_level pp_limit_level) amdgpu_hwmon_show_power_cap_generic() argument 2881 amdgpu_hwmon_show_power_cap_max(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_power_cap_max() argument 2889 amdgpu_hwmon_show_power_cap(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_power_cap() argument 2897 amdgpu_hwmon_show_power_cap_default(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_power_cap_default() argument 2905 amdgpu_hwmon_show_power_label(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_power_label() argument 2920 amdgpu_hwmon_set_power_cap(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) amdgpu_hwmon_set_power_cap() argument 2962 amdgpu_hwmon_show_sclk(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_sclk() argument 2979 amdgpu_hwmon_show_sclk_label(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_sclk_label() argument 2986 amdgpu_hwmon_show_mclk(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_mclk() argument 3003 amdgpu_hwmon_show_mclk_label(struct device * dev,struct device_attribute * attr,char * buf) amdgpu_hwmon_show_mclk_label() argument 3195 struct device *dev = kobj_to_dev(kobj); hwmon_attributes_visible() local 3616 struct drm_device *dev = adev_to_drm(adev); amdgpu_debugfs_pm_info_show() local [all...] |