/linux-6.1.9/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_drv.c | 51 int rockchip_drm_dma_attach_device(struct drm_device *drm_dev, in rockchip_drm_dma_attach_device() argument 54 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_attach_device() 78 void rockchip_drm_dma_detach_device(struct drm_device *drm_dev, in rockchip_drm_dma_detach_device() argument 81 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_detach_device() 89 void rockchip_drm_dma_init_device(struct drm_device *drm_dev, in rockchip_drm_dma_init_device() argument 92 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_init_device() 100 static int rockchip_drm_init_iommu(struct drm_device *drm_dev) in rockchip_drm_init_iommu() argument 102 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_init_iommu() 125 static void rockchip_iommu_cleanup(struct drm_device *drm_dev) in rockchip_iommu_cleanup() argument 127 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_iommu_cleanup() [all …]
|
D | rockchip_rgb.c | 29 struct drm_device *drm_dev; member 77 struct drm_device *drm_dev) in rockchip_rgb_init() argument 93 rgb->drm_dev = drm_dev; in rockchip_rgb_init() 131 ret = drm_simple_encoder_init(drm_dev, encoder, DRM_MODE_ENCODER_NONE); in rockchip_rgb_init() 133 DRM_DEV_ERROR(drm_dev->dev, in rockchip_rgb_init() 155 connector = drm_bridge_connector_init(rgb->drm_dev, encoder); in rockchip_rgb_init() 157 DRM_DEV_ERROR(drm_dev->dev, in rockchip_rgb_init() 166 DRM_DEV_ERROR(drm_dev->dev, in rockchip_rgb_init()
|
/linux-6.1.9/drivers/gpu/drm/logicvc/ |
D | logicvc_drm.c | 35 struct drm_device *drm_dev, in logicvc_drm_gem_dma_dumb_create() argument 38 struct logicvc_drm *logicvc = logicvc_drm(drm_dev); in logicvc_drm_gem_dma_dumb_create() 43 return drm_gem_dma_dumb_create_internal(file_priv, drm_dev, args); in logicvc_drm_gem_dma_dumb_create() 89 struct drm_device *drm_dev = &logicvc->drm_dev; in logicvc_drm_config_parse() local 90 struct device *dev = drm_dev->dev; in logicvc_drm_config_parse() 131 drm_err(drm_dev, "Missing non-optional layers node\n"); in logicvc_drm_config_parse() 137 drm_err(drm_dev, in logicvc_drm_config_parse() 147 struct drm_device *drm_dev = &logicvc->drm_dev; in logicvc_clocks_prepare() local 148 struct device *dev = drm_dev->dev; in logicvc_clocks_prepare() 187 drm_err(drm_dev, "Missing non-optional clock %s\n", in logicvc_clocks_prepare() [all …]
|
D | logicvc_mode.c | 36 struct drm_device *drm_dev = &logicvc->drm_dev; in logicvc_mode_init() local 37 struct drm_mode_config *mode_config = &drm_dev->mode_config; in logicvc_mode_init() 42 ret = drm_vblank_init(drm_dev, mode_config->num_crtc); in logicvc_mode_init() 44 drm_err(drm_dev, "Failed to initialize vblank\n"); in logicvc_mode_init() 50 drm_err(drm_dev, "Failed to get primary layer\n"); in logicvc_mode_init() 67 drm_mode_config_reset(drm_dev); in logicvc_mode_init() 69 drm_kms_helper_poll_init(drm_dev); in logicvc_mode_init() 76 struct drm_device *drm_dev = &logicvc->drm_dev; in logicvc_mode_fini() local 78 drm_kms_helper_poll_fini(drm_dev); in logicvc_mode_fini()
|
D | logicvc_layer.c | 86 struct drm_device *drm_dev = drm_plane->dev; in logicvc_plane_atomic_check() local 88 struct logicvc_drm *logicvc = logicvc_drm(drm_dev); in logicvc_plane_atomic_check() 105 drm_err(drm_dev, in logicvc_plane_atomic_check() 114 drm_err(drm_dev, "No viable setup for buffer found.\n"); in logicvc_plane_atomic_check() 130 drm_err(drm_dev, "Invalid plane state\n\n"); in logicvc_plane_atomic_check() 142 struct drm_device *drm_dev = &logicvc->drm_dev; in logicvc_plane_atomic_update() local 215 drm_dbg_kms(drm_dev, "Setting layer %d alpha to %d/%d\n", index, in logicvc_plane_atomic_update() 264 struct drm_device *drm_dev = &logicvc->drm_dev; in logicvc_layer_buffer_find_setup() local 279 drm_err(drm_dev, "No reserved memory base was registered!\n"); in logicvc_layer_buffer_find_setup() 285 drm_err(drm_dev, in logicvc_layer_buffer_find_setup() [all …]
|
D | logicvc_crtc.c | 44 struct drm_device *drm_dev = drm_crtc->dev; in logicvc_crtc_atomic_begin() local 52 spin_lock_irqsave(&drm_dev->event_lock, flags); in logicvc_crtc_atomic_begin() 58 spin_unlock_irqrestore(&drm_dev->event_lock, flags); in logicvc_crtc_atomic_begin() 73 struct drm_device *drm_dev = drm_crtc->dev; in logicvc_crtc_atomic_enable() local 143 spin_lock_irqsave(&drm_dev->event_lock, flags); in logicvc_crtc_atomic_enable() 148 spin_unlock_irqrestore(&drm_dev->event_lock, flags); in logicvc_crtc_atomic_enable() 156 struct drm_device *drm_dev = drm_crtc->dev; in logicvc_crtc_atomic_disable() local 176 spin_lock_irq(&drm_dev->event_lock); in logicvc_crtc_atomic_disable() 180 spin_unlock_irq(&drm_dev->event_lock); in logicvc_crtc_atomic_disable() 228 struct drm_device *drm_dev = &logicvc->drm_dev; in logicvc_crtc_vblank_handler() local [all …]
|
D | logicvc_interface.c | 145 struct drm_device *drm_dev = &logicvc->drm_dev; in logicvc_interface_init() local 146 struct device *dev = drm_dev->dev; in logicvc_interface_init() 164 ret = drm_encoder_init(drm_dev, &interface->drm_encoder, in logicvc_interface_init() 167 drm_err(drm_dev, "Failed to initialize encoder\n"); in logicvc_interface_init() 175 ret = drm_connector_init(drm_dev, &interface->drm_connector, in logicvc_interface_init() 179 drm_err(drm_dev, "Failed to initialize connector\n"); in logicvc_interface_init() 189 drm_err(drm_dev, in logicvc_interface_init() 199 drm_err(drm_dev, in logicvc_interface_init()
|
/linux-6.1.9/drivers/gpu/drm/msm/disp/ |
D | msm_disp_snapshot.c | 34 struct drm_device *drm_dev = kms->dev; in msm_disp_snapshot_state_sync() local 43 disp_state->dev = drm_dev->dev; in msm_disp_snapshot_state_sync() 44 disp_state->drm_dev = drm_dev; in msm_disp_snapshot_state_sync() 68 p = drm_info_printer(disp_state->drm_dev->dev); in _msm_disp_snapshot_work() 81 void msm_disp_snapshot_state(struct drm_device *drm_dev) in msm_disp_snapshot_state() argument 86 if (!drm_dev) { in msm_disp_snapshot_state() 91 priv = drm_dev->dev_private; in msm_disp_snapshot_state() 97 int msm_disp_snapshot_init(struct drm_device *drm_dev) in msm_disp_snapshot_init() argument 102 if (!drm_dev) { in msm_disp_snapshot_init() 107 priv = drm_dev->dev_private; in msm_disp_snapshot_init() [all …]
|
D | msm_disp_snapshot.h | 46 struct drm_device *drm_dev; member 77 int msm_disp_snapshot_init(struct drm_device *drm_dev); 85 void msm_disp_snapshot_destroy(struct drm_device *drm_dev); 103 void msm_disp_snapshot_state(struct drm_device *drm_dev);
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | radeon_drv.c | 386 struct drm_device *drm_dev = dev_get_drvdata(dev); in radeon_pmops_suspend() local 387 return radeon_suspend_kms(drm_dev, true, true, false); in radeon_pmops_suspend() 392 struct drm_device *drm_dev = dev_get_drvdata(dev); in radeon_pmops_resume() local 395 if (radeon_is_px(drm_dev)) { in radeon_pmops_resume() 401 return radeon_resume_kms(drm_dev, true, true); in radeon_pmops_resume() 406 struct drm_device *drm_dev = dev_get_drvdata(dev); in radeon_pmops_freeze() local 407 return radeon_suspend_kms(drm_dev, false, true, true); in radeon_pmops_freeze() 412 struct drm_device *drm_dev = dev_get_drvdata(dev); in radeon_pmops_thaw() local 413 return radeon_resume_kms(drm_dev, false, true); in radeon_pmops_thaw() 419 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_runtime_suspend() local [all …]
|
/linux-6.1.9/drivers/gpu/drm/hisilicon/kirin/ |
D | kirin_drm_drv.c | 218 struct drm_device *drm_dev; in kirin_drm_bind() local 225 drm_dev = drm_dev_alloc(driver_data->driver, dev); in kirin_drm_bind() 226 if (IS_ERR(drm_dev)) in kirin_drm_bind() 227 return PTR_ERR(drm_dev); in kirin_drm_bind() 228 dev_set_drvdata(dev, drm_dev); in kirin_drm_bind() 231 ret = kirin_drm_kms_init(drm_dev, driver_data); in kirin_drm_bind() 235 ret = drm_dev_register(drm_dev, 0); in kirin_drm_bind() 239 drm_fbdev_generic_setup(drm_dev, 32); in kirin_drm_bind() 244 kirin_drm_kms_cleanup(drm_dev); in kirin_drm_bind() 246 drm_dev_put(drm_dev); in kirin_drm_bind() [all …]
|
/linux-6.1.9/drivers/gpu/drm/qxl/ |
D | qxl_drv.c | 206 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_suspend() local 209 error = qxl_drm_freeze(drm_dev); in qxl_pm_suspend() 221 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_resume() local 222 struct qxl_device *qdev = to_qxl(drm_dev); in qxl_pm_resume() 231 return qxl_drm_resume(drm_dev, false); in qxl_pm_resume() 236 struct drm_device *drm_dev = dev_get_drvdata(dev); in qxl_pm_thaw() local 238 return qxl_drm_resume(drm_dev, true); in qxl_pm_thaw() 243 struct drm_device *drm_dev = dev_get_drvdata(dev); in qxl_pm_freeze() local 245 return qxl_drm_freeze(drm_dev); in qxl_pm_freeze() 251 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_restore() local [all …]
|
/linux-6.1.9/drivers/gpu/drm/msm/dp/ |
D | dp_link.c | 39 struct drm_device *drm_dev; member 132 drm_dbg_dp(link->drm_dev, "test_audio_period_ch_1 = 0x%x\n", ret); in dp_link_parse_audio_channel_period() 139 drm_dbg_dp(link->drm_dev, "test_audio_period_ch_2 = 0x%x\n", ret); in dp_link_parse_audio_channel_period() 147 drm_dbg_dp(link->drm_dev, "test_audio_period_ch_3 = 0x%x\n", ret); in dp_link_parse_audio_channel_period() 154 drm_dbg_dp(link->drm_dev, "test_audio_period_ch_4 = 0x%x\n", ret); in dp_link_parse_audio_channel_period() 161 drm_dbg_dp(link->drm_dev, "test_audio_period_ch_5 = 0x%x\n", ret); in dp_link_parse_audio_channel_period() 168 drm_dbg_dp(link->drm_dev, "test_audio_period_ch_6 = 0x%x\n", ret); in dp_link_parse_audio_channel_period() 175 drm_dbg_dp(link->drm_dev, "test_audio_period_ch_7 = 0x%x\n", ret); in dp_link_parse_audio_channel_period() 182 drm_dbg_dp(link->drm_dev, "test_audio_period_ch_8 = 0x%x\n", ret); in dp_link_parse_audio_channel_period() 209 drm_dbg_dp(link->drm_dev, "audio pattern type = 0x%x\n", data); in dp_link_parse_audio_pattern_type() [all …]
|
D | dp_panel.c | 14 struct drm_device *drm_dev; member 54 drm_dbg_dp(panel->drm_dev, in dp_panel_read_dpcd() 85 drm_dbg_dp(panel->drm_dev, "version: %d.%d\n", major, minor); in dp_panel_read_dpcd() 86 drm_dbg_dp(panel->drm_dev, "link_rate=%d\n", link_info->rate); in dp_panel_read_dpcd() 87 drm_dbg_dp(panel->drm_dev, "lane_count=%d\n", link_info->num_lanes); in dp_panel_read_dpcd() 214 drm_dbg_dp(panel->drm_dev, in dp_panel_read_sink_caps() 329 drm_dbg_dp(panel->drm_dev, in dp_panel_tpg_config() 339 drm_dbg_dp(panel->drm_dev, "calling catalog tpg_enable\n"); in dp_panel_tpg_config() 365 drm_dbg_dp(panel->drm_dev, "width=%d hporch= %d %d %d\n", in dp_panel_timing_cfg() 370 drm_dbg_dp(panel->drm_dev, "height=%d vporch= %d %d %d\n", in dp_panel_timing_cfg() [all …]
|
D | dp_audio.c | 29 struct drm_device *drm_dev; member 140 drm_dbg_dp(audio->drm_dev, in dp_audio_stream_sdp() 153 drm_dbg_dp(audio->drm_dev, in dp_audio_stream_sdp() 168 drm_dbg_dp(audio->drm_dev, in dp_audio_stream_sdp() 190 drm_dbg_dp(audio->drm_dev, in dp_audio_timestamp_sdp() 204 drm_dbg_dp(audio->drm_dev, in dp_audio_timestamp_sdp() 218 drm_dbg_dp(audio->drm_dev, in dp_audio_timestamp_sdp() 239 drm_dbg_dp(audio->drm_dev, in dp_audio_infoframe_sdp() 253 drm_dbg_dp(audio->drm_dev, in dp_audio_infoframe_sdp() 267 drm_dbg_dp(audio->drm_dev, in dp_audio_infoframe_sdp() [all …]
|
D | dp_power.c | 19 struct drm_device *drm_dev; member 67 drm_dbg_dp(power->drm_dev, in dp_power_clk_status() 101 drm_dbg_dp(power->drm_dev, in dp_power_clk_enable() 107 drm_dbg_dp(power->drm_dev, in dp_power_clk_enable() 113 drm_dbg_dp(power->drm_dev, in dp_power_clk_enable() 119 drm_dbg_dp(power->drm_dev, in dp_power_clk_enable() 151 drm_dbg_dp(power->drm_dev, "%s clocks for %s\n", in dp_power_clk_enable() 154 drm_dbg_dp(power->drm_dev, in dp_power_clk_enable()
|
D | dp_display.c | 87 struct drm_device *drm_dev; member 272 dp->dp_display.drm_dev = drm; in dp_display_bind() 282 dp->drm_dev = drm; in dp_display_bind() 283 dp->aux->drm_dev = drm; in dp_display_bind() 327 dp->drm_dev = NULL; in dp_display_unbind() 328 dp->aux->drm_dev = NULL; in dp_display_unbind() 345 drm_dbg_dp(dp->drm_dev, "present=%#x sink_count=%d\n", in dp_display_is_sink_count_zero() 369 drm_dbg_dp(dp->drm_dev, "HPD already %s\n", in dp_display_send_hpd_notification() 380 drm_dbg_dp(dp->drm_dev, "type=%d hpd=%d\n", in dp_display_send_hpd_notification() 428 drm_dbg_dp(dp->drm_dev, "type=%d core_init=%d phy_init=%d\n", in dp_display_host_phy_init() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_crc.c | 88 struct drm_device *drm_dev = crtc->dev; in amdgpu_dm_set_crc_window_default() local 91 spin_lock_irq(&drm_dev->event_lock); in amdgpu_dm_set_crc_window_default() 99 spin_unlock_irq(&drm_dev->event_lock); in amdgpu_dm_set_crc_window_default() 140 struct drm_device *drm_dev = crtc->dev; in amdgpu_dm_crc_window_is_activated() local 144 spin_lock_irq(&drm_dev->event_lock); in amdgpu_dm_crc_window_is_activated() 146 spin_unlock_irq(&drm_dev->event_lock); in amdgpu_dm_crc_window_is_activated() 230 struct drm_device *drm_dev = crtc->dev; in amdgpu_dm_crtc_set_crc_source() local 270 spin_lock_irq(&drm_dev->event_lock); in amdgpu_dm_crtc_set_crc_source() 272 spin_unlock_irq(&drm_dev->event_lock); in amdgpu_dm_crtc_set_crc_source() 364 spin_lock_irq(&drm_dev->event_lock); in amdgpu_dm_crtc_set_crc_source() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_drv.c | 2374 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_prepare() local 2375 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_pmops_prepare() 2380 if (amdgpu_device_supports_boco(drm_dev)) in amdgpu_pmops_prepare() 2400 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_suspend() local 2401 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_pmops_suspend() 2407 return amdgpu_device_suspend(drm_dev, true); in amdgpu_pmops_suspend() 2412 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_suspend_noirq() local 2413 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_pmops_suspend_noirq() 2423 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_resume() local 2424 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_pmops_resume() [all …]
|
/linux-6.1.9/drivers/gpu/drm/i915/display/ |
D | intel_lspcon.c | 148 if (drm_lspcon_get_mode(intel_dp->aux.drm_dev, adapter, ¤t_mode)) { in lspcon_get_current_mode() 189 err = drm_lspcon_get_mode(intel_dp->aux.drm_dev, adapter, ¤t_mode); in lspcon_change_mode() 200 err = drm_lspcon_set_mode(intel_dp->aux.drm_dev, adapter, mode); in lspcon_change_mode() 246 adaptor_type = drm_dp_dual_mode_detect(intel_dp->aux.drm_dev, adapter); in lspcon_probe() 312 drm_err(aux->drm_dev, "Failed to read AVI IF control\n"); in lspcon_parade_fw_ready() 320 drm_err(aux->drm_dev, "Parade FW not ready to accept AVI IF\n"); in lspcon_parade_fw_ready() 335 drm_dbg_kms(aux->drm_dev, "LSPCON FW not ready, block %d\n", in _lspcon_parade_write_infoframe_blocks() 344 drm_err(aux->drm_dev, "Failed to write AVI IF block %d\n", in _lspcon_parade_write_infoframe_blocks() 359 drm_err(aux->drm_dev, "Failed to update (0x%x), block %d\n", in _lspcon_parade_write_infoframe_blocks() 367 drm_dbg_kms(aux->drm_dev, "Wrote AVI IF blocks successfully\n"); in _lspcon_parade_write_infoframe_blocks() [all …]
|
/linux-6.1.9/drivers/gpu/drm/nouveau/ |
D | nouveau_hwmon.c | 368 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_temp_read() local 369 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_temp_read() 378 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_temp_read() 417 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_fan_read() local 418 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_fan_read() 426 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_fan_read() 440 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_in_read() local 441 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_in_read() 450 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_in_read() 471 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_pwm_read() local [all …]
|
D | nouveau_drm.c | 761 struct drm_device *drm_dev; in nouveau_drm_probe() local 792 drm_dev = drm_dev_alloc(&driver_pci, &pdev->dev); in nouveau_drm_probe() 793 if (IS_ERR(drm_dev)) { in nouveau_drm_probe() 794 ret = PTR_ERR(drm_dev); in nouveau_drm_probe() 802 pci_set_drvdata(pdev, drm_dev); in nouveau_drm_probe() 804 ret = nouveau_drm_device_init(drm_dev); in nouveau_drm_probe() 808 ret = drm_dev_register(drm_dev, pent->driver_data); in nouveau_drm_probe() 816 nouveau_drm_device_fini(drm_dev); in nouveau_drm_probe() 820 drm_dev_put(drm_dev); in nouveau_drm_probe() 957 struct drm_device *drm_dev = pci_get_drvdata(pdev); in nouveau_pmops_suspend() local [all …]
|
/linux-6.1.9/drivers/gpu/drm/exynos/ |
D | exynos_drm_vidi.c | 39 struct drm_device *drm_dev; member 210 drm_helper_hpd_irq_event(ctx->drm_dev); in vidi_store_connection() 224 int vidi_connection_ioctl(struct drm_device *drm_dev, void *data, in vidi_connection_ioctl() argument 227 struct vidi_context *ctx = dev_get_drvdata(drm_dev->dev); in vidi_connection_ioctl() 276 drm_helper_hpd_irq_event(ctx->drm_dev); in vidi_connection_ioctl() 346 ret = drm_connector_init(ctx->drm_dev, connector, in vidi_create_connector() 383 struct drm_device *drm_dev = data; in vidi_bind() local 390 ctx->drm_dev = drm_dev; in vidi_bind() 399 ret = exynos_plane_init(drm_dev, &ctx->planes[i], i, in vidi_bind() 406 ctx->crtc = exynos_drm_crtc_create(drm_dev, &exynos_plane->base, in vidi_bind() [all …]
|
D | exynos_drm_g2d.h | 15 extern int g2d_open(struct drm_device *drm_dev, struct drm_file *file); 16 extern void g2d_close(struct drm_device *drm_dev, struct drm_file *file); 37 int g2d_open(struct drm_device *drm_dev, struct drm_file *file) in g2d_open() argument 42 void g2d_close(struct drm_device *drm_dev, struct drm_file *file) in g2d_close() argument
|
/linux-6.1.9/drivers/gpu/drm/sti/ |
D | sti_compositor.c | 65 struct drm_device *drm_dev = data; in sti_compositor_bind() local 67 struct sti_private *dev_priv = drm_dev->dev_private; in sti_compositor_bind() 80 sti_vid_create(compo->dev, drm_dev, desc[i].id, in sti_compositor_bind() 86 sti_mixer_create(compo->dev, drm_dev, desc[i].id, in sti_compositor_bind() 113 cursor = sti_cursor_create(drm_dev, compo->dev, in sti_compositor_bind() 123 primary = sti_gdp_create(drm_dev, compo->dev, in sti_compositor_bind() 140 sti_crtc_init(drm_dev, compo->mixer[crtc_id], in sti_compositor_bind() 148 drm_vblank_init(drm_dev, crtc_id); in sti_compositor_bind()
|