Lines Matching refs:sizes
114 struct drm_fb_helper_surface_size *sizes) in intelfb_alloc() argument
125 if (sizes->surface_bpp == 24) in intelfb_alloc()
126 sizes->surface_bpp = 32; in intelfb_alloc()
128 mode_cmd.width = sizes->surface_width; in intelfb_alloc()
129 mode_cmd.height = sizes->surface_height; in intelfb_alloc()
132 DIV_ROUND_UP(sizes->surface_bpp, 8), 64); in intelfb_alloc()
133 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in intelfb_alloc()
134 sizes->surface_depth); in intelfb_alloc()
173 struct drm_fb_helper_surface_size *sizes) in intelfb_create() argument
189 (sizes->fb_width > intel_fb->base.width || in intelfb_create()
190 sizes->fb_height > intel_fb->base.height)) { in intelfb_create()
194 sizes->fb_width, sizes->fb_height); in intelfb_create()
200 ret = intelfb_alloc(helper, sizes); in intelfb_create()
207 sizes->fb_width = intel_fb->base.width; in intelfb_create()
208 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()