Lines Matching refs:mode_cmd
245 struct drm_mode_fb_cmd2 *mode_cmd, in psb_framebuffer_init() argument
251 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); in psb_framebuffer_init()
253 if (mode_cmd->pitches[0] & 63) in psb_framebuffer_init()
269 drm_helper_mode_fill_fb_struct(&fb->base, mode_cmd); in psb_framebuffer_init()
288 struct drm_mode_fb_cmd2 *mode_cmd, in psb_framebuffer_create() argument
298 ret = psb_framebuffer_init(dev, fb, mode_cmd, gt); in psb_framebuffer_create()
348 struct drm_mode_fb_cmd2 mode_cmd; in psbfb_create() local
357 mode_cmd.width = sizes->surface_width; in psbfb_create()
358 mode_cmd.height = sizes->surface_height; in psbfb_create()
372 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 7) / 8), 4096 >> pitch_lines); in psbfb_create()
374 size = mode_cmd.pitches[0] * mode_cmd.height; in psbfb_create()
400 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 7) / 8), 64); in psbfb_create()
402 size = mode_cmd.pitches[0] * mode_cmd.height; in psbfb_create()
420 mode_cmd.pixel_format = drm_mode_legacy_fb_format(bpp, depth); in psbfb_create()
422 ret = psb_framebuffer_init(dev, psbfb, &mode_cmd, backing); in psbfb_create()