Lines Matching refs:sizes
118 struct drm_fb_helper_surface_size *sizes) in intelfb_alloc() argument
130 if (sizes->surface_bpp == 24) in intelfb_alloc()
131 sizes->surface_bpp = 32; in intelfb_alloc()
133 mode_cmd.width = sizes->surface_width; in intelfb_alloc()
134 mode_cmd.height = sizes->surface_height; in intelfb_alloc()
137 DIV_ROUND_UP(sizes->surface_bpp, 8), 64); in intelfb_alloc()
138 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in intelfb_alloc()
139 sizes->surface_depth); in intelfb_alloc()
183 struct drm_fb_helper_surface_size *sizes) in intelfb_create() argument
199 (sizes->fb_width > intel_fb->base.width || in intelfb_create()
200 sizes->fb_height > intel_fb->base.height)) { in intelfb_create()
204 sizes->fb_width, sizes->fb_height); in intelfb_create()
210 ret = intelfb_alloc(helper, sizes); in intelfb_create()
217 sizes->fb_width = intel_fb->base.width; in intelfb_create()
218 sizes->fb_height = intel_fb->base.height; in intelfb_create()
261 drm_fb_helper_fill_var(info, &ifbdev->helper, sizes->fb_width, sizes->fb_height); in intelfb_create()