Lines Matching refs:fbh
24 struct drm_fb_helper *fbh = info->par; in armada_fbdev_fb_destroy() local
26 drm_fb_helper_fini(fbh); in armada_fbdev_fb_destroy()
28 fbh->fb->funcs->destroy(fbh->fb); in armada_fbdev_fb_destroy()
30 drm_client_release(&fbh->client); in armada_fbdev_fb_destroy()
31 drm_fb_helper_unprepare(fbh); in armada_fbdev_fb_destroy()
32 kfree(fbh); in armada_fbdev_fb_destroy()
42 static int armada_fbdev_create(struct drm_fb_helper *fbh, in armada_fbdev_create() argument
45 struct drm_device *dev = fbh->dev; in armada_fbdev_create()
90 info = drm_fb_helper_alloc_info(fbh); in armada_fbdev_create()
101 fbh->fb = &dfb->fb; in armada_fbdev_create()
103 drm_fb_helper_fill_info(info, fbh, sizes); in armada_fbdev_create()
116 static int armada_fb_probe(struct drm_fb_helper *fbh, in armada_fb_probe() argument
121 if (!fbh->fb) { in armada_fb_probe()
122 ret = armada_fbdev_create(fbh, sizes); in armada_fb_probe()
139 struct drm_fb_helper *fbh = drm_fb_helper_from_client(client); in armada_fbdev_client_unregister() local
141 if (fbh->info) { in armada_fbdev_client_unregister()
142 drm_fb_helper_unregister_info(fbh); in armada_fbdev_client_unregister()
144 drm_client_release(&fbh->client); in armada_fbdev_client_unregister()
145 drm_fb_helper_unprepare(fbh); in armada_fbdev_client_unregister()
146 kfree(fbh); in armada_fbdev_client_unregister()
159 struct drm_fb_helper *fbh = drm_fb_helper_from_client(client); in armada_fbdev_client_hotplug() local
166 ret = drm_fb_helper_init(dev, fbh); in armada_fbdev_client_hotplug()
173 ret = drm_fb_helper_initial_config(fbh); in armada_fbdev_client_hotplug()
180 drm_fb_helper_fini(fbh); in armada_fbdev_client_hotplug()
195 struct drm_fb_helper *fbh; in armada_fbdev_setup() local
201 fbh = kzalloc(sizeof(*fbh), GFP_KERNEL); in armada_fbdev_setup()
202 if (!fbh) in armada_fbdev_setup()
204 drm_fb_helper_prepare(dev, fbh, 32, &armada_fb_helper_funcs); in armada_fbdev_setup()
206 ret = drm_client_init(dev, &fbh->client, "fbdev", &armada_fbdev_client_funcs); in armada_fbdev_setup()
212 drm_client_register(&fbh->client); in armada_fbdev_setup()
217 drm_fb_helper_unprepare(fbh); in armada_fbdev_setup()
218 kfree(fbh); in armada_fbdev_setup()