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()
54 container_of(helper, struct bochs_device, fb.helper); in bochsfb_create()
56 struct drm_framebuffer *fb; in bochsfb_create() local
107 info->par = &bochs->fb.helper; in bochsfb_create()
109 ret = bochs_framebuffer_init(bochs->dev, &bochs->fb.gfb, &mode_cmd, gobj); in bochsfb_create()
113 bochs->fb.size = size; in bochsfb_create()
116 fb = &bochs->fb.gfb.base; in bochsfb_create()
117 bochs->fb.helper.fb = fb; in bochsfb_create()
123 drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth); in bochsfb_create()
124 drm_fb_helper_fill_var(info, &bochs->fb.helper, sizes->fb_width, in bochsfb_create()
134 bochs->fb.initialized = true; in bochsfb_create()
140 struct bochs_framebuffer *gfb = &bochs->fb.gfb; in bochs_fbdev_destroy()
144 drm_fb_helper_unregister_fbi(&bochs->fb.helper); in bochs_fbdev_destroy()
165 drm_fb_helper_prepare(bochs->dev, &bochs->fb.helper, in bochs_fbdev_init()
168 ret = drm_fb_helper_init(bochs->dev, &bochs->fb.helper, 1); in bochs_fbdev_init()
172 ret = drm_fb_helper_single_add_all_connectors(&bochs->fb.helper); in bochs_fbdev_init()
178 ret = drm_fb_helper_initial_config(&bochs->fb.helper, 32); in bochs_fbdev_init()
185 drm_fb_helper_fini(&bochs->fb.helper); in bochs_fbdev_init()
191 if (bochs->fb.initialized) in bochs_fbdev_fini()
194 if (bochs->fb.helper.fbdev) in bochs_fbdev_fini()
195 drm_fb_helper_fini(&bochs->fb.helper); in bochs_fbdev_fini()
197 bochs->fb.initialized = false; in bochs_fbdev_fini()