Lines Matching refs:vgfbdev
362 struct virtio_gpu_fbdev *vgfbdev) in virtio_gpu_fbdev_destroy() argument
364 struct virtio_gpu_framebuffer *vgfb = &vgfbdev->vgfb; in virtio_gpu_fbdev_destroy()
366 drm_fb_helper_unregister_fbi(&vgfbdev->helper); in virtio_gpu_fbdev_destroy()
367 drm_fb_helper_release_fbi(&vgfbdev->helper); in virtio_gpu_fbdev_destroy()
371 drm_fb_helper_fini(&vgfbdev->helper); in virtio_gpu_fbdev_destroy()
382 struct virtio_gpu_fbdev *vgfbdev; in virtio_gpu_fbdev_init() local
386 vgfbdev = kzalloc(sizeof(struct virtio_gpu_fbdev), GFP_KERNEL); in virtio_gpu_fbdev_init()
387 if (!vgfbdev) in virtio_gpu_fbdev_init()
390 vgfbdev->vgdev = vgdev; in virtio_gpu_fbdev_init()
391 vgdev->vgfbdev = vgfbdev; in virtio_gpu_fbdev_init()
392 INIT_DELAYED_WORK(&vgfbdev->work, virtio_gpu_fb_dirty_work); in virtio_gpu_fbdev_init()
394 drm_fb_helper_prepare(vgdev->ddev, &vgfbdev->helper, in virtio_gpu_fbdev_init()
396 ret = drm_fb_helper_init(vgdev->ddev, &vgfbdev->helper, in virtio_gpu_fbdev_init()
400 kfree(vgfbdev); in virtio_gpu_fbdev_init()
404 drm_fb_helper_single_add_all_connectors(&vgfbdev->helper); in virtio_gpu_fbdev_init()
405 drm_fb_helper_initial_config(&vgfbdev->helper, bpp_sel); in virtio_gpu_fbdev_init()
411 if (!vgdev->vgfbdev) in virtio_gpu_fbdev_fini()
414 virtio_gpu_fbdev_destroy(vgdev->ddev, vgdev->vgfbdev); in virtio_gpu_fbdev_fini()
415 kfree(vgdev->vgfbdev); in virtio_gpu_fbdev_fini()
416 vgdev->vgfbdev = NULL; in virtio_gpu_fbdev_fini()