Lines Matching refs:ddev
138 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_power_dpm_state() local
139 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_power_dpm_state()
148 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_power_dpm_state()
150 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_state()
156 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_power_dpm_state()
157 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_state()
169 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_power_dpm_state() local
170 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_power_dpm_state()
188 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_power_dpm_state()
190 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_state()
196 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_power_dpm_state()
197 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_state()
266 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_power_dpm_force_performance_level() local
267 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_power_dpm_force_performance_level()
276 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_power_dpm_force_performance_level()
278 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_force_performance_level()
284 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_power_dpm_force_performance_level()
285 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_force_performance_level()
305 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_power_dpm_force_performance_level() local
306 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_power_dpm_force_performance_level()
339 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
341 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
347 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
348 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
356 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
357 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
366 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_num_states() local
367 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_num_states()
377 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_num_states()
379 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_num_states()
386 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_num_states()
387 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_num_states()
404 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_cur_state() local
405 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_cur_state()
415 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_cur_state()
417 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_cur_state()
425 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_cur_state()
426 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_cur_state()
446 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_force_state() local
447 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_force_state()
465 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_force_state() local
466 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_force_state()
488 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_force_state()
490 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_force_state()
511 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_force_state()
512 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_force_state()
517 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_force_state()
518 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_force_state()
537 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_table() local
538 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_table()
547 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_table()
549 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_table()
555 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_table()
556 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_table()
574 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_table() local
575 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_table()
583 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_table()
585 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_table()
591 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_table()
592 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_table()
750 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_od_clk_voltage() local
751 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_od_clk_voltage()
811 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
813 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
834 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
835 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
840 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
841 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
849 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_od_clk_voltage() local
850 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_od_clk_voltage()
868 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_od_clk_voltage()
870 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_od_clk_voltage()
891 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_od_clk_voltage()
892 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_od_clk_voltage()
918 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_features() local
919 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_features()
932 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_features()
934 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_features()
940 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_features()
941 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_features()
953 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_features() local
954 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_features()
963 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_features()
965 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_features()
973 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_features()
974 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_features()
1022 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_dpm_clock() local
1023 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_dpm_clock()
1032 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_dpm_clock()
1034 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_dpm_clock()
1045 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_dpm_clock()
1046 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_dpm_clock()
1091 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_dpm_clock() local
1092 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_dpm_clock()
1105 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_dpm_clock()
1107 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_dpm_clock()
1113 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_dpm_clock()
1114 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_dpm_clock()
1276 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_sclk_od() local
1277 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_sclk_od()
1286 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_sclk_od()
1288 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_sclk_od()
1294 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_sclk_od()
1295 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_sclk_od()
1305 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_sclk_od() local
1306 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_sclk_od()
1320 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_sclk_od()
1322 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_sclk_od()
1328 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_sclk_od()
1329 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_sclk_od()
1338 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_mclk_od() local
1339 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_mclk_od()
1348 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_mclk_od()
1350 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_mclk_od()
1356 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_mclk_od()
1357 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_mclk_od()
1367 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_mclk_od() local
1368 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_mclk_od()
1382 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_mclk_od()
1384 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_mclk_od()
1390 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_mclk_od()
1391 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_mclk_od()
1420 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_power_profile_mode() local
1421 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_power_profile_mode()
1430 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_power_profile_mode()
1432 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_power_profile_mode()
1440 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_power_profile_mode()
1441 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_power_profile_mode()
1453 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_power_profile_mode() local
1454 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_power_profile_mode()
1495 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_power_profile_mode()
1497 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_power_profile_mode()
1503 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_power_profile_mode()
1504 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_power_profile_mode()
1550 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_gpu_busy_percent() local
1551 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_gpu_busy_percent()
1574 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_mem_busy_percent() local
1575 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_mem_busy_percent()
1598 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_vcn_busy_percent() local
1599 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_vcn_busy_percent()
1626 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pcie_bw() local
1627 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pcie_bw()
1642 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pcie_bw()
1644 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pcie_bw()
1650 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pcie_bw()
1651 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pcie_bw()
1671 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_unique_id() local
1672 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_unique_id()
1704 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_thermal_throttling_logging() local
1705 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_thermal_throttling_logging()
1718 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_thermal_throttling_logging() local
1719 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_thermal_throttling_logging()
1770 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_apu_thermal_cap() local
1771 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_apu_thermal_cap()
1773 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_apu_thermal_cap()
1775 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_apu_thermal_cap()
1785 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_apu_thermal_cap()
1786 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_apu_thermal_cap()
1798 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_apu_thermal_cap() local
1799 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_apu_thermal_cap()
1810 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_apu_thermal_cap()
1812 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_apu_thermal_cap()
1822 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_apu_thermal_cap()
1823 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_apu_thermal_cap()
1842 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pm_metrics() local
1843 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pm_metrics()
1852 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pm_metrics()
1854 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pm_metrics()
1860 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pm_metrics()
1861 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pm_metrics()
1882 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_gpu_metrics() local
1883 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_gpu_metrics()
1893 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_gpu_metrics()
1895 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_gpu_metrics()
1909 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_gpu_metrics()
1910 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_gpu_metrics()
1918 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_show_powershift_percent() local
1919 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_show_powershift_percent()
2001 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_smartshift_bias() local
2002 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_smartshift_bias()
2011 r = pm_runtime_get_sync(ddev->dev); in amdgpu_set_smartshift_bias()
2013 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_smartshift_bias()
2032 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_smartshift_bias()
2033 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_smartshift_bias()
2280 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pm_policy_attr() local
2281 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pm_policy_attr()
2299 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pm_policy_attr() local
2300 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pm_policy_attr()
2338 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pm_policy_attr()
2340 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pm_policy_attr()
2346 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pm_policy_attr()
2347 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pm_policy_attr()
2377 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_pm_policy_attr_visible() local
2378 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_pm_policy_attr_visible()