Searched refs:afbc_fb (Results 1 – 3 of 3) sorted by relevance
35 struct drm_afbc_framebuffer *afbc_fb; in rockchip_fb_create() local43 afbc_fb = kzalloc(sizeof(*afbc_fb), GFP_KERNEL); in rockchip_fb_create()44 if (!afbc_fb) in rockchip_fb_create()47 ret = drm_gem_fb_init_with_funcs(dev, &afbc_fb->base, file, mode_cmd, in rockchip_fb_create()50 kfree(afbc_fb); in rockchip_fb_create()57 ret = drm_gem_fb_afbc_init(dev, mode_cmd, afbc_fb); in rockchip_fb_create()59 struct drm_gem_object **obj = afbc_fb->base.obj; in rockchip_fb_create()64 kfree(afbc_fb); in rockchip_fb_create()69 return &afbc_fb->base; in rockchip_fb_create()
524 struct drm_afbc_framebuffer *afbc_fb) in drm_gem_afbc_min_size() argument532 afbc_fb->block_width = 16; in drm_gem_afbc_min_size()533 afbc_fb->block_height = 16; in drm_gem_afbc_min_size()536 afbc_fb->block_width = 32; in drm_gem_afbc_min_size()537 afbc_fb->block_height = 8; in drm_gem_afbc_min_size()550 w_alignment = afbc_fb->block_width; in drm_gem_afbc_min_size()551 h_alignment = afbc_fb->block_height; in drm_gem_afbc_min_size()559 afbc_fb->aligned_width = ALIGN(mode_cmd->width, w_alignment); in drm_gem_afbc_min_size()560 afbc_fb->aligned_height = ALIGN(mode_cmd->height, h_alignment); in drm_gem_afbc_min_size()561 afbc_fb->offset = mode_cmd->offsets[0]; in drm_gem_afbc_min_size()[all …]
51 struct drm_afbc_framebuffer *afbc_fb);