Home
last modified time | relevance | path

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

1234

/Linux-v4.19/drivers/gpu/drm/rockchip/
Drockchip_drm_drv.c50 int rockchip_drm_dma_attach_device(struct drm_device *drm_dev, in rockchip_drm_dma_attach_device() argument
53 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_attach_device()
68 void rockchip_drm_dma_detach_device(struct drm_device *drm_dev, in rockchip_drm_dma_detach_device() argument
71 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_detach_device()
80 static int rockchip_drm_init_iommu(struct drm_device *drm_dev) in rockchip_drm_init_iommu() argument
82 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_init_iommu()
105 static void rockchip_iommu_cleanup(struct drm_device *drm_dev) in rockchip_iommu_cleanup() argument
107 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_iommu_cleanup()
118 struct drm_device *drm_dev; in rockchip_drm_bind() local
122 drm_dev = drm_dev_alloc(&rockchip_drm_driver, dev); in rockchip_drm_bind()
[all …]
Drockchip_lvds.c69 struct drm_device *drm_dev; member
345 struct drm_device *drm_dev = data; in rockchip_lvds_bind() local
354 lvds->drm_dev = drm_dev; in rockchip_lvds_bind()
409 encoder->possible_crtcs = drm_of_find_possible_crtcs(drm_dev, in rockchip_lvds_bind()
412 ret = drm_encoder_init(drm_dev, encoder, &rockchip_lvds_encoder_funcs, in rockchip_lvds_bind()
415 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind()
425 ret = drm_connector_init(drm_dev, connector, in rockchip_lvds_bind()
429 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind()
439 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind()
446 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind()
[all …]
Danalogix_dp-rockchip.c64 struct drm_device *drm_dev; member
296 struct drm_device *drm_dev = dp->drm_dev; in rockchip_dp_drm_create_encoder() local
300 encoder->possible_crtcs = drm_of_find_possible_crtcs(drm_dev, in rockchip_dp_drm_create_encoder()
304 ret = drm_encoder_init(drm_dev, encoder, &rockchip_dp_encoder_funcs, in rockchip_dp_drm_create_encoder()
321 struct drm_device *drm_dev = data; in rockchip_dp_bind() local
329 dp->drm_dev = drm_dev; in rockchip_dp_bind()
349 dp->adp = analogix_dp_bind(dev, dp->drm_dev, &dp->plat_data); in rockchip_dp_bind()
/Linux-v4.19/drivers/gpu/drm/exynos/
Dexynos_drm_iommu.h89 int drm_create_iommu_mapping(struct drm_device *drm_dev);
91 void drm_release_iommu_mapping(struct drm_device *drm_dev);
93 int drm_iommu_attach_device(struct drm_device *drm_dev,
99 static inline bool is_drm_iommu_supported(struct drm_device *drm_dev) in is_drm_iommu_supported() argument
101 struct exynos_drm_private *priv = drm_dev->dev_private; in is_drm_iommu_supported()
108 static inline int drm_create_iommu_mapping(struct drm_device *drm_dev) in drm_create_iommu_mapping() argument
113 static inline void drm_release_iommu_mapping(struct drm_device *drm_dev) in drm_release_iommu_mapping() argument
117 static inline int drm_iommu_attach_device(struct drm_device *drm_dev, in drm_iommu_attach_device() argument
123 static inline void drm_iommu_detach_device(struct drm_device *drm_dev, in drm_iommu_detach_device() argument
128 static inline bool is_drm_iommu_supported(struct drm_device *drm_dev) in is_drm_iommu_supported() argument
Dexynos_drm_iommu.c43 int drm_create_iommu_mapping(struct drm_device *drm_dev) in drm_create_iommu_mapping() argument
45 struct exynos_drm_private *priv = drm_dev->dev_private; in drm_create_iommu_mapping()
56 void drm_release_iommu_mapping(struct drm_device *drm_dev) in drm_release_iommu_mapping() argument
58 struct exynos_drm_private *priv = drm_dev->dev_private; in drm_release_iommu_mapping()
72 int drm_iommu_attach_device(struct drm_device *drm_dev, in drm_iommu_attach_device() argument
75 struct exynos_drm_private *priv = drm_dev->dev_private; in drm_iommu_attach_device()
104 void drm_iommu_detach_device(struct drm_device *drm_dev, in drm_iommu_detach_device() argument
107 struct exynos_drm_private *priv = drm_dev->dev_private; in drm_iommu_detach_device()
Dexynos_drm_drv.c151 struct drm_device *drm_dev = dev_get_drvdata(dev); in exynos_drm_suspend() local
154 if (!drm_dev) in exynos_drm_suspend()
157 private = drm_dev->dev_private; in exynos_drm_suspend()
159 drm_kms_helper_poll_disable(drm_dev); in exynos_drm_suspend()
160 exynos_drm_fbdev_suspend(drm_dev); in exynos_drm_suspend()
161 private->suspend_state = drm_atomic_helper_suspend(drm_dev); in exynos_drm_suspend()
163 exynos_drm_fbdev_resume(drm_dev); in exynos_drm_suspend()
164 drm_kms_helper_poll_enable(drm_dev); in exynos_drm_suspend()
173 struct drm_device *drm_dev = dev_get_drvdata(dev); in exynos_drm_resume() local
176 if (!drm_dev) in exynos_drm_resume()
[all …]
Dexynos_drm_g2d.h18 extern int g2d_open(struct drm_device *drm_dev, struct drm_file *file);
19 extern void g2d_close(struct drm_device *drm_dev, struct drm_file *file);
40 int g2d_open(struct drm_device *drm_dev, struct drm_file *file) in g2d_open() argument
45 void g2d_close(struct drm_device *drm_dev, struct drm_file *file) in g2d_close() argument
Dexynos_drm_vidi.c44 struct drm_device *drm_dev; member
214 drm_helper_hpd_irq_event(ctx->drm_dev); in vidi_store_connection()
222 int vidi_connection_ioctl(struct drm_device *drm_dev, void *data, in vidi_connection_ioctl() argument
225 struct vidi_context *ctx = dev_get_drvdata(drm_dev->dev); in vidi_connection_ioctl()
269 drm_helper_hpd_irq_event(ctx->drm_dev); in vidi_connection_ioctl()
339 ret = drm_connector_init(ctx->drm_dev, connector, in vidi_create_connector()
379 struct drm_device *drm_dev = data; in vidi_bind() local
386 ctx->drm_dev = drm_dev; in vidi_bind()
395 ret = exynos_plane_init(drm_dev, &ctx->planes[i], i, in vidi_bind()
402 ctx->crtc = exynos_drm_crtc_create(drm_dev, &exynos_plane->base, in vidi_bind()
[all …]
Dexynos_drm_g2d.c241 struct drm_device *drm_dev; member
278 g2d->cmdlist_pool_virt = dma_alloc_attrs(to_dma_dev(g2d->drm_dev), in g2d_init_cmdlist()
311 dma_free_attrs(to_dma_dev(g2d->drm_dev), G2D_CMDLIST_POOL_SIZE, in g2d_init_cmdlist()
322 dma_free_attrs(to_dma_dev(g2d->drm_dev), in g2d_fini_cmdlist()
398 dma_unmap_sg(to_dma_dev(g2d->drm_dev), g2d_userptr->sgt->sgl, in g2d_userptr_put_dma_addr()
513 if (!dma_map_sg(to_dma_dev(g2d->drm_dev), sgt->sgl, sgt->nents, in g2d_userptr_get_dma_addr()
684 struct drm_device *drm_dev, in g2d_map_cmdlist_gem() argument
906 struct drm_device *drm_dev = g2d->drm_dev; in g2d_finish_event() local
922 drm_send_event(drm_dev, &e->base); in g2d_finish_event()
1120 int exynos_g2d_get_ver_ioctl(struct drm_device *drm_dev, void *data, in exynos_g2d_get_ver_ioctl() argument
[all …]
Dexynos_drm_rotator.c60 struct drm_device *drm_dev; member
243 struct drm_device *drm_dev = data; in rotator_bind() local
246 rot->drm_dev = drm_dev; in rotator_bind()
247 drm_iommu_attach_device(drm_dev, dev); in rotator_bind()
249 exynos_drm_ipp_register(drm_dev, ipp, &ipp_funcs, in rotator_bind()
262 struct drm_device *drm_dev = data; in rotator_unbind() local
265 exynos_drm_ipp_unregister(drm_dev, ipp); in rotator_unbind()
266 drm_iommu_detach_device(rot->drm_dev, rot->dev); in rotator_unbind()
Dexynos_dp.c41 struct drm_device *drm_dev; member
159 struct drm_device *drm_dev = data; in exynos_dp_bind() local
163 dp->drm_dev = drm_dev; in exynos_dp_bind()
177 drm_encoder_init(drm_dev, encoder, &exynos_dp_encoder_funcs, in exynos_dp_bind()
188 dp->adp = analogix_dp_bind(dev, dp->drm_dev, &dp->plat_data); in exynos_dp_bind()
/Linux-v4.19/drivers/gpu/drm/radeon/
Dradeon_drv.c377 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_suspend() local
378 return radeon_suspend_kms(drm_dev, true, true, false); in radeon_pmops_suspend()
384 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_resume() local
387 if (radeon_is_px(drm_dev)) { in radeon_pmops_resume()
393 return radeon_resume_kms(drm_dev, true, true); in radeon_pmops_resume()
399 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_freeze() local
400 return radeon_suspend_kms(drm_dev, false, true, true); in radeon_pmops_freeze()
406 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_thaw() local
407 return radeon_resume_kms(drm_dev, false, true); in radeon_pmops_thaw()
413 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_runtime_suspend() local
[all …]
/Linux-v4.19/drivers/gpu/drm/hisilicon/kirin/
Dkirin_drm_drv.c187 struct drm_device *drm_dev; in kirin_drm_bind() local
190 drm_dev = drm_dev_alloc(driver, dev); in kirin_drm_bind()
191 if (IS_ERR(drm_dev)) in kirin_drm_bind()
192 return PTR_ERR(drm_dev); in kirin_drm_bind()
194 ret = kirin_drm_kms_init(drm_dev); in kirin_drm_bind()
198 ret = drm_dev_register(drm_dev, 0); in kirin_drm_bind()
205 kirin_drm_kms_cleanup(drm_dev); in kirin_drm_bind()
207 drm_dev_unref(drm_dev); in kirin_drm_bind()
214 struct drm_device *drm_dev = dev_get_drvdata(dev); in kirin_drm_unbind() local
216 drm_dev_unregister(drm_dev); in kirin_drm_unbind()
[all …]
/Linux-v4.19/drivers/gpu/drm/qxl/
Dqxl_drv.c191 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_suspend() local
194 error = qxl_drm_freeze(drm_dev); in qxl_pm_suspend()
206 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_resume() local
214 return qxl_drm_resume(drm_dev, false); in qxl_pm_resume()
220 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_thaw() local
222 return qxl_drm_resume(drm_dev, true); in qxl_pm_thaw()
228 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_freeze() local
230 return qxl_drm_freeze(drm_dev); in qxl_pm_freeze()
236 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_restore() local
237 struct qxl_device *qdev = drm_dev->dev_private; in qxl_pm_restore()
[all …]
/Linux-v4.19/drivers/gpu/drm/cirrus/
Dcirrus_drv.c89 struct drm_device *drm_dev = pci_get_drvdata(pdev); in cirrus_pm_suspend() local
90 struct cirrus_device *cdev = drm_dev->dev_private; in cirrus_pm_suspend()
92 drm_kms_helper_poll_disable(drm_dev); in cirrus_pm_suspend()
106 struct drm_device *drm_dev = pci_get_drvdata(pdev); in cirrus_pm_resume() local
107 struct cirrus_device *cdev = drm_dev->dev_private; in cirrus_pm_resume()
109 drm_helper_resume_force_mode(drm_dev); in cirrus_pm_resume()
117 drm_kms_helper_poll_enable(drm_dev); in cirrus_pm_resume()
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_drv.c909 struct drm_device *drm_dev = pci_get_drvdata(pdev); in amdgpu_pmops_suspend() local
910 return amdgpu_device_suspend(drm_dev, true, true); in amdgpu_pmops_suspend()
916 struct drm_device *drm_dev = pci_get_drvdata(pdev); in amdgpu_pmops_resume() local
919 if (amdgpu_device_is_px(drm_dev)) { in amdgpu_pmops_resume()
925 return amdgpu_device_resume(drm_dev, true, true); in amdgpu_pmops_resume()
932 struct drm_device *drm_dev = pci_get_drvdata(pdev); in amdgpu_pmops_freeze() local
933 return amdgpu_device_suspend(drm_dev, false, true); in amdgpu_pmops_freeze()
940 struct drm_device *drm_dev = pci_get_drvdata(pdev); in amdgpu_pmops_thaw() local
941 return amdgpu_device_resume(drm_dev, false, true); in amdgpu_pmops_thaw()
948 struct drm_device *drm_dev = pci_get_drvdata(pdev); in amdgpu_pmops_poweroff() local
[all …]
/Linux-v4.19/drivers/gpu/drm/sti/
Dsti_compositor.c63 struct drm_device *drm_dev = data; in sti_compositor_bind() local
65 struct sti_private *dev_priv = drm_dev->dev_private; in sti_compositor_bind()
78 sti_vid_create(compo->dev, drm_dev, desc[i].id, in sti_compositor_bind()
84 sti_mixer_create(compo->dev, drm_dev, desc[i].id, in sti_compositor_bind()
111 cursor = sti_cursor_create(drm_dev, compo->dev, in sti_compositor_bind()
121 primary = sti_gdp_create(drm_dev, compo->dev, in sti_compositor_bind()
138 sti_crtc_init(drm_dev, compo->mixer[crtc_id], in sti_compositor_bind()
146 drm_vblank_init(drm_dev, crtc_id); in sti_compositor_bind()
148 drm_dev->irq_enabled = 1; in sti_compositor_bind()
/Linux-v4.19/drivers/gpu/drm/bochs/
Dbochs_drv.c105 struct drm_device *drm_dev = pci_get_drvdata(pdev); in bochs_pm_suspend() local
106 struct bochs_device *bochs = drm_dev->dev_private; in bochs_pm_suspend()
108 drm_kms_helper_poll_disable(drm_dev); in bochs_pm_suspend()
122 struct drm_device *drm_dev = pci_get_drvdata(pdev); in bochs_pm_resume() local
123 struct bochs_device *bochs = drm_dev->dev_private; in bochs_pm_resume()
125 drm_helper_resume_force_mode(drm_dev); in bochs_pm_resume()
133 drm_kms_helper_poll_enable(drm_dev); in bochs_pm_resume()
/Linux-v4.19/drivers/gpu/drm/gma500/
Dintel_i2c.c36 struct drm_device *dev = chan->drm_dev; in get_clock()
46 struct drm_device *dev = chan->drm_dev; in get_data()
56 struct drm_device *dev = chan->drm_dev; in set_clock()
76 struct drm_device *dev = chan->drm_dev; in set_data()
125 chan->drm_dev = dev; in psb_intel_i2c_create()
/Linux-v4.19/drivers/gpu/drm/hisilicon/hibmc/
Dhibmc_drm_drv.c76 struct drm_device *drm_dev = pci_get_drvdata(pdev); in hibmc_pm_suspend() local
77 struct hibmc_drm_private *priv = drm_dev->dev_private; in hibmc_pm_suspend()
79 drm_kms_helper_poll_disable(drm_dev); in hibmc_pm_suspend()
80 priv->suspend_state = drm_atomic_helper_suspend(drm_dev); in hibmc_pm_suspend()
84 drm_kms_helper_poll_enable(drm_dev); in hibmc_pm_suspend()
94 struct drm_device *drm_dev = pci_get_drvdata(pdev); in hibmc_pm_resume() local
95 struct hibmc_drm_private *priv = drm_dev->dev_private; in hibmc_pm_resume()
97 drm_atomic_helper_resume(drm_dev, priv->suspend_state); in hibmc_pm_resume()
98 drm_kms_helper_poll_enable(drm_dev); in hibmc_pm_resume()
/Linux-v4.19/drivers/gpu/drm/nouveau/
Dnouveau_hwmon.c421 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_temp_read() local
422 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()
489 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_in_read() local
490 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_in_read()
518 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_pwm_read() local
519 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_pwm_read()
542 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_power_read() local
543 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_power_read()
[all …]
Dnouveau_drm.c756 struct drm_device *drm_dev = pci_get_drvdata(pdev); in nouveau_pmops_suspend() local
759 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF || in nouveau_pmops_suspend()
760 drm_dev->switch_power_state == DRM_SWITCH_POWER_DYNAMIC_OFF) in nouveau_pmops_suspend()
763 ret = nouveau_do_suspend(drm_dev, false); in nouveau_pmops_suspend()
778 struct drm_device *drm_dev = pci_get_drvdata(pdev); in nouveau_pmops_resume() local
781 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF || in nouveau_pmops_resume()
782 drm_dev->switch_power_state == DRM_SWITCH_POWER_DYNAMIC_OFF) in nouveau_pmops_resume()
792 ret = nouveau_do_resume(drm_dev, false); in nouveau_pmops_resume()
795 schedule_work(&nouveau_drm(drm_dev)->hpd_work); in nouveau_pmops_resume()
804 struct drm_device *drm_dev = pci_get_drvdata(pdev); in nouveau_pmops_freeze() local
[all …]
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-v4.19/drivers/gpu/drm/mediatek/
Dmtk_disp_color.c82 struct drm_device *drm_dev = data; in mtk_disp_color_bind() local
85 ret = mtk_ddp_comp_register(drm_dev, &priv->ddp_comp); in mtk_disp_color_bind()
99 struct drm_device *drm_dev = data; in mtk_disp_color_unbind() local
101 mtk_ddp_comp_unregister(drm_dev, &priv->ddp_comp); in mtk_disp_color_unbind()
/Linux-v4.19/drivers/gpu/drm/xen/
Dxen_drm_front.c531 struct drm_device *drm_dev; in xen_drm_drv_init() local
545 drm_dev = drm_dev_alloc(&xen_drm_driver, dev); in xen_drm_drv_init()
546 if (IS_ERR(drm_dev)) { in xen_drm_drv_init()
547 ret = PTR_ERR(drm_dev); in xen_drm_drv_init()
551 drm_info->drm_dev = drm_dev; in xen_drm_drv_init()
553 drm_dev->dev_private = drm_info; in xen_drm_drv_init()
561 ret = drm_dev_register(drm_dev, 0); in xen_drm_drv_init()
568 xen_drm_driver.date, drm_dev->primary->index); in xen_drm_drv_init()
573 drm_dev_unregister(drm_dev); in xen_drm_drv_init()
575 drm_kms_helper_poll_fini(drm_dev); in xen_drm_drv_init()
[all …]

1234