Lines Matching refs:vgfbdev
361 struct virtio_gpu_fbdev *vgfbdev) in virtio_gpu_fbdev_destroy() argument
363 struct virtio_gpu_framebuffer *vgfb = &vgfbdev->vgfb; in virtio_gpu_fbdev_destroy()
365 drm_fb_helper_unregister_fbi(&vgfbdev->helper); in virtio_gpu_fbdev_destroy()
366 drm_fb_helper_release_fbi(&vgfbdev->helper); in virtio_gpu_fbdev_destroy()
370 drm_fb_helper_fini(&vgfbdev->helper); in virtio_gpu_fbdev_destroy()
381 struct virtio_gpu_fbdev *vgfbdev; in virtio_gpu_fbdev_init() local
385 vgfbdev = kzalloc(sizeof(struct virtio_gpu_fbdev), GFP_KERNEL); in virtio_gpu_fbdev_init()
386 if (!vgfbdev) in virtio_gpu_fbdev_init()
389 vgfbdev->vgdev = vgdev; in virtio_gpu_fbdev_init()
390 vgdev->vgfbdev = vgfbdev; in virtio_gpu_fbdev_init()
391 INIT_DELAYED_WORK(&vgfbdev->work, virtio_gpu_fb_dirty_work); in virtio_gpu_fbdev_init()
393 drm_fb_helper_prepare(vgdev->ddev, &vgfbdev->helper, in virtio_gpu_fbdev_init()
395 ret = drm_fb_helper_init(vgdev->ddev, &vgfbdev->helper, in virtio_gpu_fbdev_init()
399 kfree(vgfbdev); in virtio_gpu_fbdev_init()
403 drm_fb_helper_single_add_all_connectors(&vgfbdev->helper); in virtio_gpu_fbdev_init()
404 drm_fb_helper_initial_config(&vgfbdev->helper, bpp_sel); in virtio_gpu_fbdev_init()
410 if (!vgdev->vgfbdev) in virtio_gpu_fbdev_fini()
413 virtio_gpu_fbdev_destroy(vgdev->ddev, vgdev->vgfbdev); in virtio_gpu_fbdev_fini()
414 kfree(vgdev->vgfbdev); in virtio_gpu_fbdev_fini()
415 vgdev->vgfbdev = NULL; in virtio_gpu_fbdev_fini()