Lines Matching refs:fbh
27 static int armada_fbdev_create(struct drm_fb_helper *fbh, in armada_fbdev_create() argument
30 struct drm_device *dev = fbh->dev; in armada_fbdev_create()
75 info = drm_fb_helper_alloc_fbi(fbh); in armada_fbdev_create()
86 fbh->fb = &dfb->fb; in armada_fbdev_create()
88 drm_fb_helper_fill_info(info, fbh, sizes); in armada_fbdev_create()
101 static int armada_fb_probe(struct drm_fb_helper *fbh, in armada_fb_probe() argument
106 if (!fbh->fb) { in armada_fb_probe()
107 ret = armada_fbdev_create(fbh, sizes); in armada_fb_probe()
121 struct drm_fb_helper *fbh; in armada_fbdev_init() local
124 fbh = devm_kzalloc(dev->dev, sizeof(*fbh), GFP_KERNEL); in armada_fbdev_init()
125 if (!fbh) in armada_fbdev_init()
128 priv->fbdev = fbh; in armada_fbdev_init()
130 drm_fb_helper_prepare(dev, fbh, &armada_fb_helper_funcs); in armada_fbdev_init()
132 ret = drm_fb_helper_init(dev, fbh, 1); in armada_fbdev_init()
138 ret = drm_fb_helper_single_add_all_connectors(fbh); in armada_fbdev_init()
144 ret = drm_fb_helper_initial_config(fbh, 32); in armada_fbdev_init()
152 drm_fb_helper_fini(fbh); in armada_fbdev_init()
161 struct drm_fb_helper *fbh = priv->fbdev; in armada_fbdev_fini() local
163 if (fbh) { in armada_fbdev_fini()
164 drm_fb_helper_unregister_fbi(fbh); in armada_fbdev_fini()
166 drm_fb_helper_fini(fbh); in armada_fbdev_fini()
168 if (fbh->fb) in armada_fbdev_fini()
169 fbh->fb->funcs->destroy(fbh->fb); in armada_fbdev_fini()