Lines Matching refs:fb
17 container_of(fb_helper, struct bochs_device, fb.helper); in bochsfb_mmap()
18 struct bochs_bo *bo = gem_to_bochs_bo(bochs->fb.gfb.obj); in bochsfb_mmap()
58 container_of(helper, struct bochs_device, fb.helper); in bochsfb_create()
60 struct drm_framebuffer *fb; in bochsfb_create() local
111 info->par = &bochs->fb.helper; in bochsfb_create()
113 ret = bochs_framebuffer_init(bochs->dev, &bochs->fb.gfb, &mode_cmd, gobj); in bochsfb_create()
119 bochs->fb.size = size; in bochsfb_create()
122 fb = &bochs->fb.gfb.base; in bochsfb_create()
123 bochs->fb.helper.fb = fb; in bochsfb_create()
130 drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth); in bochsfb_create()
131 drm_fb_helper_fill_var(info, &bochs->fb.helper, sizes->fb_width, in bochsfb_create()
146 struct bochs_framebuffer *gfb = &bochs->fb.gfb; in bochs_fbdev_destroy()
150 drm_fb_helper_unregister_fbi(&bochs->fb.helper); in bochs_fbdev_destroy()
151 drm_fb_helper_release_fbi(&bochs->fb.helper); in bochs_fbdev_destroy()
158 drm_fb_helper_fini(&bochs->fb.helper); in bochs_fbdev_destroy()
188 drm_fb_helper_prepare(bochs->dev, &bochs->fb.helper, in bochs_fbdev_init()
191 ret = drm_fb_helper_init(bochs->dev, &bochs->fb.helper, in bochs_fbdev_init()
196 ret = drm_fb_helper_single_add_all_connectors(&bochs->fb.helper); in bochs_fbdev_init()
202 ret = drm_fb_helper_initial_config(&bochs->fb.helper, 32); in bochs_fbdev_init()
206 bochs->fb.initialized = true; in bochs_fbdev_init()
210 drm_fb_helper_fini(&bochs->fb.helper); in bochs_fbdev_init()
216 if (!bochs->fb.initialized) in bochs_fbdev_fini()
220 bochs->fb.initialized = false; in bochs_fbdev_fini()