Home
last modified time | relevance | path

Searched refs:drm_dev (Results 1 – 25 of 116) sorted by relevance

12345

/linux/drivers/gpu/drm/rockchip/
A Drockchip_drm_drv.c114 struct drm_device *drm_dev; in rockchip_drm_bind() local
128 if (IS_ERR(drm_dev)) in rockchip_drm_bind()
129 return PTR_ERR(drm_dev); in rockchip_drm_bind()
131 dev_set_drvdata(dev, drm_dev); in rockchip_drm_bind()
139 drm_dev->dev_private = private; in rockchip_drm_bind()
156 ret = drm_vblank_init(drm_dev, drm_dev->mode_config.num_crtc); in rockchip_drm_bind()
160 drm_mode_config_reset(drm_dev); in rockchip_drm_bind()
180 rockchip_iommu_cleanup(drm_dev); in rockchip_drm_bind()
182 drm_dev_put(drm_dev); in rockchip_drm_bind()
190 drm_dev_unregister(drm_dev); in rockchip_drm_unbind()
[all …]
A Drockchip_rgb.c28 struct drm_device *drm_dev; member
76 struct drm_device *drm_dev) in rockchip_rgb_init() argument
92 rgb->drm_dev = drm_dev; in rockchip_rgb_init()
130 ret = drm_simple_encoder_init(drm_dev, encoder, DRM_MODE_ENCODER_NONE); in rockchip_rgb_init()
132 DRM_DEV_ERROR(drm_dev->dev, in rockchip_rgb_init()
154 connector = drm_bridge_connector_init(rgb->drm_dev, encoder); in rockchip_rgb_init()
156 DRM_DEV_ERROR(drm_dev->dev, in rockchip_rgb_init()
165 DRM_DEV_ERROR(drm_dev->dev, in rockchip_rgb_init()
A Danalogix_dp-rockchip.c60 struct drm_device *drm_dev; member
301 struct drm_device *drm_dev = dp->drm_dev; in rockchip_dp_drm_create_encoder() local
305 encoder->possible_crtcs = drm_of_find_possible_crtcs(drm_dev, in rockchip_dp_drm_create_encoder()
309 ret = drm_simple_encoder_init(drm_dev, encoder, in rockchip_dp_drm_create_encoder()
325 struct drm_device *drm_dev = data; in rockchip_dp_bind() local
328 dp->drm_dev = drm_dev; in rockchip_dp_bind()
338 ret = analogix_dp_bind(dp->adp, drm_dev); in rockchip_dp_bind()
A Drockchip_lvds.c64 struct drm_device *drm_dev; member
539 struct drm_device *drm_dev = data; in rockchip_lvds_bind() local
548 lvds->drm_dev = drm_dev; in rockchip_lvds_bind()
603 encoder->possible_crtcs = drm_of_find_possible_crtcs(drm_dev, in rockchip_lvds_bind()
606 ret = drm_simple_encoder_init(drm_dev, encoder, DRM_MODE_ENCODER_LVDS); in rockchip_lvds_bind()
608 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind()
618 ret = drm_connector_init(drm_dev, connector, in rockchip_lvds_bind()
622 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind()
635 connector = drm_bridge_connector_init(lvds->drm_dev, encoder); in rockchip_lvds_bind()
637 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind()
[all …]
/linux/drivers/gpu/drm/msm/disp/
A Dmsm_disp_snapshot.c34 struct drm_device *drm_dev = kms->dev; in _msm_disp_snapshot_work() local
42 disp_state->dev = drm_dev->dev; in _msm_disp_snapshot_work()
43 disp_state->drm_dev = drm_dev; in _msm_disp_snapshot_work()
55 p = drm_info_printer(disp_state->drm_dev->dev); in _msm_disp_snapshot_work()
73 if (!drm_dev) { in msm_disp_snapshot_state()
78 priv = drm_dev->dev_private; in msm_disp_snapshot_state()
84 int msm_disp_snapshot_init(struct drm_device *drm_dev) in msm_disp_snapshot_init() argument
89 if (!drm_dev) { in msm_disp_snapshot_init()
94 priv = drm_dev->dev_private; in msm_disp_snapshot_init()
113 if (!drm_dev) { in msm_disp_snapshot_destroy()
[all …]
A Dmsm_disp_snapshot.h46 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);
93 void msm_disp_snapshot_state(struct drm_device *drm_dev);
A Dmsm_disp_snapshot_util.c105 ddev = disp_state->drm_dev; in msm_disp_capture_atomic_state()
121 struct drm_device *drm_dev; in msm_disp_snapshot_capture_state() local
125 drm_dev = disp_state->drm_dev; in msm_disp_snapshot_capture_state()
126 priv = drm_dev->dev_private; in msm_disp_snapshot_capture_state()
/linux/drivers/gpu/drm/radeon/
A Dradeon_drv.c391 struct drm_device *drm_dev = dev_get_drvdata(dev); in radeon_pmops_suspend() local
400 if (radeon_is_px(drm_dev)) { in radeon_pmops_resume()
406 return radeon_resume_kms(drm_dev, true, true); in radeon_pmops_resume()
418 return radeon_resume_kms(drm_dev, false, true); in radeon_pmops_thaw()
426 if (!radeon_is_px(drm_dev)) { in radeon_pmops_runtime_suspend()
432 drm_kms_helper_poll_disable(drm_dev); in radeon_pmops_runtime_suspend()
434 radeon_suspend_kms(drm_dev, false, false, false); in radeon_pmops_runtime_suspend()
453 if (!radeon_is_px(drm_dev)) in radeon_pmops_runtime_resume()
467 ret = radeon_resume_kms(drm_dev, false, false); in radeon_pmops_runtime_resume()
468 drm_kms_helper_poll_enable(drm_dev); in radeon_pmops_runtime_resume()
[all …]
/linux/drivers/gpu/drm/hisilicon/kirin/
A Dkirin_drm_drv.c223 struct drm_device *drm_dev; in kirin_drm_bind() local
231 if (IS_ERR(drm_dev)) in kirin_drm_bind()
232 return PTR_ERR(drm_dev); in kirin_drm_bind()
233 dev_set_drvdata(dev, drm_dev); in kirin_drm_bind()
240 ret = drm_dev_register(drm_dev, 0); in kirin_drm_bind()
244 drm_fbdev_generic_setup(drm_dev, 32); in kirin_drm_bind()
249 kirin_drm_kms_cleanup(drm_dev); in kirin_drm_bind()
251 drm_dev_put(drm_dev); in kirin_drm_bind()
260 drm_dev_unregister(drm_dev); in kirin_drm_unbind()
261 kirin_drm_kms_cleanup(drm_dev); in kirin_drm_unbind()
[all …]
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
A Damdgpu_dm_crc.c88 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()
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()
270 spin_lock_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()
391 struct drm_device *drm_dev = NULL; in amdgpu_dm_crtc_handle_crc_irq() local
403 drm_dev = crtc->dev; in amdgpu_dm_crtc_handle_crc_irq()
438 struct drm_device *drm_dev = NULL; in amdgpu_dm_crtc_handle_crc_window_irq() local
[all …]
/linux/drivers/gpu/drm/qxl/
A Dqxl_drv.c207 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_suspend() local
210 error = qxl_drm_freeze(drm_dev); in qxl_pm_suspend()
222 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_resume() local
230 return qxl_drm_resume(drm_dev, false); in qxl_pm_resume()
235 struct drm_device *drm_dev = dev_get_drvdata(dev); in qxl_pm_thaw() local
237 return qxl_drm_resume(drm_dev, true); in qxl_pm_thaw()
242 struct drm_device *drm_dev = dev_get_drvdata(dev); in qxl_pm_freeze() local
244 return qxl_drm_freeze(drm_dev); in qxl_pm_freeze()
250 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_restore() local
251 struct qxl_device *qdev = to_qxl(drm_dev); in qxl_pm_restore()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_drv.c2162 if (amdgpu_device_supports_boco(drm_dev)) in amdgpu_pmops_prepare()
2183 r = amdgpu_device_suspend(drm_dev, true); in amdgpu_pmops_suspend()
2202 r = amdgpu_device_resume(drm_dev, true); in amdgpu_pmops_resume()
2215 r = amdgpu_device_suspend(drm_dev, true); in amdgpu_pmops_freeze()
2266 if (amdgpu_device_supports_px(drm_dev)) in amdgpu_pmops_runtime_suspend()
2276 if (amdgpu_device_supports_boco(drm_dev)) in amdgpu_pmops_runtime_suspend()
2287 if (amdgpu_device_supports_boco(drm_dev)) in amdgpu_pmops_runtime_suspend()
2302 amdgpu_device_baco_enter(drm_dev); in amdgpu_pmops_runtime_suspend()
2340 amdgpu_device_baco_exit(drm_dev); in amdgpu_pmops_runtime_resume()
2346 if (amdgpu_device_supports_px(drm_dev)) in amdgpu_pmops_runtime_resume()
[all …]
/linux/drivers/gpu/drm/nouveau/
A Dnouveau_hwmon.c419 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_temp_read() local
420 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_temp_read()
468 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_fan_read() local
469 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_fan_read()
491 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_in_read() local
492 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_in_read()
522 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_pwm_read() local
523 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_pwm_read()
549 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_power_read()
578 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_temp_write()
[all …]
A Dnouveau_drm.c748 struct drm_device *drm_dev; in nouveau_drm_probe() local
780 if (IS_ERR(drm_dev)) { in nouveau_drm_probe()
781 ret = PTR_ERR(drm_dev); in nouveau_drm_probe()
789 pci_set_drvdata(pdev, drm_dev); in nouveau_drm_probe()
791 ret = nouveau_drm_device_init(drm_dev); in nouveau_drm_probe()
803 nouveau_drm_device_fini(drm_dev); in nouveau_drm_probe()
807 drm_dev_put(drm_dev); in nouveau_drm_probe()
980 ret = nouveau_do_resume(drm_dev, false); in nouveau_pmops_resume()
983 nouveau_display_hpd_resume(drm_dev); in nouveau_pmops_resume()
1055 ret = nouveau_do_resume(drm_dev, true); in nouveau_pmops_runtime_resume()
[all …]
A Dnouveau_led.c39 struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev; in nouveau_led_get_brightness() local
40 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_led_get_brightness()
56 struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev; in nouveau_led_set_brightness() local
57 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_led_set_brightness()
/linux/drivers/gpu/drm/exynos/
A Dexynos_drm_vidi.c38 struct drm_device *drm_dev; member
209 drm_helper_hpd_irq_event(ctx->drm_dev); in vidi_store_connection()
223 int vidi_connection_ioctl(struct drm_device *drm_dev, void *data, in vidi_connection_ioctl() argument
226 struct vidi_context *ctx = dev_get_drvdata(drm_dev->dev); in vidi_connection_ioctl()
275 drm_helper_hpd_irq_event(ctx->drm_dev); in vidi_connection_ioctl()
345 ret = drm_connector_init(ctx->drm_dev, connector, in vidi_create_connector()
382 struct drm_device *drm_dev = data; in vidi_bind() local
389 ctx->drm_dev = drm_dev; in vidi_bind()
398 ret = exynos_plane_init(drm_dev, &ctx->planes[i], i, in vidi_bind()
405 ctx->crtc = exynos_drm_crtc_create(drm_dev, &exynos_plane->base, in vidi_bind()
[all …]
A Dexynos_drm_g2d.h15 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
A Dexynos_drm_g2d.c243 struct drm_device *drm_dev; member
324 dma_free_attrs(to_dma_dev(g2d->drm_dev), in g2d_fini_cmdlist()
509 ret = dma_map_sgtable(to_dma_dev(g2d->drm_dev), sgt, in g2d_userptr_get_dma_addr()
683 struct drm_device *drm_dev, in g2d_map_cmdlist_gem() argument
914 struct drm_device *drm_dev = g2d->drm_dev; in g2d_finish_event() local
930 drm_send_event(drm_dev, &e->base); in g2d_finish_event()
1270 ret = g2d_map_cmdlist_gem(g2d, node, drm_dev, file); in exynos_g2d_set_cmdlist_ioctl()
1292 drm_event_cancel_free(drm_dev, &node->event->base); in exynos_g2d_set_cmdlist_ioctl()
1403 struct drm_device *drm_dev = data; in g2d_bind() local
1407 g2d->drm_dev = drm_dev; in g2d_bind()
[all …]
A Dexynos_drm_dma.c43 static int drm_iommu_attach_device(struct drm_device *drm_dev, in drm_iommu_attach_device() argument
46 struct exynos_drm_private *priv = drm_dev->dev_private; in drm_iommu_attach_device()
84 static void drm_iommu_detach_device(struct drm_device *drm_dev, in drm_iommu_detach_device() argument
87 struct exynos_drm_private *priv = drm_dev->dev_private; in drm_iommu_detach_device()
A Dexynos_dp.c39 struct drm_device *drm_dev; member
153 struct drm_device *drm_dev = data; in exynos_dp_bind() local
156 dp->drm_dev = drm_dev; in exynos_dp_bind()
164 drm_simple_encoder_init(drm_dev, encoder, DRM_MODE_ENCODER_TMDS); in exynos_dp_bind()
174 ret = analogix_dp_bind(dp->adp, dp->drm_dev); in exynos_dp_bind()
/linux/drivers/gpu/drm/
A Ddrm_dp_helper.c266 drm_dbg_dp(aux->drm_dev, "%s: 0x%05x AUX %s (ret=%3d)\n", in drm_dp_dump_access()
647 drm_dbg_kms(aux->drm_dev, in drm_dp_read_extended_dpcd_caps()
1565 drm_dbg_kms(aux->drm_dev, in drm_dp_i2c_drain_msg()
1836 WARN_ON_ONCE(!aux->drm_dev); in drm_dp_aux_register()
2054 drm_dbg_kms(aux->drm_dev, in drm_dp_read_desc()
3185 drm_err(aux->drm_dev, in drm_edp_backlight_set_level()
3253 drm_dbg_kms(aux->drm_dev, in drm_edp_backlight_enable()
3275 drm_dbg_kms(aux->drm_dev, in drm_edp_backlight_enable()
3389 drm_dbg_kms(aux->drm_dev, in drm_edp_backlight_probe_max()
3498 drm_dbg_kms(aux->drm_dev, in drm_edp_backlight_init()
[all …]
/linux/drivers/gpu/drm/sti/
A Dsti_compositor.c64 struct drm_device *drm_dev = data; in sti_compositor_bind() local
66 struct sti_private *dev_priv = drm_dev->dev_private; in sti_compositor_bind()
79 sti_vid_create(compo->dev, drm_dev, desc[i].id, in sti_compositor_bind()
85 sti_mixer_create(compo->dev, drm_dev, desc[i].id, in sti_compositor_bind()
112 cursor = sti_cursor_create(drm_dev, compo->dev, in sti_compositor_bind()
122 primary = sti_gdp_create(drm_dev, compo->dev, in sti_compositor_bind()
139 sti_crtc_init(drm_dev, compo->mixer[crtc_id], in sti_compositor_bind()
147 drm_vblank_init(drm_dev, crtc_id); in sti_compositor_bind()
/linux/drivers/gpu/drm/gma500/
A Dintel_i2c.c26 struct drm_device *dev = chan->drm_dev; in get_clock()
36 struct drm_device *dev = chan->drm_dev; in get_data()
46 struct drm_device *dev = chan->drm_dev; in set_clock()
66 struct drm_device *dev = chan->drm_dev; in set_data()
114 chan->drm_dev = dev; in psb_intel_i2c_create()
/linux/drivers/gpu/drm/xen/
A Dxen_drm_front.c507 struct drm_device *drm_dev; in xen_drm_drv_init() local
522 if (IS_ERR(drm_dev)) { in xen_drm_drv_init()
523 ret = PTR_ERR(drm_dev); in xen_drm_drv_init()
527 drm_info->drm_dev = drm_dev; in xen_drm_drv_init()
529 drm_dev->dev_private = drm_info; in xen_drm_drv_init()
537 ret = drm_dev_register(drm_dev, 0); in xen_drm_drv_init()
549 drm_dev_unregister(drm_dev); in xen_drm_drv_init()
551 drm_kms_helper_poll_fini(drm_dev); in xen_drm_drv_init()
552 drm_mode_config_cleanup(drm_dev); in xen_drm_drv_init()
553 drm_dev_put(drm_dev); in xen_drm_drv_init()
[all …]
/linux/drivers/gpu/drm/i915/display/
A Dintel_acpi.c267 struct drm_device *drm_dev = &dev_priv->drm; in intel_acpi_device_id_update() local
273 drm_connector_list_iter_begin(drm_dev, &conn_iter); in intel_acpi_device_id_update()
293 struct drm_device *drm_dev = &i915->drm; in intel_acpi_assign_connector_fwnodes() local
298 drm_connector_list_iter_begin(drm_dev, &conn_iter); in intel_acpi_assign_connector_fwnodes()
301 fwnode = device_get_next_child_node(drm_dev->dev, fwnode); in intel_acpi_assign_connector_fwnodes()
313 adev = acpi_find_child_device(ACPI_COMPANION(drm_dev->dev), in intel_acpi_assign_connector_fwnodes()

Completed in 55 milliseconds

12345