Home
last modified time | relevance | path

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

/linux-4.4.14/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
32 struct device *dev = drm_dev->dev; in is_drm_iommu_supported()
39 static inline int drm_create_iommu_mapping(struct drm_device *drm_dev) in drm_create_iommu_mapping() argument
44 static inline void drm_release_iommu_mapping(struct drm_device *drm_dev) in drm_release_iommu_mapping() argument
48 static inline int drm_iommu_attach_device(struct drm_device *drm_dev, in drm_iommu_attach_device() argument
54 static inline void drm_iommu_detach_device(struct drm_device *drm_dev, in drm_iommu_detach_device() argument
59 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()
133 void drm_iommu_detach_device(struct drm_device *drm_dev, in drm_iommu_detach_device() argument
136 struct device *dev = drm_dev->dev; in drm_iommu_detach_device()
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_ipp.c226 int exynos_drm_ipp_get_property(struct drm_device *drm_dev, void *data, in exynos_drm_ipp_get_property() argument
320 int exynos_drm_ipp_set_property(struct drm_device *drm_dev, void *data, in exynos_drm_ipp_set_property() argument
452 static int ipp_validate_mem_node(struct drm_device *drm_dev, in ipp_validate_mem_node() argument
492 size = exynos_drm_gem_get_size(drm_dev, in ipp_validate_mem_node()
515 static int ipp_put_mem_node(struct drm_device *drm_dev, in ipp_put_mem_node() argument
534 exynos_drm_gem_put_dma_addr(drm_dev, handle, in ipp_put_mem_node()
545 *ipp_get_mem_node(struct drm_device *drm_dev, in ipp_get_mem_node() argument
575 addr = exynos_drm_gem_get_dma_addr(drm_dev, in ipp_get_mem_node()
579 ipp_put_mem_node(drm_dev, c_node, m_node); in ipp_get_mem_node()
591 if (ipp_validate_mem_node(drm_dev, m_node, c_node)) { in ipp_get_mem_node()
[all …]
Dexynos_drm_vidi.c40 struct drm_device *drm_dev; member
166 struct drm_device *drm_dev) in vidi_ctx_initialize() argument
168 struct exynos_drm_private *priv = drm_dev->dev_private; in vidi_ctx_initialize()
170 ctx->drm_dev = drm_dev; in vidi_ctx_initialize()
258 drm_helper_hpd_irq_event(ctx->drm_dev); in vidi_store_connection()
266 int vidi_connection_ioctl(struct drm_device *drm_dev, void *data, in vidi_connection_ioctl() argument
269 struct vidi_context *ctx = dev_get_drvdata(drm_dev->dev); in vidi_connection_ioctl()
311 drm_helper_hpd_irq_event(ctx->drm_dev); in vidi_connection_ioctl()
390 ret = drm_connector_init(ctx->drm_dev, connector, in vidi_create_connector()
439 struct drm_device *drm_dev = data; in vidi_bind() local
[all …]
Dexynos_drm_g2d.c262 g2d->cmdlist_pool_virt = dma_alloc_attrs(subdrv->drm_dev->dev, in g2d_init_cmdlist()
296 dma_free_attrs(subdrv->drm_dev->dev, G2D_CMDLIST_POOL_SIZE, in g2d_init_cmdlist()
309 dma_free_attrs(subdrv->drm_dev->dev, G2D_CMDLIST_POOL_SIZE, in g2d_fini_cmdlist()
362 static void g2d_userptr_put_dma_addr(struct drm_device *drm_dev, in g2d_userptr_put_dma_addr() argument
385 exynos_gem_unmap_sgt_from_dma(drm_dev, g2d_userptr->sgt, in g2d_userptr_put_dma_addr()
406 static dma_addr_t *g2d_userptr_get_dma_addr(struct drm_device *drm_dev, in g2d_userptr_get_dma_addr() argument
503 ret = exynos_gem_map_sgt_with_dma(drm_dev, g2d_userptr->sgt, in g2d_userptr_get_dma_addr()
542 static void g2d_userptr_free_all(struct drm_device *drm_dev, in g2d_userptr_free_all() argument
552 g2d_userptr_put_dma_addr(drm_dev, in g2d_userptr_free_all()
679 struct drm_device *drm_dev, in g2d_map_cmdlist_gem() argument
[all …]
Dexynos_drm_drv.h219 struct drm_device *drm_dev; member
221 int (*probe)(struct drm_device *drm_dev, struct device *dev);
222 void (*remove)(struct drm_device *drm_dev, struct device *dev);
223 int (*open)(struct drm_device *drm_dev, struct device *dev,
225 void (*close)(struct drm_device *drm_dev, struct device *dev,
Dexynos_drm_gem.c324 struct drm_device *drm_dev = exynos_gem->base.dev; in exynos_drm_gem_mmap_buffer() local
337 ret = dma_mmap_attrs(drm_dev->dev, vma, exynos_gem->pages, in exynos_drm_gem_mmap_buffer()
375 int exynos_gem_map_sgt_with_dma(struct drm_device *drm_dev, in exynos_gem_map_sgt_with_dma() argument
381 mutex_lock(&drm_dev->struct_mutex); in exynos_gem_map_sgt_with_dma()
383 nents = dma_map_sg(drm_dev->dev, sgt->sgl, sgt->nents, dir); in exynos_gem_map_sgt_with_dma()
386 mutex_unlock(&drm_dev->struct_mutex); in exynos_gem_map_sgt_with_dma()
390 mutex_unlock(&drm_dev->struct_mutex); in exynos_gem_map_sgt_with_dma()
394 void exynos_gem_unmap_sgt_from_dma(struct drm_device *drm_dev, in exynos_gem_unmap_sgt_from_dma() argument
398 dma_unmap_sg(drm_dev->dev, sgt->sgl, sgt->nents, dir); in exynos_gem_unmap_sgt_from_dma()
Dexynos_drm_crtc.c128 struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev, in exynos_drm_crtc_create() argument
136 struct exynos_drm_private *private = drm_dev->dev_private; in exynos_drm_crtc_create()
155 ret = drm_crtc_init_with_planes(drm_dev, crtc, plane, NULL, in exynos_drm_crtc_create()
241 int exynos_drm_crtc_get_pipe_from_type(struct drm_device *drm_dev, in exynos_drm_crtc_get_pipe_from_type() argument
246 list_for_each_entry(crtc, &drm_dev->mode_config.crtc_list, head) { in exynos_drm_crtc_get_pipe_from_type()
Dexynos7_drm_decon.c47 struct drm_device *drm_dev; member
132 struct drm_device *drm_dev) in decon_ctx_initialize() argument
134 struct exynos_drm_private *priv = drm_dev->dev_private; in decon_ctx_initialize()
137 ctx->drm_dev = drm_dev; in decon_ctx_initialize()
142 ret = drm_iommu_attach_device(drm_dev, ctx->dev); in decon_ctx_initialize()
152 drm_iommu_detach_device(ctx->drm_dev, ctx->dev); in decon_ctx_remove()
653 if (ctx->pipe < 0 || !ctx->drm_dev) in decon_irq_handler()
680 struct drm_device *drm_dev = data; in decon_bind() local
686 ret = decon_ctx_initialize(ctx, drm_dev); in decon_bind()
694 ret = exynos_plane_init(drm_dev, &ctx->planes[zpos], in decon_bind()
[all …]
Dexynos_drm_crtc.h20 struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev,
34 int exynos_drm_crtc_get_pipe_from_type(struct drm_device *drm_dev,
Dexynos5433_drm_decon.c56 struct drm_device *drm_dev; member
494 struct drm_device *drm_dev = data; in decon_bind() local
495 struct exynos_drm_private *priv = drm_dev->dev_private; in decon_bind()
502 ctx->drm_dev = drm_dev; in decon_bind()
509 ret = exynos_plane_init(drm_dev, &ctx->planes[win], in decon_bind()
519 ctx->crtc = exynos_drm_crtc_create(drm_dev, &exynos_plane->base, in decon_bind()
529 ret = drm_iommu_attach_device(drm_dev, dev); in decon_bind()
546 drm_iommu_detach_device(ctx->drm_dev, ctx->dev); in decon_unbind()
Dexynos_drm_fimd.c150 struct drm_device *drm_dev; member
840 if (ctx->pipe < 0 || !ctx->drm_dev) in fimd_te_handler()
905 if (ctx->pipe < 0 || !ctx->drm_dev) in fimd_irq_handler()
941 struct drm_device *drm_dev = data; in fimd_bind() local
942 struct exynos_drm_private *priv = drm_dev->dev_private; in fimd_bind()
948 ctx->drm_dev = drm_dev; in fimd_bind()
953 ret = exynos_plane_init(drm_dev, &ctx->planes[zpos], in fimd_bind()
961 ctx->crtc = exynos_drm_crtc_create(drm_dev, &exynos_plane->base, in fimd_bind()
968 exynos_dpi_bind(drm_dev, ctx->encoder); in fimd_bind()
970 if (is_drm_iommu_supported(drm_dev)) in fimd_bind()
[all …]
Dexynos_mixer.c93 struct drm_device *drm_dev; member
886 struct drm_device *drm_dev) in mixer_initialize() argument
890 priv = drm_dev->dev_private; in mixer_initialize()
892 mixer_ctx->drm_dev = drm_dev; in mixer_initialize()
911 ret = drm_iommu_attach_device(drm_dev, mixer_ctx->dev); in mixer_initialize()
920 drm_iommu_detach_device(mixer_ctx->drm_dev, mixer_ctx->dev); in mixer_ctx_remove()
999 err = drm_vblank_get(mixer_ctx->drm_dev, mixer_ctx->pipe); in mixer_wait_for_vblank()
1016 drm_vblank_put(mixer_ctx->drm_dev, mixer_ctx->pipe); in mixer_wait_for_vblank()
1188 struct drm_device *drm_dev = data; in mixer_bind() local
1193 ret = mixer_initialize(ctx, drm_dev); in mixer_bind()
[all …]
Dexynos_drm_gem.h149 int exynos_gem_map_sgt_with_dma(struct drm_device *drm_dev,
154 void exynos_gem_unmap_sgt_from_dma(struct drm_device *drm_dev,
Dexynos_drm_drv.c481 struct drm_device *drm_dev = dev_get_drvdata(dev); in exynos_drm_sys_suspend() local
484 if (pm_runtime_suspended(dev) || !drm_dev) in exynos_drm_sys_suspend()
488 return exynos_drm_suspend(drm_dev, message); in exynos_drm_sys_suspend()
493 struct drm_device *drm_dev = dev_get_drvdata(dev); in exynos_drm_sys_resume() local
495 if (pm_runtime_suspended(dev) || !drm_dev) in exynos_drm_sys_resume()
498 return exynos_drm_resume(drm_dev); in exynos_drm_sys_resume()
Dexynos_drm_vidi.h16 int vidi_connection_ioctl(struct drm_device *drm_dev, void *data,
Dexynos_drm_fb.c42 static int check_fb_gem_memory_type(struct drm_device *drm_dev, in check_fb_gem_memory_type() argument
51 if (is_drm_iommu_supported(drm_dev)) in check_fb_gem_memory_type()
Dexynos_dp_core.c888 if (dp->drm_dev) in exynos_dp_hotplug()
889 drm_helper_hpd_irq_event(dp->drm_dev); in exynos_dp_hotplug()
1038 ret = drm_connector_init(dp->drm_dev, connector, in exynos_dp_create_connector()
1212 struct drm_device *drm_dev = data; in exynos_dp_bind() local
1304 dp->drm_dev = drm_dev; in exynos_dp_bind()
1306 pipe = exynos_drm_crtc_get_pipe_from_type(drm_dev, in exynos_dp_bind()
1315 drm_encoder_init(drm_dev, encoder, &exynos_dp_encoder_funcs, in exynos_dp_bind()
Dexynos_drm_core.c52 subdrv->drm_dev = dev; in exynos_drm_device_subdrv_probe()
Dexynos_hdmi.c103 struct drm_device *drm_dev; member
1048 ret = drm_connector_init(hdata->drm_dev, connector, in hdmi_create_connector()
1667 if (hdata->drm_dev) in hdmi_hotplug_work_func()
1668 drm_helper_hpd_irq_event(hdata->drm_dev); in hdmi_hotplug_work_func()
1779 struct drm_device *drm_dev = data; in hdmi_bind() local
1784 hdata->drm_dev = drm_dev; in hdmi_bind()
1786 pipe = exynos_drm_crtc_get_pipe_from_type(drm_dev, in hdmi_bind()
1795 drm_encoder_init(drm_dev, encoder, &exynos_hdmi_encoder_funcs, in hdmi_bind()
Dexynos_dp_core.h152 struct drm_device *drm_dev; member
Dexynos_drm_dsi.c1820 struct drm_device *drm_dev = data; in exynos_dsi_bind() local
1824 ret = exynos_drm_crtc_get_pipe_from_type(drm_dev, in exynos_dsi_bind()
1833 drm_encoder_init(drm_dev, encoder, &exynos_dsi_encoder_funcs, in exynos_dsi_bind()
1847 drm_bridge_attach(drm_dev, bridge); in exynos_dsi_bind()
/linux-4.4.14/drivers/gpu/drm/rockchip/
Drockchip_drm_drv.c44 int rockchip_drm_dma_attach_device(struct drm_device *drm_dev, in rockchip_drm_dma_attach_device() argument
47 struct dma_iommu_mapping *mapping = drm_dev->dev->archdata.mapping; in rockchip_drm_dma_attach_device()
60 void rockchip_drm_dma_detach_device(struct drm_device *drm_dev, in rockchip_drm_dma_detach_device() argument
130 static int rockchip_drm_load(struct drm_device *drm_dev, unsigned long flags) in rockchip_drm_load() argument
134 struct device *dev = drm_dev->dev; in rockchip_drm_load()
138 private = devm_kzalloc(drm_dev->dev, sizeof(*private), GFP_KERNEL); in rockchip_drm_load()
142 drm_dev->dev_private = private; in rockchip_drm_load()
144 drm_mode_config_init(drm_dev); in rockchip_drm_load()
146 rockchip_drm_mode_config_init(drm_dev); in rockchip_drm_load()
174 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.c86 struct drm_device *drm_dev; member
675 ret = rockchip_drm_dma_attach_device(vop->drm_dev, vop->dev); in vop_enable()
695 drm_vblank_on(vop->drm_dev, vop->pipe); in vop_enable()
743 rockchip_drm_dma_detach_device(vop->drm_dev, vop->dev); in vop_disable()
1441 drm_handle_vblank(vop->drm_dev, vop->pipe); in vop_isr()
1457 struct drm_device *drm_dev = vop->drm_dev; in vop_create_crtc() local
1477 ret = drm_universal_plane_init(vop->drm_dev, &vop_win->base, in vop_create_crtc()
1494 ret = drm_crtc_init_with_planes(drm_dev, crtc, primary, cursor, in vop_create_crtc()
1513 ret = drm_universal_plane_init(vop->drm_dev, &vop_win->base, in vop_create_crtc()
1535 rockchip_register_crtc_funcs(drm_dev, &private_crtc_funcs, vop->pipe); in vop_create_crtc()
[all …]
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_drv.c423 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_suspend() local
424 return radeon_suspend_kms(drm_dev, true, true); in radeon_pmops_suspend()
430 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_resume() local
431 return radeon_resume_kms(drm_dev, true, true); in radeon_pmops_resume()
437 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_freeze() local
438 return radeon_suspend_kms(drm_dev, false, true); in radeon_pmops_freeze()
444 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_thaw() local
445 return radeon_resume_kms(drm_dev, false, true); in radeon_pmops_thaw()
451 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_runtime_suspend() local
454 if (!radeon_is_px(drm_dev)) { in radeon_pmops_runtime_suspend()
[all …]
/linux-4.4.14/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.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_drv.c338 struct drm_device *drm_dev = pci_get_drvdata(pdev); in amdgpu_pmops_suspend() local
339 return amdgpu_suspend_kms(drm_dev, true, true); in amdgpu_pmops_suspend()
345 struct drm_device *drm_dev = pci_get_drvdata(pdev); in amdgpu_pmops_resume() local
346 return amdgpu_resume_kms(drm_dev, true, true); in amdgpu_pmops_resume()
352 struct drm_device *drm_dev = pci_get_drvdata(pdev); in amdgpu_pmops_freeze() local
353 return amdgpu_suspend_kms(drm_dev, false, true); in amdgpu_pmops_freeze()
359 struct drm_device *drm_dev = pci_get_drvdata(pdev); in amdgpu_pmops_thaw() local
360 return amdgpu_resume_kms(drm_dev, false, true); in amdgpu_pmops_thaw()
366 struct drm_device *drm_dev = pci_get_drvdata(pdev); in amdgpu_pmops_runtime_suspend() local
369 if (!amdgpu_device_is_px(drm_dev)) { in amdgpu_pmops_runtime_suspend()
[all …]
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/gpu/drm/nouveau/
Dnouveau_drm.c632 struct drm_device *drm_dev = pci_get_drvdata(pdev); in nouveau_pmops_suspend() local
635 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF || in nouveau_pmops_suspend()
636 drm_dev->switch_power_state == DRM_SWITCH_POWER_DYNAMIC_OFF) in nouveau_pmops_suspend()
639 ret = nouveau_do_suspend(drm_dev, false); in nouveau_pmops_suspend()
654 struct drm_device *drm_dev = pci_get_drvdata(pdev); in nouveau_pmops_resume() local
657 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF || in nouveau_pmops_resume()
658 drm_dev->switch_power_state == DRM_SWITCH_POWER_DYNAMIC_OFF) in nouveau_pmops_resume()
668 return nouveau_do_resume(drm_dev, false); in nouveau_pmops_resume()
675 struct drm_device *drm_dev = pci_get_drvdata(pdev); in nouveau_pmops_freeze() local
676 return nouveau_do_suspend(drm_dev, false); in nouveau_pmops_freeze()
[all …]
/linux-4.4.14/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()
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()
Dsti_crtc.c163 struct drm_device *drm_dev = crtc->dev; in sti_crtc_atomic_flush() local
171 list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { in sti_crtc_atomic_flush()
323 void sti_crtc_disable_vblank(struct drm_device *drm_dev, unsigned int pipe) in sti_crtc_disable_vblank() argument
325 struct sti_private *priv = drm_dev->dev_private; in sti_crtc_disable_vblank()
363 int sti_crtc_init(struct drm_device *drm_dev, struct sti_mixer *mixer, in sti_crtc_init() argument
369 res = drm_crtc_init_with_planes(drm_dev, crtc, primary, cursor, in sti_crtc_init()
Dsti_hda.c246 struct drm_device *drm_dev; member
532 drm_mode_duplicate(hda->drm_dev, in sti_hda_connector_get_modes()
640 struct drm_device *drm_dev = data; in sti_hda_bind() local
648 hda->drm_dev = drm_dev; in sti_hda_bind()
650 encoder = sti_hda_find_encoder(drm_dev); in sti_hda_bind()
666 drm_bridge_attach(drm_dev, bridge); in sti_hda_bind()
675 drm_connector_init(drm_dev, drm_connector, in sti_hda_bind()
Dsti_dvo.c83 struct drm_device *drm_dev; member
393 struct drm_device *drm_dev = data; in sti_dvo_bind() local
401 dvo->drm_dev = drm_dev; in sti_dvo_bind()
403 encoder = sti_dvo_find_encoder(drm_dev); in sti_dvo_bind()
426 err = drm_bridge_attach(drm_dev, bridge); in sti_dvo_bind()
441 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()
692 struct drm_device *drm_dev = data; in sti_hdmi_bind() local
700 hdmi->drm_dev = drm_dev; in sti_hdmi_bind()
702 encoder = sti_hdmi_find_encoder(drm_dev); in sti_hdmi_bind()
718 drm_bridge_attach(drm_dev, bridge); in sti_hdmi_bind()
727 drm_connector_init(drm_dev, drm_connector, in sti_hdmi_bind()
Dsti_cursor.h10 struct drm_plane *sti_cursor_create(struct drm_device *drm_dev,
Dsti_gdp.h14 struct drm_plane *sti_gdp_create(struct drm_device *drm_dev,
Dsti_tvout.c117 struct drm_device *drm_dev; member
645 struct drm_device *drm_dev = data; in sti_tvout_bind() local
648 tvout->drm_dev = drm_dev; in sti_tvout_bind()
658 sti_tvout_create_encoders(drm_dev, tvout); in sti_tvout_bind()
Dsti_crtc.h14 int sti_crtc_init(struct drm_device *drm_dev, struct sti_mixer *mixer,
Dsti_drv.h26 struct drm_device *drm_dev; member
Dsti_hqvdp.c341 struct drm_device *drm_dev; member
961 static struct drm_plane *sti_hqvdp_create(struct drm_device *drm_dev, in sti_hqvdp_create() argument
972 res = drm_universal_plane_init(drm_dev, &hqvdp->plane.drm_plane, 1, in sti_hqvdp_create()
992 struct drm_device *drm_dev = data; in sti_hqvdp_bind() local
997 hqvdp->drm_dev = drm_dev; in sti_hqvdp_bind()
1000 plane = sti_hqvdp_create(drm_dev, hqvdp->dev, STI_HQVDP_0); in sti_hqvdp_bind()
Dsti_hdmi.h50 struct drm_device *drm_dev; member
Dsti_drv.c43 struct drm_device *drm = private->drm_dev; in sti_atomic_complete()
143 private->drm_dev = dev; in sti_load()
Dsti_cursor.c238 struct drm_plane *sti_cursor_create(struct drm_device *drm_dev, in sti_cursor_create() argument
270 res = drm_universal_plane_init(drm_dev, &cursor->plane.drm_plane, in sti_cursor_create()
Dsti_gdp.c604 struct drm_plane *sti_gdp_create(struct drm_device *drm_dev, in sti_gdp_create() argument
628 res = drm_universal_plane_init(drm_dev, &gdp->plane.drm_plane, in sti_gdp_create()
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_sysfs.c168 struct drm_device *drm_dev = dminor->dev; in i915_l3_read() local
169 struct drm_i915_private *dev_priv = drm_dev->dev_private; in i915_l3_read()
175 ret = l3_access_valid(drm_dev, offset); in i915_l3_read()
181 ret = i915_mutex_lock_interruptible(drm_dev); in i915_l3_read()
192 mutex_unlock(&drm_dev->struct_mutex); in i915_l3_read()
204 struct drm_device *drm_dev = dminor->dev; in i915_l3_write() local
205 struct drm_i915_private *dev_priv = drm_dev->dev_private; in i915_l3_write()
211 if (!HAS_HW_CONTEXTS(drm_dev)) in i915_l3_write()
214 ret = l3_access_valid(drm_dev, offset); in i915_l3_write()
218 ret = i915_mutex_lock_interruptible(drm_dev); in i915_l3_write()
[all …]
Di915_drv.c688 static int i915_drm_suspend_late(struct drm_device *drm_dev, bool hibernation) in i915_drm_suspend_late() argument
690 struct drm_i915_private *dev_priv = drm_dev->dev_private; in i915_drm_suspend_late()
701 pci_disable_device(drm_dev->pdev); in i915_drm_suspend_late()
715 pci_set_power_state(drm_dev->pdev, PCI_D3hot); in i915_drm_suspend_late()
995 struct drm_device *drm_dev = pci_get_drvdata(pdev); in i915_pm_suspend() local
997 if (!drm_dev || !drm_dev->dev_private) { in i915_pm_suspend()
1002 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_suspend()
1005 return i915_drm_suspend(drm_dev); in i915_pm_suspend()
1010 struct drm_device *drm_dev = dev_to_i915(dev)->dev; in i915_pm_suspend_late() local
1021 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_suspend_late()
[all …]
Dintel_audio.c635 struct drm_device *drm_dev = dev_priv->dev; in i915_audio_component_sync_audio_rate() local
653 for_each_intel_encoder(drm_dev, intel_encoder) { in i915_audio_component_sync_audio_rate()
/linux-4.4.14/drivers/gpu/drm/
Ddrm_sysfs.c47 struct drm_device *drm_dev = drm_minor->dev; in __drm_class_suspend() local
50 !drm_core_check_feature(drm_dev, DRIVER_MODESET) && in __drm_class_suspend()
51 drm_dev->driver->suspend) in __drm_class_suspend()
52 return drm_dev->driver->suspend(drm_dev, state); in __drm_class_suspend()
88 struct drm_device *drm_dev = drm_minor->dev; in drm_class_resume() local
91 !drm_core_check_feature(drm_dev, DRIVER_MODESET) && in drm_class_resume()
92 drm_dev->driver->resume) in drm_class_resume()
93 return drm_dev->driver->resume(drm_dev); in drm_class_resume()
/linux-4.4.14/drivers/gpu/drm/imx/
Dimx-drm-core.c558 struct drm_device *drm_dev = dev_get_drvdata(dev); in imx_drm_suspend() local
561 if (drm_dev == NULL) in imx_drm_suspend()
564 drm_kms_helper_poll_disable(drm_dev); in imx_drm_suspend()
571 struct drm_device *drm_dev = dev_get_drvdata(dev); in imx_drm_resume() local
573 if (drm_dev == NULL) in imx_drm_resume()
576 drm_helper_resume_force_mode(drm_dev); in imx_drm_resume()
577 drm_kms_helper_poll_enable(drm_dev); in imx_drm_resume()
/linux-4.4.14/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_dc.c781 struct drm_device *drm_dev = dev_get_drvdata(dev); in atmel_hlcdc_dc_drm_suspend() local
787 drm_modeset_lock_all(drm_dev); in atmel_hlcdc_dc_drm_suspend()
788 list_for_each_entry(crtc, &drm_dev->mode_config.crtc_list, head) in atmel_hlcdc_dc_drm_suspend()
790 drm_modeset_unlock_all(drm_dev); in atmel_hlcdc_dc_drm_suspend()
796 struct drm_device *drm_dev = dev_get_drvdata(dev); in atmel_hlcdc_dc_drm_resume() local
802 drm_modeset_lock_all(drm_dev); in atmel_hlcdc_dc_drm_resume()
803 list_for_each_entry(crtc, &drm_dev->mode_config.crtc_list, head) in atmel_hlcdc_dc_drm_resume()
805 drm_modeset_unlock_all(drm_dev); in atmel_hlcdc_dc_drm_resume()
/linux-4.4.14/drivers/gpu/drm/omapdrm/
Domap_drv.c903 struct drm_device *drm_dev = dev_get_drvdata(dev); in omap_drm_suspend() local
905 drm_kms_helper_poll_disable(drm_dev); in omap_drm_suspend()
912 struct drm_device *drm_dev = dev_get_drvdata(dev); in omap_drm_resume() local
914 drm_kms_helper_poll_enable(drm_dev); in omap_drm_resume()
Domap_gem.c950 struct drm_device *drm_dev = dev_get_drvdata(dev); in omap_gem_resume() local
951 struct omap_drm_private *priv = drm_dev->dev_private; in omap_gem_resume()