Home
last modified time | relevance | path

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

123

/openbmc/linux/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()
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 …]
H A Damdgpu_vkms.c508 adev_to_drm(adev)->max_vblank_count = 0; in amdgpu_vkms_sw_init()
510 adev_to_drm(adev)->mode_config.funcs = &amdgpu_vkms_mode_funcs; in amdgpu_vkms_sw_init()
512 adev_to_drm(adev)->mode_config.max_width = XRES_MAX; in amdgpu_vkms_sw_init()
513 adev_to_drm(adev)->mode_config.max_height = YRES_MAX; in amdgpu_vkms_sw_init()
515 adev_to_drm(adev)->mode_config.preferred_depth = 24; in amdgpu_vkms_sw_init()
516 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in amdgpu_vkms_sw_init()
518 adev_to_drm(adev)->mode_config.fb_modifiers_not_supported = true; in amdgpu_vkms_sw_init()
526 r = amdgpu_vkms_output_init(adev_to_drm(adev), &adev->amdgpu_vkms_output[i], i); in amdgpu_vkms_sw_init()
531 r = drm_vblank_init(adev_to_drm(adev), adev->mode_info.num_crtc); in amdgpu_vkms_sw_init()
535 drm_kms_helper_poll_init(adev_to_drm(adev)); in amdgpu_vkms_sw_init()
[all …]
H A Damdgpu_display.c70 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()
1328 drm_property_create_range(adev_to_drm(adev), 0, "coherent", 0, 1); in amdgpu_display_modeset_create_props()
1333 drm_property_create_range(adev_to_drm(adev), 0, "load detection", 0, 1); in amdgpu_display_modeset_create_props()
1337 drm_mode_create_scaling_mode_property(adev_to_drm(adev)); in amdgpu_display_modeset_create_props()
1341 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1346 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1352 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
1359 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
[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.c185 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()
H 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()
H A Ddce_v8_0.c277 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 …]
H 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()
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 …]
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 Ddce_v10_0.c328 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 …]
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()
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()
H 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()
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 …]
H A Damdgpu_device.c256 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_device_mm_access()
3351 adev->asic_reset_res = amdgpu_device_baco_enter(adev_to_drm(adev)); in amdgpu_device_xgmi_reset_func()
3357 adev->asic_reset_res = amdgpu_device_baco_exit(adev_to_drm(adev)); in amdgpu_device_xgmi_reset_func()
3374 adev->asic_reset_res, adev_to_drm(adev)->unique); in amdgpu_device_xgmi_reset_func()
3497 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_device_init()
3800 drm_mode_config_init(adev_to_drm(adev)); in amdgpu_device_init()
3984 if (!drm_drv_uses_atomic_modeset(adev_to_drm(adev))) in amdgpu_device_fini_hw()
3985 drm_helper_force_disable_all(adev_to_drm(adev)); in amdgpu_device_fini_hw()
3987 drm_atomic_helper_shutdown(adev_to_drm(adev)); in amdgpu_device_fini_hw()
4013 if (drm_dev_is_unplugged(adev_to_drm(adev))) in amdgpu_device_fini_hw()
[all …]
H A Damdgpu_fw_attestation.c138 adev_to_drm(adev)->primary->debugfs_root, in amdgpu_fw_attestation_debugfs_init()
H A Damdgpu_gart.c305 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_gart_unbind()
350 if (!drm_dev_enter(adev_to_drm(adev), &idx)) in amdgpu_gart_map()
H A Damdgpu_acpi.c501 pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_atif_handler()
503 drm_helper_hpd_irq_event(adev_to_drm(adev)); in amdgpu_atif_handler()
504 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_atif_handler()
505 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_atif_handler()
1248 list_for_each_entry(tmp, &adev_to_drm(adev)->mode_config.encoder_list, in amdgpu_acpi_init()
H A Damdgpu_gem.c135 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()
1001 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_gem_init()
H A Damdgpu_drv.c2134 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()
2341 r, adev_to_drm(adev)->unique); in amdgpu_drv_delayed_reset_work_handler()
H A Damdgpu_vcn.c309 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_suspend()
333 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_resume()
346 if (drm_dev_enter(adev_to_drm(adev), &idx)) { in amdgpu_vcn_resume()
1137 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_vcn_fwlog_init()
H A Damdgpu_amdkfd.c157 .drm_render_minor = adev_to_drm(adev)->render->index, in amdgpu_amdkfd_device_init()
491 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_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()
/openbmc/linux/drivers/gpu/drm/amd/pm/
H A Damdgpu_pm.c1485 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_sensor_generic()
1487 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_sensor_generic()
1494 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_sensor_generic()
1495 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_sensor_generic()
1646 adev_to_drm(adev)->unique, in amdgpu_get_thermal_throttling_logging()
1940 if (!amdgpu_device_supports_smart_shift(adev_to_drm(adev))) in ss_power_attr_update()
1951 if (!amdgpu_device_supports_smart_shift(adev_to_drm(adev))) in ss_bias_attr_update()
2374 ret = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_pwm1_enable()
2376 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_pwm1_enable()
2382 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_pwm1_enable()
[all …]
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()
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm.c324 struct drm_device *dev = adev_to_drm(adev); in get_crtc_by_otg_inst()
426 spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq()
434 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq()
484 list_add_tail(&e->base.link, &adev_to_drm(adev)->vblank_event_list); in dm_pflip_high_irq()
497 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq()
547 spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); in dm_vupdate_high_irq()
557 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_vupdate_high_irq()
606 spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); in dm_crtc_high_irq()
641 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_crtc_high_irq()
1569 adev->dm.ddev = adev_to_drm(adev); in amdgpu_dm_init()
[all …]
H A Damdgpu_dm_irq.c891 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()

123