Home
last modified time | relevance | path

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

12345

/OK3568_Linux_fs/buildroot/package/lvgl/lv_drivers/
H A D0006-drm-Reconstructs-the-drm-display-driver.patch71 -struct drm_dev {
93 -} drm_dev;
108 - for (i = 0; i < drm_dev.count_plane_props; ++i)
109 - if (!strcmp(drm_dev.plane_props[i]->name, name))
110 - return drm_dev.plane_props[i]->prop_id;
142 - for (i = 0; i < drm_dev.count_crtc_props; ++i)
143 - if (!strcmp(drm_dev.crtc_props[i]->name, name))
144 - return drm_dev.crtc_props[i]->prop_id;
211 - for (i = 0; i < drm_dev.count_conn_props; ++i)
212 - if (!strcmp(drm_dev.conn_props[i]->name, name))
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/
H A Drockchip_drm_logo.c40 find_crtc_by_node(struct drm_device *drm_dev, struct device_node *node) in find_crtc_by_node() argument
49 drm_for_each_crtc(crtc, drm_dev) { in find_crtc_by_node()
58 find_sub_dev_by_node(struct drm_device *drm_dev, struct device_node *node) in find_sub_dev_by_node() argument
75 find_sub_dev_by_bridge(struct drm_device *drm_dev, struct device_node *node) in find_sub_dev_by_bridge() argument
87 dev_err(drm_dev->dev, "can't found port point!\n"); in find_sub_dev_by_bridge()
94 dev_err(drm_dev->dev, in find_sub_dev_by_bridge()
107 dev_err(drm_dev->dev, "can't found available connector node!\n"); in find_sub_dev_by_bridge()
215 static int init_loader_memory(struct drm_device *drm_dev) in init_loader_memory() argument
217 struct rockchip_drm_private *private = drm_dev->dev_private; in init_loader_memory()
219 struct device_node *np = drm_dev->dev->of_node; in init_loader_memory()
[all …]
H A Drockchip_drm_drv.c1042 int rockchip_drm_dma_attach_device(struct drm_device *drm_dev, in rockchip_drm_dma_attach_device() argument
1045 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_attach_device()
1060 void rockchip_drm_dma_detach_device(struct drm_device *drm_dev, in rockchip_drm_dma_detach_device() argument
1063 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_detach_device()
1112 struct drm_device *drm_dev = arg; in rockchip_drm_fault_handler() local
1113 struct rockchip_drm_private *priv = drm_dev->dev_private; in rockchip_drm_fault_handler()
1117 drm_for_each_crtc(crtc, drm_dev) { in rockchip_drm_fault_handler()
1132 static int rockchip_drm_init_iommu(struct drm_device *drm_dev) in rockchip_drm_init_iommu() argument
1134 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_init_iommu()
1156 drm_dev); in rockchip_drm_init_iommu()
[all …]
H A Drockchip_drm_vvop.c32 struct drm_device *drm_dev; member
72 struct drm_device *dev = vvop->drm_dev; in vvop_plane_init()
246 struct drm_device *drm_dev = data; in vvop_bind() local
259 vvop->drm_dev = drm_dev; in vvop_bind()
271 ret = vvop_crtc_init(drm_dev, crtc, primary, NULL); in vvop_bind()
275 ret = drm_connector_init(drm_dev, connector, &vvop_connector_funcs, in vvop_bind()
290 ret = drm_encoder_init(drm_dev, encoder, &vvop_encoder_funcs, in vvop_bind()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/radeon/
H A Dradeon_drv.c433 struct drm_device *drm_dev = dev_get_drvdata(dev); in radeon_pmops_suspend() local
434 return radeon_suspend_kms(drm_dev, true, true, false); in radeon_pmops_suspend()
439 struct drm_device *drm_dev = dev_get_drvdata(dev); in radeon_pmops_resume() local
442 if (radeon_is_px(drm_dev)) { in radeon_pmops_resume()
448 return radeon_resume_kms(drm_dev, true, true); in radeon_pmops_resume()
453 struct drm_device *drm_dev = dev_get_drvdata(dev); in radeon_pmops_freeze() local
454 return radeon_suspend_kms(drm_dev, false, true, true); in radeon_pmops_freeze()
459 struct drm_device *drm_dev = dev_get_drvdata(dev); in radeon_pmops_thaw() local
460 return radeon_resume_kms(drm_dev, false, true); in radeon_pmops_thaw()
466 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_runtime_suspend() local
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/hisilicon/kirin/
H A Dkirin_drm_drv.c225 struct drm_device *drm_dev; in kirin_drm_bind() local
232 drm_dev = drm_dev_alloc(driver_data->driver, dev); in kirin_drm_bind()
233 if (IS_ERR(drm_dev)) in kirin_drm_bind()
234 return PTR_ERR(drm_dev); in kirin_drm_bind()
235 dev_set_drvdata(dev, drm_dev); in kirin_drm_bind()
238 ret = kirin_drm_kms_init(drm_dev, driver_data); in kirin_drm_bind()
242 ret = drm_dev_register(drm_dev, 0); in kirin_drm_bind()
246 drm_fbdev_generic_setup(drm_dev, 32); in kirin_drm_bind()
251 kirin_drm_kms_cleanup(drm_dev); in kirin_drm_bind()
253 drm_dev_put(drm_dev); in kirin_drm_bind()
[all …]
H A Dkirin_drm_dsi.c278 static int dw_drm_encoder_init(struct device *dev, struct drm_device *drm_dev, in dw_drm_encoder_init() argument
282 u32 crtc_mask = drm_of_find_possible_crtcs(drm_dev, dev->of_node); in dw_drm_encoder_init()
290 ret = drm_encoder_init(drm_dev, encoder, &dw_encoder_funcs, in dw_drm_encoder_init()
306 struct drm_device *drm_dev = data; in dsi_bind() local
310 ret = dw_drm_encoder_init(dev, drm_dev, &dsi->encoder); in dsi_bind()
315 ret = dsi_bridge_init(drm_dev, dsi); in dsi_bind()
322 ret = dsi_connector_init(drm_dev, dsi); in dsi_bind()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_drv.c1256 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_suspend() local
1258 return amdgpu_device_suspend(drm_dev, true); in amdgpu_pmops_suspend()
1263 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_resume() local
1265 return amdgpu_device_resume(drm_dev, true); in amdgpu_pmops_resume()
1270 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_freeze() local
1271 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_pmops_freeze()
1275 r = amdgpu_device_suspend(drm_dev, true); in amdgpu_pmops_freeze()
1284 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_thaw() local
1286 return amdgpu_device_resume(drm_dev, true); in amdgpu_pmops_thaw()
1291 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_poweroff() local
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/qxl/
H A Dqxl_drv.c204 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_suspend() local
207 error = qxl_drm_freeze(drm_dev); in qxl_pm_suspend()
219 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_resume() local
227 return qxl_drm_resume(drm_dev, false); in qxl_pm_resume()
232 struct drm_device *drm_dev = dev_get_drvdata(dev); in qxl_pm_thaw() local
234 return qxl_drm_resume(drm_dev, true); in qxl_pm_thaw()
239 struct drm_device *drm_dev = dev_get_drvdata(dev); in qxl_pm_freeze() local
241 return qxl_drm_freeze(drm_dev); in qxl_pm_freeze()
247 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_restore() local
248 struct qxl_device *qdev = to_qxl(drm_dev); in qxl_pm_restore()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/
H A Dnouveau_drm.c743 struct drm_device *drm_dev; in nouveau_drm_probe() local
774 drm_dev = drm_dev_alloc(&driver_pci, &pdev->dev); in nouveau_drm_probe()
775 if (IS_ERR(drm_dev)) { in nouveau_drm_probe()
776 ret = PTR_ERR(drm_dev); in nouveau_drm_probe()
784 drm_dev->pdev = pdev; in nouveau_drm_probe()
785 pci_set_drvdata(pdev, drm_dev); in nouveau_drm_probe()
787 ret = nouveau_drm_device_init(drm_dev); in nouveau_drm_probe()
791 ret = drm_dev_register(drm_dev, pent->driver_data); in nouveau_drm_probe()
799 nouveau_drm_device_fini(drm_dev); in nouveau_drm_probe()
803 drm_dev_put(drm_dev); in nouveau_drm_probe()
[all …]
H A Dnouveau_hwmon.c419 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_temp_read() local
420 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_temp_read()
429 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) 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()
477 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_fan_read()
491 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_in_read() local
492 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_in_read()
501 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_in_read()
522 struct drm_device *drm_dev = dev_get_drvdata(dev); in nouveau_pwm_read() local
[all …]
H A Dnouveau_led.c39 struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev; in nouveau_led_get_brightness() local
40 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_led_get_brightness()
56 struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev; in nouveau_led_set_brightness() local
57 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_led_set_brightness()
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkisp_demo/demo/
H A Drkdrm_display.h81 struct drm_dev { struct
95 int drmInit(struct drm_dev *dev); argument
96 int drmDeinit(struct drm_dev *dev);
98 int y_off, struct drm_dev *dev, int plane_type);
99 int drmSetDpmsMode(uint32_t dpms_mode, struct drm_dev *dev);
/OK3568_Linux_fs/kernel/drivers/gpu/drm/exynos/
H A Dexynos_drm_vidi.c38 struct drm_device *drm_dev; member
209 drm_helper_hpd_irq_event(ctx->drm_dev); in vidi_store_connection()
223 int vidi_connection_ioctl(struct drm_device *drm_dev, void *data, in vidi_connection_ioctl() argument
226 struct vidi_context *ctx = dev_get_drvdata(drm_dev->dev); in vidi_connection_ioctl()
275 drm_helper_hpd_irq_event(ctx->drm_dev); in vidi_connection_ioctl()
345 ret = drm_connector_init(ctx->drm_dev, connector, in vidi_create_connector()
382 struct drm_device *drm_dev = data; in vidi_bind() local
389 ctx->drm_dev = drm_dev; in vidi_bind()
398 ret = exynos_plane_init(drm_dev, &ctx->planes[i], i, in vidi_bind()
405 ctx->crtc = exynos_drm_crtc_create(drm_dev, &exynos_plane->base, in vidi_bind()
[all …]
H A Dexynos_drm_g2d.h15 extern int g2d_open(struct drm_device *drm_dev, struct drm_file *file);
16 extern void g2d_close(struct drm_device *drm_dev, struct drm_file *file);
37 int g2d_open(struct drm_device *drm_dev, struct drm_file *file) in g2d_open() argument
42 void g2d_close(struct drm_device *drm_dev, struct drm_file *file) in g2d_close() argument
H A 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_sgtable(to_dma_dev(g2d->drm_dev), g2d_userptr->sgt, in g2d_userptr_put_dma_addr()
514 ret = dma_map_sgtable(to_dma_dev(g2d->drm_dev), sgt, in g2d_userptr_get_dma_addr()
688 struct drm_device *drm_dev, in g2d_map_cmdlist_gem() argument
911 struct drm_device *drm_dev = g2d->drm_dev; in g2d_finish_event() local
927 drm_send_event(drm_dev, &e->base); in g2d_finish_event()
1125 int exynos_g2d_get_ver_ioctl(struct drm_device *drm_dev, void *data, in exynos_g2d_get_ver_ioctl() argument
[all …]
H A Dexynos_drm_dma.c43 static int drm_iommu_attach_device(struct drm_device *drm_dev, in drm_iommu_attach_device() argument
46 struct exynos_drm_private *priv = drm_dev->dev_private; in drm_iommu_attach_device()
84 static void drm_iommu_detach_device(struct drm_device *drm_dev, in drm_iommu_detach_device() argument
87 struct exynos_drm_private *priv = drm_dev->dev_private; in drm_iommu_detach_device()
H A Dexynos_dp.c39 struct drm_device *drm_dev; member
156 struct drm_device *drm_dev = data; in exynos_dp_bind() local
159 dp->drm_dev = drm_dev; in exynos_dp_bind()
167 drm_simple_encoder_init(drm_dev, encoder, DRM_MODE_ENCODER_TMDS); in exynos_dp_bind()
177 ret = analogix_dp_bind(dp->adp, dp->drm_dev); in exynos_dp_bind()
H A Dexynos_drm_rotator.c58 struct drm_device *drm_dev; member
242 struct drm_device *drm_dev = data; in rotator_bind() local
245 rot->drm_dev = drm_dev; in rotator_bind()
246 ipp->drm_dev = drm_dev; in rotator_bind()
247 exynos_drm_register_dma(drm_dev, dev, &rot->dma_priv); in rotator_bind()
265 exynos_drm_unregister_dma(rot->drm_dev, rot->dev, &rot->dma_priv); in rotator_unbind()
H A Dexynos7_drm_decon.c42 struct drm_device *drm_dev; member
125 struct drm_device *drm_dev) in decon_ctx_initialize() argument
127 ctx->drm_dev = drm_dev; in decon_ctx_initialize()
131 return exynos_drm_register_dma(drm_dev, ctx->dev, &ctx->dma_priv); in decon_ctx_initialize()
137 exynos_drm_unregister_dma(ctx->drm_dev, ctx->dev, &ctx->dma_priv); in decon_ctx_remove()
595 if (!ctx->drm_dev) in decon_irq_handler()
614 struct drm_device *drm_dev = data; in decon_bind() local
619 ret = decon_ctx_initialize(ctx, drm_dev); in decon_bind()
631 ret = exynos_plane_init(drm_dev, &ctx->planes[i], i, in decon_bind()
638 ctx->crtc = exynos_drm_crtc_create(drm_dev, &exynos_plane->base, in decon_bind()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/sti/
H A Dsti_compositor.c64 struct drm_device *drm_dev = data; in sti_compositor_bind() local
66 struct sti_private *dev_priv = drm_dev->dev_private; in sti_compositor_bind()
79 sti_vid_create(compo->dev, drm_dev, desc[i].id, in sti_compositor_bind()
85 sti_mixer_create(compo->dev, drm_dev, desc[i].id, in sti_compositor_bind()
112 cursor = sti_cursor_create(drm_dev, compo->dev, in sti_compositor_bind()
122 primary = sti_gdp_create(drm_dev, compo->dev, in sti_compositor_bind()
139 sti_crtc_init(drm_dev, compo->mixer[crtc_id], in sti_compositor_bind()
147 drm_vblank_init(drm_dev, crtc_id); in sti_compositor_bind()
149 drm_dev->irq_enabled = 1; in sti_compositor_bind()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/gma500/
H A Dintel_i2c.c26 struct drm_device *dev = chan->drm_dev; in get_clock()
36 struct drm_device *dev = chan->drm_dev; in get_data()
46 struct drm_device *dev = chan->drm_dev; in set_clock()
66 struct drm_device *dev = chan->drm_dev; in set_data()
115 chan->drm_dev = dev; in psb_intel_i2c_create()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/xen/
H A Dxen_drm_front.c517 struct drm_device *drm_dev; in xen_drm_drv_init() local
531 drm_dev = drm_dev_alloc(&xen_drm_driver, dev); in xen_drm_drv_init()
532 if (IS_ERR(drm_dev)) { in xen_drm_drv_init()
533 ret = PTR_ERR(drm_dev); in xen_drm_drv_init()
537 drm_info->drm_dev = drm_dev; in xen_drm_drv_init()
539 drm_dev->dev_private = drm_info; in xen_drm_drv_init()
547 ret = drm_dev_register(drm_dev, 0); in xen_drm_drv_init()
554 xen_drm_driver.date, drm_dev->primary->index); in xen_drm_drv_init()
559 drm_dev_unregister(drm_dev); in xen_drm_drv_init()
561 drm_kms_helper_poll_fini(drm_dev); in xen_drm_drv_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/bochs/
H A Dbochs_drv.c78 struct drm_device *drm_dev = dev_get_drvdata(dev); in bochs_pm_suspend() local
80 return drm_mode_config_helper_suspend(drm_dev); in bochs_pm_suspend()
85 struct drm_device *drm_dev = dev_get_drvdata(dev); in bochs_pm_resume() local
87 return drm_mode_config_helper_resume(drm_dev); in bochs_pm_resume()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/mediatek/
H A Dmtk_disp_color.c75 struct drm_device *drm_dev = data; in mtk_disp_color_bind() local
78 ret = mtk_ddp_comp_register(drm_dev, &priv->ddp_comp); in mtk_disp_color_bind()
92 struct drm_device *drm_dev = data; in mtk_disp_color_unbind() local
94 mtk_ddp_comp_unregister(drm_dev, &priv->ddp_comp); in mtk_disp_color_unbind()

12345