Lines Matching refs:fb_cma
50 struct drm_fb_cma *fb_cma = to_fb_cma(fb); in drm_fb_cma_destroy() local
54 if (fb_cma->obj[i]) in drm_fb_cma_destroy()
55 drm_gem_object_unreference_unlocked(&fb_cma->obj[i]->base); in drm_fb_cma_destroy()
59 kfree(fb_cma); in drm_fb_cma_destroy()
65 struct drm_fb_cma *fb_cma = to_fb_cma(fb); in drm_fb_cma_create_handle() local
68 &fb_cma->obj[0]->base, handle); in drm_fb_cma_create_handle()
80 struct drm_fb_cma *fb_cma; in drm_fb_cma_alloc() local
84 fb_cma = kzalloc(sizeof(*fb_cma), GFP_KERNEL); in drm_fb_cma_alloc()
85 if (!fb_cma) in drm_fb_cma_alloc()
88 drm_helper_mode_fill_fb_struct(&fb_cma->fb, mode_cmd); in drm_fb_cma_alloc()
91 fb_cma->obj[i] = obj[i]; in drm_fb_cma_alloc()
93 ret = drm_framebuffer_init(dev, &fb_cma->fb, &drm_fb_cma_funcs); in drm_fb_cma_alloc()
96 kfree(fb_cma); in drm_fb_cma_alloc()
100 return fb_cma; in drm_fb_cma_alloc()
112 struct drm_fb_cma *fb_cma; in drm_fb_cma_create() local
147 fb_cma = drm_fb_cma_alloc(dev, mode_cmd, objs, i); in drm_fb_cma_create()
148 if (IS_ERR(fb_cma)) { in drm_fb_cma_create()
149 ret = PTR_ERR(fb_cma); in drm_fb_cma_create()
153 return &fb_cma->fb; in drm_fb_cma_create()
174 struct drm_fb_cma *fb_cma = to_fb_cma(fb); in drm_fb_cma_get_gem_obj() local
179 return fb_cma->obj[plane]; in drm_fb_cma_get_gem_obj()
190 struct drm_fb_cma *fb_cma = to_fb_cma(fb); in drm_fb_cma_describe() local
199 drm_gem_cma_describe(fb_cma->obj[i], m); in drm_fb_cma_describe()