Lines Matching refs:sizes
112 struct drm_fb_helper_surface_size *sizes) in intelfb_alloc() argument
124 if (sizes->surface_bpp == 24) in intelfb_alloc()
125 sizes->surface_bpp = 32; in intelfb_alloc()
127 mode_cmd.width = sizes->surface_width; in intelfb_alloc()
128 mode_cmd.height = sizes->surface_height; in intelfb_alloc()
131 DIV_ROUND_UP(sizes->surface_bpp, 8), 64); in intelfb_alloc()
132 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in intelfb_alloc()
133 sizes->surface_depth); in intelfb_alloc()
169 struct drm_fb_helper_surface_size *sizes) in intelfb_create() argument
187 (sizes->fb_width > intel_fb->base.width || in intelfb_create()
188 sizes->fb_height > intel_fb->base.height)) { in intelfb_create()
192 sizes->fb_width, sizes->fb_height); in intelfb_create()
198 ret = intelfb_alloc(helper, sizes); in intelfb_create()
205 sizes->fb_width = intel_fb->base.width; in intelfb_create()
206 sizes->fb_height = intel_fb->base.height; in intelfb_create()
262 drm_fb_helper_fill_var(info, &ifbdev->helper, sizes->fb_width, sizes->fb_height); in intelfb_create()