Lines Matching refs:mode_cmd
166 struct drm_mode_fb_cmd2 *mode_cmd, in astfb_create_object() argument
175 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); in astfb_create_object()
177 size = mode_cmd->pitches[0] * mode_cmd->height; in astfb_create_object()
192 struct drm_mode_fb_cmd2 mode_cmd; in astfb_create() local
200 mode_cmd.width = sizes->surface_width; in astfb_create()
201 mode_cmd.height = sizes->surface_height; in astfb_create()
202 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7)/8); in astfb_create()
204 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in astfb_create()
207 size = mode_cmd.pitches[0] * mode_cmd.height; in astfb_create()
209 ret = astfb_create_object(afbdev, &mode_cmd, &gobj); in astfb_create()
227 ret = ast_framebuffer_init(dev, &afbdev->afb, &mode_cmd, gobj); in astfb_create()