Lines Matching refs:ddev

98 	struct drm_device *ddev = dev_get_drvdata(dev);  in amdgpu_get_power_dpm_state()  local
99 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_power_dpm_state()
108 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_power_dpm_state()
110 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_state()
116 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_power_dpm_state()
117 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_state()
129 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_power_dpm_state() local
130 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_power_dpm_state()
148 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_power_dpm_state()
150 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_state()
156 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_power_dpm_state()
157 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_state()
226 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_power_dpm_force_performance_level() local
227 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_power_dpm_force_performance_level()
236 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_power_dpm_force_performance_level()
238 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_force_performance_level()
244 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_power_dpm_force_performance_level()
245 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_force_performance_level()
265 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_power_dpm_force_performance_level() local
266 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_power_dpm_force_performance_level()
299 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
301 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
307 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
308 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
316 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
317 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
326 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_num_states() local
327 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_num_states()
337 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_num_states()
339 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_num_states()
346 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_num_states()
347 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_num_states()
364 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_cur_state() local
365 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_cur_state()
375 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_cur_state()
377 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_cur_state()
385 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_cur_state()
386 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_cur_state()
406 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_force_state() local
407 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_force_state()
425 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_force_state() local
426 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_force_state()
448 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_force_state()
450 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_force_state()
471 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_force_state()
472 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_force_state()
477 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_force_state()
478 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_force_state()
497 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_table() local
498 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_table()
507 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_table()
509 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_table()
515 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_table()
516 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_table()
534 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_table() local
535 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_table()
543 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_table()
545 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_table()
551 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_table()
552 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_table()
721 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_od_clk_voltage() local
722 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_od_clk_voltage()
778 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
780 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
801 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
802 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
807 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
808 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
816 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_od_clk_voltage() local
817 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_od_clk_voltage()
835 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_od_clk_voltage()
837 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_od_clk_voltage()
858 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_od_clk_voltage()
859 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_od_clk_voltage()
885 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_features() local
886 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_features()
899 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_features()
901 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_features()
907 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_features()
908 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_features()
920 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_features() local
921 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_features()
930 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_features()
932 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_features()
940 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_features()
941 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_features()
980 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_dpm_clock() local
981 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_dpm_clock()
990 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_dpm_clock()
992 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_dpm_clock()
1003 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_dpm_clock()
1004 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_dpm_clock()
1049 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_dpm_clock() local
1050 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_dpm_clock()
1063 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_dpm_clock()
1065 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_dpm_clock()
1071 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_dpm_clock()
1072 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_dpm_clock()
1234 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_sclk_od() local
1235 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_sclk_od()
1244 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_sclk_od()
1246 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_sclk_od()
1252 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_sclk_od()
1253 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_sclk_od()
1263 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_sclk_od() local
1264 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_sclk_od()
1278 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_sclk_od()
1280 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_sclk_od()
1286 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_sclk_od()
1287 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_sclk_od()
1296 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_mclk_od() local
1297 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_mclk_od()
1306 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_mclk_od()
1308 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_mclk_od()
1314 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_mclk_od()
1315 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_mclk_od()
1325 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_mclk_od() local
1326 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_mclk_od()
1340 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_mclk_od()
1342 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_mclk_od()
1348 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_mclk_od()
1349 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_mclk_od()
1378 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_power_profile_mode() local
1379 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_power_profile_mode()
1388 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_power_profile_mode()
1390 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_power_profile_mode()
1398 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_power_profile_mode()
1399 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_power_profile_mode()
1411 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_power_profile_mode() local
1412 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_power_profile_mode()
1453 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_power_profile_mode()
1455 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_power_profile_mode()
1461 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_power_profile_mode()
1462 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_power_profile_mode()
1508 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_gpu_busy_percent() local
1509 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_gpu_busy_percent()
1532 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_mem_busy_percent() local
1533 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_mem_busy_percent()
1560 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pcie_bw() local
1561 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pcie_bw()
1576 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pcie_bw()
1578 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pcie_bw()
1584 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pcie_bw()
1585 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pcie_bw()
1605 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_unique_id() local
1606 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_unique_id()
1638 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_thermal_throttling_logging() local
1639 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_thermal_throttling_logging()
1652 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_thermal_throttling_logging() local
1653 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_thermal_throttling_logging()
1704 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_apu_thermal_cap() local
1705 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_apu_thermal_cap()
1707 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_apu_thermal_cap()
1709 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_apu_thermal_cap()
1719 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_apu_thermal_cap()
1720 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_apu_thermal_cap()
1732 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_apu_thermal_cap() local
1733 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_apu_thermal_cap()
1744 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_apu_thermal_cap()
1746 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_apu_thermal_cap()
1756 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_apu_thermal_cap()
1757 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_apu_thermal_cap()
1778 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_gpu_metrics() local
1779 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_gpu_metrics()
1789 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_gpu_metrics()
1791 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_gpu_metrics()
1805 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_gpu_metrics()
1806 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_gpu_metrics()
1814 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_show_powershift_percent() local
1815 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_show_powershift_percent()
1897 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_smartshift_bias() local
1898 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_smartshift_bias()
1907 r = pm_runtime_get_sync(ddev->dev); in amdgpu_set_smartshift_bias()
1909 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_smartshift_bias()
1928 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_smartshift_bias()
1929 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_smartshift_bias()