/linux-4.1.27/drivers/gpu/drm/exynos/ |
D | exynos_drm_iommu.h | 20 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
|
D | exynos_drm_iommu.c | 29 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()
|
D | exynos_drm_ipp.c | 253 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 …]
|
D | exynos_drm_ipp.h | 162 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
|
D | exynos_drm_vidi.c | 39 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 …]
|
D | exynos_drm_g2d.c | 260 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 …]
|
D | exynos_drm_fimd.c | 149 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 …]
|
D | exynos_drm_drv.h | 275 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,
|
D | exynos7_drm_decon.c | 47 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 …]
|
D | exynos_drm_dmabuf.h | 15 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,
|
D | exynos_drm_dmabuf.c | 184 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()
|
D | exynos_drm_crtc.h | 20 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,
|
D | exynos_drm_gem.c | 324 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()
|
D | exynos_mixer.c | 75 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 …]
|
D | exynos_drm_crtc.c | 240 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()
|
D | exynos_drm_drv.c | 326 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()
|
D | exynos_drm_gem.h | 173 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,
|
D | exynos_drm_vidi.h | 16 int vidi_connection_ioctl(struct drm_device *drm_dev, void *data,
|
D | exynos_drm_fb.c | 43 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()
|
D | exynos_dp_core.c | 890 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()
|
D | exynos_drm_core.c | 90 subdrv->drm_dev = dev; in exynos_drm_device_subdrv_probe()
|
D | exynos_hdmi.c | 186 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()
|
D | exynos_dp_core.h | 152 struct drm_device *drm_dev; member
|
D | exynos_drm_dsi.c | 1642 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/ |
D | rockchip_drm_drv.c | 43 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 …]
|
D | rockchip_drm_drv.h | 63 int rockchip_drm_dma_attach_device(struct drm_device *drm_dev, 65 void rockchip_drm_dma_detach_device(struct drm_device *drm_dev,
|
D | rockchip_drm_vop.c | 83 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/ |
D | radeon_drv.c | 422 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/ |
D | qxl_drv.c | 147 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/ |
D | cirrus_drv.c | 88 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/ |
D | bochs_drv.c | 105 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/ |
D | sti_drm_crtc.c | 215 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()
|
D | sti_compositor.c | 93 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()
|
D | sti_hda.c | 246 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()
|
D | sti_dvo.c | 83 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()
|
D | sti_hdmi.c | 148 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()
|
D | sti_tvout.c | 117 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()
|
D | sti_drm_drv.h | 26 struct drm_device *drm_dev; member
|
D | sti_drm_crtc.h | 14 int sti_drm_crtc_init(struct drm_device *drm_dev, struct sti_mixer *mixer,
|
D | sti_hdmi.h | 50 struct drm_device *drm_dev; member
|
D | sti_hqvdp.c | 340 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()
|
D | sti_drm_drv.c | 43 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/ |
D | intel_i2c.c | 36 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()
|
D | oaktrail_lvds_i2c.c | 144 chan->drm_dev = dev; in oaktrail_lvds_i2c_init()
|
D | psb_intel_drv.h | 113 struct drm_device *drm_dev; member
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
D | nouveau_drm.c | 655 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 …]
|
D | nouveau_platform.c | 221 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/ |
D | drm_sysfs.c | 45 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/ |
D | i915_sysfs.c | 198 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 …]
|
D | i915_drv.c | 635 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/ |
D | atmel_hlcdc_dc.c | 565 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/ |
D | imx-drm-core.c | 598 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/ |
D | omap_drv.c | 713 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()
|
D | omap_gem.c | 952 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()
|