Lines Matching refs:fbi
60 struct fb_info *fbi; in rockchip_drm_fbdev_create() local
80 fbi = drm_fb_helper_alloc_fbi(helper); in rockchip_drm_fbdev_create()
81 if (IS_ERR(fbi)) { in rockchip_drm_fbdev_create()
83 ret = PTR_ERR(fbi); in rockchip_drm_fbdev_create()
95 fbi->par = helper; in rockchip_drm_fbdev_create()
96 fbi->flags = FBINFO_FLAG_DEFAULT; in rockchip_drm_fbdev_create()
97 fbi->fbops = &rockchip_drm_fbdev_ops; in rockchip_drm_fbdev_create()
100 drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->depth); in rockchip_drm_fbdev_create()
101 drm_fb_helper_fill_var(fbi, helper, sizes->fb_width, sizes->fb_height); in rockchip_drm_fbdev_create()
103 offset = fbi->var.xoffset * bytes_per_pixel; in rockchip_drm_fbdev_create()
104 offset += fbi->var.yoffset * fb->pitches[0]; in rockchip_drm_fbdev_create()
107 fbi->screen_base = rk_obj->kvaddr + offset; in rockchip_drm_fbdev_create()
108 fbi->screen_size = rk_obj->base.size; in rockchip_drm_fbdev_create()
109 fbi->fix.smem_len = rk_obj->base.size; in rockchip_drm_fbdev_create()
115 fbi->skip_vt_switch = true; in rockchip_drm_fbdev_create()