• Home
  • Raw
  • Download

Lines Matching refs:fbcon

66 	struct nouveau_fbdev *fbcon = info->par;  in nouveau_fbcon_fillrect()  local
67 struct nouveau_drm *drm = nouveau_drm(fbcon->helper.dev); in nouveau_fbcon_fillrect()
98 struct nouveau_fbdev *fbcon = info->par; in nouveau_fbcon_copyarea() local
99 struct nouveau_drm *drm = nouveau_drm(fbcon->helper.dev); in nouveau_fbcon_copyarea()
130 struct nouveau_fbdev *fbcon = info->par; in nouveau_fbcon_imageblit() local
131 struct nouveau_drm *drm = nouveau_drm(fbcon->helper.dev); in nouveau_fbcon_imageblit()
162 struct nouveau_fbdev *fbcon = info->par; in nouveau_fbcon_sync() local
163 struct nouveau_drm *drm = nouveau_drm(fbcon->helper.dev); in nouveau_fbcon_sync()
189 struct nouveau_fbdev *fbcon = info->par; in nouveau_fbcon_open() local
190 struct nouveau_drm *drm = nouveau_drm(fbcon->helper.dev); in nouveau_fbcon_open()
202 struct nouveau_fbdev *fbcon = info->par; in nouveau_fbcon_release() local
203 struct nouveau_drm *drm = nouveau_drm(fbcon->helper.dev); in nouveau_fbcon_release()
233 if (drm->fbcon && drm->fbcon->helper.fbdev) { in nouveau_fbcon_accel_save_disable()
234 drm->fbcon->saved_flags = drm->fbcon->helper.fbdev->flags; in nouveau_fbcon_accel_save_disable()
235 drm->fbcon->helper.fbdev->flags |= FBINFO_HWACCEL_DISABLED; in nouveau_fbcon_accel_save_disable()
243 if (drm->fbcon && drm->fbcon->helper.fbdev) { in nouveau_fbcon_accel_restore()
244 drm->fbcon->helper.fbdev->flags = drm->fbcon->saved_flags; in nouveau_fbcon_accel_restore()
252 struct nouveau_fbdev *fbcon = drm->fbcon; in nouveau_fbcon_accel_fini() local
253 if (fbcon && drm->channel) { in nouveau_fbcon_accel_fini()
255 if (fbcon->helper.fbdev) in nouveau_fbcon_accel_fini()
256 fbcon->helper.fbdev->flags |= FBINFO_HWACCEL_DISABLED; in nouveau_fbcon_accel_fini()
259 nvif_object_dtor(&fbcon->twod); in nouveau_fbcon_accel_fini()
260 nvif_object_dtor(&fbcon->blit); in nouveau_fbcon_accel_fini()
261 nvif_object_dtor(&fbcon->gdi); in nouveau_fbcon_accel_fini()
262 nvif_object_dtor(&fbcon->patt); in nouveau_fbcon_accel_fini()
263 nvif_object_dtor(&fbcon->rop); in nouveau_fbcon_accel_fini()
264 nvif_object_dtor(&fbcon->clip); in nouveau_fbcon_accel_fini()
265 nvif_object_dtor(&fbcon->surf2d); in nouveau_fbcon_accel_fini()
273 struct nouveau_fbdev *fbcon = drm->fbcon; in nouveau_fbcon_accel_init() local
274 struct fb_info *info = fbcon->helper.fbdev; in nouveau_fbcon_accel_init()
290 nouveau_fbcon_zfill(struct drm_device *dev, struct nouveau_fbdev *fbcon) in nouveau_fbcon_zfill() argument
292 struct fb_info *info = fbcon->helper.fbdev; in nouveau_fbcon_zfill()
311 struct nouveau_fbdev *fbcon = in nouveau_fbcon_create() local
313 struct drm_device *dev = fbcon->helper.dev; in nouveau_fbcon_create()
358 ret = nouveau_vma_new(nvbo, chan->vmm, &fbcon->vma); in nouveau_fbcon_create()
372 fbcon->helper.fb = fb; in nouveau_fbcon_create()
387 drm_fb_helper_fill_info(info, &fbcon->helper, sizes); in nouveau_fbcon_create()
393 nouveau_fbcon_zfill(dev, fbcon); in nouveau_fbcon_create()
404 nouveau_vma_del(&fbcon->vma); in nouveau_fbcon_create()
415 nouveau_fbcon_destroy(struct drm_device *dev, struct nouveau_fbdev *fbcon) in nouveau_fbcon_destroy() argument
417 struct drm_framebuffer *fb = fbcon->helper.fb; in nouveau_fbcon_destroy()
420 drm_fb_helper_unregister_fbi(&fbcon->helper); in nouveau_fbcon_destroy()
421 drm_fb_helper_fini(&fbcon->helper); in nouveau_fbcon_destroy()
425 nouveau_vma_del(&fbcon->vma); in nouveau_fbcon_destroy()
436 struct nouveau_fbdev *fbcon = info->par; in nouveau_fbcon_gpu_lockup() local
437 struct nouveau_drm *drm = nouveau_drm(fbcon->helper.dev); in nouveau_fbcon_gpu_lockup()
459 drm_fb_helper_set_suspend(&drm->fbcon->helper, state); in nouveau_fbcon_set_suspend_work()
465 nouveau_fbcon_hotplug_resume(drm->fbcon); in nouveau_fbcon_set_suspend_work()
476 if (!drm->fbcon) in nouveau_fbcon_set_suspend()
491 struct nouveau_fbdev *fbcon = drm->fbcon; in nouveau_fbcon_output_poll_changed() local
494 if (!fbcon) in nouveau_fbcon_output_poll_changed()
497 mutex_lock(&fbcon->hotplug_lock); in nouveau_fbcon_output_poll_changed()
501 drm_fb_helper_hotplug_event(&fbcon->helper); in nouveau_fbcon_output_poll_changed()
513 fbcon->hotplug_waiting = true; in nouveau_fbcon_output_poll_changed()
520 mutex_unlock(&fbcon->hotplug_lock); in nouveau_fbcon_output_poll_changed()
524 nouveau_fbcon_hotplug_resume(struct nouveau_fbdev *fbcon) in nouveau_fbcon_hotplug_resume() argument
528 if (!fbcon) in nouveau_fbcon_hotplug_resume()
530 drm = nouveau_drm(fbcon->helper.dev); in nouveau_fbcon_hotplug_resume()
532 mutex_lock(&fbcon->hotplug_lock); in nouveau_fbcon_hotplug_resume()
533 if (fbcon->hotplug_waiting) { in nouveau_fbcon_hotplug_resume()
534 fbcon->hotplug_waiting = false; in nouveau_fbcon_hotplug_resume()
537 drm_fb_helper_hotplug_event(&fbcon->helper); in nouveau_fbcon_hotplug_resume()
539 mutex_unlock(&fbcon->hotplug_lock); in nouveau_fbcon_hotplug_resume()
546 struct nouveau_fbdev *fbcon; in nouveau_fbcon_init() local
554 fbcon = kzalloc(sizeof(struct nouveau_fbdev), GFP_KERNEL); in nouveau_fbcon_init()
555 if (!fbcon) in nouveau_fbcon_init()
558 drm->fbcon = fbcon; in nouveau_fbcon_init()
560 mutex_init(&fbcon->hotplug_lock); in nouveau_fbcon_init()
562 drm_fb_helper_prepare(dev, &fbcon->helper, &nouveau_fbcon_helper_funcs); in nouveau_fbcon_init()
564 ret = drm_fb_helper_init(dev, &fbcon->helper); in nouveau_fbcon_init()
582 ret = drm_fb_helper_initial_config(&fbcon->helper, preferred_bpp); in nouveau_fbcon_init()
586 if (fbcon->helper.fbdev) in nouveau_fbcon_init()
587 fbcon->helper.fbdev->pixmap.buf_align = 4; in nouveau_fbcon_init()
591 drm_fb_helper_fini(&fbcon->helper); in nouveau_fbcon_init()
593 kfree(fbcon); in nouveau_fbcon_init()
594 drm->fbcon = NULL; in nouveau_fbcon_init()
603 if (!drm->fbcon) in nouveau_fbcon_fini()
607 nouveau_fbcon_destroy(dev, drm->fbcon); in nouveau_fbcon_fini()
608 kfree(drm->fbcon); in nouveau_fbcon_fini()
609 drm->fbcon = NULL; in nouveau_fbcon_fini()