Lines Matching refs:bochs
16 struct bochs_device *bochs = in bochsfb_mmap() local
18 struct bochs_bo *bo = gem_to_bochs_bo(bochs->fb.gfb.obj); in bochsfb_mmap()
36 static int bochsfb_create_object(struct bochs_device *bochs, in bochsfb_create_object() argument
40 struct drm_device *dev = bochs->dev; in bochsfb_create_object()
57 struct bochs_device *bochs = in bochsfb_create() local
77 ret = bochsfb_create_object(bochs, &mode_cmd, &gobj); in bochsfb_create()
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()
131 drm_fb_helper_fill_var(info, &bochs->fb.helper, sizes->fb_width, in bochsfb_create()
144 static int bochs_fbdev_destroy(struct bochs_device *bochs) in bochs_fbdev_destroy() argument
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()
169 int bochs_fbdev_init(struct bochs_device *bochs) in bochs_fbdev_init() argument
173 drm_fb_helper_prepare(bochs->dev, &bochs->fb.helper, in bochs_fbdev_init()
176 ret = drm_fb_helper_init(bochs->dev, &bochs->fb.helper, in bochs_fbdev_init()
181 ret = drm_fb_helper_single_add_all_connectors(&bochs->fb.helper); in bochs_fbdev_init()
185 drm_helper_disable_unused_functions(bochs->dev); in bochs_fbdev_init()
187 ret = drm_fb_helper_initial_config(&bochs->fb.helper, 32); in bochs_fbdev_init()
191 bochs->fb.initialized = true; in bochs_fbdev_init()
195 drm_fb_helper_fini(&bochs->fb.helper); in bochs_fbdev_init()
199 void bochs_fbdev_fini(struct bochs_device *bochs) in bochs_fbdev_fini() argument
201 if (!bochs->fb.initialized) in bochs_fbdev_fini()
204 bochs_fbdev_destroy(bochs); in bochs_fbdev_fini()
205 bochs->fb.initialized = false; in bochs_fbdev_fini()