Lines Matching refs:ddev

134 	struct drm_device *ddev = dev_get_drvdata(dev);  in amdgpu_get_power_dpm_state()  local
135 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_power_dpm_state()
144 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_power_dpm_state()
146 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_state()
152 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_power_dpm_state()
153 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_state()
165 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_power_dpm_state() local
166 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_power_dpm_state()
184 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_power_dpm_state()
186 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_state()
192 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_power_dpm_state()
193 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_state()
262 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_power_dpm_force_performance_level() local
263 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_power_dpm_force_performance_level()
272 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_power_dpm_force_performance_level()
274 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_force_performance_level()
280 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_power_dpm_force_performance_level()
281 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_force_performance_level()
301 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_power_dpm_force_performance_level() local
302 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_power_dpm_force_performance_level()
335 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
337 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
343 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
344 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
352 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
353 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_force_performance_level()
362 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_num_states() local
363 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_num_states()
373 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_num_states()
375 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_num_states()
382 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_num_states()
383 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_num_states()
400 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_cur_state() local
401 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_cur_state()
411 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_cur_state()
413 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_cur_state()
421 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_cur_state()
422 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_cur_state()
442 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_force_state() local
443 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_force_state()
461 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_force_state() local
462 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_force_state()
484 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_force_state()
486 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_force_state()
507 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_force_state()
508 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_force_state()
513 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_force_state()
514 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_force_state()
533 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_table() local
534 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_table()
543 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_table()
545 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_table()
551 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_table()
552 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_table()
570 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_table() local
571 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_table()
579 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_table()
581 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_table()
587 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_table()
588 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_table()
745 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_od_clk_voltage() local
746 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_od_clk_voltage()
802 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
804 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
825 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
826 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
831 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
832 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_od_clk_voltage()
840 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_od_clk_voltage() local
841 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_od_clk_voltage()
859 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_od_clk_voltage()
861 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_od_clk_voltage()
884 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_od_clk_voltage()
885 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_od_clk_voltage()
911 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_features() local
912 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_features()
925 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_features()
927 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_features()
933 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_features()
934 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_features()
946 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_features() local
947 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_features()
956 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_features()
958 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_features()
966 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_features()
967 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_features()
1006 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_dpm_clock() local
1007 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_dpm_clock()
1016 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_dpm_clock()
1018 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_dpm_clock()
1029 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_dpm_clock()
1030 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_dpm_clock()
1075 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_dpm_clock() local
1076 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_dpm_clock()
1089 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_dpm_clock()
1091 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_dpm_clock()
1097 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_dpm_clock()
1098 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_dpm_clock()
1230 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_sclk_od() local
1231 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_sclk_od()
1240 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_sclk_od()
1242 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_sclk_od()
1248 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_sclk_od()
1249 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_sclk_od()
1259 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_sclk_od() local
1260 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_sclk_od()
1274 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_sclk_od()
1276 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_sclk_od()
1282 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_sclk_od()
1283 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_sclk_od()
1292 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_mclk_od() local
1293 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_mclk_od()
1302 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_mclk_od()
1304 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_mclk_od()
1310 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_mclk_od()
1311 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_mclk_od()
1321 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_mclk_od() local
1322 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_mclk_od()
1336 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_mclk_od()
1338 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_mclk_od()
1344 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_mclk_od()
1345 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_mclk_od()
1374 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pp_power_profile_mode() local
1375 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pp_power_profile_mode()
1384 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pp_power_profile_mode()
1386 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_power_profile_mode()
1394 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pp_power_profile_mode()
1395 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pp_power_profile_mode()
1407 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_pp_power_profile_mode() local
1408 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_pp_power_profile_mode()
1449 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_pp_power_profile_mode()
1451 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_power_profile_mode()
1457 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_pp_power_profile_mode()
1458 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_pp_power_profile_mode()
1478 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_gpu_busy_percent() local
1479 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_gpu_busy_percent()
1487 r = pm_runtime_get_sync(ddev->dev); in amdgpu_get_gpu_busy_percent()
1489 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_gpu_busy_percent()
1497 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_gpu_busy_percent()
1498 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_gpu_busy_percent()
1518 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_mem_busy_percent() local
1519 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_mem_busy_percent()
1527 r = pm_runtime_get_sync(ddev->dev); in amdgpu_get_mem_busy_percent()
1529 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_mem_busy_percent()
1537 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_mem_busy_percent()
1538 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_mem_busy_percent()
1562 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_pcie_bw() local
1563 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_pcie_bw()
1578 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_pcie_bw()
1580 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pcie_bw()
1586 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_pcie_bw()
1587 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_pcie_bw()
1607 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_unique_id() local
1608 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_unique_id()
1640 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_thermal_throttling_logging() local
1641 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_thermal_throttling_logging()
1654 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_thermal_throttling_logging() local
1655 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_gpu_metrics() local
1705 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_gpu_metrics()
1715 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_gpu_metrics()
1717 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_gpu_metrics()
1731 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_gpu_metrics()
1732 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_gpu_metrics()
1740 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_device_read_powershift() local
1749 r = pm_runtime_get_sync(ddev->dev); in amdgpu_device_read_powershift()
1751 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_device_read_powershift()
1762 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_device_read_powershift()
1763 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_device_read_powershift()
1770 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_show_powershift_percent() local
1771 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_show_powershift_percent()
1852 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_smartshift_bias() local
1853 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_smartshift_bias()
1862 r = pm_runtime_get_sync(ddev->dev); in amdgpu_set_smartshift_bias()
1864 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_smartshift_bias()
1883 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_set_smartshift_bias()
1884 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_smartshift_bias()