/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_debugfs.c | 72 adev_to_drm(adev)->primary->debugfs_root, in amdgpu_debugfs_add_files() 73 adev_to_drm(adev)->primary); in amdgpu_debugfs_add_files() 154 adev_to_drm(adev)->primary->debugfs_root, in amdgpu_debugfs_autodump_init() 230 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 232 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 238 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 245 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 246 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 295 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() 296 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op() [all …]
|
D | dce_virtual.c | 243 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_virtual_crtc_funcs); in dce_virtual_crtc_init() 387 adev_to_drm(adev)->max_vblank_count = 0; in dce_virtual_sw_init() 389 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_virtual_sw_init() 391 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_virtual_sw_init() 392 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_virtual_sw_init() 394 adev_to_drm(adev)->mode_config.preferred_depth = 24; in dce_virtual_sw_init() 395 adev_to_drm(adev)->mode_config.prefer_shadow = 1; in dce_virtual_sw_init() 397 adev_to_drm(adev)->mode_config.fb_base = adev->gmc.aper_base; in dce_virtual_sw_init() 403 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_virtual_sw_init() 404 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_virtual_sw_init() [all …]
|
D | amdgpu_fb.c | 138 info = drm_get_format_info(adev_to_drm(adev), mode_cmd); in amdgpufb_create_pinned_object() 234 ret = amdgpu_display_framebuffer_init(adev_to_drm(adev), &rfbdev->rfb, in amdgpufb_create() 257 info->apertures->ranges[0].base = adev_to_drm(adev)->mode_config.fb_base; in amdgpufb_create() 273 vga_switcheroo_client_fb_set(adev_to_drm(adev)->pdev, info); in amdgpufb_create() 321 if (list_empty(&adev_to_drm(adev)->mode_config.connector_list)) in amdgpu_fbdev_init() 335 drm_fb_helper_prepare(adev_to_drm(adev), &rfbdev->helper, in amdgpu_fbdev_init() 338 ret = drm_fb_helper_init(adev_to_drm(adev), &rfbdev->helper); in amdgpu_fbdev_init() 346 drm_helper_disable_unused_functions(adev_to_drm(adev)); in amdgpu_fbdev_init() 357 amdgpu_fbdev_destroy(adev_to_drm(adev), adev->mode_info.rfbdev); in amdgpu_fbdev_fini()
|
D | amdgpu_irq.c | 88 struct drm_device *dev = adev_to_drm(adev); in amdgpu_hotplug_work_func() 271 adev_to_drm(adev)->vblank_disable_immediate = true; in amdgpu_irq_init() 273 r = drm_vblank_init(adev_to_drm(adev), adev->mode_info.num_crtc); in amdgpu_irq_init() 287 r = drm_irq_install(adev_to_drm(adev), pci_irq_vector(adev->pdev, 0)); in amdgpu_irq_init() 294 adev_to_drm(adev)->max_vblank_count = 0x00ffffff; in amdgpu_irq_init() 314 drm_irq_uninstall(adev_to_drm(adev)); in amdgpu_irq_fini() 525 if (!adev_to_drm(adev)->irq_enabled) in amdgpu_irq_get() 555 if (!adev_to_drm(adev)->irq_enabled) in amdgpu_irq_put() 586 if (!adev_to_drm(adev)->irq_enabled) in amdgpu_irq_enabled()
|
D | amdgpu_display.c | 96 (amdgpu_display_get_crtc_scanoutpos(adev_to_drm(adev), work->crtc_id, 0, in amdgpu_display_flip_work_func() 622 drm_property_create_range(adev_to_drm(adev), 0, "coherent", 0, 1); in amdgpu_display_modeset_create_props() 627 drm_property_create_range(adev_to_drm(adev), 0, "load detection", 0, 1); in amdgpu_display_modeset_create_props() 631 drm_mode_create_scaling_mode_property(adev_to_drm(adev)); in amdgpu_display_modeset_create_props() 635 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 640 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 646 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 653 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 659 drm_property_create_enum(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props() 665 drm_property_create_range(adev_to_drm(adev), 0, in amdgpu_display_modeset_create_props()
|
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()
|
D | amdgpu_acpi.c | 466 pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_atif_handler() 468 drm_helper_hpd_irq_event(adev_to_drm(adev)); in amdgpu_atif_handler() 469 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_atif_handler() 470 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_atif_handler() 820 list_for_each_entry(tmp, &adev_to_drm(adev)->mode_config.encoder_list, in amdgpu_acpi_init()
|
D | dce_v6_0.c | 282 struct drm_device *dev = adev_to_drm(adev); in dce_v6_0_hpd_init() 327 struct drm_device *dev = adev_to_drm(adev); in dce_v6_0_hpd_fini() 2594 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v6_0_crtc_funcs); in dce_v6_0_crtc_init() 2602 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; in dce_v6_0_crtc_init() 2603 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; in dce_v6_0_crtc_init() 2672 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_v6_0_sw_init() 2673 adev_to_drm(adev)->mode_config.async_page_flip = true; in dce_v6_0_sw_init() 2674 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v6_0_sw_init() 2675 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v6_0_sw_init() 2676 adev_to_drm(adev)->mode_config.preferred_depth = 24; in dce_v6_0_sw_init() [all …]
|
D | dce_v8_0.c | 276 struct drm_device *dev = adev_to_drm(adev); in dce_v8_0_hpd_init() 321 struct drm_device *dev = adev_to_drm(adev); in dce_v8_0_hpd_fini() 2612 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v8_0_crtc_funcs); in dce_v8_0_crtc_init() 2620 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; in dce_v8_0_crtc_init() 2621 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; in dce_v8_0_crtc_init() 2692 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_v8_0_sw_init() 2694 adev_to_drm(adev)->mode_config.async_page_flip = true; in dce_v8_0_sw_init() 2696 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v8_0_sw_init() 2697 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v8_0_sw_init() 2699 adev_to_drm(adev)->mode_config.preferred_depth = 24; in dce_v8_0_sw_init() [all …]
|
D | dce_v10_0.c | 331 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() 2704 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v10_0_crtc_funcs); in dce_v10_0_crtc_init() 2712 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; in dce_v10_0_crtc_init() 2713 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; in dce_v10_0_crtc_init() 2795 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_v10_0_sw_init() 2797 adev_to_drm(adev)->mode_config.async_page_flip = true; in dce_v10_0_sw_init() 2799 adev_to_drm(adev)->mode_config.max_width = 16384; in dce_v10_0_sw_init() 2800 adev_to_drm(adev)->mode_config.max_height = 16384; in dce_v10_0_sw_init() 2802 adev_to_drm(adev)->mode_config.preferred_depth = 24; in dce_v10_0_sw_init() [all …]
|
D | dce_v11_0.c | 349 struct drm_device *dev = adev_to_drm(adev); in dce_v11_0_hpd_init() 403 struct drm_device *dev = adev_to_drm(adev); in dce_v11_0_hpd_fini() 2812 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v11_0_crtc_funcs); in dce_v11_0_crtc_init() 2820 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; in dce_v11_0_crtc_init() 2821 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; in dce_v11_0_crtc_init() 2916 adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; in dce_v11_0_sw_init() 2918 adev_to_drm(adev)->mode_config.async_page_flip = true; in dce_v11_0_sw_init() 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() 2923 adev_to_drm(adev)->mode_config.preferred_depth = 24; in dce_v11_0_sw_init() [all …]
|
D | amdgpu_fence.c | 158 pm_runtime_get_noresume(adev_to_drm(adev)->dev); in amdgpu_fence_emit() 287 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_fence_process() 288 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_fence_process()
|
D | amdgpu_amdkfd.c | 131 .drm_render_minor = adev_to_drm(adev)->render->index, in amdgpu_amdkfd_device_init() 172 kgd2kfd_device_init(adev->kfd.dev, adev_to_drm(adev), &gpu_resources); in amdgpu_amdkfd_device_init() 491 if (obj->dev->driver != adev_to_drm(adev)->driver) in amdgpu_amdkfd_get_dmabuf_info()
|
D | amdgpu_device.c | 1691 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_device_enable_virtual_display() 3052 adev->asic_reset_res = amdgpu_device_baco_enter(adev_to_drm(adev)); in amdgpu_device_xgmi_reset_func() 3058 adev->asic_reset_res = amdgpu_device_baco_exit(adev_to_drm(adev)); in amdgpu_device_xgmi_reset_func() 3074 adev->asic_reset_res, adev_to_drm(adev)->unique); in amdgpu_device_xgmi_reset_func() 3168 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_device_init() 3421 drm_mode_config_init(adev_to_drm(adev)); in amdgpu_device_init() 3571 drm_helper_force_disable_all(adev_to_drm(adev)); in amdgpu_device_fini() 3573 drm_atomic_helper_shutdown(adev_to_drm(adev)); in amdgpu_device_fini() 3597 if (amdgpu_device_supports_boco(adev_to_drm(adev))) in amdgpu_device_fini() 4267 r, adev_to_drm(tmp_adev)->unique); in amdgpu_do_asic_reset() [all …]
|
D | amdgpu_pmu.c | 229 pmu_file_prefix, adev_to_drm(adev)->primary->index); in init_pmu_by_type()
|
D | amdgpu_i2c.c | 256 struct drm_device *dev = adev_to_drm(adev); in amdgpu_i2c_add()
|
D | amdgpu_ring.c | 423 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_ring_init()
|
D | amdgpu_virt.c | 54 adev_to_drm(adev)->driver->driver_features &= ~DRIVER_ATOMIC; in amdgpu_virt_init_setting()
|
D | amdgpu_atombios.c | 151 adev->i2c_bus[i] = amdgpu_i2c_create(adev_to_drm(adev), &i2c, stmp); in amdgpu_atombios_i2c_init() 544 amdgpu_link_encoder_connector(adev_to_drm(adev)); in amdgpu_atombios_get_connector_info_from_object_table() 1998 atom_card_info->dev = adev_to_drm(adev); in amdgpu_atombios_init()
|
D | amdgpu_ttm.c | 1889 adev_to_drm(adev)->anon_inode->i_mapping, in amdgpu_ttm_init() 1890 adev_to_drm(adev)->vma_offset_manager, in amdgpu_ttm_init() 2570 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_ttm_debugfs_init()
|
/Linux-v5.10/drivers/gpu/drm/amd/pm/ |
D | amdgpu_pm.c | 1918 adev_to_drm(adev)->unique, in amdgpu_get_thermal_throttling_logging() 2214 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_temp() 2216 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_temp() 2241 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_temp() 2242 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_hwmon_show_temp() 2347 ret = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_pwm1_enable() 2349 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_pwm1_enable() 2357 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_pwm1_enable() 2358 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_pwm1_enable() 2365 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_hwmon_get_pwm1_enable() [all …]
|
D | amdgpu_dpm.c | 125 struct drm_device *ddev = adev_to_drm(adev); in amdgpu_dpm_get_active_displays() 146 struct drm_device *dev = adev_to_drm(adev); in amdgpu_dpm_get_vblank_time() 173 struct drm_device *dev = adev_to_drm(adev); in amdgpu_dpm_get_vrefresh()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm.c | 304 struct drm_device *dev = adev_to_drm(adev); in get_crtc_by_otg_inst() 363 spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq() 371 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq() 422 list_add_tail(&e->base.link, &adev_to_drm(adev)->vblank_event_list); in dm_pflip_high_irq() 435 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_pflip_high_irq() 471 spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); in dm_vupdate_high_irq() 481 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_vupdate_high_irq() 530 spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); in dm_crtc_high_irq() 565 spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); in dm_crtc_high_irq() 895 struct drm_device *dev = adev_to_drm(adev); in amdgpu_check_debugfs_connector_property_change() [all …]
|
D | amdgpu_dm_irq.c | 722 struct drm_device *dev = adev_to_drm(adev); in amdgpu_dm_hpd_init() 758 struct drm_device *dev = adev_to_drm(adev); in amdgpu_dm_hpd_fini()
|
D | amdgpu_dm_mst_types.c | 327 struct drm_device *dev = adev_to_drm(adev); in dm_dp_create_fake_mst_encoders() 443 adev_to_drm(dm->adev), in amdgpu_dm_initialize_dp_connector()
|