Lines Matching refs:fbcon
61 struct nouveau_fbdev *fbcon = info->par; in nouveau_fbcon_fillrect() local
62 struct nouveau_drm *drm = nouveau_drm(fbcon->dev); in nouveau_fbcon_fillrect()
93 struct nouveau_fbdev *fbcon = info->par; in nouveau_fbcon_copyarea() local
94 struct nouveau_drm *drm = nouveau_drm(fbcon->dev); in nouveau_fbcon_copyarea()
125 struct nouveau_fbdev *fbcon = info->par; in nouveau_fbcon_imageblit() local
126 struct nouveau_drm *drm = nouveau_drm(fbcon->dev); in nouveau_fbcon_imageblit()
157 struct nouveau_fbdev *fbcon = info->par; in nouveau_fbcon_sync() local
158 struct nouveau_drm *drm = nouveau_drm(fbcon->dev); in nouveau_fbcon_sync()
184 struct nouveau_fbdev *fbcon = info->par; in nouveau_fbcon_open() local
185 struct nouveau_drm *drm = nouveau_drm(fbcon->dev); in nouveau_fbcon_open()
195 struct nouveau_fbdev *fbcon = info->par; in nouveau_fbcon_release() local
196 struct nouveau_drm *drm = nouveau_drm(fbcon->dev); in nouveau_fbcon_release()
238 if (drm->fbcon) { in nouveau_fbcon_accel_save_disable()
239 drm->fbcon->saved_flags = drm->fbcon->helper.fbdev->flags; in nouveau_fbcon_accel_save_disable()
240 drm->fbcon->helper.fbdev->flags |= FBINFO_HWACCEL_DISABLED; in nouveau_fbcon_accel_save_disable()
248 if (drm->fbcon) { in nouveau_fbcon_accel_restore()
249 drm->fbcon->helper.fbdev->flags = drm->fbcon->saved_flags; in nouveau_fbcon_accel_restore()
257 struct nouveau_fbdev *fbcon = drm->fbcon; in nouveau_fbcon_accel_fini() local
258 if (fbcon && drm->channel) { in nouveau_fbcon_accel_fini()
260 fbcon->helper.fbdev->flags |= FBINFO_HWACCEL_DISABLED; in nouveau_fbcon_accel_fini()
263 nvif_object_fini(&fbcon->twod); in nouveau_fbcon_accel_fini()
264 nvif_object_fini(&fbcon->blit); in nouveau_fbcon_accel_fini()
265 nvif_object_fini(&fbcon->gdi); in nouveau_fbcon_accel_fini()
266 nvif_object_fini(&fbcon->patt); in nouveau_fbcon_accel_fini()
267 nvif_object_fini(&fbcon->rop); in nouveau_fbcon_accel_fini()
268 nvif_object_fini(&fbcon->clip); in nouveau_fbcon_accel_fini()
269 nvif_object_fini(&fbcon->surf2d); in nouveau_fbcon_accel_fini()
277 struct nouveau_fbdev *fbcon = drm->fbcon; in nouveau_fbcon_accel_init() local
278 struct fb_info *info = fbcon->helper.fbdev; in nouveau_fbcon_accel_init()
314 nouveau_fbcon_zfill(struct drm_device *dev, struct nouveau_fbdev *fbcon) in nouveau_fbcon_zfill() argument
316 struct fb_info *info = fbcon->helper.fbdev; in nouveau_fbcon_zfill()
335 struct nouveau_fbdev *fbcon = in nouveau_fbcon_create() local
337 struct drm_device *dev = fbcon->dev; in nouveau_fbcon_create()
382 &fbcon->nouveau_fb.vma); in nouveau_fbcon_create()
398 info->par = fbcon; in nouveau_fbcon_create()
400 nouveau_framebuffer_init(dev, &fbcon->nouveau_fb, &mode_cmd, nvbo); in nouveau_fbcon_create()
402 nouveau_fb = &fbcon->nouveau_fb; in nouveau_fbcon_create()
406 fbcon->helper.fb = fb; in nouveau_fbcon_create()
425 drm_fb_helper_fill_var(info, &fbcon->helper, sizes->fb_width, sizes->fb_height); in nouveau_fbcon_create()
433 nouveau_fbcon_zfill(dev, fbcon); in nouveau_fbcon_create()
446 nouveau_bo_vma_del(nvbo, &fbcon->nouveau_fb.vma); in nouveau_fbcon_create()
460 if (drm->fbcon) in nouveau_fbcon_output_poll_changed()
461 drm_fb_helper_hotplug_event(&drm->fbcon->helper); in nouveau_fbcon_output_poll_changed()
465 nouveau_fbcon_destroy(struct drm_device *dev, struct nouveau_fbdev *fbcon) in nouveau_fbcon_destroy() argument
467 struct nouveau_framebuffer *nouveau_fb = &fbcon->nouveau_fb; in nouveau_fbcon_destroy()
469 drm_fb_helper_unregister_fbi(&fbcon->helper); in nouveau_fbcon_destroy()
470 drm_fb_helper_release_fbi(&fbcon->helper); in nouveau_fbcon_destroy()
479 drm_fb_helper_fini(&fbcon->helper); in nouveau_fbcon_destroy()
487 struct nouveau_fbdev *fbcon = info->par; in nouveau_fbcon_gpu_lockup() local
488 struct nouveau_drm *drm = nouveau_drm(fbcon->dev); in nouveau_fbcon_gpu_lockup()
504 if (drm->fbcon) { in nouveau_fbcon_set_suspend()
508 drm_fb_helper_set_suspend(&drm->fbcon->helper, state); in nouveau_fbcon_set_suspend()
519 struct nouveau_fbdev *fbcon; in nouveau_fbcon_init() local
527 fbcon = kzalloc(sizeof(struct nouveau_fbdev), GFP_KERNEL); in nouveau_fbcon_init()
528 if (!fbcon) in nouveau_fbcon_init()
531 fbcon->dev = dev; in nouveau_fbcon_init()
532 drm->fbcon = fbcon; in nouveau_fbcon_init()
534 drm_fb_helper_prepare(dev, &fbcon->helper, &nouveau_fbcon_helper_funcs); in nouveau_fbcon_init()
536 ret = drm_fb_helper_init(dev, &fbcon->helper, in nouveau_fbcon_init()
541 ret = drm_fb_helper_single_add_all_connectors(&fbcon->helper); in nouveau_fbcon_init()
556 ret = drm_fb_helper_initial_config(&fbcon->helper, preferred_bpp); in nouveau_fbcon_init()
563 drm_fb_helper_fini(&fbcon->helper); in nouveau_fbcon_init()
565 kfree(fbcon); in nouveau_fbcon_init()
574 if (!drm->fbcon) in nouveau_fbcon_fini()
578 nouveau_fbcon_destroy(dev, drm->fbcon); in nouveau_fbcon_fini()
579 kfree(drm->fbcon); in nouveau_fbcon_fini()
580 drm->fbcon = NULL; in nouveau_fbcon_fini()