Home
last modified time | relevance | path

Searched refs:adev_to_drm (Results 1 – 25 of 75) sorted by relevance

123

/linux-6.15/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_debugfs.c117 r = pm_runtime_get_sync(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()
241 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs2_op()
408 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_gprwave_read()
528 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_read()
588 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_write()
1663 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_test_ib_show()
1713 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_evict_vram()
1734 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_evict_gtt()
1754 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_benchmark()
[all …]
H A Damdgpu_vkms.c506 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()
533 drm_kms_helper_poll_init(adev_to_drm(adev)); in amdgpu_vkms_sw_init()
548 drm_kms_helper_poll_fini(adev_to_drm(adev)); in amdgpu_vkms_sw_fini()
549 drm_mode_config_cleanup(adev_to_drm(adev)); in amdgpu_vkms_sw_fini()
[all …]
H A Damdgpu_rap.c49 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 Damdgpu_fence.c183 pm_runtime_get_noresume(adev_to_drm(adev)->dev); in amdgpu_fence_emit()
309 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_fence_process()
310 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_fence_process()
607 if (!drm_dev_is_unplugged(adev_to_drm(adev))) in amdgpu_fence_driver_hw_fini()
615 if (!drm_dev_is_unplugged(adev_to_drm(adev)) && in amdgpu_fence_driver_hw_fini()
946 struct drm_device *dev = adev_to_drm(adev); in gpu_recover_get()
993 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_fence_init()
H A Damdgpu_display.c71 struct drm_device *dev = adev_to_drm(adev); in amdgpu_display_hotplug_work_func()
163 drm_dbg_vbl(adev_to_drm(adev), in amdgpu_display_flip_work_func()
1380 drm_mode_create_scaling_mode_property(adev_to_drm(adev)); in amdgpu_display_modeset_create_props()
1384 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1389 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1395 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1402 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1408 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1686 struct drm_device *dev = adev_to_drm(adev); in amdgpu_display_robj_is_fb()
1700 struct drm_device *dev = adev_to_drm(adev); in amdgpu_display_suspend_helper()
[all …]
H A Ddce_v8_0.c293 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()
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()
2741 adev_to_drm(adev)->mode_config.prefer_shadow = 0; in dce_v8_0_sw_init()
2751 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v8_0_sw_init()
2787 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v8_0_sw_init()
2799 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v8_0_sw_fini()
2805 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v8_0_sw_fini()
3119 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v8_0_crtc_irq()
[all …]
H A Damdgpu_securedisplay.c97 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 Damdgpu_irq.c309 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()
316 adev_to_drm(adev)->max_vblank_count = 0x00ffffff; in amdgpu_irq_init()
332 free_irq(adev->irq.irq, adev_to_drm(adev)); in amdgpu_irq_fini_hw()
H A Ddce_v6_0.c309 struct drm_device *dev = adev_to_drm(adev); in dce_v6_0_hpd_init()
355 struct drm_device *dev = adev_to_drm(adev); in dce_v6_0_hpd_fini()
2772 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v6_0_sw_init()
2773 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v6_0_sw_init()
2775 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in dce_v6_0_sw_init()
2782 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v6_0_sw_init()
2819 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v6_0_sw_init()
2830 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v6_0_sw_fini()
2835 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v6_0_sw_fini()
3104 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v6_0_crtc_irq()
[all …]
H A Ddce_v10_0.c330 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()
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()
2825 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in dce_v10_0_sw_init()
2833 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v10_0_sw_init()
2868 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v10_0_sw_init()
2880 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v10_0_sw_fini()
2886 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v10_0_sw_fini()
3285 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v10_0_crtc_irq()
[all …]
H A Ddce_v11_0.c354 struct drm_device *dev = adev_to_drm(adev); in dce_v11_0_hpd_init()
409 struct drm_device *dev = adev_to_drm(adev); in dce_v11_0_hpd_fini()
2947 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v11_0_sw_init()
2948 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v11_0_sw_init()
2951 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in dce_v11_0_sw_init()
2959 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v11_0_sw_init()
2995 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v11_0_sw_init()
3007 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v11_0_sw_fini()
3013 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v11_0_sw_fini()
3417 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v11_0_crtc_irq()
[all …]
H A Damdgpu_fw_attestation.c142 adev_to_drm(adev)->primary->debugfs_root, in amdgpu_fw_attestation_debugfs_init()
H A Damdgpu_gart.c315 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 Damdgpu_device.c474 dev = adev_to_drm(adev); in amdgpu_device_detect_runtime_pm_mode()
581 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_device_mm_access()
4228 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_device_init()
4572 drm_mode_config_init(adev_to_drm(adev)); in amdgpu_device_init()
4780 drm_atomic_helper_shutdown(adev_to_drm(adev)); in amdgpu_device_fini_hw()
4808 if (drm_dev_is_unplugged(adev_to_drm(adev))) in amdgpu_device_fini_hw()
4858 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_device_fini_sw()
5095 drm_client_dev_resume(adev_to_drm(adev), false); in amdgpu_device_resume()
5766 r, adev_to_drm(tmp_adev)->unique); in amdgpu_do_asic_reset()
6092 r, adev_to_drm(tmp_adev)->unique); in amdgpu_device_gpu_recover()
[all …]
H A Damdgpu_acpi.c507 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 Damdgpu_job.c97 if (!drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_job_timedout()
169 drm_dev_wedged_event(adev_to_drm(adev), DRM_WEDGE_RECOVERY_NONE); in amdgpu_job_timedout()
H A Damdgpu_vcn.c326 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_save_vcpu_bo_inst()
379 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_resume()
392 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_resume()
1200 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_vcn_fwlog_init()
1420 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_vcn_sched_mask_init()
H A Damdgpu_gem.c132 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_gem_force_release()
989 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_gem_info_show()
1036 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_gem_init()
H A Damdgpu_amdkfd.c185 .drm_render_minor = adev_to_drm(adev)->render->index, in amdgpu_amdkfd_device_init()
523 if (obj->dev->driver != adev_to_drm(adev)->driver) in amdgpu_amdkfd_get_dmabuf_info()
H A Damdgpu_uvd.c453 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-6.15/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_color.c227 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(adev), in amdgpu_dm_create_color_properties()
[all …]
H A Damdgpu_dm_irq.c524 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 Damdgpu_dm.c355 struct drm_device *dev = adev_to_drm(adev); in get_crtc_by_otg_inst()
451 struct drm_device *dev = adev_to_drm(adev); in dm_pflip_high_irq()
652 drm_dbg_vbl(adev_to_drm(adev), in dm_crtc_high_irq()
1950 adev->dm.ddev = adev_to_drm(adev); in amdgpu_dm_init()
3204 s3_handle_hdmi_cec(adev_to_drm(adev), true); in dm_suspend()
3206 s3_handle_mst(adev_to_drm(adev), true); in dm_suspend()
3373 drm_dbg_driver(adev_to_drm(adev), in apply_delay_after_dpcd_poweroff()
4081 struct drm_device *dev = adev_to_drm(adev); in register_hpd_handlers()
5693 adev_to_drm(adev)->dev, in dm_early_init()
12683 drm_err(adev_to_drm(ctx->driver_context), in dm_write_reg_func()
[all …]
H A Damdgpu_dm_mst_types.c110 drm_dbg_dp(adev_to_drm(adev), "amdgpu: AUX partially written\n"); in dm_dp_aux_transfer()
136 drm_dbg_dp(adev_to_drm(adev), "amdgpu: DP AUX transfer fail:%d\n", operation_result); in dm_dp_aux_transfer()
140 drm_dbg_dp(adev_to_drm(adev), "amdgpu: 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-6.15/drivers/gpu/drm/amd/pm/
H A Damdgpu_dpm_internal.c32 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()

123