/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_debugfs.c | 116 adev_to_drm(adev)->primary->debugfs_root, in amdgpu_debugfs_autodump_init() 192 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 194 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 200 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 207 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 208 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 257 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 258 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 305 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_read() 307 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_read() [all …]
|
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() 490 r = amdgpu_vkms_output_init(adev_to_drm(adev), &adev->amdgpu_vkms_output[i], i); 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() [all …]
|
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()
|
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()
|
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()
|
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()
|
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()
|
D | amdgpu_fence.c | 178 pm_runtime_get_noresume(adev_to_drm(adev)->dev); in amdgpu_fence_emit() 308 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_fence_process() 309 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_fence_process() 793 struct drm_device *dev = adev_to_drm(adev); in gpu_recover_get() 819 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_fence_init()
|
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() 1256 drm_property_create_range(adev_to_drm(adev), 0, "load detection", 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() [all …]
|
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() 2593 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v6_0_crtc_funcs); in dce_v6_0_crtc_init() 2601 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; in dce_v6_0_crtc_init() 2602 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; in dce_v6_0_crtc_init() 2671 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_v6_0_sw_init() 2672 adev_to_drm(adev)->mode_config.async_page_flip = true; in dce_v6_0_sw_init() 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() 2675 adev_to_drm(adev)->mode_config.preferred_depth = 24; in dce_v6_0_sw_init() [all …]
|
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() 2612 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v8_0_crtc_funcs); in dce_v8_0_crtc_init() 2620 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; in dce_v8_0_crtc_init() 2621 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; in dce_v8_0_crtc_init() 2692 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_v8_0_sw_init() 2694 adev_to_drm(adev)->mode_config.async_page_flip = true; in dce_v8_0_sw_init() 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() 2699 adev_to_drm(adev)->mode_config.preferred_depth = 24; in dce_v8_0_sw_init() [all …]
|
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() 2700 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v10_0_crtc_funcs); in dce_v10_0_crtc_init() 2708 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; in dce_v10_0_crtc_init() 2709 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; in dce_v10_0_crtc_init() 2791 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_v10_0_sw_init() 2793 adev_to_drm(adev)->mode_config.async_page_flip = true; in dce_v10_0_sw_init() 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() 2798 adev_to_drm(adev)->mode_config.preferred_depth = 24; in dce_v10_0_sw_init() [all …]
|
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()
|
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() 2805 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v11_0_crtc_funcs); in dce_v11_0_crtc_init() 2813 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; in dce_v11_0_crtc_init() 2814 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; in dce_v11_0_crtc_init() 2909 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_v11_0_sw_init() 2911 adev_to_drm(adev)->mode_config.async_page_flip = true; in dce_v11_0_sw_init() 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() 2916 adev_to_drm(adev)->mode_config.preferred_depth = 24; in dce_v11_0_sw_init() [all …]
|
D | amdgpu_fw_attestation.c | 140 adev_to_drm(adev)->primary->debugfs_root, in amdgpu_fw_attestation_debugfs_init()
|
D | amdgpu_amdkfd.c | 128 .drm_render_minor = adev_to_drm(adev)->render->index, in amdgpu_amdkfd_device_init() 170 adev_to_drm(adev), &gpu_resources); in amdgpu_amdkfd_device_init() 497 if (obj->dev->driver != adev_to_drm(adev)->driver) in amdgpu_amdkfd_get_dmabuf_info()
|
D | amdgpu_device.c | 3296 adev->asic_reset_res = amdgpu_device_baco_enter(adev_to_drm(adev)); in amdgpu_device_xgmi_reset_func() 3302 adev->asic_reset_res = amdgpu_device_baco_exit(adev_to_drm(adev)); in amdgpu_device_xgmi_reset_func() 3319 adev->asic_reset_res, adev_to_drm(adev)->unique); in amdgpu_device_xgmi_reset_func() 3413 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_device_init() 3665 drm_mode_config_init(adev_to_drm(adev)); in amdgpu_device_init() 3854 drm_helper_force_disable_all(adev_to_drm(adev)); in amdgpu_device_fini_hw() 3856 drm_atomic_helper_shutdown(adev_to_drm(adev)); in amdgpu_device_fini_hw() 3896 if (amdgpu_device_supports_px(adev_to_drm(adev))) { in amdgpu_device_fini_sw() 4576 r, adev_to_drm(tmp_adev)->unique); in amdgpu_do_asic_reset() 5085 r, adev_to_drm(tmp_adev)->unique); in amdgpu_device_gpu_recover() [all …]
|
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()
|
D | amdgpu_ring.c | 422 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_ring_init()
|
D | amdgpu_ib.c | 460 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_sa_init()
|
D | aldebaran.c | 170 r, adev_to_drm(tmp_adev)->unique); in aldebaran_mode2_perform_reset()
|
/Linux-v5.15/drivers/gpu/drm/amd/pm/ |
D | amdgpu_pm.c | 1726 adev_to_drm(adev)->unique, in amdgpu_get_thermal_throttling_logging() 1976 !amdgpu_device_supports_smart_shift(adev_to_drm(adev))) in ss_power_attr_update() 1993 if (!amdgpu_device_supports_smart_shift(adev_to_drm(adev))) in ss_bias_attr_update() 2235 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_temp() 2237 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_temp() 2262 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_temp() 2263 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_temp() 2370 ret = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_pwm1_enable() 2372 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_pwm1_enable() 2377 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_pwm1_enable() [all …]
|
/Linux-v5.15/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm.c | 311 struct drm_device *dev = adev_to_drm(adev); in get_crtc_by_otg_inst() 379 spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq() 387 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq() 437 list_add_tail(&e->base.link, &adev_to_drm(adev)->vblank_event_list); in dm_pflip_high_irq() 450 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq() 500 spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); in dm_vupdate_high_irq() 510 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_vupdate_high_irq() 559 spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); in dm_crtc_high_irq() 594 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_crtc_high_irq() 1094 adev->dm.ddev = adev_to_drm(adev); in amdgpu_dm_init() [all …]
|
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()
|
D | amdgpu_dm_debugfs.c | 2911 spin_lock_irq(&adev_to_drm(adev)->event_lock); in crc_win_update_set() 2935 spin_unlock_irq(&adev_to_drm(adev)->event_lock); in crc_win_update_set() 3038 struct drm_device *dev = adev_to_drm(adev); in mst_topo_show() 3072 struct drm_device *dev = adev_to_drm(adev); in trigger_hpd_mst_set() 3139 amdgpu_dm_trigger_timing_sync(adev_to_drm(adev)); in force_timing_sync_set() 3293 struct drm_minor *minor = adev_to_drm(adev)->primary; in dtn_debugfs_init()
|