/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_debugfs.c | 117 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 119 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 125 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 132 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 133 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 182 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 183 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 241 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs2_op() 243 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs2_op() 249 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs2_op() [all …]
|
D | amdgpu_vkms.c | 492 adev_to_drm(adev)->max_vblank_count = 0; in amdgpu_vkms_sw_init() 494 adev_to_drm(adev)->mode_config.funcs = &amdgpu_vkms_mode_funcs; in amdgpu_vkms_sw_init() 496 adev_to_drm(adev)->mode_config.max_width = XRES_MAX; in amdgpu_vkms_sw_init() 497 adev_to_drm(adev)->mode_config.max_height = YRES_MAX; in amdgpu_vkms_sw_init() 499 adev_to_drm(adev)->mode_config.preferred_depth = 24; in amdgpu_vkms_sw_init() 500 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in amdgpu_vkms_sw_init() 502 adev_to_drm(adev)->mode_config.fb_modifiers_not_supported = true; in amdgpu_vkms_sw_init() 510 r = amdgpu_vkms_output_init(adev_to_drm(adev), &adev->amdgpu_vkms_output[i], i); in amdgpu_vkms_sw_init() 515 r = drm_vblank_init(adev_to_drm(adev), adev->mode_info.num_crtc); in amdgpu_vkms_sw_init() 519 drm_kms_helper_poll_init(adev_to_drm(adev)); in amdgpu_vkms_sw_init() [all …]
|
D | amdgpu_display.c | 70 struct drm_device *dev = adev_to_drm(adev); in amdgpu_display_hotplug_work_func() 140 (amdgpu_display_get_crtc_scanoutpos(adev_to_drm(adev), work->crtc_id, 0, in amdgpu_display_flip_work_func() 162 drm_dbg_vbl(adev_to_drm(adev), in amdgpu_display_flip_work_func() 1307 drm_property_create_range(adev_to_drm(adev), 0, "coherent", 0, 1); in amdgpu_display_modeset_create_props() 1312 drm_property_create_range(adev_to_drm(adev), 0, "load detection", 0, 1); in amdgpu_display_modeset_create_props() 1316 drm_mode_create_scaling_mode_property(adev_to_drm(adev)); in amdgpu_display_modeset_create_props() 1320 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 1325 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 1331 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 1338 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() [all …]
|
D | amdgpu_rap.c | 49 struct drm_device *dev = adev_to_drm(adev); in amdgpu_rap_debugfs_write() 119 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_rap_debugfs_init()
|
D | amdgpu_fence.c | 185 pm_runtime_get_noresume(adev_to_drm(adev)->dev); in amdgpu_fence_emit() 311 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_fence_process() 312 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_fence_process() 608 if (!drm_dev_is_unplugged(adev_to_drm(adev))) in amdgpu_fence_driver_hw_fini() 616 if (!drm_dev_is_unplugged(adev_to_drm(adev)) && in amdgpu_fence_driver_hw_fini() 947 struct drm_device *dev = adev_to_drm(adev); in gpu_recover_get() 992 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_fence_init()
|
D | amdgpu_dma_buf.c | 65 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_dma_buf_attach() 72 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_dma_buf_attach() 91 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_dma_buf_detach() 92 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_dma_buf_detach()
|
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() 2606 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v8_0_crtc_funcs); in dce_v8_0_crtc_init() 2614 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; in dce_v8_0_crtc_init() 2615 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; in dce_v8_0_crtc_init() 2686 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_v8_0_sw_init() 2688 adev_to_drm(adev)->mode_config.async_page_flip = true; in dce_v8_0_sw_init() 2690 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v8_0_sw_init() 2691 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v8_0_sw_init() 2693 adev_to_drm(adev)->mode_config.preferred_depth = 24; in dce_v8_0_sw_init() [all …]
|
D | amdgpu_securedisplay.c | 97 struct drm_device *dev = adev_to_drm(adev); in amdgpu_securedisplay_debugfs_write() 180 debugfs_create_file("securedisplay_test", S_IWUSR, adev_to_drm(adev)->primary->debugfs_root, in amdgpu_securedisplay_debugfs_init()
|
D | dce_v6_0.c | 285 struct drm_device *dev = adev_to_drm(adev); in dce_v6_0_hpd_init() 330 struct drm_device *dev = adev_to_drm(adev); in dce_v6_0_hpd_fini() 2595 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v6_0_crtc_funcs); in dce_v6_0_crtc_init() 2603 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; in dce_v6_0_crtc_init() 2604 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; in dce_v6_0_crtc_init() 2673 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_v6_0_sw_init() 2674 adev_to_drm(adev)->mode_config.async_page_flip = true; in dce_v6_0_sw_init() 2675 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v6_0_sw_init() 2676 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v6_0_sw_init() 2677 adev_to_drm(adev)->mode_config.preferred_depth = 24; in dce_v6_0_sw_init() [all …]
|
D | amdgpu_irq.c | 309 r = request_irq(irq, amdgpu_irq_handler, IRQF_SHARED, adev_to_drm(adev)->driver->name, in amdgpu_irq_init() 310 adev_to_drm(adev)); in amdgpu_irq_init() 315 adev_to_drm(adev)->max_vblank_count = 0x00ffffff; in amdgpu_irq_init() 325 free_irq(adev->irq.irq, adev_to_drm(adev)); in amdgpu_irq_fini_hw()
|
D | dce_v10_0.c | 328 struct drm_device *dev = adev_to_drm(adev); in dce_v10_0_hpd_init() 383 struct drm_device *dev = adev_to_drm(adev); in dce_v10_0_hpd_fini() 2694 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v10_0_crtc_funcs); in dce_v10_0_crtc_init() 2702 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; in dce_v10_0_crtc_init() 2703 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; in dce_v10_0_crtc_init() 2785 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_v10_0_sw_init() 2787 adev_to_drm(adev)->mode_config.async_page_flip = true; in dce_v10_0_sw_init() 2789 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v10_0_sw_init() 2790 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v10_0_sw_init() 2792 adev_to_drm(adev)->mode_config.preferred_depth = 24; in dce_v10_0_sw_init() [all …]
|
D | dce_v11_0.c | 352 struct drm_device *dev = adev_to_drm(adev); in dce_v11_0_hpd_init() 406 struct drm_device *dev = adev_to_drm(adev); in dce_v11_0_hpd_fini() 2807 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v11_0_crtc_funcs); in dce_v11_0_crtc_init() 2815 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; in dce_v11_0_crtc_init() 2816 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; in dce_v11_0_crtc_init() 2911 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_v11_0_sw_init() 2913 adev_to_drm(adev)->mode_config.async_page_flip = true; in dce_v11_0_sw_init() 2915 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v11_0_sw_init() 2916 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v11_0_sw_init() 2918 adev_to_drm(adev)->mode_config.preferred_depth = 24; in dce_v11_0_sw_init() [all …]
|
D | amdgpu_device.c | 255 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_device_mm_access() 2021 struct drm_device *dev = adev_to_drm(adev); in amdgpu_device_ip_early_init() 3354 adev->asic_reset_res = amdgpu_device_baco_enter(adev_to_drm(adev)); in amdgpu_device_xgmi_reset_func() 3360 adev->asic_reset_res = amdgpu_device_baco_exit(adev_to_drm(adev)); in amdgpu_device_xgmi_reset_func() 3377 adev->asic_reset_res, adev_to_drm(adev)->unique); in amdgpu_device_xgmi_reset_func() 3504 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_device_init() 3806 drm_mode_config_init(adev_to_drm(adev)); in amdgpu_device_init() 3990 if (!drm_drv_uses_atomic_modeset(adev_to_drm(adev))) in amdgpu_device_fini_hw() 3991 drm_helper_force_disable_all(adev_to_drm(adev)); in amdgpu_device_fini_hw() 3993 drm_atomic_helper_shutdown(adev_to_drm(adev)); in amdgpu_device_fini_hw() [all …]
|
D | amdgpu_fw_attestation.c | 138 adev_to_drm(adev)->primary->debugfs_root, in amdgpu_fw_attestation_debugfs_init()
|
D | amdgpu_gart.c | 304 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_gart_unbind() 349 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_gart_map()
|
D | amdgpu_acpi.c | 492 pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_atif_handler() 494 drm_helper_hpd_irq_event(adev_to_drm(adev)); in amdgpu_atif_handler() 495 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_atif_handler() 496 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_atif_handler() 1238 list_for_each_entry(tmp, &adev_to_drm(adev)->mode_config.encoder_list, in amdgpu_acpi_init()
|
D | amdgpu_gem.c | 135 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_gem_force_release() 954 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_gem_info_show() 999 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_gem_init()
|
D | amdgpu_drv.c | 2134 ddev = adev_to_drm(adev); in amdgpu_pci_probe() 2169 !list_empty(&adev_to_drm(adev)->mode_config.connector_list)) { in amdgpu_pci_probe() 2172 drm_fbdev_generic_setup(adev_to_drm(adev), 8); in amdgpu_pci_probe() 2174 drm_fbdev_generic_setup(adev_to_drm(adev), 32); in amdgpu_pci_probe() 2339 r, adev_to_drm(adev)->unique); in amdgpu_drv_delayed_reset_work_handler()
|
D | amdgpu_vcn.c | 310 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_suspend() 334 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_resume() 347 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_resume() 1131 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_vcn_fwlog_init()
|
D | amdgpu_amdkfd.c | 157 .drm_render_minor = adev_to_drm(adev)->render->index, in amdgpu_amdkfd_device_init() 513 if (obj->dev->driver != adev_to_drm(adev)->driver) in amdgpu_amdkfd_get_dmabuf_info()
|
D | amdgpu_uvd.c | 453 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_uvd_suspend() 486 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_uvd_resume() 499 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_uvd_resume()
|
/Linux-v6.6/drivers/gpu/drm/amd/pm/ |
D | amdgpu_pm.c | 1481 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_sensor_generic() 1483 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_sensor_generic() 1490 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_sensor_generic() 1491 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_sensor_generic() 1642 adev_to_drm(adev)->unique, in amdgpu_get_thermal_throttling_logging() 1936 if (!amdgpu_device_supports_smart_shift(adev_to_drm(adev))) in ss_power_attr_update() 1947 if (!amdgpu_device_supports_smart_shift(adev_to_drm(adev))) in ss_bias_attr_update() 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() 2378 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_pwm1_enable() [all …]
|
D | amdgpu_dpm_internal.c | 32 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_dpm_get_active_displays() 52 struct drm_device *dev = adev_to_drm(adev); in amdgpu_dpm_get_vblank_time() 79 struct drm_device *dev = adev_to_drm(adev); in amdgpu_dpm_get_vrefresh()
|
/Linux-v6.6/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm.c | 325 struct drm_device *dev = adev_to_drm(adev); in get_crtc_by_otg_inst() 427 spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq() 435 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq() 485 list_add_tail(&e->base.link, &adev_to_drm(adev)->vblank_event_list); in dm_pflip_high_irq() 498 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq() 548 spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); in dm_vupdate_high_irq() 558 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_vupdate_high_irq() 607 spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); in dm_crtc_high_irq() 642 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_crtc_high_irq() 1560 adev->dm.ddev = adev_to_drm(adev); in amdgpu_dm_init() [all …]
|
D | amdgpu_dm_irq.c | 891 struct drm_device *dev = adev_to_drm(adev); in amdgpu_dm_hpd_init() 927 struct drm_device *dev = adev_to_drm(adev); in amdgpu_dm_hpd_fini()
|