Home
last modified time | relevance | path

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

123

/linux/drivers/gpu/drm/amd/amdgpu/
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 …]
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()
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()
613 r = drm_mode_config_helper_suspend(adev_to_drm(adev)); in amdgpu_vkms_suspend()
[all …]
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()
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()
A Damdgpu_display.c70 struct drm_device *dev = adev_to_drm(adev); in amdgpu_display_hotplug_work_func()
162 drm_dbg_vbl(adev_to_drm(adev), in amdgpu_display_flip_work_func()
1379 drm_mode_create_scaling_mode_property(adev_to_drm(adev)); in amdgpu_display_modeset_create_props()
1383 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1388 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1394 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1401 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1407 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1685 struct drm_device *dev = adev_to_drm(adev); in amdgpu_display_robj_is_fb()
1699 struct drm_device *dev = adev_to_drm(adev); in amdgpu_display_suspend_helper()
[all …]
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()
2709 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v8_0_sw_init()
2710 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v8_0_sw_init()
2715 adev_to_drm(adev)->mode_config.prefer_shadow = 0; in dce_v8_0_sw_init()
2725 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v8_0_sw_init()
2761 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v8_0_sw_init()
2773 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v8_0_sw_fini()
2779 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v8_0_sw_fini()
3098 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v8_0_crtc_irq()
[all …]
A Ddce_v6_0.c301 struct drm_device *dev = adev_to_drm(adev); in dce_v6_0_hpd_init()
347 struct drm_device *dev = adev_to_drm(adev); in dce_v6_0_hpd_fini()
2694 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v6_0_sw_init()
2695 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v6_0_sw_init()
2697 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in dce_v6_0_sw_init()
2704 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v6_0_sw_init()
2741 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v6_0_sw_init()
2752 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v6_0_sw_fini()
2757 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v6_0_sw_fini()
3010 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v6_0_crtc_irq()
[all …]
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()
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()
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()
2794 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v10_0_sw_init()
2795 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v10_0_sw_init()
2798 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in dce_v10_0_sw_init()
2806 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v10_0_sw_init()
2841 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v10_0_sw_init()
2853 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v10_0_sw_fini()
2859 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v10_0_sw_fini()
3263 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v10_0_crtc_irq()
[all …]
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()
2920 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v11_0_sw_init()
2921 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v11_0_sw_init()
2924 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in dce_v11_0_sw_init()
2932 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v11_0_sw_init()
2968 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v11_0_sw_init()
2980 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v11_0_sw_fini()
2986 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v11_0_sw_fini()
3395 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v11_0_crtc_irq()
[all …]
A Damdgpu_fw_attestation.c138 adev_to_drm(adev)->primary->debugfs_root, in amdgpu_fw_attestation_debugfs_init()
A Damdgpu_device.c358 dev = adev_to_drm(adev); in amdgpu_device_detect_runtime_pm_mode()
465 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_device_mm_access()
4013 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_device_init()
4349 drm_mode_config_init(adev_to_drm(adev)); in amdgpu_device_init()
4548 drm_helper_force_disable_all(adev_to_drm(adev)); in amdgpu_device_fini_hw()
4550 drm_atomic_helper_shutdown(adev_to_drm(adev)); in amdgpu_device_fini_hw()
4577 if (drm_dev_is_unplugged(adev_to_drm(adev))) in amdgpu_device_fini_hw()
4620 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_device_fini_sw()
5368 r, adev_to_drm(tmp_adev)->unique); in amdgpu_do_asic_reset()
5779 r, adev_to_drm(tmp_adev)->unique); in amdgpu_device_gpu_recover()
[all …]
A Damdgpu_gart.c313 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_gart_unbind()
355 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_gart_map()
A Damdgpu_acpi.c503 pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_atif_handler()
505 drm_helper_hpd_irq_event(adev_to_drm(adev)); in amdgpu_atif_handler()
506 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_atif_handler()
507 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_atif_handler()
1253 list_for_each_entry(tmp, &adev_to_drm(adev)->mode_config.encoder_list, in amdgpu_acpi_init()
A Damdgpu_gem.c133 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()
A Damdgpu_vcn.c325 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_suspend()
349 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_resume()
362 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_resume()
1154 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_vcn_fwlog_init()
A Damdgpu_drv.c2326 ddev = adev_to_drm(adev); in amdgpu_pci_probe()
2367 !list_empty(&adev_to_drm(adev)->mode_config.connector_list)) { in amdgpu_pci_probe()
2370 drm_fbdev_ttm_setup(adev_to_drm(adev), 8); in amdgpu_pci_probe()
2372 drm_fbdev_ttm_setup(adev_to_drm(adev), 32); in amdgpu_pci_probe()
2507 r, adev_to_drm(adev)->unique); in amdgpu_drv_delayed_reset_work_handler()
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()
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/drivers/gpu/drm/amd/display/amdgpu_dm/
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 …]
A Damdgpu_dm.c344 struct drm_device *dev = adev_to_drm(adev); in get_crtc_by_otg_inst()
438 struct drm_device *dev = adev_to_drm(adev); in dm_pflip_high_irq()
639 drm_dbg_vbl(adev_to_drm(adev), in dm_crtc_high_irq()
1823 adev->dm.ddev = adev_to_drm(adev); in amdgpu_dm_init()
2969 s3_handle_mst(adev_to_drm(adev), true); in dm_suspend()
3131 struct drm_device *ddev = adev_to_drm(adev); in dm_resume()
3828 struct drm_device *dev = adev_to_drm(adev); in register_hpd_handlers()
4464 drm_atomic_private_obj_init(adev_to_drm(adev), in amdgpu_dm_mode_config_init()
5399 adev_to_drm(adev)->dev, in dm_early_init()
12347 drm_err(adev_to_drm(ctx->driver_context), in dm_write_reg_func()
[all …]
A Damdgpu_dm_irq.c894 struct drm_device *dev = adev_to_drm(adev); in amdgpu_dm_hpd_init()
935 struct drm_device *dev = adev_to_drm(adev); in amdgpu_dm_hpd_fini()
/linux/drivers/gpu/drm/amd/pm/
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()
A Damdgpu_pm.c1523 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_sensor_generic()
1532 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_sensor_generic()
1708 adev_to_drm(adev)->unique, in amdgpu_get_thermal_throttling_logging()
2775 ret = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_pwm1_enable()
2783 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_pwm1_enable()
2820 ret = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_set_pwm1_enable()
2828 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_hwmon_set_pwm1_enable()
2869 err = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_set_pwm1()
2888 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_hwmon_set_pwm1()
3251 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_power_cap_generic()
[all …]

Completed in 156 milliseconds

123