Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_drm_iommu.h20 int drm_create_iommu_mapping(struct drm_device *drm_dev);
22 void drm_release_iommu_mapping(struct drm_device *drm_dev);
24 int drm_iommu_attach_device(struct drm_device *drm_dev,
30 static inline bool is_drm_iommu_supported(struct drm_device *drm_dev) in is_drm_iommu_supported() argument
33 struct device *dev = drm_dev->dev; in is_drm_iommu_supported()
43 static inline int drm_create_iommu_mapping(struct drm_device *drm_dev) in drm_create_iommu_mapping() argument
48 static inline void drm_release_iommu_mapping(struct drm_device *drm_dev) in drm_release_iommu_mapping() argument
52 static inline int drm_iommu_attach_device(struct drm_device *drm_dev, in drm_iommu_attach_device() argument
58 static inline void drm_iommu_detach_device(struct drm_device *drm_dev, in drm_iommu_detach_device() argument
63 static inline bool is_drm_iommu_supported(struct drm_device *drm_dev) in is_drm_iommu_supported() argument
Dexynos_drm_iommu.c29 int drm_create_iommu_mapping(struct drm_device *drm_dev) in drm_create_iommu_mapping() argument
32 struct exynos_drm_private *priv = drm_dev->dev_private; in drm_create_iommu_mapping()
33 struct device *dev = drm_dev->dev; in drm_create_iommu_mapping()
68 void drm_release_iommu_mapping(struct drm_device *drm_dev) in drm_release_iommu_mapping() argument
70 struct device *dev = drm_dev->dev; in drm_release_iommu_mapping()
84 int drm_iommu_attach_device(struct drm_device *drm_dev, in drm_iommu_attach_device() argument
87 struct device *dev = drm_dev->dev; in drm_iommu_attach_device()
132 void drm_iommu_detach_device(struct drm_device *drm_dev, in drm_iommu_detach_device() argument
135 struct device *dev = drm_dev->dev; in drm_iommu_detach_device()
142 drm_release_iommu_mapping(drm_dev); in drm_iommu_detach_device()
Dexynos_drm_ipp.c253 int exynos_drm_ipp_get_property(struct drm_device *drm_dev, void *data, in exynos_drm_ipp_get_property() argument
347 int exynos_drm_ipp_set_property(struct drm_device *drm_dev, void *data, in exynos_drm_ipp_set_property() argument
479 static int ipp_validate_mem_node(struct drm_device *drm_dev, in ipp_validate_mem_node() argument
507 size = exynos_drm_gem_get_size(drm_dev, in ipp_validate_mem_node()
518 static int ipp_put_mem_node(struct drm_device *drm_dev, in ipp_put_mem_node() argument
537 exynos_drm_gem_put_dma_addr(drm_dev, handle, in ipp_put_mem_node()
548 *ipp_get_mem_node(struct drm_device *drm_dev, in ipp_get_mem_node() argument
578 addr = exynos_drm_gem_get_dma_addr(drm_dev, in ipp_get_mem_node()
582 ipp_put_mem_node(drm_dev, c_node, m_node); in ipp_get_mem_node()
594 if (ipp_validate_mem_node(drm_dev, m_node, c_node)) { in ipp_get_mem_node()
[all …]
Dexynos_drm_ipp.h162 struct drm_device *drm_dev; member
182 extern int exynos_drm_ipp_get_property(struct drm_device *drm_dev, void *data,
184 extern int exynos_drm_ipp_set_property(struct drm_device *drm_dev, void *data,
186 extern int exynos_drm_ipp_queue_buf(struct drm_device *drm_dev, void *data,
188 extern int exynos_drm_ipp_cmd_ctrl(struct drm_device *drm_dev, void *data,
207 static inline int exynos_drm_ipp_get_property(struct drm_device *drm_dev, in exynos_drm_ipp_get_property() argument
214 static inline int exynos_drm_ipp_set_property(struct drm_device *drm_dev, in exynos_drm_ipp_set_property() argument
221 static inline int exynos_drm_ipp_queue_buf(struct drm_device *drm_dev, in exynos_drm_ipp_queue_buf() argument
228 static inline int exynos_drm_ipp_cmd_ctrl(struct drm_device *drm_dev, in exynos_drm_ipp_cmd_ctrl() argument
Dexynos_drm_vidi.c39 struct drm_device *drm_dev; member
210 struct drm_device *drm_dev) in vidi_ctx_initialize() argument
212 struct exynos_drm_private *priv = drm_dev->dev_private; in vidi_ctx_initialize()
214 ctx->drm_dev = drm_dev; in vidi_ctx_initialize()
242 drm_handle_vblank(ctx->drm_dev, ctx->pipe); in vidi_fake_vblank_handler()
250 exynos_drm_crtc_finish_pageflip(ctx->drm_dev, ctx->pipe); in vidi_fake_vblank_handler()
294 drm_helper_hpd_irq_event(ctx->drm_dev); in vidi_store_connection()
302 int vidi_connection_ioctl(struct drm_device *drm_dev, void *data, in vidi_connection_ioctl() argument
320 list_for_each_entry(encoder, &drm_dev->mode_config.encoder_list, in vidi_connection_ioctl()
364 drm_helper_hpd_irq_event(ctx->drm_dev); in vidi_connection_ioctl()
[all …]
Dexynos_drm_g2d.c260 g2d->cmdlist_pool_virt = dma_alloc_attrs(subdrv->drm_dev->dev, in g2d_init_cmdlist()
294 dma_free_attrs(subdrv->drm_dev->dev, G2D_CMDLIST_POOL_SIZE, in g2d_init_cmdlist()
307 dma_free_attrs(subdrv->drm_dev->dev, G2D_CMDLIST_POOL_SIZE, in g2d_fini_cmdlist()
360 static void g2d_userptr_put_dma_addr(struct drm_device *drm_dev, in g2d_userptr_put_dma_addr() argument
382 exynos_gem_unmap_sgt_from_dma(drm_dev, g2d_userptr->sgt, in g2d_userptr_put_dma_addr()
401 static dma_addr_t *g2d_userptr_get_dma_addr(struct drm_device *drm_dev, in g2d_userptr_get_dma_addr() argument
525 ret = exynos_gem_map_sgt_with_dma(drm_dev, g2d_userptr->sgt, in g2d_userptr_get_dma_addr()
569 static void g2d_userptr_free_all(struct drm_device *drm_dev, in g2d_userptr_free_all() argument
579 g2d_userptr_put_dma_addr(drm_dev, in g2d_userptr_free_all()
689 struct drm_device *drm_dev, in g2d_map_cmdlist_gem() argument
[all …]
Dexynos_drm_fimd.c149 struct drm_device *drm_dev; member
277 struct drm_device *drm_dev) in fimd_iommu_attach_devices() argument
281 if (is_drm_iommu_supported(ctx->drm_dev)) { in fimd_iommu_attach_devices()
289 ret = drm_iommu_attach_device(ctx->drm_dev, ctx->dev); in fimd_iommu_attach_devices()
303 if (is_drm_iommu_supported(ctx->drm_dev)) in fimd_iommu_detach_devices()
304 drm_iommu_detach_device(ctx->drm_dev, ctx->dev); in fimd_iommu_detach_devices()
929 if (ctx->pipe < 0 || !ctx->drm_dev) in fimd_te_handler()
946 drm_handle_vblank(ctx->drm_dev, ctx->pipe); in fimd_te_handler()
991 if (ctx->pipe < 0 || !ctx->drm_dev) in fimd_irq_handler()
995 exynos_drm_crtc_finish_pageflip(ctx->drm_dev, ctx->pipe); in fimd_irq_handler()
[all …]
Dexynos_drm_drv.h275 struct drm_device *drm_dev; member
277 int (*probe)(struct drm_device *drm_dev, struct device *dev);
278 void (*remove)(struct drm_device *drm_dev, struct device *dev);
279 int (*open)(struct drm_device *drm_dev, struct device *dev,
281 void (*close)(struct drm_device *drm_dev, struct device *dev,
Dexynos7_drm_decon.c47 struct drm_device *drm_dev; member
120 struct drm_device *drm_dev) in decon_ctx_initialize() argument
122 struct exynos_drm_private *priv = drm_dev->dev_private; in decon_ctx_initialize()
124 ctx->drm_dev = drm_dev; in decon_ctx_initialize()
128 if (is_drm_iommu_supported(ctx->drm_dev)) { in decon_ctx_initialize()
136 ret = drm_iommu_attach_device(ctx->drm_dev, ctx->dev); in decon_ctx_initialize()
149 if (is_drm_iommu_supported(ctx->drm_dev)) in decon_ctx_remove()
150 drm_iommu_detach_device(ctx->drm_dev, ctx->dev); in decon_ctx_remove()
737 if (ctx->pipe < 0 || !ctx->drm_dev) in decon_irq_handler()
741 drm_handle_vblank(ctx->drm_dev, ctx->pipe); in decon_irq_handler()
[all …]
Dexynos_drm_dmabuf.h15 struct dma_buf *exynos_dmabuf_prime_export(struct drm_device *drm_dev,
18 struct drm_gem_object *exynos_dmabuf_prime_import(struct drm_device *drm_dev,
Dexynos_drm_dmabuf.c184 struct dma_buf *exynos_dmabuf_prime_export(struct drm_device *drm_dev, in exynos_dmabuf_prime_export() argument
198 struct drm_gem_object *exynos_dmabuf_prime_import(struct drm_device *drm_dev, in exynos_dmabuf_prime_import() argument
215 if (obj->dev == drm_dev) { in exynos_dmabuf_prime_import()
225 attach = dma_buf_attach(dma_buf, drm_dev->dev); in exynos_dmabuf_prime_import()
243 exynos_gem_obj = exynos_drm_gem_init(drm_dev, dma_buf->size); in exynos_dmabuf_prime_import()
Dexynos_drm_crtc.h20 struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev,
32 int exynos_drm_crtc_get_pipe_from_type(struct drm_device *drm_dev,
Dexynos_drm_gem.c324 struct drm_device *drm_dev = exynos_gem_obj->base.dev; in exynos_drm_gem_mmap_buffer() local
344 ret = dma_mmap_attrs(drm_dev->dev, vma, buffer->pages, in exynos_drm_gem_mmap_buffer()
478 int exynos_gem_map_sgt_with_dma(struct drm_device *drm_dev, in exynos_gem_map_sgt_with_dma() argument
484 mutex_lock(&drm_dev->struct_mutex); in exynos_gem_map_sgt_with_dma()
486 nents = dma_map_sg(drm_dev->dev, sgt->sgl, sgt->nents, dir); in exynos_gem_map_sgt_with_dma()
489 mutex_unlock(&drm_dev->struct_mutex); in exynos_gem_map_sgt_with_dma()
493 mutex_unlock(&drm_dev->struct_mutex); in exynos_gem_map_sgt_with_dma()
497 void exynos_gem_unmap_sgt_from_dma(struct drm_device *drm_dev, in exynos_gem_unmap_sgt_from_dma() argument
501 dma_unmap_sg(drm_dev->dev, sgt->sgl, sgt->nents, dir); in exynos_gem_unmap_sgt_from_dma()
Dexynos_mixer.c75 struct drm_device *drm_dev; member
734 drm_handle_vblank(ctx->drm_dev, ctx->pipe); in mixer_irq_handler()
735 exynos_drm_crtc_finish_pageflip(ctx->drm_dev, ctx->pipe); in mixer_irq_handler()
860 struct drm_device *drm_dev) in mixer_initialize() argument
864 priv = drm_dev->dev_private; in mixer_initialize()
866 mixer_ctx->drm_dev = drm_dev; in mixer_initialize()
885 if (!is_drm_iommu_supported(mixer_ctx->drm_dev)) in mixer_initialize()
888 return drm_iommu_attach_device(mixer_ctx->drm_dev, mixer_ctx->dev); in mixer_initialize()
893 if (is_drm_iommu_supported(mixer_ctx->drm_dev)) in mixer_ctx_remove()
894 drm_iommu_detach_device(mixer_ctx->drm_dev, mixer_ctx->dev); in mixer_ctx_remove()
[all …]
Dexynos_drm_crtc.c240 struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev, in exynos_drm_crtc_create() argument
248 struct exynos_drm_private *private = drm_dev->dev_private; in exynos_drm_crtc_create()
268 ret = drm_crtc_init_with_planes(drm_dev, crtc, plane, NULL, in exynos_drm_crtc_create()
354 int exynos_drm_crtc_get_pipe_from_type(struct drm_device *drm_dev, in exynos_drm_crtc_get_pipe_from_type() argument
359 list_for_each_entry(crtc, &drm_dev->mode_config.crtc_list, head) { in exynos_drm_crtc_get_pipe_from_type()
Dexynos_drm_drv.c326 struct drm_device *drm_dev = dev_get_drvdata(dev); in exynos_drm_sys_suspend() local
329 if (pm_runtime_suspended(dev) || !drm_dev) in exynos_drm_sys_suspend()
333 return exynos_drm_suspend(drm_dev, message); in exynos_drm_sys_suspend()
338 struct drm_device *drm_dev = dev_get_drvdata(dev); in exynos_drm_sys_resume() local
340 if (pm_runtime_suspended(dev) || !drm_dev) in exynos_drm_sys_resume()
343 return exynos_drm_resume(drm_dev); in exynos_drm_sys_resume()
Dexynos_drm_gem.h173 int exynos_gem_map_sgt_with_dma(struct drm_device *drm_dev,
178 void exynos_gem_unmap_sgt_from_dma(struct drm_device *drm_dev,
Dexynos_drm_vidi.h16 int vidi_connection_ioctl(struct drm_device *drm_dev, void *data,
Dexynos_drm_fb.c43 static int check_fb_gem_memory_type(struct drm_device *drm_dev, in check_fb_gem_memory_type() argument
52 if (is_drm_iommu_supported(drm_dev)) in check_fb_gem_memory_type()
Dexynos_dp_core.c890 if (dp->drm_dev) in exynos_dp_hotplug()
891 drm_helper_hpd_irq_event(dp->drm_dev); in exynos_dp_hotplug()
1037 ret = drm_connector_init(dp->drm_dev, connector, in exynos_dp_create_connector()
1218 struct drm_device *drm_dev = data; in exynos_dp_bind() local
1309 dp->drm_dev = drm_dev; in exynos_dp_bind()
1311 return exynos_drm_create_enc_conn(drm_dev, &dp->display); in exynos_dp_bind()
Dexynos_drm_core.c90 subdrv->drm_dev = dev; in exynos_drm_device_subdrv_probe()
Dexynos_hdmi.c186 struct drm_device *drm_dev; member
1139 ret = drm_connector_init(hdata->drm_dev, connector, in hdmi_create_connector()
2155 if (hdata->drm_dev) in hdmi_hotplug_work_func()
2156 drm_helper_hpd_irq_event(hdata->drm_dev); in hdmi_hotplug_work_func()
2298 struct drm_device *drm_dev = data; in hdmi_bind() local
2301 hdata->drm_dev = drm_dev; in hdmi_bind()
2303 return exynos_drm_create_enc_conn(drm_dev, &hdata->display); in hdmi_bind()
Dexynos_dp_core.h152 struct drm_device *drm_dev; member
Dexynos_drm_dsi.c1642 struct drm_device *drm_dev = data; in exynos_dsi_bind() local
1645 ret = exynos_drm_create_enc_conn(drm_dev, display); in exynos_dsi_bind()
/linux-4.1.27/drivers/gpu/drm/rockchip/
Drockchip_drm_drv.c43 int rockchip_drm_dma_attach_device(struct drm_device *drm_dev, in rockchip_drm_dma_attach_device() argument
46 struct dma_iommu_mapping *mapping = drm_dev->dev->archdata.mapping; in rockchip_drm_dma_attach_device()
59 void rockchip_drm_dma_detach_device(struct drm_device *drm_dev, in rockchip_drm_dma_detach_device() argument
127 static int rockchip_drm_load(struct drm_device *drm_dev, unsigned long flags) in rockchip_drm_load() argument
131 struct device *dev = drm_dev->dev; in rockchip_drm_load()
135 private = devm_kzalloc(drm_dev->dev, sizeof(*private), GFP_KERNEL); in rockchip_drm_load()
139 drm_dev->dev_private = private; in rockchip_drm_load()
141 drm_mode_config_init(drm_dev); in rockchip_drm_load()
143 rockchip_drm_mode_config_init(drm_dev); in rockchip_drm_load()
171 ret = component_bind_all(dev, drm_dev); in rockchip_drm_load()
[all …]
Drockchip_drm_drv.h63 int rockchip_drm_dma_attach_device(struct drm_device *drm_dev,
65 void rockchip_drm_dma_detach_device(struct drm_device *drm_dev,
Drockchip_drm_vop.c83 struct drm_device *drm_dev; member
454 ret = rockchip_drm_dma_attach_device(vop->drm_dev, vop->dev); in vop_enable()
473 drm_vblank_on(vop->drm_dev, vop->pipe); in vop_enable()
521 rockchip_drm_dma_detach_device(vop->drm_dev, vop->dev); in vop_disable()
1165 drm_handle_vblank(vop->drm_dev, vop->pipe); in vop_isr()
1181 struct drm_device *drm_dev = vop->drm_dev; in vop_create_crtc() local
1201 ret = drm_universal_plane_init(vop->drm_dev, &vop_win->base, in vop_create_crtc()
1218 ret = drm_crtc_init_with_planes(drm_dev, crtc, primary, cursor, in vop_create_crtc()
1237 ret = drm_universal_plane_init(vop->drm_dev, &vop_win->base, in vop_create_crtc()
1259 rockchip_register_crtc_funcs(drm_dev, &private_crtc_funcs, vop->pipe); in vop_create_crtc()
[all …]
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_drv.c422 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_suspend() local
423 return radeon_suspend_kms(drm_dev, true, true); in radeon_pmops_suspend()
429 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_resume() local
430 return radeon_resume_kms(drm_dev, true, true); in radeon_pmops_resume()
436 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_freeze() local
437 return radeon_suspend_kms(drm_dev, false, true); in radeon_pmops_freeze()
443 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_thaw() local
444 return radeon_resume_kms(drm_dev, false, true); in radeon_pmops_thaw()
450 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_runtime_suspend() local
453 if (!radeon_is_px(drm_dev)) { in radeon_pmops_runtime_suspend()
[all …]
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_drv.c147 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_suspend() local
150 error = qxl_drm_freeze(drm_dev); in qxl_pm_suspend()
162 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_resume() local
170 return qxl_drm_resume(drm_dev, false); in qxl_pm_resume()
176 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_thaw() local
178 return qxl_drm_resume(drm_dev, true); in qxl_pm_thaw()
184 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_freeze() local
186 return qxl_drm_freeze(drm_dev); in qxl_pm_freeze()
192 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_restore() local
193 struct qxl_device *qdev = drm_dev->dev_private; in qxl_pm_restore()
[all …]
/linux-4.1.27/drivers/gpu/drm/cirrus/
Dcirrus_drv.c88 struct drm_device *drm_dev = pci_get_drvdata(pdev); in cirrus_pm_suspend() local
89 struct cirrus_device *cdev = drm_dev->dev_private; in cirrus_pm_suspend()
91 drm_kms_helper_poll_disable(drm_dev); in cirrus_pm_suspend()
105 struct drm_device *drm_dev = pci_get_drvdata(pdev); in cirrus_pm_resume() local
106 struct cirrus_device *cdev = drm_dev->dev_private; in cirrus_pm_resume()
108 drm_helper_resume_force_mode(drm_dev); in cirrus_pm_resume()
116 drm_kms_helper_poll_enable(drm_dev); in cirrus_pm_resume()
/linux-4.1.27/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-4.1.27/drivers/gpu/drm/sti/
Dsti_drm_crtc.c215 struct drm_device *drm_dev; in sti_drm_crtc_vblank_cb() local
222 drm_dev = compo->mixer[*crtc]->drm_crtc.dev; in sti_drm_crtc_vblank_cb()
223 priv = drm_dev->dev_private; in sti_drm_crtc_vblank_cb()
231 drm_handle_vblank(drm_dev, *crtc); in sti_drm_crtc_vblank_cb()
233 spin_lock_irqsave(&drm_dev->event_lock, flags); in sti_drm_crtc_vblank_cb()
235 drm_send_vblank_event(drm_dev, -1, in sti_drm_crtc_vblank_cb()
237 drm_vblank_put(drm_dev, *crtc); in sti_drm_crtc_vblank_cb()
240 spin_unlock_irqrestore(&drm_dev->event_lock, flags); in sti_drm_crtc_vblank_cb()
303 int sti_drm_crtc_init(struct drm_device *drm_dev, struct sti_mixer *mixer, in sti_drm_crtc_init() argument
309 res = drm_crtc_init_with_planes(drm_dev, crtc, primary, cursor, in sti_drm_crtc_init()
Dsti_compositor.c93 struct drm_device *drm_dev = data; in sti_compositor_bind() local
95 struct sti_drm_private *dev_priv = drm_dev->dev_private; in sti_compositor_bind()
112 cursor = sti_drm_plane_init(drm_dev, in sti_compositor_bind()
118 primary = sti_drm_plane_init(drm_dev, in sti_compositor_bind()
131 sti_drm_crtc_init(drm_dev, compo->mixer[crtc], in sti_compositor_bind()
140 drm_vblank_init(drm_dev, crtc); in sti_compositor_bind()
142 drm_dev->irq_enabled = 1; in sti_compositor_bind()
Dsti_hda.c246 struct drm_device *drm_dev; member
532 drm_mode_duplicate(hda->drm_dev, in sti_hda_connector_get_modes()
639 struct drm_device *drm_dev = data; in sti_hda_bind() local
647 hda->drm_dev = drm_dev; in sti_hda_bind()
649 encoder = sti_hda_find_encoder(drm_dev); in sti_hda_bind()
665 drm_bridge_attach(drm_dev, bridge); in sti_hda_bind()
674 drm_connector_init(drm_dev, drm_connector, in sti_hda_bind()
Dsti_dvo.c83 struct drm_device *drm_dev; member
392 struct drm_device *drm_dev = data; in sti_dvo_bind() local
400 dvo->drm_dev = drm_dev; in sti_dvo_bind()
402 encoder = sti_dvo_find_encoder(drm_dev); in sti_dvo_bind()
425 err = drm_bridge_attach(drm_dev, bridge); in sti_dvo_bind()
440 drm_connector_init(drm_dev, drm_connector, in sti_dvo_bind()
Dsti_hdmi.c148 if (hdmi->drm_dev) in hdmi_irq_thread()
149 drm_helper_hpd_irq_event(hdmi->drm_dev); in hdmi_irq_thread()
691 struct drm_device *drm_dev = data; in sti_hdmi_bind() local
712 hdmi->drm_dev = drm_dev; in sti_hdmi_bind()
714 encoder = sti_hdmi_find_encoder(drm_dev); in sti_hdmi_bind()
731 drm_bridge_attach(drm_dev, bridge); in sti_hdmi_bind()
740 drm_connector_init(drm_dev, drm_connector, in sti_hdmi_bind()
Dsti_tvout.c117 struct drm_device *drm_dev; member
645 struct drm_device *drm_dev = data; in sti_tvout_bind() local
649 tvout->drm_dev = drm_dev; in sti_tvout_bind()
659 sti_tvout_create_encoders(drm_dev, tvout); in sti_tvout_bind()
661 ret = component_bind_all(dev, drm_dev); in sti_tvout_bind()
Dsti_drm_drv.h26 struct drm_device *drm_dev; member
Dsti_drm_crtc.h14 int sti_drm_crtc_init(struct drm_device *drm_dev, struct sti_mixer *mixer,
Dsti_hdmi.h50 struct drm_device *drm_dev; member
Dsti_hqvdp.c340 struct drm_device *drm_dev; member
781 hqvdp->vid_plane = sti_hqvdp_find_vid(hqvdp->drm_dev, STI_VID_0); in sti_hqvd_init()
957 struct drm_device *drm_dev = data; in sti_hqvdp_bind() local
963 hqvdp->drm_dev = drm_dev; in sti_hqvdp_bind()
980 sti_drm_plane_init(drm_dev, layer, 1, DRM_PLANE_TYPE_OVERLAY); in sti_hqvdp_bind()
Dsti_drm_drv.c43 struct drm_device *drm = private->drm_dev; in sti_drm_atomic_complete()
143 private->drm_dev = dev; in sti_drm_load()
/linux-4.1.27/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()
Doaktrail_lvds_i2c.c144 chan->drm_dev = dev; in oaktrail_lvds_i2c_init()
Dpsb_intel_drv.h113 struct drm_device *drm_dev; member
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_drm.c655 struct drm_device *drm_dev = pci_get_drvdata(pdev); in nouveau_pmops_suspend() local
658 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF || in nouveau_pmops_suspend()
659 drm_dev->switch_power_state == DRM_SWITCH_POWER_DYNAMIC_OFF) in nouveau_pmops_suspend()
662 ret = nouveau_do_suspend(drm_dev, false); in nouveau_pmops_suspend()
676 struct drm_device *drm_dev = pci_get_drvdata(pdev); in nouveau_pmops_resume() local
679 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF || in nouveau_pmops_resume()
680 drm_dev->switch_power_state == DRM_SWITCH_POWER_DYNAMIC_OFF) in nouveau_pmops_resume()
690 return nouveau_do_resume(drm_dev, false); in nouveau_pmops_resume()
697 struct drm_device *drm_dev = pci_get_drvdata(pdev); in nouveau_pmops_freeze() local
698 return nouveau_do_suspend(drm_dev, false); in nouveau_pmops_freeze()
[all …]
Dnouveau_platform.c221 struct drm_device *drm_dev = platform_get_drvdata(pdev); in nouveau_platform_remove() local
222 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_platform_remove()
227 nouveau_drm_device_remove(drm_dev); in nouveau_platform_remove()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_sysfs.c45 struct drm_device *drm_dev = drm_minor->dev; in __drm_class_suspend() local
48 !drm_core_check_feature(drm_dev, DRIVER_MODESET) && in __drm_class_suspend()
49 drm_dev->driver->suspend) in __drm_class_suspend()
50 return drm_dev->driver->suspend(drm_dev, state); in __drm_class_suspend()
86 struct drm_device *drm_dev = drm_minor->dev; in drm_class_resume() local
89 !drm_core_check_feature(drm_dev, DRIVER_MODESET) && in drm_class_resume()
90 drm_dev->driver->resume) in drm_class_resume()
91 return drm_dev->driver->resume(drm_dev); in drm_class_resume()
/linux-4.1.27/drivers/gpu/drm/i915/
Di915_sysfs.c198 struct drm_device *drm_dev = dminor->dev; in i915_l3_read() local
199 struct drm_i915_private *dev_priv = drm_dev->dev_private; in i915_l3_read()
205 ret = l3_access_valid(drm_dev, offset); in i915_l3_read()
211 ret = i915_mutex_lock_interruptible(drm_dev); in i915_l3_read()
222 mutex_unlock(&drm_dev->struct_mutex); in i915_l3_read()
234 struct drm_device *drm_dev = dminor->dev; in i915_l3_write() local
235 struct drm_i915_private *dev_priv = drm_dev->dev_private; in i915_l3_write()
241 if (!HAS_HW_CONTEXTS(drm_dev)) in i915_l3_write()
244 ret = l3_access_valid(drm_dev, offset); in i915_l3_write()
248 ret = i915_mutex_lock_interruptible(drm_dev); in i915_l3_write()
[all …]
Di915_drv.c635 static int i915_drm_suspend_late(struct drm_device *drm_dev, bool hibernation) in i915_drm_suspend_late() argument
637 struct drm_i915_private *dev_priv = drm_dev->dev_private; in i915_drm_suspend_late()
648 pci_disable_device(drm_dev->pdev); in i915_drm_suspend_late()
662 pci_set_power_state(drm_dev->pdev, PCI_D3hot); in i915_drm_suspend_late()
940 struct drm_device *drm_dev = pci_get_drvdata(pdev); in i915_pm_suspend() local
942 if (!drm_dev || !drm_dev->dev_private) { in i915_pm_suspend()
947 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_suspend()
950 return i915_drm_suspend(drm_dev); in i915_pm_suspend()
955 struct drm_device *drm_dev = dev_to_i915(dev)->dev; in i915_pm_suspend_late() local
966 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_suspend_late()
[all …]
/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_dc.c565 struct drm_device *drm_dev = dev_get_drvdata(dev); in atmel_hlcdc_dc_drm_suspend() local
571 drm_modeset_lock_all(drm_dev); in atmel_hlcdc_dc_drm_suspend()
572 list_for_each_entry(crtc, &drm_dev->mode_config.crtc_list, head) in atmel_hlcdc_dc_drm_suspend()
574 drm_modeset_unlock_all(drm_dev); in atmel_hlcdc_dc_drm_suspend()
580 struct drm_device *drm_dev = dev_get_drvdata(dev); in atmel_hlcdc_dc_drm_resume() local
586 drm_modeset_lock_all(drm_dev); in atmel_hlcdc_dc_drm_resume()
587 list_for_each_entry(crtc, &drm_dev->mode_config.crtc_list, head) in atmel_hlcdc_dc_drm_resume()
589 drm_modeset_unlock_all(drm_dev); in atmel_hlcdc_dc_drm_resume()
/linux-4.1.27/drivers/gpu/drm/imx/
Dimx-drm-core.c598 struct drm_device *drm_dev = dev_get_drvdata(dev); in imx_drm_suspend() local
601 if (drm_dev == NULL) in imx_drm_suspend()
604 drm_kms_helper_poll_disable(drm_dev); in imx_drm_suspend()
611 struct drm_device *drm_dev = dev_get_drvdata(dev); in imx_drm_resume() local
613 if (drm_dev == NULL) in imx_drm_resume()
616 drm_helper_resume_force_mode(drm_dev); in imx_drm_resume()
617 drm_kms_helper_poll_enable(drm_dev); in imx_drm_resume()
/linux-4.1.27/drivers/gpu/drm/omapdrm/
Domap_drv.c713 struct drm_device *drm_dev = dev_get_drvdata(dev); in omap_drm_suspend() local
715 drm_kms_helper_poll_disable(drm_dev); in omap_drm_suspend()
722 struct drm_device *drm_dev = dev_get_drvdata(dev); in omap_drm_resume() local
724 drm_kms_helper_poll_enable(drm_dev); in omap_drm_resume()
Domap_gem.c952 struct drm_device *drm_dev = dev_get_drvdata(dev); in omap_gem_resume() local
953 struct omap_drm_private *priv = drm_dev->dev_private; in omap_gem_resume()