/Linux-v5.4/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_drv.c | 45 int rockchip_drm_dma_attach_device(struct drm_device *drm_dev, in rockchip_drm_dma_attach_device() argument 48 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_attach_device() 63 void rockchip_drm_dma_detach_device(struct drm_device *drm_dev, in rockchip_drm_dma_detach_device() argument 66 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_detach_device() 75 static int rockchip_drm_init_iommu(struct drm_device *drm_dev) in rockchip_drm_init_iommu() argument 77 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_init_iommu() 100 static void rockchip_iommu_cleanup(struct drm_device *drm_dev) in rockchip_iommu_cleanup() argument 102 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_iommu_cleanup() 113 struct drm_device *drm_dev; in rockchip_drm_bind() local 117 drm_dev = drm_dev_alloc(&rockchip_drm_driver, dev); in rockchip_drm_bind() [all …]
|
D | rockchip_rgb.c | 24 struct drm_device *drm_dev; member 75 struct drm_device *drm_dev) in rockchip_rgb_init() argument 90 rgb->drm_dev = drm_dev; in rockchip_rgb_init() 127 ret = drm_encoder_init(drm_dev, encoder, &rockchip_rgb_encoder_funcs, in rockchip_rgb_init() 130 DRM_DEV_ERROR(drm_dev->dev, in rockchip_rgb_init() 147 DRM_DEV_ERROR(drm_dev->dev, in rockchip_rgb_init()
|
D | rockchip_lvds.c | 61 struct drm_device *drm_dev; member 337 struct drm_device *drm_dev = data; in rockchip_lvds_bind() local 346 lvds->drm_dev = drm_dev; in rockchip_lvds_bind() 401 encoder->possible_crtcs = drm_of_find_possible_crtcs(drm_dev, in rockchip_lvds_bind() 404 ret = drm_encoder_init(drm_dev, encoder, &rockchip_lvds_encoder_funcs, in rockchip_lvds_bind() 407 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind() 417 ret = drm_connector_init(drm_dev, connector, in rockchip_lvds_bind() 421 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind() 431 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind() 438 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind() [all …]
|
D | analogix_dp-rockchip.c | 59 struct drm_device *drm_dev; member 304 struct drm_device *drm_dev = dp->drm_dev; in rockchip_dp_drm_create_encoder() local 308 encoder->possible_crtcs = drm_of_find_possible_crtcs(drm_dev, in rockchip_dp_drm_create_encoder() 312 ret = drm_encoder_init(drm_dev, encoder, &rockchip_dp_encoder_funcs, in rockchip_dp_drm_create_encoder() 329 struct drm_device *drm_dev = data; in rockchip_dp_bind() local 337 dp->drm_dev = drm_dev; in rockchip_dp_bind() 352 dp->adp = analogix_dp_bind(dev, dp->drm_dev, &dp->plat_data); in rockchip_dp_bind()
|
D | rockchip_rgb.h | 11 struct drm_device *drm_dev); 16 struct drm_device *drm_dev) in rockchip_rgb_init() argument
|
/Linux-v5.4/drivers/gpu/drm/radeon/ |
D | radeon_drv.c | 405 struct drm_device *drm_dev = dev_get_drvdata(dev); in radeon_pmops_suspend() local 406 return radeon_suspend_kms(drm_dev, true, true, false); in radeon_pmops_suspend() 411 struct drm_device *drm_dev = dev_get_drvdata(dev); in radeon_pmops_resume() local 414 if (radeon_is_px(drm_dev)) { in radeon_pmops_resume() 420 return radeon_resume_kms(drm_dev, true, true); in radeon_pmops_resume() 425 struct drm_device *drm_dev = dev_get_drvdata(dev); in radeon_pmops_freeze() local 426 return radeon_suspend_kms(drm_dev, false, true, true); in radeon_pmops_freeze() 431 struct drm_device *drm_dev = dev_get_drvdata(dev); in radeon_pmops_thaw() local 432 return radeon_resume_kms(drm_dev, false, true); in radeon_pmops_thaw() 438 struct drm_device *drm_dev = pci_get_drvdata(pdev); in radeon_pmops_runtime_suspend() local [all …]
|
/Linux-v5.4/drivers/gpu/drm/hisilicon/kirin/ |
D | kirin_drm_drv.c | 259 struct drm_device *drm_dev; in kirin_drm_bind() local 266 drm_dev = drm_dev_alloc(driver_data->driver, dev); in kirin_drm_bind() 267 if (IS_ERR(drm_dev)) in kirin_drm_bind() 268 return PTR_ERR(drm_dev); in kirin_drm_bind() 269 dev_set_drvdata(dev, drm_dev); in kirin_drm_bind() 272 ret = kirin_drm_kms_init(drm_dev, driver_data); in kirin_drm_bind() 276 ret = drm_dev_register(drm_dev, 0); in kirin_drm_bind() 280 drm_fbdev_generic_setup(drm_dev, 32); in kirin_drm_bind() 284 ret = kirin_drm_connectors_register(drm_dev); in kirin_drm_bind() 292 drm_dev_unregister(drm_dev); in kirin_drm_bind() [all …]
|
/Linux-v5.4/drivers/gpu/drm/qxl/ |
D | qxl_drv.c | 203 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_suspend() local 206 error = qxl_drm_freeze(drm_dev); in qxl_pm_suspend() 218 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_resume() local 226 return qxl_drm_resume(drm_dev, false); in qxl_pm_resume() 231 struct drm_device *drm_dev = dev_get_drvdata(dev); in qxl_pm_thaw() local 233 return qxl_drm_resume(drm_dev, true); in qxl_pm_thaw() 238 struct drm_device *drm_dev = dev_get_drvdata(dev); in qxl_pm_freeze() local 240 return qxl_drm_freeze(drm_dev); in qxl_pm_freeze() 246 struct drm_device *drm_dev = pci_get_drvdata(pdev); in qxl_pm_restore() local 247 struct qxl_device *qdev = drm_dev->dev_private; in qxl_pm_restore() [all …]
|
/Linux-v5.4/drivers/gpu/drm/nouveau/ |
D | nouveau_drm.c | 625 struct drm_device *drm_dev; in nouveau_drm_probe() local 681 drm_dev = drm_dev_alloc(&driver_pci, &pdev->dev); in nouveau_drm_probe() 682 if (IS_ERR(drm_dev)) { in nouveau_drm_probe() 683 ret = PTR_ERR(drm_dev); in nouveau_drm_probe() 691 drm_dev->pdev = pdev; in nouveau_drm_probe() 692 pci_set_drvdata(pdev, drm_dev); in nouveau_drm_probe() 694 ret = nouveau_drm_device_init(drm_dev); in nouveau_drm_probe() 698 ret = drm_dev_register(drm_dev, pent->driver_data); in nouveau_drm_probe() 705 nouveau_drm_device_fini(drm_dev); in nouveau_drm_probe() 709 drm_dev_put(drm_dev); in nouveau_drm_probe() [all …]
|
D | nouveau_hwmon.c | 419 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 …]
|
D | nouveau_led.c | 39 struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev; in nouveau_led_get_brightness() local 40 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_led_get_brightness() 56 struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev; in nouveau_led_set_brightness() local 57 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_led_set_brightness()
|
/Linux-v5.4/drivers/gpu/drm/exynos/ |
D | exynos_drm_vidi.c | 37 struct drm_device *drm_dev; member 208 drm_helper_hpd_irq_event(ctx->drm_dev); in vidi_store_connection() 216 int vidi_connection_ioctl(struct drm_device *drm_dev, void *data, in vidi_connection_ioctl() argument 219 struct vidi_context *ctx = dev_get_drvdata(drm_dev->dev); in vidi_connection_ioctl() 268 drm_helper_hpd_irq_event(ctx->drm_dev); in vidi_connection_ioctl() 338 ret = drm_connector_init(ctx->drm_dev, connector, in vidi_create_connector() 379 struct drm_device *drm_dev = data; in vidi_bind() local 386 ctx->drm_dev = drm_dev; in vidi_bind() 395 ret = exynos_plane_init(drm_dev, &ctx->planes[i], i, in vidi_bind() 402 ctx->crtc = exynos_drm_crtc_create(drm_dev, &exynos_plane->base, in vidi_bind() [all …]
|
D | exynos_drm_g2d.h | 15 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
|
D | exynos_drm_g2d.c | 240 struct drm_device *drm_dev; member 277 g2d->cmdlist_pool_virt = dma_alloc_attrs(to_dma_dev(g2d->drm_dev), in g2d_init_cmdlist() 310 dma_free_attrs(to_dma_dev(g2d->drm_dev), G2D_CMDLIST_POOL_SIZE, in g2d_init_cmdlist() 321 dma_free_attrs(to_dma_dev(g2d->drm_dev), in g2d_fini_cmdlist() 397 dma_unmap_sg(to_dma_dev(g2d->drm_dev), g2d_userptr->sgt->sgl, in g2d_userptr_put_dma_addr() 513 if (!dma_map_sg(to_dma_dev(g2d->drm_dev), sgt->sgl, sgt->nents, in g2d_userptr_get_dma_addr() 687 struct drm_device *drm_dev, in g2d_map_cmdlist_gem() argument 910 struct drm_device *drm_dev = g2d->drm_dev; in g2d_finish_event() local 926 drm_send_event(drm_dev, &e->base); in g2d_finish_event() 1124 int exynos_g2d_get_ver_ioctl(struct drm_device *drm_dev, void *data, in exynos_g2d_get_ver_ioctl() argument [all …]
|
D | exynos_drm_dma.c | 60 static int drm_iommu_attach_device(struct drm_device *drm_dev, in drm_iommu_attach_device() argument 63 struct exynos_drm_private *priv = drm_dev->dev_private; in drm_iommu_attach_device() 100 static void drm_iommu_detach_device(struct drm_device *drm_dev, in drm_iommu_detach_device() argument 103 struct exynos_drm_private *priv = drm_dev->dev_private; in drm_iommu_detach_device()
|
D | exynos_dp.c | 37 struct drm_device *drm_dev; member 158 struct drm_device *drm_dev = data; in exynos_dp_bind() local 162 dp->drm_dev = drm_dev; in exynos_dp_bind() 176 drm_encoder_init(drm_dev, encoder, &exynos_dp_encoder_funcs, in exynos_dp_bind() 187 dp->adp = analogix_dp_bind(dev, dp->drm_dev, &dp->plat_data); in exynos_dp_bind()
|
D | exynos_drm_rotator.c | 58 struct drm_device *drm_dev; member 241 struct drm_device *drm_dev = data; in rotator_bind() local 244 rot->drm_dev = drm_dev; in rotator_bind() 245 ipp->drm_dev = drm_dev; in rotator_bind() 246 exynos_drm_register_dma(drm_dev, dev); in rotator_bind() 264 exynos_drm_unregister_dma(rot->drm_dev, rot->dev); in rotator_unbind()
|
/Linux-v5.4/drivers/gpu/drm/sti/ |
D | sti_compositor.c | 66 struct drm_device *drm_dev = data; in sti_compositor_bind() local 68 struct sti_private *dev_priv = drm_dev->dev_private; in sti_compositor_bind() 81 sti_vid_create(compo->dev, drm_dev, desc[i].id, in sti_compositor_bind() 87 sti_mixer_create(compo->dev, drm_dev, desc[i].id, in sti_compositor_bind() 114 cursor = sti_cursor_create(drm_dev, compo->dev, in sti_compositor_bind() 124 primary = sti_gdp_create(drm_dev, compo->dev, in sti_compositor_bind() 141 sti_crtc_init(drm_dev, compo->mixer[crtc_id], in sti_compositor_bind() 149 drm_vblank_init(drm_dev, crtc_id); in sti_compositor_bind() 151 drm_dev->irq_enabled = 1; in sti_compositor_bind()
|
D | sti_crtc.c | 138 struct drm_device *drm_dev = crtc->dev; in sti_crtc_atomic_flush() local 148 list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { in sti_crtc_atomic_flush() 300 void sti_crtc_disable_vblank(struct drm_device *drm_dev, unsigned int pipe) in sti_crtc_disable_vblank() argument 302 struct sti_private *priv = drm_dev->dev_private; in sti_crtc_disable_vblank() 345 int sti_crtc_init(struct drm_device *drm_dev, struct sti_mixer *mixer, in sti_crtc_init() argument 351 res = drm_crtc_init_with_planes(drm_dev, crtc, primary, cursor, in sti_crtc_init()
|
D | sti_drv.c | 39 struct drm_device *drm_dev = data; in sti_drm_fps_get() local 44 list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { in sti_drm_fps_get() 56 struct drm_device *drm_dev = data; in sti_drm_fps_set() local 60 list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { in sti_drm_fps_set() 184 private->drm_dev = ddev; in sti_init()
|
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_drv.c | 1156 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_suspend() local 1158 return amdgpu_device_suspend(drm_dev, true, true); in amdgpu_pmops_suspend() 1163 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_resume() local 1166 if (amdgpu_device_is_px(drm_dev)) { in amdgpu_pmops_resume() 1172 return amdgpu_device_resume(drm_dev, true, true); in amdgpu_pmops_resume() 1177 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_freeze() local 1179 return amdgpu_device_suspend(drm_dev, false, true); in amdgpu_pmops_freeze() 1184 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_thaw() local 1186 return amdgpu_device_resume(drm_dev, false, true); in amdgpu_pmops_thaw() 1191 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_poweroff() local [all …]
|
/Linux-v5.4/drivers/gpu/drm/gma500/ |
D | intel_i2c.c | 26 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()
|
/Linux-v5.4/drivers/gpu/drm/xen/ |
D | xen_drm_front.c | 518 struct drm_device *drm_dev; in xen_drm_drv_init() local 532 drm_dev = drm_dev_alloc(&xen_drm_driver, dev); in xen_drm_drv_init() 533 if (IS_ERR(drm_dev)) { in xen_drm_drv_init() 534 ret = PTR_ERR(drm_dev); in xen_drm_drv_init() 538 drm_info->drm_dev = drm_dev; in xen_drm_drv_init() 540 drm_dev->dev_private = drm_info; in xen_drm_drv_init() 548 ret = drm_dev_register(drm_dev, 0); in xen_drm_drv_init() 555 xen_drm_driver.date, drm_dev->primary->index); in xen_drm_drv_init() 560 drm_dev_unregister(drm_dev); in xen_drm_drv_init() 562 drm_kms_helper_poll_fini(drm_dev); in xen_drm_drv_init() [all …]
|
/Linux-v5.4/drivers/gpu/drm/mediatek/ |
D | mtk_disp_color.c | 74 struct drm_device *drm_dev = data; in mtk_disp_color_bind() local 77 ret = mtk_ddp_comp_register(drm_dev, &priv->ddp_comp); in mtk_disp_color_bind() 91 struct drm_device *drm_dev = data; in mtk_disp_color_unbind() local 93 mtk_ddp_comp_unregister(drm_dev, &priv->ddp_comp); in mtk_disp_color_unbind()
|
/Linux-v5.4/drivers/gpu/drm/bochs/ |
D | bochs_drv.c | 83 struct drm_device *drm_dev = dev_get_drvdata(dev); in bochs_pm_suspend() local 85 return drm_mode_config_helper_suspend(drm_dev); in bochs_pm_suspend() 90 struct drm_device *drm_dev = dev_get_drvdata(dev); in bochs_pm_resume() local 92 return drm_mode_config_helper_resume(drm_dev); in bochs_pm_resume()
|