Lines Matching defs:mode_cmd
203 * @mode_cmd: mode description
211 const struct drm_mode_fb_cmd2 *mode_cmd,
221 info = drm_get_format_info(dev, mode_cmd);
225 if (mode_cmd->pitches[0] & 63)
228 drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd);
241 * @mode_cmd: the description of the requested mode
252 const struct drm_mode_fb_cmd2 *mode_cmd,
262 ret = psb_framebuffer_init(dev, fb, mode_cmd, obj);
308 struct drm_mode_fb_cmd2 mode_cmd;
316 mode_cmd.width = sizes->surface_width;
317 mode_cmd.height = sizes->surface_height;
331 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 7) / 8), 4096 >> pitch_lines);
333 size = mode_cmd.pitches[0] * mode_cmd.height;
359 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 7) / 8), 64);
361 size = mode_cmd.pitches[0] * mode_cmd.height;
378 mode_cmd.pixel_format = drm_mode_legacy_fb_format(bpp, depth);
380 fb = psb_framebuffer_create(dev, &mode_cmd, &backing->gem);