Searched refs:exynos_fb (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/exynos/
H A Dexynos_drm_fb.c71 struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb); exynos_drm_fb_destroy() local
79 for (i = 0; i < ARRAY_SIZE(exynos_fb->exynos_gem_obj); i++) { exynos_drm_fb_destroy()
82 if (exynos_fb->exynos_gem_obj[i] == NULL) exynos_drm_fb_destroy()
85 obj = &exynos_fb->exynos_gem_obj[i]->base; exynos_drm_fb_destroy()
89 kfree(exynos_fb); exynos_drm_fb_destroy()
90 exynos_fb = NULL; exynos_drm_fb_destroy()
97 struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb); exynos_drm_fb_create_handle() local
100 if (WARN_ON(exynos_fb->buf_cnt != 1)) exynos_drm_fb_create_handle()
104 &exynos_fb->exynos_gem_obj[0]->base, handle); exynos_drm_fb_create_handle()
126 struct exynos_drm_fb *exynos_fb; exynos_drm_fb_set_buf_cnt() local
128 exynos_fb = to_exynos_fb(fb); exynos_drm_fb_set_buf_cnt()
130 exynos_fb->buf_cnt = cnt; exynos_drm_fb_set_buf_cnt()
135 struct exynos_drm_fb *exynos_fb; exynos_drm_fb_get_buf_cnt() local
137 exynos_fb = to_exynos_fb(fb); exynos_drm_fb_get_buf_cnt()
139 return exynos_fb->buf_cnt; exynos_drm_fb_get_buf_cnt()
147 struct exynos_drm_fb *exynos_fb; exynos_drm_framebuffer_init() local
157 exynos_fb = kzalloc(sizeof(*exynos_fb), GFP_KERNEL); exynos_drm_framebuffer_init()
158 if (!exynos_fb) exynos_drm_framebuffer_init()
161 drm_helper_mode_fill_fb_struct(&exynos_fb->fb, mode_cmd); exynos_drm_framebuffer_init()
162 exynos_fb->exynos_gem_obj[0] = exynos_gem_obj; exynos_drm_framebuffer_init()
164 ret = drm_framebuffer_init(dev, &exynos_fb->fb, &exynos_drm_fb_funcs); exynos_drm_framebuffer_init()
166 kfree(exynos_fb); exynos_drm_framebuffer_init()
171 return &exynos_fb->fb; exynos_drm_framebuffer_init()
180 struct exynos_drm_fb *exynos_fb; exynos_user_fb_create() local
183 exynos_fb = kzalloc(sizeof(*exynos_fb), GFP_KERNEL); exynos_user_fb_create()
184 if (!exynos_fb) exynos_user_fb_create()
194 drm_helper_mode_fill_fb_struct(&exynos_fb->fb, mode_cmd); exynos_user_fb_create()
195 exynos_fb->exynos_gem_obj[0] = to_exynos_gem_obj(obj); exynos_user_fb_create()
196 exynos_fb->buf_cnt = drm_format_num_planes(mode_cmd->pixel_format); exynos_user_fb_create()
198 DRM_DEBUG_KMS("buf_cnt = %d\n", exynos_fb->buf_cnt); exynos_user_fb_create()
200 for (i = 1; i < exynos_fb->buf_cnt; i++) { exynos_user_fb_create()
206 exynos_fb->buf_cnt = i; exynos_user_fb_create()
211 exynos_fb->exynos_gem_obj[i] = exynos_gem_obj; exynos_user_fb_create()
218 ret = drm_framebuffer_init(dev, &exynos_fb->fb, &exynos_drm_fb_funcs); exynos_user_fb_create()
224 return &exynos_fb->fb; exynos_user_fb_create()
227 for (i = 0; i < exynos_fb->buf_cnt; i++) { exynos_user_fb_create()
230 obj = &exynos_fb->exynos_gem_obj[i]->base; exynos_user_fb_create()
235 kfree(exynos_fb); exynos_user_fb_create()
242 struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb); exynos_drm_fb_buffer() local
248 buffer = exynos_fb->exynos_gem_obj[index]->buffer; exynos_drm_fb_buffer()

Completed in 75 milliseconds