Searched refs:mode_cmd (Results 1 - 25 of 56) sorted by relevance

123

/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_fb_bo.c21 struct drm_mode_fb_cmd2 *mode_cmd)
31 if (mode_cmd->flags & DRM_MODE_FB_MODIFIERS) {
37 tiling != intel_fb_modifier_to_tiling(mode_cmd->modifier[0])) {
44 mode_cmd->modifier[0] = I915_FORMAT_MOD_X_TILED;
57 tiling != intel_fb_modifier_to_tiling(mode_cmd->modifier[0])) {
67 if (tiling != I915_TILING_NONE && mode_cmd->pitches[0] != stride) {
70 mode_cmd->pitches[0], stride);
80 const struct drm_mode_fb_cmd2 *mode_cmd)
84 obj = i915_gem_object_lookup(filp, mode_cmd->handles[0]);
19 intel_fb_bo_framebuffer_init(struct intel_framebuffer *intel_fb, struct drm_i915_gem_object *obj, struct drm_mode_fb_cmd2 *mode_cmd) argument
78 intel_fb_bo_lookup_valid_bo(struct drm_i915_private *i915, struct drm_file *filp, const struct drm_mode_fb_cmd2 *mode_cmd) argument
H A Dintel_fbdev_fb.c20 struct drm_mode_fb_cmd2 mode_cmd = {}; local
28 mode_cmd.width = sizes->surface_width;
29 mode_cmd.height = sizes->surface_height;
31 mode_cmd.pitches[0] = ALIGN(mode_cmd.width *
33 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp,
36 size = mode_cmd.pitches[0] * mode_cmd.height;
63 fb = intel_framebuffer_create(obj, &mode_cmd);
H A Dintel_fb_bo.h19 struct drm_mode_fb_cmd2 *mode_cmd);
/linux-master/drivers/gpu/drm/xe/display/
H A Dintel_fb_bo.h18 struct drm_mode_fb_cmd2 *mode_cmd);
22 const struct drm_mode_fb_cmd2 *mode_cmd);
H A Dintel_fbdev_fb.c22 struct drm_mode_fb_cmd2 mode_cmd = {}; local
30 mode_cmd.width = sizes->surface_width;
31 mode_cmd.height = sizes->surface_height;
33 mode_cmd.pitches[0] = ALIGN(mode_cmd.width *
35 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp,
38 size = mode_cmd.pitches[0] * mode_cmd.height;
66 fb = intel_framebuffer_create(obj, &mode_cmd);
H A Dintel_fb_bo.c25 struct drm_mode_fb_cmd2 *mode_cmd)
60 const struct drm_mode_fb_cmd2 *mode_cmd)
63 struct drm_gem_object *gem = drm_gem_object_lookup(filp, mode_cmd->handles[0]);
23 intel_fb_bo_framebuffer_init(struct intel_framebuffer *intel_fb, struct xe_bo *bo, struct drm_mode_fb_cmd2 *mode_cmd) argument
58 intel_fb_bo_lookup_valid_bo(struct drm_i915_private *i915, struct drm_file *filp, const struct drm_mode_fb_cmd2 *mode_cmd) argument
H A Dxe_plane_initial.c139 struct drm_mode_fb_cmd2 mode_cmd = { 0 }; local
156 mode_cmd.pixel_format = fb->format->format;
157 mode_cmd.width = fb->width;
158 mode_cmd.height = fb->height;
159 mode_cmd.pitches[0] = fb->pitches[0];
160 mode_cmd.modifier[0] = fb->modifier;
161 mode_cmd.flags = DRM_MODE_FB_MODIFIERS;
168 bo, &mode_cmd)) {
/linux-master/drivers/gpu/drm/exynos/
H A Dexynos_drm_fb.h17 const struct drm_mode_fb_cmd2 *mode_cmd,
H A Dexynos_drm_fb.c59 const struct drm_mode_fb_cmd2 *mode_cmd,
79 drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd);
97 const struct drm_mode_fb_cmd2 *mode_cmd)
99 const struct drm_format_info *info = drm_get_format_info(dev, mode_cmd);
106 unsigned int height = (i == 0) ? mode_cmd->height :
107 DIV_ROUND_UP(mode_cmd->height, info->vsub);
108 unsigned long size = height * mode_cmd->pitches[i] +
109 mode_cmd->offsets[i];
112 mode_cmd->handles[i]);
127 fb = exynos_drm_framebuffer_init(dev, mode_cmd, exynos_ge
58 exynos_drm_framebuffer_init(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd, struct exynos_drm_gem **exynos_gem, int count) argument
96 exynos_user_fb_create(struct drm_device *dev, struct drm_file *file_priv, const struct drm_mode_fb_cmd2 *mode_cmd) argument
[all...]
H A Dexynos_drm_fbdev.c95 struct drm_mode_fb_cmd2 mode_cmd = { 0 }; local
104 mode_cmd.width = sizes->surface_width;
105 mode_cmd.height = sizes->surface_height;
106 mode_cmd.pitches[0] = sizes->surface_width * (sizes->surface_bpp >> 3);
107 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp,
110 size = mode_cmd.pitches[0] * mode_cmd.height;
117 exynos_drm_framebuffer_init(dev, &mode_cmd, &exynos_gem, 1);
/linux-master/include/drm/
H A Ddrm_gem_framebuffer_helper.h27 const struct drm_mode_fb_cmd2 *mode_cmd,
31 const struct drm_mode_fb_cmd2 *mode_cmd,
35 const struct drm_mode_fb_cmd2 *mode_cmd);
38 const struct drm_mode_fb_cmd2 *mode_cmd);
50 const struct drm_mode_fb_cmd2 *mode_cmd,
H A Ddrm_modeset_helper.h36 const struct drm_mode_fb_cmd2 *mode_cmd);
/linux-master/drivers/gpu/drm/
H A Ddrm_gem_framebuffer_helper.c70 const struct drm_mode_fb_cmd2 *mode_cmd,
77 drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd);
138 * @mode_cmd: Metadata from the userspace framebuffer creation request
154 const struct drm_mode_fb_cmd2 *mode_cmd,
162 info = drm_get_format_info(dev, mode_cmd);
169 !drm_any_plane_has_format(dev, mode_cmd->pixel_format,
170 mode_cmd->modifier[0])) {
172 &mode_cmd->pixel_format, mode_cmd->modifier[0]);
177 unsigned int width = mode_cmd
68 drm_gem_fb_init(struct drm_device *dev, struct drm_framebuffer *fb, const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **obj, unsigned int num_planes, const struct drm_framebuffer_funcs *funcs) argument
151 drm_gem_fb_init_with_funcs(struct drm_device *dev, struct drm_framebuffer *fb, struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd, const struct drm_framebuffer_funcs *funcs) argument
234 drm_gem_fb_create_with_funcs(struct drm_device *dev, struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd, const struct drm_framebuffer_funcs *funcs) argument
283 drm_gem_fb_create(struct drm_device *dev, struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd) argument
321 drm_gem_fb_create_with_dirty(struct drm_device *dev, struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd) argument
503 drm_gem_afbc_get_bpp(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd) argument
522 drm_gem_afbc_min_size(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_afbc_framebuffer *afbc_fb) argument
597 drm_gem_fb_afbc_init(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_afbc_framebuffer *afbc_fb) argument
[all...]
H A Ddrm_modeset_helper.c75 * @mode_cmd: metadata from the userspace fb creation request
82 const struct drm_mode_fb_cmd2 *mode_cmd)
87 fb->format = drm_get_format_info(dev, mode_cmd);
88 fb->width = mode_cmd->width;
89 fb->height = mode_cmd->height;
91 fb->pitches[i] = mode_cmd->pitches[i];
92 fb->offsets[i] = mode_cmd->offsets[i];
94 fb->modifier = mode_cmd->modifier[0];
95 fb->flags = mode_cmd->flags;
80 drm_helper_mode_fill_fb_struct(struct drm_device *dev, struct drm_framebuffer *fb, const struct drm_mode_fb_cmd2 *mode_cmd) argument
/linux-master/drivers/gpu/drm/omapdrm/
H A Domap_fb.h23 struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd);
25 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos);
H A Domap_fb.c338 struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd)
341 mode_cmd);
348 bos[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]);
355 fb = omap_framebuffer_init(dev, mode_cmd, bos);
369 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos)
374 unsigned int pitch = mode_cmd->pitches[0];
377 DBG("create framebuffer: dev=%p, mode_cmd=%p (%dx%d@%4.4s)",
378 dev, mode_cmd, mode_cmd->width, mode_cmd
337 omap_framebuffer_create(struct drm_device *dev, struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd) argument
368 omap_framebuffer_init(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos) argument
[all...]
H A Domap_fbdev.c137 struct drm_mode_fb_cmd2 mode_cmd = {0}; local
149 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp,
152 mode_cmd.width = sizes->surface_width;
153 mode_cmd.height = sizes->surface_height;
155 mode_cmd.pitches[0] =
156 DIV_ROUND_UP(mode_cmd.width * sizes->surface_bpp, 8);
161 mode_cmd.pitches[0] = PAGE_ALIGN(mode_cmd.pitches[0]);
166 .bytes = PAGE_ALIGN(mode_cmd.pitches[0] * mode_cmd
[all...]
/linux-master/drivers/gpu/drm/msm/
H A Dmsm_fb.c33 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos);
137 struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd)
140 mode_cmd);
146 bos[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]);
153 fb = msm_framebuffer_init(dev, mode_cmd, bos);
168 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos)
171 mode_cmd);
179 drm_dbg_state(dev, "create framebuffer: mode_cmd=%p (%dx%d@%p4cc)\n",
180 mode_cmd, mode_cmd
136 msm_framebuffer_create(struct drm_device *dev, struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd) argument
167 msm_framebuffer_init(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos) argument
248 struct drm_mode_fb_cmd2 mode_cmd = { local
[all...]
/linux-master/drivers/gpu/drm/rockchip/
H A Drockchip_drm_fb.c33 const struct drm_mode_fb_cmd2 *mode_cmd)
39 info = drm_get_format_info(dev, mode_cmd);
47 ret = drm_gem_fb_init_with_funcs(dev, &afbc_fb->base, file, mode_cmd,
54 if (drm_is_afbc(mode_cmd->modifier[0])) {
57 ret = drm_gem_fb_afbc_init(dev, mode_cmd, afbc_fb);
32 rockchip_fb_create(struct drm_device *dev, struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd) argument
/linux-master/drivers/gpu/drm/renesas/shmobile/
H A Dshmob_drm_kms.c120 const struct drm_mode_fb_cmd2 *mode_cmd)
124 format = shmob_drm_format_info(mode_cmd->pixel_format);
127 &mode_cmd->pixel_format);
131 if (mode_cmd->pitches[0] & 7 || mode_cmd->pitches[0] >= 65536) {
133 mode_cmd->pitches[0]);
140 if (mode_cmd->pitches[1] != mode_cmd->pitches[0] * chroma_cpp) {
147 return drm_gem_fb_create(dev, file_priv, mode_cmd);
119 shmob_drm_fb_create(struct drm_device *dev, struct drm_file *file_priv, const struct drm_mode_fb_cmd2 *mode_cmd) argument
/linux-master/drivers/gpu/drm/radeon/
H A Dradeon_fbdev.c56 struct drm_mode_fb_cmd2 *mode_cmd,
67 int height = mode_cmd->height;
70 info = drm_get_format_info(rdev->ddev, mode_cmd);
74 mode_cmd->pitches[0] = radeon_align_pitch(rdev, mode_cmd->width, cpp,
78 height = ALIGN(mode_cmd->height, 8);
79 size = mode_cmd->pitches[0] * height;
109 mode_cmd->pitches[0]);
209 struct drm_mode_fb_cmd2 mode_cmd = { }; local
217 mode_cmd
55 radeon_fbdev_create_pinned_object(struct drm_fb_helper *fb_helper, struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **gobj_p) argument
[all...]
/linux-master/drivers/gpu/drm/gma500/
H A Dframebuffer.c24 * @mode_cmd: mode description
32 const struct drm_mode_fb_cmd2 *mode_cmd,
42 info = drm_get_format_info(dev, mode_cmd);
46 if (mode_cmd->pitches[0] & 63)
49 drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd);
62 * @mode_cmd: the description of the requested mode
71 const struct drm_mode_fb_cmd2 *mode_cmd,
81 ret = psb_framebuffer_init(dev, fb, mode_cmd, obj);
30 psb_framebuffer_init(struct drm_device *dev, struct drm_framebuffer *fb, const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object *obj) argument
70 psb_framebuffer_create(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object *obj) argument
H A Dfbdev.c158 struct drm_mode_fb_cmd2 mode_cmd = { }; local
189 mode_cmd.width = sizes->surface_width;
190 mode_cmd.height = sizes->surface_height;
191 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * DIV_ROUND_UP(bpp, 8), 64);
192 mode_cmd.pixel_format = drm_mode_legacy_fb_format(bpp, depth);
194 size = mode_cmd.pitches[0] * mode_cmd.height;
203 fb = psb_framebuffer_create(dev, &mode_cmd, obj);
/linux-master/drivers/gpu/drm/arm/display/komeda/
H A Dkomeda_framebuffer.c41 const struct drm_mode_fb_cmd2 *mode_cmd)
49 obj = drm_gem_object_lookup(file, mode_cmd->handles[0]);
113 const struct drm_mode_fb_cmd2 *mode_cmd)
125 obj = drm_gem_object_lookup(file, mode_cmd->handles[i]);
160 const struct drm_mode_fb_cmd2 *mode_cmd)
171 mode_cmd->pixel_format,
172 mode_cmd->modifier[0]);
175 mode_cmd->pixel_format);
180 drm_helper_mode_fill_fb_struct(dev, &kfb->base, mode_cmd);
183 ret = komeda_fb_afbc_size_check(kfb, file, mode_cmd);
40 komeda_fb_afbc_size_check(struct komeda_fb *kfb, struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd) argument
111 komeda_fb_none_afbc_size_check(struct komeda_dev *mdev, struct komeda_fb *kfb, struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd) argument
159 komeda_fb_create(struct drm_device *dev, struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd) argument
[all...]
/linux-master/drivers/gpu/drm/nouveau/
H A Dnouveau_display.c295 const struct drm_mode_fb_cmd2 *mode_cmd,
311 (mode_cmd->pixel_format == DRM_FORMAT_YUYV ||
312 mode_cmd->pixel_format == DRM_FORMAT_UYVY ||
313 mode_cmd->pixel_format == DRM_FORMAT_NV12 ||
314 mode_cmd->pixel_format == DRM_FORMAT_NV21) &&
315 (mode_cmd->pitches[0] & 0x3f || /* align 64 */
316 mode_cmd->pitches[0] >= 0x10000 || /* at most 64k pitch */
317 (mode_cmd->pitches[1] && /* pitches for planes must match */
318 mode_cmd->pitches[0] != mode_cmd
294 nouveau_framebuffer_new(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object *gem, struct drm_framebuffer **pfb) argument
372 nouveau_user_framebuffer_create(struct drm_device *dev, struct drm_file *file_priv, const struct drm_mode_fb_cmd2 *mode_cmd) argument
[all...]

Completed in 227 milliseconds

123