Lines Matching defs:ddev
231 sunxi_drm_alloc_cma_pool(struct drm_device *ddev, size_t cma_size)
233 struct sunxi_drm_softc * const sc = sunxi_drm_private(ddev);
274 sunxi_drm_fb_create(struct drm_device *ddev, struct drm_file *file,
290 drm_helper_mode_fill_fb_struct(ddev, &fb->base, cmd);
292 error = drm_framebuffer_init(ddev, &fb->base, &sunxi_drm_framebuffer_funcs);
347 struct drm_device *ddev = helper->dev;
388 sfb->obj = drm_gem_cma_create(ddev, size);
399 fb->dev = ddev;
401 error = drm_framebuffer_init(ddev, fb, &sunxi_drm_framebuffer_funcs);
408 sfa.sfa_drm_dev = ddev;
415 helper->fbdev = config_found(ddev->dev, &sfa, NULL,
430 sunxi_drm_load(struct drm_device *ddev, unsigned long flags)
432 struct sunxi_drm_softc * const sc = sunxi_drm_private(ddev);
438 drm_mode_config_init(ddev);
439 ddev->mode_config.min_width = 0;
440 ddev->mode_config.min_height = 0;
441 ddev->mode_config.max_width = SUNXI_DRM_MAX_WIDTH;
442 ddev->mode_config.max_height = SUNXI_DRM_MAX_HEIGHT;
443 ddev->mode_config.funcs = &sunxi_drm_mode_config_funcs;
451 if (sep->phandle == crtc_phandle && sep->ddev == NULL) {
452 sep->ddev = ddev;
474 drm_fb_helper_prepare(ddev, &fbdev->helper, &sunxi_drm_fb_helper_funcs);
476 error = drm_fb_helper_init(ddev, &fbdev->helper, num_crtc);
484 drm_helper_disable_unused_functions(ddev);
489 ddev->irq_enabled = true;
490 drm_vblank_init(ddev, num_crtc);
497 drm_mode_config_cleanup(ddev);
503 sunxi_drm_get_vblank_counter(struct drm_device *ddev, unsigned int crtc)
505 struct sunxi_drm_softc * const sc = sunxi_drm_private(ddev);
517 sunxi_drm_enable_vblank(struct drm_device *ddev, unsigned int crtc)
519 struct sunxi_drm_softc * const sc = sunxi_drm_private(ddev);
533 sunxi_drm_disable_vblank(struct drm_device *ddev, unsigned int crtc)
535 struct sunxi_drm_softc * const sc = sunxi_drm_private(ddev);
547 sunxi_drm_unload(struct drm_device *ddev)
549 drm_mode_config_cleanup(ddev);
560 sep->ddev = NULL;
573 return sep->ddev;