Lines Matching refs:fb
79 struct drm_framebuffer *fb) in exynos_drm_fbdev_update() argument
84 unsigned int size = fb->width * fb->height * (fb->bits_per_pixel >> 3); in exynos_drm_fbdev_update()
87 drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->depth); in exynos_drm_fbdev_update()
88 drm_fb_helper_fill_var(fbi, helper, fb->width, fb->height); in exynos_drm_fbdev_update()
91 buffer = exynos_drm_fb_buffer(fb, 0); in exynos_drm_fbdev_update()
119 exynos_drm_fb_set_buf_cnt(fb, 1); in exynos_drm_fbdev_update()
121 offset = fbi->var.xoffset * (fb->bits_per_pixel >> 3); in exynos_drm_fbdev_update()
122 offset += fbi->var.yoffset * fb->pitches[0]; in exynos_drm_fbdev_update()
183 helper->fb = exynos_drm_framebuffer_init(dev, &mode_cmd, in exynos_drm_fbdev_create()
185 if (IS_ERR(helper->fb)) { in exynos_drm_fbdev_create()
187 ret = PTR_ERR(helper->fb); in exynos_drm_fbdev_create()
203 ret = exynos_drm_fbdev_update(helper, helper->fb); in exynos_drm_fbdev_create()
213 drm_framebuffer_cleanup(helper->fb); in exynos_drm_fbdev_create()
314 struct drm_framebuffer *fb; in exynos_drm_fbdev_destroy() local
320 if (fb_helper->fb && fb_helper->fb->funcs) { in exynos_drm_fbdev_destroy()
321 fb = fb_helper->fb; in exynos_drm_fbdev_destroy()
322 if (fb) { in exynos_drm_fbdev_destroy()
323 drm_framebuffer_unregister_private(fb); in exynos_drm_fbdev_destroy()
324 drm_framebuffer_remove(fb); in exynos_drm_fbdev_destroy()