Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/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()
240 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs2_op()
369 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_read()
425 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_write()
482 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_read()
538 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_write()
1474 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_test_ib_show()
1524 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_evict_vram()
1545 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_evict_gtt()
1565 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_benchmark()
[all …]
A Damdgpu_vkms.c491 adev_to_drm(adev)->max_vblank_count = 0; in amdgpu_vkms_sw_init()
493 adev_to_drm(adev)->mode_config.funcs = &amdgpu_vkms_mode_funcs; in amdgpu_vkms_sw_init()
495 adev_to_drm(adev)->mode_config.max_width = XRES_MAX; in amdgpu_vkms_sw_init()
496 adev_to_drm(adev)->mode_config.max_height = YRES_MAX; in amdgpu_vkms_sw_init()
498 adev_to_drm(adev)->mode_config.preferred_depth = 24; in amdgpu_vkms_sw_init()
499 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in amdgpu_vkms_sw_init()
520 drm_kms_helper_poll_init(adev_to_drm(adev)); in amdgpu_vkms_sw_init()
535 drm_kms_helper_poll_fini(adev_to_drm(adev)); in amdgpu_vkms_sw_fini()
536 drm_mode_config_cleanup(adev_to_drm(adev)); in amdgpu_vkms_sw_fini()
600 r = drm_mode_config_helper_suspend(adev_to_drm(adev)); in amdgpu_vkms_suspend()
[all …]
A Damdgpu_display.c68 struct drm_device *dev = adev_to_drm(adev); in amdgpu_display_hotplug_work_func()
160 drm_dbg_vbl(adev_to_drm(adev), in amdgpu_display_flip_work_func()
1291 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1296 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1302 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1309 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1315 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1321 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1601 struct drm_device *dev = adev_to_drm(adev); in amdgpu_display_robj_is_fb()
1615 struct drm_device *dev = adev_to_drm(adev); in amdgpu_display_suspend_helper()
[all …]
A Damdgpu_rap.c49 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()
A Damdgpu_dma_buf.c65 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()
A Damdgpu_fence.c186 pm_runtime_get_noresume(adev_to_drm(adev)->dev); in amdgpu_fence_emit()
312 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_fence_process()
313 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_fence_process()
577 if (!drm_dev_is_unplugged(adev_to_drm(adev))) in amdgpu_fence_driver_hw_fini()
877 struct drm_device *dev = adev_to_drm(adev); in gpu_recover_get()
921 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_fence_init()
A Ddce_v8_0.c279 struct drm_device *dev = adev_to_drm(adev); in dce_v8_0_hpd_init()
324 struct drm_device *dev = adev_to_drm(adev); in dce_v8_0_hpd_fini()
2694 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v8_0_sw_init()
2695 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v8_0_sw_init()
2700 adev_to_drm(adev)->mode_config.prefer_shadow = 0; in dce_v8_0_sw_init()
2710 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v8_0_sw_init()
2746 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v8_0_sw_init()
2758 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v8_0_sw_fini()
2764 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v8_0_sw_fini()
3083 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v8_0_crtc_irq()
[all …]
A Damdgpu_securedisplay.c97 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()
A Ddce_v6_0.c285 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()
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()
2678 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in dce_v6_0_sw_init()
2685 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v6_0_sw_init()
2722 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v6_0_sw_init()
2733 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v6_0_sw_fini()
2738 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v6_0_sw_fini()
2991 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v6_0_crtc_irq()
[all …]
A Damdgpu_irq.c295 r = request_irq(irq, amdgpu_irq_handler, IRQF_SHARED, adev_to_drm(adev)->driver->name, in amdgpu_irq_init()
296 adev_to_drm(adev)); in amdgpu_irq_init()
301 adev_to_drm(adev)->max_vblank_count = 0x00ffffff; in amdgpu_irq_init()
311 free_irq(adev->irq.irq, adev_to_drm(adev)); in amdgpu_irq_fini_hw()
A Damdgpu_gart.c167 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_gart_unbind()
212 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_gart_map()
A Ddce_v10_0.c334 struct drm_device *dev = adev_to_drm(adev); in dce_v10_0_hpd_init()
389 struct drm_device *dev = adev_to_drm(adev); in dce_v10_0_hpd_fini()
2797 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v10_0_sw_init()
2798 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v10_0_sw_init()
2801 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in dce_v10_0_sw_init()
2809 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v10_0_sw_init()
2844 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v10_0_sw_init()
2856 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v10_0_sw_fini()
2862 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v10_0_sw_fini()
3266 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v10_0_crtc_irq()
[all …]
A Ddce_v11_0.c352 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()
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()
2919 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in dce_v11_0_sw_init()
2927 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v11_0_sw_init()
2963 drm_kms_helper_poll_init(adev_to_drm(adev)); in dce_v11_0_sw_init()
2975 drm_kms_helper_poll_fini(adev_to_drm(adev)); in dce_v11_0_sw_fini()
2981 drm_mode_config_cleanup(adev_to_drm(adev)); in dce_v11_0_sw_fini()
3390 drm_handle_vblank(adev_to_drm(adev), crtc); in dce_v11_0_crtc_irq()
[all …]
A Damdgpu_acpi.c452 pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_atif_handler()
454 drm_helper_hpd_irq_event(adev_to_drm(adev)); in amdgpu_atif_handler()
455 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_atif_handler()
456 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_atif_handler()
861 list_for_each_entry(tmp, &adev_to_drm(adev)->mode_config.encoder_list, in amdgpu_acpi_init()
A Damdgpu_device.c315 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_device_mm_access()
2076 struct drm_device *dev = adev_to_drm(adev); in amdgpu_device_ip_early_init()
3542 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_device_init()
3824 drm_mode_config_init(adev_to_drm(adev)); in amdgpu_device_init()
4007 drm_atomic_helper_shutdown(adev_to_drm(adev)); in amdgpu_device_fini_hw()
4034 if (drm_dev_is_unplugged(adev_to_drm(adev))) in amdgpu_device_fini_hw()
4067 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_device_fini_sw()
4833 struct drm_device *dev = adev_to_drm(adev); in amdgpu_reset_capture_coredumpm()
4887 r, adev_to_drm(tmp_adev)->unique); in amdgpu_do_asic_reset()
5297 r, adev_to_drm(tmp_adev)->unique); in amdgpu_device_gpu_recover()
[all …]
A Damdgpu_fw_attestation.c140 adev_to_drm(adev)->primary->debugfs_root, in amdgpu_fw_attestation_debugfs_init()
A Damdgpu_vcn.c290 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_suspend()
314 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_resume()
327 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_resume()
1105 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_vcn_fwlog_init()
A Damdgpu_gem.c133 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_gem_force_release()
952 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_gem_info_show()
997 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_gem_init()
A Damdgpu_drv.c2146 ddev = adev_to_drm(adev); in amdgpu_pci_probe()
2177 !list_empty(&adev_to_drm(adev)->mode_config.connector_list)) { in amdgpu_pci_probe()
2180 drm_fbdev_generic_setup(adev_to_drm(adev), 8); in amdgpu_pci_probe()
2182 drm_fbdev_generic_setup(adev_to_drm(adev), 32); in amdgpu_pci_probe()
2346 r, adev_to_drm(adev)->unique); in amdgpu_drv_delayed_reset_work_handler()
A Damdgpu_amdkfd.c156 .drm_render_minor = adev_to_drm(adev)->render->index, in amdgpu_amdkfd_device_init()
517 if (obj->dev->driver != adev_to_drm(adev)->driver) in amdgpu_amdkfd_get_dmabuf_info()
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/
A Damdgpu_pm.c1644 adev_to_drm(adev)->unique, in amdgpu_get_thermal_throttling_logging()
1740 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_device_read_powershift()
2181 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_temp()
2502 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_fan1_min()
2534 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_fan1_max()
2713 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_vddgfx()
2756 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_vddnb()
2796 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_power_avg()
2842 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_power_cap_generic()
2957 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_sclk()
[all …]
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()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/amdgpu_dm/
A Damdgpu_dm.c325 struct drm_device *dev = adev_to_drm(adev); in get_crtc_by_otg_inst()
1496 adev->dm.ddev = adev_to_drm(adev); in amdgpu_dm_init()
2545 s3_handle_mst(adev_to_drm(adev), true); in dm_suspend()
2700 struct drm_device *ddev = adev_to_drm(adev); in dm_resume()
3416 struct drm_device *dev = adev_to_drm(adev); in register_hpd_handlers()
3928 adev_to_drm(adev)->mode_config.max_width = 16384; in amdgpu_dm_mode_config_init()
3929 adev_to_drm(adev)->mode_config.max_height = 16384; in amdgpu_dm_mode_config_init()
3934 adev_to_drm(adev)->mode_config.prefer_shadow = 0; in amdgpu_dm_mode_config_init()
3952 drm_atomic_private_obj_init(adev_to_drm(adev), in amdgpu_dm_mode_config_init()
4178 adev_to_drm(dm->adev)->dev, in amdgpu_dm_register_backlight_device()
[all …]
A Damdgpu_dm_plane.c347 drm_dbg_kms(adev_to_drm(adev), "validate_dcc: returned error: %d\n", ret); in fill_gfx9_plane_attributes_from_modifiers()
1494 ret = atomic_replace_property_blob_from_id(adev_to_drm(adev), in dm_drm_plane_set_property()
1499 ret = atomic_replace_property_blob_from_id(adev_to_drm(adev), in dm_drm_plane_set_property()
1569 adev_to_drm(dm->adev)->mode_config.fb_modifiers_not_supported = true; in amdgpu_dm_plane_init()
1571 res = drm_universal_plane_init(adev_to_drm(dm->adev), plane, possible_crtcs, in amdgpu_dm_plane_init()
/linux-6.3-rc2/drivers/gpu/drm/amd/amdkfd/
A Dkfd_process.c1053 pm_runtime_mark_last_busy(adev_to_drm(pdd->dev->adev)->dev); in kfd_process_destroy_pdds()
1054 pm_runtime_put_autosuspend(adev_to_drm(pdd->dev->adev)->dev); in kfd_process_destroy_pdds()
1650 err = pm_runtime_get_sync(adev_to_drm(dev->adev)->dev); in kfd_bind_process_to_device()
1652 pm_runtime_put_autosuspend(adev_to_drm(dev->adev)->dev); in kfd_bind_process_to_device()
1672 pm_runtime_mark_last_busy(adev_to_drm(dev->adev)->dev); in kfd_bind_process_to_device()
1673 pm_runtime_put_autosuspend(adev_to_drm(dev->adev)->dev); in kfd_bind_process_to_device()

Completed in 114 milliseconds

123