/linux/drivers/gpu/drm/amd/amdgpu/ |
H A 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(ade in amdgpu_debugfs_regs2_op() [all...] |
H A D | amdgpu_vkms.c | 506 adev_to_drm(adev)->max_vblank_count = 0; in amdgpu_vkms_sw_init() 508 adev_to_drm(adev)->mode_config.funcs = &amdgpu_vkms_mode_funcs; in amdgpu_vkms_sw_init() 510 adev_to_drm(adev)->mode_config.max_width = XRES_MAX; in amdgpu_vkms_sw_init() 511 adev_to_drm(adev)->mode_config.max_height = YRES_MAX; in amdgpu_vkms_sw_init() 513 adev_to_drm(adev)->mode_config.preferred_depth = 24; in amdgpu_vkms_sw_init() 514 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in amdgpu_vkms_sw_init() 516 adev_to_drm(adev)->mode_config.fb_modifiers_not_supported = true; in amdgpu_vkms_sw_init() 524 r = amdgpu_vkms_output_init(adev_to_drm(adev), &adev->amdgpu_vkms_output[i], i); in amdgpu_vkms_sw_init() 529 r = drm_vblank_init(adev_to_drm(adev), adev->mode_info.num_crtc); in amdgpu_vkms_sw_init() 533 drm_kms_helper_poll_init(adev_to_drm(ade in amdgpu_vkms_sw_init() [all...] |
H A 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()
|
H A D | amdgpu_fence.c | 147 pm_runtime_get_noresume(adev_to_drm(adev)->dev); in amdgpu_fence_emit() 280 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_fence_process() 281 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_fence_process() 580 if (!drm_dev_is_unplugged(adev_to_drm(adev))) in amdgpu_fence_driver_hw_fini() 588 if (!drm_dev_is_unplugged(adev_to_drm(adev)) && in amdgpu_fence_driver_hw_fini() 999 struct drm_device *dev = adev_to_drm(adev); in gpu_recover_get() 1046 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_fence_init()
|
H A D | amdgpu_display.c | 71 struct drm_device *dev = adev_to_drm(adev); in amdgpu_display_hotplug_work_func() 141 (amdgpu_display_get_crtc_scanoutpos(adev_to_drm(adev), work->crtc_id, 0, in amdgpu_display_flip_work_func() 163 drm_dbg_vbl(adev_to_drm(adev), in amdgpu_display_flip_work_func() 1373 drm_property_create_range(adev_to_drm(adev), 0, "coherent", 0, 1); in amdgpu_display_modeset_create_props() 1378 drm_property_create_range(adev_to_drm(adev), 0, "load detection", 0, 1); in amdgpu_display_modeset_create_props() 1382 drm_mode_create_scaling_mode_property(adev_to_drm(adev)); in amdgpu_display_modeset_create_props() 1386 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 1391 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 1397 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 1404 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() [all …]
|
H A D | dce_v8_0.c | 293 struct drm_device *dev = adev_to_drm(adev); in dce_v8_0_hpd_init() 339 struct drm_device *dev = adev_to_drm(adev); in dce_v8_0_hpd_fini() 2650 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v8_0_crtc_funcs); in dce_v8_0_crtc_init() 2658 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; in dce_v8_0_crtc_init() 2659 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; in dce_v8_0_crtc_init() 2731 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_v8_0_sw_init() 2733 adev_to_drm(adev)->mode_config.async_page_flip = true; in dce_v8_0_sw_init() 2735 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v8_0_sw_init() 2736 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v8_0_sw_init() 2738 adev_to_drm(ade in dce_v8_0_sw_init() [all...] |
H A D | amdgpu_securedisplay.c | 97 struct drm_device *dev = adev_to_drm(adev); in amdgpu_securedisplay_debugfs_write() 184 debugfs_create_file("securedisplay_test", S_IWUSR, adev_to_drm(adev)->primary->debugfs_root, in amdgpu_securedisplay_debugfs_init()
|
H A D | amdgpu_irq.c | 310 r = request_irq(irq, amdgpu_irq_handler, IRQF_SHARED, adev_to_drm(adev)->driver->name, in amdgpu_irq_init() 311 adev_to_drm(adev)); in amdgpu_irq_init() 317 adev_to_drm(adev)->max_vblank_count = 0x00ffffff; in amdgpu_irq_init() 333 free_irq(adev->irq.irq, adev_to_drm(adev)); in amdgpu_irq_fini_hw()
|
H A D | dce_v10_0.c | 330 struct drm_device *dev = adev_to_drm(adev); in dce_v10_0_hpd_init() 386 struct drm_device *dev = adev_to_drm(adev); in dce_v10_0_hpd_fini() 2725 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v10_0_crtc_funcs); in dce_v10_0_crtc_init() 2733 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; in dce_v10_0_crtc_init() 2734 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; in dce_v10_0_crtc_init() 2817 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_v10_0_sw_init() 2819 adev_to_drm(adev)->mode_config.async_page_flip = true; in dce_v10_0_sw_init() 2821 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v10_0_sw_init() 2822 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v10_0_sw_init() 2824 adev_to_drm(ade in dce_v10_0_sw_init() [all...] |
H A D | amdgpu_userq.c | 282 drm_dbg_driver(adev_to_drm(uq_mgr->adev), in amdgpu_userq_get_doorbell_index() 310 drm_dbg_driver(adev_to_drm(uq_mgr->adev), "Invalid queue id to destroy\n"); in amdgpu_userq_destroy() 329 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_userq_destroy() 330 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_userq_destroy() 428 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_userq_create() 431 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_userq_create()
|
H A D | amdgpu_fw_attestation.c | 142 adev_to_drm(adev)->primary->debugfs_root, in amdgpu_fw_attestation_debugfs_init()
|
H A D | amdgpu_gart.c | 315 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_gart_unbind() 357 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_gart_map()
|
H A D | amdgpu_acpi.c | 507 pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_atif_handler() 509 drm_helper_hpd_irq_event(adev_to_drm(adev)); in amdgpu_atif_handler() 510 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_atif_handler() 511 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_atif_handler() 1258 list_for_each_entry(tmp, &adev_to_drm(adev)->mode_config.encoder_list, in amdgpu_acpi_init()
|
H A D | amdgpu_job.c | 97 if (!drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_job_timedout() 145 drm_dev_wedged_event(adev_to_drm(adev), in amdgpu_job_timedout()
|
H A D | amdgpu_device.c | 575 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_device_mm_access() 4210 adev->asic_reset_res, adev_to_drm(adev)->unique); in amdgpu_device_xgmi_reset_func() 4693 drm_mode_config_init(adev_to_drm(adev)); in amdgpu_device_init() 4898 if (!drm_drv_uses_atomic_modeset(adev_to_drm(adev))) in amdgpu_device_fini_hw() 4899 drm_helper_force_disable_all(adev_to_drm(adev)); in amdgpu_device_fini_hw() 4901 drm_atomic_helper_shutdown(adev_to_drm(adev)); in amdgpu_device_fini_hw() 4929 if (drm_dev_is_unplugged(adev_to_drm(adev))) in amdgpu_device_fini_hw() 4979 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_device_fini_sw() 5151 drm_client_dev_suspend(adev_to_drm(adev), false); in amdgpu_device_suspend() 5289 drm_client_dev_resume(adev_to_drm(ade in amdgpu_device_resume() [all...] |
H A D | amdgpu_vcn.c | 327 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_save_vcpu_bo_inst() 380 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_resume() 393 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_resume() 1201 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_vcn_fwlog_init() 1421 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_vcn_sched_mask_init()
|
H A D | amdgpu_gem.c | 241 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_gem_force_release() 1141 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_gem_info_show() 1188 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_gem_init()
|
H A D | amdgpu_uvd.c | 453 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_uvd_prepare_suspend() 491 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_uvd_resume() 504 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_uvd_resume()
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm.c | 284 drm_err(adev_to_drm(adev), "dc_stream_state is NULL for crtc '%d'!\n", in dm_vblank_get_counter() 305 drm_err(adev_to_drm(adev), "dc_stream_state is NULL for crtc '%d'!\n", in dm_crtc_get_scanoutpos() 356 struct drm_device *dev = adev_to_drm(adev); in get_crtc_by_otg_inst() 452 struct drm_device *dev = adev_to_drm(adev); in dm_pflip_high_irq() 467 spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq() 474 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq() 524 list_add_tail(&e->base.link, &adev_to_drm(adev)->vblank_event_list); in dm_pflip_high_irq() 537 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq() 587 spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); in dm_vupdate_high_irq() 597 spin_unlock_irqrestore(&adev_to_drm(ade in dm_vupdate_high_irq() [all...] |
H A D | amdgpu_dm_color.c | 227 prop = drm_property_create(adev_to_drm(adev), in amdgpu_dm_create_color_properties() 234 prop = drm_property_create_range(adev_to_drm(adev), in amdgpu_dm_create_color_properties() 242 prop = amdgpu_create_tf_property(adev_to_drm(adev), in amdgpu_dm_create_color_properties() 249 prop = drm_property_create_range(adev_to_drm(adev), in amdgpu_dm_create_color_properties() 255 prop = drm_property_create(adev_to_drm(adev), in amdgpu_dm_create_color_properties() 262 prop = drm_property_create(adev_to_drm(adev), in amdgpu_dm_create_color_properties() 269 prop = drm_property_create_range(adev_to_drm(adev), in amdgpu_dm_create_color_properties() 276 prop = amdgpu_create_tf_property(adev_to_drm(adev), in amdgpu_dm_create_color_properties() 283 prop = drm_property_create(adev_to_drm(adev), in amdgpu_dm_create_color_properties() 290 prop = drm_property_create_range(adev_to_drm(ade in amdgpu_dm_create_color_properties() [all...] |
H A D | amdgpu_dm_wb.c | 105 drm_err(adev_to_drm(adev), "fail to reserve bo (%d)\n", r); in amdgpu_dm_wb_prepare_job() 111 drm_err(adev_to_drm(adev), "reserving fence slot failed (%d)\n", r); in amdgpu_dm_wb_prepare_job()
|
H A D | amdgpu_dm_irq.c | 524 drm_dbg(adev_to_drm(adev), "DM_IRQ: early resume\n"); in amdgpu_dm_irq_resume_early() 545 drm_dbg(adev_to_drm(adev), "DM_IRQ: resume\n"); in amdgpu_dm_irq_resume_late() 890 struct drm_device *dev = adev_to_drm(adev); in amdgpu_dm_hpd_init() 961 struct drm_device *dev = adev_to_drm(adev); in amdgpu_dm_hpd_fini()
|
H A D | amdgpu_dm_mst_types.c | 110 drm_dbg_dp(adev_to_drm(adev), "AUX partially written\n"); in dm_dp_aux_transfer() 136 drm_dbg_dp(adev_to_drm(adev), "DP AUX transfer fail:%d\n", operation_result); in dm_dp_aux_transfer() 140 drm_dbg_dp(adev_to_drm(adev), "AUX reply command not ACK: 0x%02x.", in dm_dp_aux_transfer() 582 struct drm_device *dev = adev_to_drm(adev); in dm_dp_create_fake_mst_encoders() 818 drm_dp_mst_topology_mgr_init(&aconnector->mst_mgr, adev_to_drm(dm->adev), in amdgpu_dm_initialize_dp_connector()
|
/linux/drivers/gpu/drm/amd/pm/ |
H A 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/drivers/gpu/drm/amd/pm/legacy-dpm/ |
H A D | kv_dpm.c | 1245 drm_err(adev_to_drm(adev), "amdgpu_kv_smc_bapm_enable failed\n"); in kv_dpm_enable_bapm() 1269 drm_err(adev_to_drm(adev), "kv_process_firmware_header failed\n"); in kv_dpm_enable() 1276 drm_err(adev_to_drm(adev), "kv_program_bootup_state failed\n"); in kv_dpm_enable() 1282 drm_err(adev_to_drm(adev), "kv_upload_dpm_settings failed\n"); in kv_dpm_enable() 1287 drm_err(adev_to_drm(adev), "kv_populate_uvd_table failed\n"); in kv_dpm_enable() 1292 drm_err(adev_to_drm(adev), "kv_populate_vce_table failed\n"); in kv_dpm_enable() 1297 drm_err(adev_to_drm(adev), "kv_populate_samu_table failed\n"); in kv_dpm_enable() 1302 drm_err(adev_to_drm(adev), "kv_populate_acp_table failed\n"); in kv_dpm_enable() 1313 drm_err(adev_to_drm(adev), "kv_enable_auto_thermal_throttling failed\n"); in kv_dpm_enable() 1319 drm_err(adev_to_drm(ade in kv_dpm_enable() [all...] |