| /linux/drivers/gpu/drm/amd/amdgpu/ |
| A D | amdgpu_debugfs.c | 114 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 179 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 237 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs2_op() 366 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_read() 425 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_write() 485 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_read() 544 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_write() 1272 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_test_ib_show() 1322 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_evict_vram() 1343 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_evict_gtt() [all …]
|
| A D | amdgpu_vkms.c | 468 adev_to_drm(adev)->max_vblank_count = 0; in amdgpu_vkms_sw_init() 470 adev_to_drm(adev)->mode_config.funcs = &amdgpu_vkms_mode_funcs; in amdgpu_vkms_sw_init() 472 adev_to_drm(adev)->mode_config.max_width = XRES_MAX; in amdgpu_vkms_sw_init() 473 adev_to_drm(adev)->mode_config.max_height = YRES_MAX; in amdgpu_vkms_sw_init() 475 adev_to_drm(adev)->mode_config.preferred_depth = 24; in amdgpu_vkms_sw_init() 476 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in amdgpu_vkms_sw_init() 478 adev_to_drm(adev)->mode_config.fb_base = adev->gmc.aper_base; in amdgpu_vkms_sw_init() 495 drm_kms_helper_poll_init(adev_to_drm(adev)); in amdgpu_vkms_sw_init() 513 drm_kms_helper_poll_fini(adev_to_drm(adev)); in amdgpu_vkms_sw_fini() 574 r = drm_mode_config_helper_suspend(adev_to_drm(adev)); in amdgpu_vkms_suspend() [all …]
|
| A D | amdgpu_fb.c | 138 info = drm_get_format_info(adev_to_drm(adev), mode_cmd); in amdgpufb_create_pinned_object() 234 ret = amdgpu_display_gem_fb_init(adev_to_drm(adev), &rfbdev->rfb, in amdgpufb_create() 256 info->apertures->ranges[0].base = adev_to_drm(adev)->mode_config.fb_base; in amdgpufb_create() 320 if (list_empty(&adev_to_drm(adev)->mode_config.connector_list)) in amdgpu_fbdev_init() 334 drm_fb_helper_prepare(adev_to_drm(adev), &rfbdev->helper, in amdgpu_fbdev_init() 337 ret = drm_fb_helper_init(adev_to_drm(adev), &rfbdev->helper); in amdgpu_fbdev_init() 345 drm_helper_disable_unused_functions(adev_to_drm(adev)); in amdgpu_fbdev_init() 356 amdgpu_fbdev_destroy(adev_to_drm(adev), adev->mode_info.rfbdev); in amdgpu_fbdev_fini()
|
| A D | amdgpu_irq.c | 123 struct drm_device *dev = adev_to_drm(adev); in amdgpu_hotplug_work_func() 337 adev_to_drm(adev)->vblank_disable_immediate = true; in amdgpu_irq_init() 339 r = drm_vblank_init(adev_to_drm(adev), adev->mode_info.num_crtc); in amdgpu_irq_init() 359 r = request_irq(irq, amdgpu_irq_handler, IRQF_SHARED, adev_to_drm(adev)->driver->name, in amdgpu_irq_init() 360 adev_to_drm(adev)); in amdgpu_irq_init() 368 adev_to_drm(adev)->max_vblank_count = 0x00ffffff; in amdgpu_irq_init() 378 free_irq(adev->irq.irq, adev_to_drm(adev)); in amdgpu_irq_fini_hw()
|
| A D | amdgpu_fence.c | 179 pm_runtime_get_noresume(adev_to_drm(adev)->dev); in amdgpu_fence_emit() 303 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_fence_process() 304 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_fence_process() 551 if (!drm_dev_is_unplugged(adev_to_drm(adev))) in amdgpu_fence_driver_hw_fini() 825 struct drm_device *dev = adev_to_drm(adev); in gpu_recover_get() 851 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_fence_init()
|
| A D | amdgpu_rap.c | 49 struct drm_device *dev = adev_to_drm(adev); in amdgpu_rap_debugfs_write() 120 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_rap_debugfs_init()
|
| A D | amdgpu_dma_buf.c | 67 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_dma_buf_attach() 74 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_dma_buf_attach() 93 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_dma_buf_detach() 94 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_dma_buf_detach()
|
| A D | amdgpu_display.c | 97 (amdgpu_display_get_crtc_scanoutpos(adev_to_drm(adev), work->crtc_id, 0, in amdgpu_display_flip_work_func() 1251 drm_property_create_range(adev_to_drm(adev), 0, "coherent", 0, 1); in amdgpu_display_modeset_create_props() 1260 drm_mode_create_scaling_mode_property(adev_to_drm(adev)); in amdgpu_display_modeset_create_props() 1264 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 1269 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 1275 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 1282 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 1288 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 1294 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 1573 struct drm_device *dev = adev_to_drm(adev); in amdgpu_display_suspend_helper() [all …]
|
| A D | amdgpu_securedisplay.c | 97 struct drm_device *dev = adev_to_drm(adev); in amdgpu_securedisplay_debugfs_write() 176 debugfs_create_file("securedisplay_test", S_IWUSR, adev_to_drm(adev)->primary->debugfs_root, in amdgpu_securedisplay_debugfs_init()
|
| A D | dce_v6_0.c | 283 struct drm_device *dev = adev_to_drm(adev); in dce_v6_0_hpd_init() 328 struct drm_device *dev = adev_to_drm(adev); in dce_v6_0_hpd_fini() 2673 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v6_0_sw_init() 2674 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v6_0_sw_init() 2676 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in dce_v6_0_sw_init() 2683 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v6_0_sw_init() 2708 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v6_0_sw_init() 2719 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v6_0_sw_fini() 2724 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v6_0_sw_fini() 2975 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v6_0_crtc_irq() [all …]
|
| A D | dce_v8_0.c | 277 struct drm_device *dev = adev_to_drm(adev); in dce_v8_0_hpd_init() 322 struct drm_device *dev = adev_to_drm(adev); in dce_v8_0_hpd_fini() 2696 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v8_0_sw_init() 2697 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v8_0_sw_init() 2700 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in dce_v8_0_sw_init() 2708 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v8_0_sw_init() 2732 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v8_0_sw_init() 2744 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v8_0_sw_fini() 2750 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v8_0_sw_fini() 3067 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v8_0_crtc_irq() [all …]
|
| A D | dce_v10_0.c | 332 struct drm_device *dev = adev_to_drm(adev); in dce_v10_0_hpd_init() 387 struct drm_device *dev = adev_to_drm(adev); in dce_v10_0_hpd_fini() 2795 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v10_0_sw_init() 2796 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v10_0_sw_init() 2799 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in dce_v10_0_sw_init() 2807 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v10_0_sw_init() 2831 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v10_0_sw_init() 2843 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v10_0_sw_fini() 2849 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v10_0_sw_fini() 3251 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v10_0_crtc_irq() [all …]
|
| A D | amdgpu_acpi.c | 455 pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_atif_handler() 457 drm_helper_hpd_irq_event(adev_to_drm(adev)); in amdgpu_atif_handler() 458 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_atif_handler() 459 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_atif_handler() 864 list_for_each_entry(tmp, &adev_to_drm(adev)->mode_config.encoder_list, in amdgpu_acpi_init()
|
| A D | dce_v11_0.c | 350 struct drm_device *dev = adev_to_drm(adev); in dce_v11_0_hpd_init() 404 struct drm_device *dev = adev_to_drm(adev); in dce_v11_0_hpd_fini() 2913 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v11_0_sw_init() 2914 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v11_0_sw_init() 2917 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in dce_v11_0_sw_init() 2925 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v11_0_sw_init() 2950 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v11_0_sw_init() 2962 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v11_0_sw_fini() 2968 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v11_0_sw_fini() 3375 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v11_0_crtc_irq() [all …]
|
| A D | amdgpu_gart.c | 241 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_gart_unbind() 292 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_gart_map()
|
| A D | amdgpu_device.c | 309 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_device_mm_access() 3301 adev->asic_reset_res, adev_to_drm(adev)->unique); in amdgpu_device_xgmi_reset_func() 3397 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_device_init() 3654 drm_mode_config_init(adev_to_drm(adev)); in amdgpu_device_init() 3843 drm_helper_force_disable_all(adev_to_drm(adev)); in amdgpu_device_fini_hw() 3845 drm_atomic_helper_shutdown(adev_to_drm(adev)); in amdgpu_device_fini_hw() 3887 if (amdgpu_device_supports_px(adev_to_drm(adev))) { in amdgpu_device_fini_sw() 4574 r, adev_to_drm(tmp_adev)->unique); in amdgpu_do_asic_reset() 5087 r, adev_to_drm(tmp_adev)->unique); in amdgpu_device_gpu_recover() 5334 if (!amdgpu_device_supports_baco(adev_to_drm(adev))) in amdgpu_device_baco_enter() [all …]
|
| A D | amdgpu_fw_attestation.c | 140 adev_to_drm(adev)->primary->debugfs_root, in amdgpu_fw_attestation_debugfs_init()
|
| A D | amdgpu_amdkfd.c | 129 .drm_render_minor = adev_to_drm(adev)->render->index, in amdgpu_amdkfd_device_init() 171 adev_to_drm(adev), &gpu_resources); in amdgpu_amdkfd_device_init() 498 if (obj->dev->driver != adev_to_drm(adev)->driver) in amdgpu_amdkfd_get_dmabuf_info()
|
| A D | amdgpu_gem.c | 131 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_gem_force_release() 925 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_gem_info_show() 970 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_gem_init()
|
| A D | amdgpu_vcn.c | 330 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_suspend() 354 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_resume() 367 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_resume()
|
| A D | amdgpu_uvd.c | 457 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_uvd_suspend() 490 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_uvd_resume() 503 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_uvd_resume()
|
| /linux/drivers/gpu/drm/amd/pm/ |
| A D | amdgpu_pm.c | 1728 adev_to_drm(adev)->unique, in amdgpu_get_thermal_throttling_logging() 2241 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_temp() 2577 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_fan1_min() 2609 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_fan1_max() 2800 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_vddgfx() 2843 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_vddnb() 2883 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_power_avg() 2933 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_power_cap_generic() 3047 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_sclk() 3086 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_mclk() [all …]
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| A D | amdgpu_dm.c | 316 struct drm_device *dev = adev_to_drm(adev); in get_crtc_by_otg_inst() 1371 adev->dm.ddev = adev_to_drm(adev); in amdgpu_dm_init() 2368 s3_handle_mst(adev_to_drm(adev), true); in dm_suspend() 2551 struct drm_device *ddev = adev_to_drm(adev); in dm_resume() 3282 struct drm_device *dev = adev_to_drm(adev); in register_hpd_handlers() 3796 adev_to_drm(adev)->mode_config.max_width = 16384; in amdgpu_dm_mode_config_init() 3797 adev_to_drm(adev)->mode_config.max_height = 16384; in amdgpu_dm_mode_config_init() 3800 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in amdgpu_dm_mode_config_init() 3818 drm_atomic_private_obj_init(adev_to_drm(adev), in amdgpu_dm_mode_config_init() 4039 adev_to_drm(dm->adev)->dev, in amdgpu_dm_register_backlight_device() [all …]
|
| A D | amdgpu_dm_irq.c | 885 struct drm_device *dev = adev_to_drm(adev); in amdgpu_dm_hpd_init() 921 struct drm_device *dev = adev_to_drm(adev); in amdgpu_dm_hpd_fini()
|
| A D | amdgpu_dm_debugfs.c | 2913 spin_lock_irq(&adev_to_drm(adev)->event_lock); in crc_win_update_set() 2937 spin_unlock_irq(&adev_to_drm(adev)->event_lock); in crc_win_update_set() 3040 struct drm_device *dev = adev_to_drm(adev); in mst_topo_show() 3074 struct drm_device *dev = adev_to_drm(adev); in trigger_hpd_mst_set() 3141 amdgpu_dm_trigger_timing_sync(adev_to_drm(adev)); in force_timing_sync_set() 3295 struct drm_minor *minor = adev_to_drm(adev)->primary; in dtn_debugfs_init()
|