Lines Matching refs:mode_cmd
6713 struct drm_mode_fb_cmd2 *mode_cmd,
6725 ret = intel_framebuffer_init(dev, intel_fb, mode_cmd, obj);
6755 struct drm_mode_fb_cmd2 mode_cmd;
6762 (void) memset(&mode_cmd, 0, sizeof(struct drm_mode_fb_cmd2));
6764 mode_cmd.width = mode->hdisplay;
6765 mode_cmd.height = mode->vdisplay;
6766 mode_cmd.pitches[0] = intel_framebuffer_pitch_for_width(mode_cmd.width,
6768 mode_cmd.pixel_format = drm_mode_legacy_fb_format(bpp, depth);
6770 return intel_framebuffer_create(dev, &mode_cmd, obj);
9187 struct drm_mode_fb_cmd2 *mode_cmd,
9198 if (mode_cmd->pitches[0] & 63) {
9200 mode_cmd->pitches[0]);
9220 if (mode_cmd->pitches[0] > pitch_limit) {
9223 mode_cmd->pitches[0], pitch_limit);
9228 mode_cmd->pitches[0] != obj->stride) {
9230 mode_cmd->pitches[0], obj->stride);
9235 switch (mode_cmd->pixel_format) {
9245 drm_get_format_name(mode_cmd->pixel_format));
9257 drm_get_format_name(mode_cmd->pixel_format));
9267 drm_get_format_name(mode_cmd->pixel_format));
9273 drm_get_format_name(mode_cmd->pixel_format));
9278 if (mode_cmd->offsets[0] != 0)
9281 (void) drm_helper_mode_fill_fb_struct(&intel_fb->base, mode_cmd);
9296 struct drm_mode_fb_cmd2 *mode_cmd)
9301 mode_cmd->handles[0]));
9305 return intel_framebuffer_create(dev, mode_cmd, obj);