Lines Matching refs:mode_cmd
91 fb_alloc(struct drm_device *drm, struct drm_mode_fb_cmd2 *mode_cmd,
103 drm_helper_mode_fill_fb_struct(&fb->drm_fb, mode_cmd);
126 struct drm_mode_fb_cmd2 mode_cmd;
141 /* Create mode_cmd */
142 memset(&mode_cmd, 0, sizeof(mode_cmd));
143 mode_cmd.width = sizes->surface_width;
144 mode_cmd.height = sizes->surface_height;
145 mode_cmd.pitches[0] = roundup(sizes->surface_width * bpp,
147 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp,
149 size = mode_cmd.pitches[0] * mode_cmd.height;
165 rv = fb_alloc(drm_dev, &mode_cmd, &bo, 1, &fb);