Lines Matching refs:ddev
227 sunxi_drm_alloc_cma_pool(struct drm_device *ddev, size_t cma_size)
229 struct sunxi_drm_softc * const sc = sunxi_drm_private(ddev);
270 sunxi_drm_fb_create(struct drm_device *ddev, struct drm_file *file,
286 drm_helper_mode_fill_fb_struct(ddev, &fb->base, cmd);
288 error = drm_framebuffer_init(ddev, &fb->base, &sunxi_drm_framebuffer_funcs);
343 struct drm_device *ddev = helper->dev;
384 sfb->obj = drm_gem_cma_create(ddev, size);
395 fb->dev = ddev;
397 error = drm_framebuffer_init(ddev, fb, &sunxi_drm_framebuffer_funcs);
404 sfa.sfa_drm_dev = ddev;
411 helper->fbdev = config_found(ddev->dev, &sfa, NULL,
426 sunxi_drm_load(struct drm_device *ddev, unsigned long flags)
428 struct sunxi_drm_softc * const sc = sunxi_drm_private(ddev);
434 drm_mode_config_init(ddev);
435 ddev->mode_config.min_width = 0;
436 ddev->mode_config.min_height = 0;
437 ddev->mode_config.max_width = SUNXI_DRM_MAX_WIDTH;
438 ddev->mode_config.max_height = SUNXI_DRM_MAX_HEIGHT;
439 ddev->mode_config.funcs = &sunxi_drm_mode_config_funcs;
447 if (sep->phandle == crtc_phandle && sep->ddev == NULL) {
448 sep->ddev = ddev;
470 drm_fb_helper_prepare(ddev, &fbdev->helper, &sunxi_drm_fb_helper_funcs);
472 error = drm_fb_helper_init(ddev, &fbdev->helper, num_crtc);
480 drm_helper_disable_unused_functions(ddev);
485 ddev->irq_enabled = true;
486 drm_vblank_init(ddev, num_crtc);
493 drm_mode_config_cleanup(ddev);
499 sunxi_drm_get_vblank_counter(struct drm_device *ddev, unsigned int crtc)
501 struct sunxi_drm_softc * const sc = sunxi_drm_private(ddev);
513 sunxi_drm_enable_vblank(struct drm_device *ddev, unsigned int crtc)
515 struct sunxi_drm_softc * const sc = sunxi_drm_private(ddev);
529 sunxi_drm_disable_vblank(struct drm_device *ddev, unsigned int crtc)
531 struct sunxi_drm_softc * const sc = sunxi_drm_private(ddev);
543 sunxi_drm_unload(struct drm_device *ddev)
545 drm_mode_config_cleanup(ddev);
556 sep->ddev = NULL;
569 return sep->ddev;