• Home
  • Raw
  • Download

Lines Matching refs:ddev

26 static void drv_output_poll_changed(struct drm_device *ddev)  in drv_output_poll_changed()  argument
28 struct ltdc_device *ldev = ddev->dev_private; in drv_output_poll_changed()
40 static void drv_lastclose(struct drm_device *ddev) in drv_lastclose() argument
42 struct ltdc_device *ldev = ddev->dev_private; in drv_lastclose()
78 static int drv_load(struct drm_device *ddev) in drv_load() argument
80 struct platform_device *pdev = to_platform_device(ddev->dev); in drv_load()
87 ldev = devm_kzalloc(ddev->dev, sizeof(*ldev), GFP_KERNEL); in drv_load()
91 ddev->dev_private = (void *)ldev; in drv_load()
93 drm_mode_config_init(ddev); in drv_load()
100 ddev->mode_config.min_width = 0; in drv_load()
101 ddev->mode_config.min_height = 0; in drv_load()
102 ddev->mode_config.max_width = STM_MAX_FB_WIDTH; in drv_load()
103 ddev->mode_config.max_height = STM_MAX_FB_HEIGHT; in drv_load()
104 ddev->mode_config.funcs = &drv_mode_config_funcs; in drv_load()
106 ret = ltdc_load(ddev); in drv_load()
110 drm_mode_config_reset(ddev); in drv_load()
111 drm_kms_helper_poll_init(ddev); in drv_load()
113 if (ddev->mode_config.num_connector) { in drv_load()
114 ldev = ddev->dev_private; in drv_load()
115 fbdev = drm_fbdev_cma_init(ddev, 16, in drv_load()
116 ddev->mode_config.num_connector); in drv_load()
124 platform_set_drvdata(pdev, ddev); in drv_load()
128 drm_mode_config_cleanup(ddev); in drv_load()
132 static void drv_unload(struct drm_device *ddev) in drv_unload() argument
134 struct ltdc_device *ldev = ddev->dev_private; in drv_unload()
142 drm_kms_helper_poll_fini(ddev); in drv_unload()
143 ltdc_unload(ddev); in drv_unload()
144 drm_mode_config_cleanup(ddev); in drv_unload()
150 struct drm_device *ddev; in stm_drm_platform_probe() local
157 ddev = drm_dev_alloc(&drv_driver, dev); in stm_drm_platform_probe()
158 if (IS_ERR(ddev)) in stm_drm_platform_probe()
159 return PTR_ERR(ddev); in stm_drm_platform_probe()
161 ret = drv_load(ddev); in stm_drm_platform_probe()
165 ret = drm_dev_register(ddev, 0); in stm_drm_platform_probe()
172 drm_dev_unref(ddev); in stm_drm_platform_probe()
179 struct drm_device *ddev = platform_get_drvdata(pdev); in stm_drm_platform_remove() local
183 drm_dev_unregister(ddev); in stm_drm_platform_remove()
184 drv_unload(ddev); in stm_drm_platform_remove()
185 drm_dev_unref(ddev); in stm_drm_platform_remove()