Lines Matching refs:fbdev_cma
116 struct drm_fbdev_cma *fbdev_cma; in drm_fb_cma_fbdev_init() local
119 fbdev_cma = drm_fbdev_cma_init(dev, preferred_bpp, max_conn_count); in drm_fb_cma_fbdev_init()
120 if (IS_ERR(fbdev_cma)) in drm_fb_cma_fbdev_init()
121 return PTR_ERR(fbdev_cma); in drm_fb_cma_fbdev_init()
153 struct drm_fbdev_cma *fbdev_cma; in drm_fbdev_cma_init() local
157 fbdev_cma = kzalloc(sizeof(*fbdev_cma), GFP_KERNEL); in drm_fbdev_cma_init()
158 if (!fbdev_cma) in drm_fbdev_cma_init()
161 fb_helper = &fbdev_cma->fb_helper; in drm_fbdev_cma_init()
174 return fbdev_cma; in drm_fbdev_cma_init()
179 kfree(fbdev_cma); in drm_fbdev_cma_init()
189 void drm_fbdev_cma_fini(struct drm_fbdev_cma *fbdev_cma) in drm_fbdev_cma_fini() argument
191 drm_fb_helper_unregister_fbi(&fbdev_cma->fb_helper); in drm_fbdev_cma_fini()
202 void drm_fbdev_cma_restore_mode(struct drm_fbdev_cma *fbdev_cma) in drm_fbdev_cma_restore_mode() argument
204 if (fbdev_cma) in drm_fbdev_cma_restore_mode()
205 drm_fb_helper_restore_fbdev_mode_unlocked(&fbdev_cma->fb_helper); in drm_fbdev_cma_restore_mode()
216 void drm_fbdev_cma_hotplug_event(struct drm_fbdev_cma *fbdev_cma) in drm_fbdev_cma_hotplug_event() argument
218 if (fbdev_cma) in drm_fbdev_cma_hotplug_event()
219 drm_fb_helper_hotplug_event(&fbdev_cma->fb_helper); in drm_fbdev_cma_hotplug_event()
231 void drm_fbdev_cma_set_suspend(struct drm_fbdev_cma *fbdev_cma, bool state) in drm_fbdev_cma_set_suspend() argument
233 if (fbdev_cma) in drm_fbdev_cma_set_suspend()
234 drm_fb_helper_set_suspend(&fbdev_cma->fb_helper, state); in drm_fbdev_cma_set_suspend()
247 void drm_fbdev_cma_set_suspend_unlocked(struct drm_fbdev_cma *fbdev_cma, in drm_fbdev_cma_set_suspend_unlocked() argument
250 if (fbdev_cma) in drm_fbdev_cma_set_suspend_unlocked()
251 drm_fb_helper_set_suspend_unlocked(&fbdev_cma->fb_helper, in drm_fbdev_cma_set_suspend_unlocked()