| /Linux-v5.10/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 | 26 struct drm_device *drm_dev; member 73 struct drm_device *drm_dev) in rockchip_rgb_init() argument 88 rgb->drm_dev = drm_dev; in rockchip_rgb_init() 126 ret = drm_simple_encoder_init(drm_dev, encoder, DRM_MODE_ENCODER_NONE); in rockchip_rgb_init() 128 DRM_DEV_ERROR(drm_dev->dev, in rockchip_rgb_init() 146 DRM_DEV_ERROR(drm_dev->dev, in rockchip_rgb_init()
|
| D | analogix_dp-rockchip.c | 60 struct drm_device *drm_dev; member 301 struct drm_device *drm_dev = dp->drm_dev; in rockchip_dp_drm_create_encoder() local 305 encoder->possible_crtcs = drm_of_find_possible_crtcs(drm_dev, in rockchip_dp_drm_create_encoder() 309 ret = drm_simple_encoder_init(drm_dev, encoder, in rockchip_dp_drm_create_encoder() 325 struct drm_device *drm_dev = data; in rockchip_dp_bind() local 328 dp->drm_dev = drm_dev; in rockchip_dp_bind() 338 ret = analogix_dp_bind(dp->adp, drm_dev); in rockchip_dp_bind()
|
| D | rockchip_lvds.c | 63 struct drm_device *drm_dev; member 540 struct drm_device *drm_dev = data; in rockchip_lvds_bind() local 549 lvds->drm_dev = drm_dev; in rockchip_lvds_bind() 604 encoder->possible_crtcs = drm_of_find_possible_crtcs(drm_dev, in rockchip_lvds_bind() 607 ret = drm_simple_encoder_init(drm_dev, encoder, DRM_MODE_ENCODER_LVDS); in rockchip_lvds_bind() 609 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind() 619 ret = drm_connector_init(drm_dev, connector, in rockchip_lvds_bind() 623 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind() 633 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind() 640 DRM_DEV_ERROR(drm_dev->dev, in rockchip_lvds_bind()
|
| D | rockchip_rgb.h | 11 struct drm_device *drm_dev); 16 struct drm_device *drm_dev) in rockchip_rgb_init() argument
|
| /Linux-v5.10/drivers/gpu/drm/hisilicon/kirin/ |
| D | kirin_drm_drv.c | 225 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 …]
|
| /Linux-v5.10/drivers/gpu/drm/radeon/ |
| D | radeon_drv.c | 433 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 …]
|
| /Linux-v5.10/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_drv.c | 1249 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_suspend() local 1251 return amdgpu_device_suspend(drm_dev, true); in amdgpu_pmops_suspend() 1256 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_resume() local 1258 return amdgpu_device_resume(drm_dev, true); in amdgpu_pmops_resume() 1263 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_freeze() local 1264 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_pmops_freeze() 1268 r = amdgpu_device_suspend(drm_dev, true); in amdgpu_pmops_freeze() 1277 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_thaw() local 1279 return amdgpu_device_resume(drm_dev, true); in amdgpu_pmops_thaw() 1284 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_poweroff() local [all …]
|
| /Linux-v5.10/drivers/gpu/drm/qxl/ |
| D | qxl_drv.c | 204 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 …]
|
| /Linux-v5.10/drivers/gpu/drm/nouveau/ |
| 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_drm.c | 722 struct drm_device *drm_dev; in nouveau_drm_probe() local 753 drm_dev = drm_dev_alloc(&driver_pci, &pdev->dev); in nouveau_drm_probe() 754 if (IS_ERR(drm_dev)) { in nouveau_drm_probe() 755 ret = PTR_ERR(drm_dev); in nouveau_drm_probe() 763 drm_dev->pdev = pdev; in nouveau_drm_probe() 764 pci_set_drvdata(pdev, drm_dev); in nouveau_drm_probe() 766 ret = nouveau_drm_device_init(drm_dev); in nouveau_drm_probe() 770 ret = drm_dev_register(drm_dev, pent->driver_data); in nouveau_drm_probe() 778 nouveau_drm_device_fini(drm_dev); in nouveau_drm_probe() 782 drm_dev_put(drm_dev); in nouveau_drm_probe() [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.10/drivers/gpu/drm/exynos/ |
| D | exynos_drm_vidi.c | 38 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 …]
|
| 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 | 241 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 …]
|
| D | exynos_drm_dma.c | 43 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()
|
| D | exynos_dp.c | 39 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()
|
| D | exynos_drm_rotator.c | 58 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()
|
| /Linux-v5.10/drivers/gpu/drm/sti/ |
| D | sti_compositor.c | 64 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()
|
| D | sti_drv.c | 38 struct drm_device *drm_dev = data; in sti_drm_fps_get() local 43 list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { in sti_drm_fps_get() 55 struct drm_device *drm_dev = data; in sti_drm_fps_set() local 59 list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { in sti_drm_fps_set() 162 private->drm_dev = ddev; in sti_init()
|
| 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() 303 struct drm_device *drm_dev = crtc->dev; in sti_crtc_disable_vblank() local 305 struct sti_private *priv = drm_dev->dev_private; in sti_crtc_disable_vblank() 350 int sti_crtc_init(struct drm_device *drm_dev, struct sti_mixer *mixer, in sti_crtc_init() argument 356 res = drm_crtc_init_with_planes(drm_dev, crtc, primary, cursor, in sti_crtc_init()
|
| /Linux-v5.10/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.10/drivers/gpu/drm/xen/ |
| D | xen_drm_front.c | 517 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 …]
|
| /Linux-v5.10/drivers/gpu/drm/bochs/ |
| D | bochs_drv.c | 78 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()
|
| /Linux-v5.10/drivers/gpu/drm/mediatek/ |
| D | mtk_disp_color.c | 75 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()
|