Lines Matching refs:mode_cmd
106 struct drm_mode_fb_cmd2 *mode_cmd, in radeonfb_create_pinned_object() argument
116 int height = mode_cmd->height; in radeonfb_create_pinned_object()
119 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); in radeonfb_create_pinned_object()
122 mode_cmd->pitches[0] = radeon_align_pitch(rdev, mode_cmd->width, bpp, in radeonfb_create_pinned_object()
126 height = ALIGN(mode_cmd->height, 8); in radeonfb_create_pinned_object()
127 size = mode_cmd->pitches[0] * height; in radeonfb_create_pinned_object()
158 mode_cmd->pitches[0]); in radeonfb_create_pinned_object()
197 struct drm_mode_fb_cmd2 mode_cmd; in radeonfb_create() local
204 mode_cmd.width = sizes->surface_width; in radeonfb_create()
205 mode_cmd.height = sizes->surface_height; in radeonfb_create()
211 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in radeonfb_create()
214 ret = radeonfb_create_pinned_object(rfbdev, &mode_cmd, &gobj); in radeonfb_create()
231 ret = radeon_framebuffer_init(rdev->ddev, &rfbdev->rfb, &mode_cmd, gobj); in radeonfb_create()