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

/linux-4.4.14/drivers/gpu/drm/rockchip/
H A Drockchip_drm_fb.c45 struct rockchip_drm_fb *rockchip_fb = to_rockchip_fb(fb); rockchip_drm_fb_destroy() local
50 obj = rockchip_fb->obj[i]; rockchip_drm_fb_destroy()
56 kfree(rockchip_fb); rockchip_drm_fb_destroy()
63 struct rockchip_drm_fb *rockchip_fb = to_rockchip_fb(fb); rockchip_drm_fb_create_handle() local
66 rockchip_fb->obj[0], handle); rockchip_drm_fb_create_handle()
78 struct rockchip_drm_fb *rockchip_fb; rockchip_fb_alloc() local
82 rockchip_fb = kzalloc(sizeof(*rockchip_fb), GFP_KERNEL); rockchip_fb_alloc()
83 if (!rockchip_fb) rockchip_fb_alloc()
86 drm_helper_mode_fill_fb_struct(&rockchip_fb->fb, mode_cmd); rockchip_fb_alloc()
89 rockchip_fb->obj[i] = obj[i]; rockchip_fb_alloc()
91 ret = drm_framebuffer_init(dev, &rockchip_fb->fb, rockchip_fb_alloc()
96 kfree(rockchip_fb); rockchip_fb_alloc()
100 return rockchip_fb; rockchip_fb_alloc()
107 struct rockchip_drm_fb *rockchip_fb; rockchip_user_fb_create() local
146 rockchip_fb = rockchip_fb_alloc(dev, mode_cmd, objs, i); rockchip_user_fb_create()
147 if (IS_ERR(rockchip_fb)) { rockchip_user_fb_create()
148 ret = PTR_ERR(rockchip_fb); rockchip_user_fb_create()
152 return &rockchip_fb->fb; rockchip_user_fb_create()
179 struct rockchip_drm_fb *rockchip_fb; rockchip_drm_framebuffer_init() local
181 rockchip_fb = rockchip_fb_alloc(dev, mode_cmd, &obj, 1); rockchip_drm_framebuffer_init()
182 if (IS_ERR(rockchip_fb)) rockchip_drm_framebuffer_init()
185 return &rockchip_fb->fb; rockchip_drm_framebuffer_init()

Completed in 220 milliseconds