Home
last modified time | relevance | path

Searched refs:mode_cmd (Results 1 – 25 of 63) sorted by relevance

123

/drivers/gpu/drm/
Ddrm_gem_framebuffer_helper.c56 const struct drm_mode_fb_cmd2 *mode_cmd, in drm_gem_fb_alloc() argument
67 drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd); in drm_gem_fb_alloc()
138 const struct drm_mode_fb_cmd2 *mode_cmd, in drm_gem_fb_create_with_funcs() argument
146 info = drm_get_format_info(dev, mode_cmd); in drm_gem_fb_create_with_funcs()
151 unsigned int width = mode_cmd->width / (i ? info->hsub : 1); in drm_gem_fb_create_with_funcs()
152 unsigned int height = mode_cmd->height / (i ? info->vsub : 1); in drm_gem_fb_create_with_funcs()
155 objs[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]); in drm_gem_fb_create_with_funcs()
162 min_size = (height - 1) * mode_cmd->pitches[i] in drm_gem_fb_create_with_funcs()
164 + mode_cmd->offsets[i]; in drm_gem_fb_create_with_funcs()
173 fb = drm_gem_fb_alloc(dev, mode_cmd, objs, i, funcs); in drm_gem_fb_create_with_funcs()
[all …]
Ddrm_modeset_helper.c76 const struct drm_mode_fb_cmd2 *mode_cmd) in drm_helper_mode_fill_fb_struct() argument
81 fb->format = drm_get_format_info(dev, mode_cmd); in drm_helper_mode_fill_fb_struct()
82 fb->width = mode_cmd->width; in drm_helper_mode_fill_fb_struct()
83 fb->height = mode_cmd->height; in drm_helper_mode_fill_fb_struct()
85 fb->pitches[i] = mode_cmd->pitches[i]; in drm_helper_mode_fill_fb_struct()
86 fb->offsets[i] = mode_cmd->offsets[i]; in drm_helper_mode_fill_fb_struct()
88 fb->modifier = mode_cmd->modifier[0]; in drm_helper_mode_fill_fb_struct()
89 fb->flags = mode_cmd->flags; in drm_helper_mode_fill_fb_struct()
/drivers/gpu/drm/msm/
Dmsm_fb.c33 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos);
139 struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd) in msm_framebuffer_create() argument
143 int ret, i, n = drm_format_num_planes(mode_cmd->pixel_format); in msm_framebuffer_create()
146 bos[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]); in msm_framebuffer_create()
153 fb = msm_framebuffer_init(dev, mode_cmd, bos); in msm_framebuffer_create()
168 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos) in msm_framebuffer_init() argument
179 dev, mode_cmd, mode_cmd->width, mode_cmd->height, in msm_framebuffer_init()
180 (char *)&mode_cmd->pixel_format); in msm_framebuffer_init()
182 n = drm_format_num_planes(mode_cmd->pixel_format); in msm_framebuffer_init()
183 hsub = drm_format_horz_chroma_subsampling(mode_cmd->pixel_format); in msm_framebuffer_init()
[all …]
/drivers/gpu/drm/rockchip/
Drockchip_drm_fb.c84 rockchip_fb_alloc(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd, in rockchip_fb_alloc() argument
95 drm_helper_mode_fill_fb_struct(dev, &rockchip_fb->fb, mode_cmd); in rockchip_fb_alloc()
114 const struct drm_mode_fb_cmd2 *mode_cmd) in rockchip_user_fb_create() argument
125 hsub = drm_format_horz_chroma_subsampling(mode_cmd->pixel_format); in rockchip_user_fb_create()
126 vsub = drm_format_vert_chroma_subsampling(mode_cmd->pixel_format); in rockchip_user_fb_create()
127 num_planes = min(drm_format_num_planes(mode_cmd->pixel_format), in rockchip_user_fb_create()
131 unsigned int width = mode_cmd->width / (i ? hsub : 1); in rockchip_user_fb_create()
132 unsigned int height = mode_cmd->height / (i ? vsub : 1); in rockchip_user_fb_create()
135 obj = drm_gem_object_lookup(file_priv, mode_cmd->handles[i]); in rockchip_user_fb_create()
142 min_size = (height - 1) * mode_cmd->pitches[i] + in rockchip_user_fb_create()
[all …]
Drockchip_drm_fbdev.c51 struct drm_mode_fb_cmd2 mode_cmd = { 0 }; in rockchip_drm_fbdev_create() local
63 mode_cmd.width = sizes->surface_width; in rockchip_drm_fbdev_create()
64 mode_cmd.height = sizes->surface_height; in rockchip_drm_fbdev_create()
65 mode_cmd.pitches[0] = sizes->surface_width * bytes_per_pixel; in rockchip_drm_fbdev_create()
66 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in rockchip_drm_fbdev_create()
69 size = mode_cmd.pitches[0] * mode_cmd.height; in rockchip_drm_fbdev_create()
84 helper->fb = rockchip_drm_framebuffer_init(dev, &mode_cmd, in rockchip_drm_fbdev_create()
/drivers/gpu/drm/qxl/
Dqxl_fb.c117 const struct drm_mode_fb_cmd2 *mode_cmd, in qxlfb_create_pinned_object() argument
125 int height = mode_cmd->height; in qxlfb_create_pinned_object()
127 size = mode_cmd->pitches[0] * height; in qxlfb_create_pinned_object()
144 qbo->surf.width = mode_cmd->width; in qxlfb_create_pinned_object()
145 qbo->surf.height = mode_cmd->height; in qxlfb_create_pinned_object()
146 qbo->surf.stride = mode_cmd->pitches[0]; in qxlfb_create_pinned_object()
223 struct drm_mode_fb_cmd2 mode_cmd; in qxlfb_create() local
232 mode_cmd.width = sizes->surface_width; in qxlfb_create()
233 mode_cmd.height = sizes->surface_height; in qxlfb_create()
235 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 1) / 8), 64); in qxlfb_create()
[all …]
/drivers/gpu/drm/cirrus/
Dcirrus_fbdev.c136 const struct drm_mode_fb_cmd2 *mode_cmd, in cirrusfb_create_object() argument
146 bpp = drm_format_plane_cpp(mode_cmd->pixel_format, 0) * 8; in cirrusfb_create_object()
148 if (!cirrus_check_framebuffer(cdev, mode_cmd->width, mode_cmd->height, in cirrusfb_create_object()
149 bpp, mode_cmd->pitches[0])) in cirrusfb_create_object()
152 size = mode_cmd->pitches[0] * mode_cmd->height; in cirrusfb_create_object()
169 struct drm_mode_fb_cmd2 mode_cmd; in cirrusfb_create() local
175 mode_cmd.width = sizes->surface_width; in cirrusfb_create()
176 mode_cmd.height = sizes->surface_height; in cirrusfb_create()
177 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in cirrusfb_create()
178 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in cirrusfb_create()
[all …]
Dcirrus_main.c32 const struct drm_mode_fb_cmd2 *mode_cmd, in cirrus_framebuffer_init() argument
37 drm_helper_mode_fill_fb_struct(dev, &gfb->base, mode_cmd); in cirrus_framebuffer_init()
50 const struct drm_mode_fb_cmd2 *mode_cmd) in cirrus_user_framebuffer_create() argument
58 bpp = drm_format_plane_cpp(mode_cmd->pixel_format, 0) * 8; in cirrus_user_framebuffer_create()
60 if (!cirrus_check_framebuffer(cdev, mode_cmd->width, mode_cmd->height, in cirrus_user_framebuffer_create()
61 bpp, mode_cmd->pitches[0])) in cirrus_user_framebuffer_create()
64 obj = drm_gem_object_lookup(filp, mode_cmd->handles[0]); in cirrus_user_framebuffer_create()
74 ret = cirrus_framebuffer_init(dev, cirrus_fb, mode_cmd, obj); in cirrus_user_framebuffer_create()
/drivers/gpu/drm/bochs/
Dbochs_fbdev.c33 const struct drm_mode_fb_cmd2 *mode_cmd, in bochsfb_create_object() argument
41 size = mode_cmd->pitches[0] * mode_cmd->height; in bochsfb_create_object()
57 struct drm_mode_fb_cmd2 mode_cmd; in bochsfb_create() local
65 mode_cmd.width = sizes->surface_width; in bochsfb_create()
66 mode_cmd.height = sizes->surface_height; in bochsfb_create()
67 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in bochsfb_create()
68 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in bochsfb_create()
70 size = mode_cmd.pitches[0] * mode_cmd.height; in bochsfb_create()
73 ret = bochsfb_create_object(bochs, &mode_cmd, &gobj); in bochsfb_create()
109 ret = bochs_framebuffer_init(bochs->dev, &bochs->fb.gfb, &mode_cmd, gobj); in bochsfb_create()
Dbochs_mm.c481 const struct drm_mode_fb_cmd2 *mode_cmd, in bochs_framebuffer_init() argument
486 drm_helper_mode_fill_fb_struct(dev, &gfb->base, mode_cmd); in bochs_framebuffer_init()
499 const struct drm_mode_fb_cmd2 *mode_cmd) in bochs_user_framebuffer_create() argument
506 mode_cmd->width, mode_cmd->height, in bochs_user_framebuffer_create()
507 (mode_cmd->pixel_format) & 0xff, in bochs_user_framebuffer_create()
508 (mode_cmd->pixel_format >> 8) & 0xff, in bochs_user_framebuffer_create()
509 (mode_cmd->pixel_format >> 16) & 0xff, in bochs_user_framebuffer_create()
510 (mode_cmd->pixel_format >> 24) & 0xff); in bochs_user_framebuffer_create()
512 if (mode_cmd->pixel_format != DRM_FORMAT_XRGB8888) in bochs_user_framebuffer_create()
515 obj = drm_gem_object_lookup(filp, mode_cmd->handles[0]); in bochs_user_framebuffer_create()
[all …]
/drivers/gpu/drm/exynos/
Dexynos_drm_fb.c107 const struct drm_mode_fb_cmd2 *mode_cmd, in exynos_drm_framebuffer_init() argument
126 + mode_cmd->offsets[i]; in exynos_drm_framebuffer_init()
129 drm_helper_mode_fill_fb_struct(dev, &exynos_fb->fb, mode_cmd); in exynos_drm_framebuffer_init()
146 const struct drm_mode_fb_cmd2 *mode_cmd) in exynos_user_fb_create() argument
148 const struct drm_format_info *info = drm_get_format_info(dev, mode_cmd); in exynos_user_fb_create()
156 unsigned int height = (i == 0) ? mode_cmd->height : in exynos_user_fb_create()
157 DIV_ROUND_UP(mode_cmd->height, info->vsub); in exynos_user_fb_create()
158 unsigned long size = height * mode_cmd->pitches[i] + in exynos_user_fb_create()
159 mode_cmd->offsets[i]; in exynos_user_fb_create()
161 obj = drm_gem_object_lookup(file_priv, mode_cmd->handles[i]); in exynos_user_fb_create()
[all …]
Dexynos_drm_fbdev.c123 struct drm_mode_fb_cmd2 mode_cmd = { 0 }; in exynos_drm_fbdev_create() local
131 mode_cmd.width = sizes->surface_width; in exynos_drm_fbdev_create()
132 mode_cmd.height = sizes->surface_height; in exynos_drm_fbdev_create()
133 mode_cmd.pitches[0] = sizes->surface_width * (sizes->surface_bpp >> 3); in exynos_drm_fbdev_create()
134 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in exynos_drm_fbdev_create()
137 size = mode_cmd.pitches[0] * mode_cmd.height; in exynos_drm_fbdev_create()
157 exynos_drm_framebuffer_init(dev, &mode_cmd, &exynos_gem, 1); in exynos_drm_fbdev_create()
/drivers/gpu/drm/shmobile/
Dshmob_drm_kms.c107 const struct drm_mode_fb_cmd2 *mode_cmd) in shmob_drm_fb_create() argument
111 format = shmob_drm_format_info(mode_cmd->pixel_format); in shmob_drm_fb_create()
114 mode_cmd->pixel_format); in shmob_drm_fb_create()
118 if (mode_cmd->pitches[0] & 7 || mode_cmd->pitches[0] >= 65536) { in shmob_drm_fb_create()
120 mode_cmd->pitches[0]); in shmob_drm_fb_create()
127 if (mode_cmd->pitches[1] != mode_cmd->pitches[0] * chroma_cpp) { in shmob_drm_fb_create()
134 return drm_fb_cma_create(dev, file_priv, mode_cmd); in shmob_drm_fb_create()
/drivers/gpu/drm/omapdrm/
Domap_fb.c360 struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd) in omap_framebuffer_create() argument
362 unsigned int num_planes = drm_format_num_planes(mode_cmd->pixel_format); in omap_framebuffer_create()
368 bos[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]); in omap_framebuffer_create()
375 fb = omap_framebuffer_init(dev, mode_cmd, bos); in omap_framebuffer_create()
389 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos) in omap_framebuffer_init() argument
394 unsigned int pitch = mode_cmd->pitches[0]; in omap_framebuffer_init()
398 dev, mode_cmd, mode_cmd->width, mode_cmd->height, in omap_framebuffer_init()
399 (char *)&mode_cmd->pixel_format); in omap_framebuffer_init()
401 format = drm_format_info(mode_cmd->pixel_format); in omap_framebuffer_init()
404 if (formats[i] == mode_cmd->pixel_format) in omap_framebuffer_init()
[all …]
Domap_fbdev.c108 struct drm_mode_fb_cmd2 mode_cmd = {0}; in omap_fbdev_create() local
119 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in omap_fbdev_create()
122 mode_cmd.width = sizes->surface_width; in omap_fbdev_create()
123 mode_cmd.height = sizes->surface_height; in omap_fbdev_create()
125 mode_cmd.pitches[0] = in omap_fbdev_create()
126 DIV_ROUND_UP(mode_cmd.width * sizes->surface_bpp, 8); in omap_fbdev_create()
131 mode_cmd.pitches[0] = PAGE_ALIGN(mode_cmd.pitches[0]); in omap_fbdev_create()
136 .bytes = PAGE_ALIGN(mode_cmd.pitches[0] * mode_cmd.height), in omap_fbdev_create()
146 fb = omap_framebuffer_init(dev, &mode_cmd, &fbdev->bo); in omap_fbdev_create()
/drivers/gpu/drm/hisilicon/hibmc/
Dhibmc_drm_fbdev.c27 const struct drm_mode_fb_cmd2 *mode_cmd, in hibmcfb_create_object() argument
35 size = mode_cmd->pitches[0] * mode_cmd->height; in hibmcfb_create_object()
63 struct drm_mode_fb_cmd2 mode_cmd; in hibmc_drm_fb_create() local
77 mode_cmd.width = sizes->surface_width; in hibmc_drm_fb_create()
78 mode_cmd.height = sizes->surface_height; in hibmc_drm_fb_create()
79 mode_cmd.pitches[0] = mode_cmd.width * bytes_per_pixel; in hibmc_drm_fb_create()
80 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in hibmc_drm_fb_create()
83 size = PAGE_ALIGN(mode_cmd.pitches[0] * mode_cmd.height); in hibmc_drm_fb_create()
85 ret = hibmcfb_create_object(priv, &mode_cmd, &gobj); in hibmc_drm_fb_create()
121 hi_fbdev->fb = hibmc_framebuffer_init(priv->dev, &mode_cmd, gobj); in hibmc_drm_fb_create()
/drivers/staging/vboxvideo/
Dvbox_fb.c70 struct DRM_MODE_FB_CMD *mode_cmd, in vboxfb_create_object() argument
76 u32 pitch = mode_cmd->pitches[0]; in vboxfb_create_object()
79 size = pitch * mode_cmd->height; in vboxfb_create_object()
95 struct DRM_MODE_FB_CMD mode_cmd; in vboxfb_create() local
103 mode_cmd.width = sizes->surface_width; in vboxfb_create()
104 mode_cmd.height = sizes->surface_height; in vboxfb_create()
105 pitch = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in vboxfb_create()
106 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in vboxfb_create()
108 mode_cmd.pitches[0] = pitch; in vboxfb_create()
110 size = pitch * mode_cmd.height; in vboxfb_create()
[all …]
/drivers/gpu/drm/mgag200/
Dmgag200_fb.c139 const struct drm_mode_fb_cmd2 *mode_cmd, in mgag200fb_create_object() argument
147 size = mode_cmd->pitches[0] * mode_cmd->height; in mgag200fb_create_object()
162 struct drm_mode_fb_cmd2 mode_cmd; in mgag200fb_create() local
171 mode_cmd.width = sizes->surface_width; in mgag200fb_create()
172 mode_cmd.height = sizes->surface_height; in mgag200fb_create()
173 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in mgag200fb_create()
175 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in mgag200fb_create()
177 size = mode_cmd.pitches[0] * mode_cmd.height; in mgag200fb_create()
179 ret = mgag200fb_create_object(mfbdev, &mode_cmd, &gobj); in mgag200fb_create()
199 ret = mgag200_framebuffer_init(dev, &mfbdev->mfb, &mode_cmd, gobj); in mgag200fb_create()
/drivers/gpu/drm/ast/
Dast_fb.c165 const struct drm_mode_fb_cmd2 *mode_cmd, in astfb_create_object() argument
173 size = mode_cmd->pitches[0] * mode_cmd->height; in astfb_create_object()
188 struct drm_mode_fb_cmd2 mode_cmd; in astfb_create() local
195 mode_cmd.width = sizes->surface_width; in astfb_create()
196 mode_cmd.height = sizes->surface_height; in astfb_create()
197 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7)/8); in astfb_create()
199 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in astfb_create()
202 size = mode_cmd.pitches[0] * mode_cmd.height; in astfb_create()
204 ret = astfb_create_object(afbdev, &mode_cmd, &gobj); in astfb_create()
222 ret = ast_framebuffer_init(dev, &afbdev->afb, &mode_cmd, gobj); in astfb_create()
/drivers/gpu/drm/radeon/
Dradeon_fb.c125 struct drm_mode_fb_cmd2 *mode_cmd, in radeonfb_create_pinned_object() argument
135 int height = mode_cmd->height; in radeonfb_create_pinned_object()
138 cpp = drm_format_plane_cpp(mode_cmd->pixel_format, 0); in radeonfb_create_pinned_object()
141 mode_cmd->pitches[0] = radeon_align_pitch(rdev, mode_cmd->width, cpp, in radeonfb_create_pinned_object()
145 height = ALIGN(mode_cmd->height, 8); in radeonfb_create_pinned_object()
146 size = mode_cmd->pitches[0] * height; in radeonfb_create_pinned_object()
175 mode_cmd->pitches[0]); in radeonfb_create_pinned_object()
216 struct drm_mode_fb_cmd2 mode_cmd; in radeonfb_create() local
222 mode_cmd.width = sizes->surface_width; in radeonfb_create()
223 mode_cmd.height = sizes->surface_height; in radeonfb_create()
[all …]
/drivers/gpu/drm/udl/
Dudl_fb.c342 const struct drm_mode_fb_cmd2 *mode_cmd, in udl_framebuffer_init() argument
348 drm_helper_mode_fill_fb_struct(dev, &ufb->base, mode_cmd); in udl_framebuffer_init()
362 struct drm_mode_fb_cmd2 mode_cmd; in udlfb_create() local
370 mode_cmd.width = sizes->surface_width; in udlfb_create()
371 mode_cmd.height = sizes->surface_height; in udlfb_create()
372 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in udlfb_create()
374 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in udlfb_create()
377 size = mode_cmd.pitches[0] * mode_cmd.height; in udlfb_create()
397 ret = udl_framebuffer_init(dev, &ufbdev->ufb, &mode_cmd, obj); in udlfb_create()
506 const struct drm_mode_fb_cmd2 *mode_cmd) in udl_fb_user_fb_create() argument
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_fb.c125 struct drm_mode_fb_cmd2 *mode_cmd, in amdgpufb_create_pinned_object() argument
135 int height = mode_cmd->height; in amdgpufb_create_pinned_object()
138 cpp = drm_format_plane_cpp(mode_cmd->pixel_format, 0); in amdgpufb_create_pinned_object()
141 mode_cmd->pitches[0] = amdgpu_align_pitch(adev, mode_cmd->width, cpp, in amdgpufb_create_pinned_object()
144 height = ALIGN(mode_cmd->height, 8); in amdgpufb_create_pinned_object()
145 size = mode_cmd->pitches[0] * height; in amdgpufb_create_pinned_object()
200 struct drm_mode_fb_cmd2 mode_cmd; in amdgpufb_create() local
206 mode_cmd.width = sizes->surface_width; in amdgpufb_create()
207 mode_cmd.height = sizes->surface_height; in amdgpufb_create()
212 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in amdgpufb_create()
[all …]
/drivers/gpu/drm/gma500/
Dframebuffer.c231 const struct drm_mode_fb_cmd2 *mode_cmd, in psb_framebuffer_init() argument
241 info = drm_format_info(mode_cmd->pixel_format); in psb_framebuffer_init()
245 if (mode_cmd->pitches[0] & 63) in psb_framebuffer_init()
248 drm_helper_mode_fill_fb_struct(dev, &fb->base, mode_cmd); in psb_framebuffer_init()
272 const struct drm_mode_fb_cmd2 *mode_cmd, in psb_framebuffer_create() argument
282 ret = psb_framebuffer_init(dev, fb, mode_cmd, gt); in psb_framebuffer_create()
329 struct drm_mode_fb_cmd2 mode_cmd; in psbfb_create() local
337 mode_cmd.width = sizes->surface_width; in psbfb_create()
338 mode_cmd.height = sizes->surface_height; in psbfb_create()
352 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 7) / 8), 4096 >> pitch_lines); in psbfb_create()
[all …]
/drivers/gpu/drm/vc4/
Dvc4_kms.c159 const struct drm_mode_fb_cmd2 *mode_cmd) in vc4_fb_create() argument
166 if (!(mode_cmd->flags & DRM_MODE_FB_MODIFIERS)) { in vc4_fb_create()
171 mode_cmd->handles[0]); in vc4_fb_create()
174 mode_cmd->handles[0]); in vc4_fb_create()
179 mode_cmd_local = *mode_cmd; in vc4_fb_create()
190 mode_cmd = &mode_cmd_local; in vc4_fb_create()
193 return drm_gem_fb_create(dev, file_priv, mode_cmd); in vc4_fb_create()
/drivers/gpu/drm/virtio/
Dvirtgpu_fb.c224 struct drm_mode_fb_cmd2 mode_cmd = {}; in virtio_gpufb_create() local
229 mode_cmd.width = sizes->surface_width; in virtio_gpufb_create()
230 mode_cmd.height = sizes->surface_height; in virtio_gpufb_create()
231 mode_cmd.pitches[0] = mode_cmd.width * 4; in virtio_gpufb_create()
232 mode_cmd.pixel_format = drm_mode_legacy_fb_format(32, 24); in virtio_gpufb_create()
234 format = virtio_gpu_translate_format(mode_cmd.pixel_format); in virtio_gpufb_create()
238 size = mode_cmd.pitches[0] * mode_cmd.height; in virtio_gpufb_create()
245 mode_cmd.width, mode_cmd.height); in virtio_gpufb_create()
267 &mode_cmd, &obj->gem_base); in virtio_gpufb_create()

123