Lines Matching refs:mode_cmd
286 struct drm_mode_fb_cmd2 *mode_cmd, in qxlfb_create_pinned_object() argument
294 int height = mode_cmd->height; in qxlfb_create_pinned_object()
298 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &bpp, &depth); in qxlfb_create_pinned_object()
300 size = mode_cmd->pitches[0] * height; in qxlfb_create_pinned_object()
317 qbo->surf.width = mode_cmd->width; in qxlfb_create_pinned_object()
318 qbo->surf.height = mode_cmd->height; in qxlfb_create_pinned_object()
319 qbo->surf.stride = mode_cmd->pitches[0]; in qxlfb_create_pinned_object()
348 struct drm_mode_fb_cmd2 mode_cmd; in qxlfb_create() local
357 mode_cmd.width = sizes->surface_width; in qxlfb_create()
358 mode_cmd.height = sizes->surface_height; in qxlfb_create()
360 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 1) / 8), 64); in qxlfb_create()
361 mode_cmd.pixel_format = drm_mode_legacy_fb_format(bpp, depth); in qxlfb_create()
363 ret = qxlfb_create_pinned_object(qfbdev, &mode_cmd, &gobj); in qxlfb_create()
365 QXL_INFO(qdev, "%s: %dx%d %d\n", __func__, mode_cmd.width, in qxlfb_create()
366 mode_cmd.height, mode_cmd.pitches[0]); in qxlfb_create()
368 shadow = vmalloc(mode_cmd.pitches[0] * mode_cmd.height); in qxlfb_create()
377 size = mode_cmd.pitches[0] * mode_cmd.height; in qxlfb_create()
387 qxl_framebuffer_init(qdev->ddev, &qfbdev->qfb, &mode_cmd, gobj); in qxlfb_create()