| /linux/drivers/gpu/drm/ |
| H A D | drm_gem_framebuffer_helper.c | 73 const struct drm_mode_fb_cmd2 *mode_cmd, in drm_gem_fb_init() argument 80 drm_helper_mode_fill_fb_struct(dev, fb, info, mode_cmd); in drm_gem_fb_init() 159 const struct drm_mode_fb_cmd2 *mode_cmd, in drm_gem_fb_init_with_funcs() argument 167 !drm_any_plane_has_format(dev, mode_cmd->pixel_format, in drm_gem_fb_init_with_funcs() 168 mode_cmd->modifier[0])) { in drm_gem_fb_init_with_funcs() 170 &mode_cmd->pixel_format, mode_cmd->modifier[0]); in drm_gem_fb_init_with_funcs() 175 unsigned int width = drm_format_info_plane_width(info, mode_cmd->width, i); in drm_gem_fb_init_with_funcs() 176 unsigned int height = drm_format_info_plane_height(info, mode_cmd->height, i); in drm_gem_fb_init_with_funcs() 179 objs[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]); in drm_gem_fb_init_with_funcs() 186 min_size = (height - 1) * mode_cmd->pitches[i] in drm_gem_fb_init_with_funcs() [all …]
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_display.c | 258 const struct drm_mode_fb_cmd2 *mode_cmd, in nouveau_framebuffer_new() argument 273 (mode_cmd->pixel_format == DRM_FORMAT_YUYV || in nouveau_framebuffer_new() 274 mode_cmd->pixel_format == DRM_FORMAT_UYVY || in nouveau_framebuffer_new() 275 mode_cmd->pixel_format == DRM_FORMAT_NV12 || in nouveau_framebuffer_new() 276 mode_cmd->pixel_format == DRM_FORMAT_NV21) && in nouveau_framebuffer_new() 277 (mode_cmd->pitches[0] & 0x3f || /* align 64 */ in nouveau_framebuffer_new() 278 mode_cmd->pitches[0] >= 0x10000 || /* at most 64k pitch */ in nouveau_framebuffer_new() 279 (mode_cmd->pitches[1] && /* pitches for planes must match */ in nouveau_framebuffer_new() 280 mode_cmd->pitches[0] != mode_cmd->pitches[1]))) { in nouveau_framebuffer_new() 282 &mode_cmd->pixel_format, in nouveau_framebuffer_new() [all …]
|
| /linux/drivers/gpu/drm/renesas/shmobile/ |
| H A D | shmob_drm_kms.c | 121 const struct drm_mode_fb_cmd2 *mode_cmd) in shmob_drm_fb_create() argument 125 format = shmob_drm_format_info(mode_cmd->pixel_format); in shmob_drm_fb_create() 128 &mode_cmd->pixel_format); in shmob_drm_fb_create() 132 if (mode_cmd->pitches[0] & 7 || mode_cmd->pitches[0] >= 65536) { in shmob_drm_fb_create() 134 mode_cmd->pitches[0]); in shmob_drm_fb_create() 141 if (mode_cmd->pitches[1] != mode_cmd->pitches[0] * chroma_cpp) { in shmob_drm_fb_create() 148 return drm_gem_fb_create(dev, file_priv, info, mode_cmd); in shmob_drm_fb_create()
|
| /linux/drivers/gpu/drm/omapdrm/ |
| H A D | omap_fb.c | 340 const struct drm_mode_fb_cmd2 *mode_cmd) in omap_framebuffer_create() argument 348 bos[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]); in omap_framebuffer_create() 355 fb = omap_framebuffer_init(dev, info, mode_cmd, bos); in omap_framebuffer_create() 370 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos) in omap_framebuffer_init() argument 374 unsigned int pitch = mode_cmd->pitches[0]; in omap_framebuffer_init() 378 dev, mode_cmd, mode_cmd->width, mode_cmd->height, in omap_framebuffer_init() 379 (char *)&mode_cmd->pixel_format); in omap_framebuffer_init() 382 if (formats[i] == mode_cmd->pixel_format) in omap_framebuffer_init() 388 (char *)&mode_cmd->pixel_format); in omap_framebuffer_init() 408 if (info->num_planes == 2 && pitch != mode_cmd->pitches[1]) { in omap_framebuffer_init() [all …]
|
| H A D | omap_fb.h | 25 const struct drm_mode_fb_cmd2 *mode_cmd); 28 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos);
|
| /linux/include/drm/ |
| H A D | drm_gem_framebuffer_helper.h | 29 const struct drm_mode_fb_cmd2 *mode_cmd, 34 const struct drm_mode_fb_cmd2 *mode_cmd, 39 const struct drm_mode_fb_cmd2 *mode_cmd); 43 const struct drm_mode_fb_cmd2 *mode_cmd); 56 const struct drm_mode_fb_cmd2 *mode_cmd,
|
| H A D | drm_modeset_helper.h | 38 const struct drm_mode_fb_cmd2 *mode_cmd);
|
| /linux/drivers/gpu/drm/arm/ |
| H A D | malidp_drv.c | 281 const struct drm_mode_fb_cmd2 *mode_cmd) in malidp_verify_afbc_framebuffer_caps() argument 283 if (malidp_format_mod_supported(dev, mode_cmd->pixel_format, in malidp_verify_afbc_framebuffer_caps() 284 mode_cmd->modifier[0]) == false) in malidp_verify_afbc_framebuffer_caps() 287 if (mode_cmd->offsets[0] != 0) { in malidp_verify_afbc_framebuffer_caps() 292 switch (mode_cmd->modifier[0] & AFBC_SIZE_MASK) { in malidp_verify_afbc_framebuffer_caps() 294 if ((mode_cmd->width % 16) || (mode_cmd->height % 16)) { in malidp_verify_afbc_framebuffer_caps() 311 const struct drm_mode_fb_cmd2 *mode_cmd) in malidp_verify_afbc_framebuffer_size() argument 319 switch (mode_cmd->modifier[0] & AFBC_SIZE_MASK) { in malidp_verify_afbc_framebuffer_size() 329 n_superblocks = (mode_cmd->width / afbc_superblock_width) * in malidp_verify_afbc_framebuffer_size() 330 (mode_cmd->height / afbc_superblock_height); in malidp_verify_afbc_framebuffer_size() [all …]
|
| /linux/drivers/gpu/drm/rockchip/ |
| H A D | rockchip_drm_fb.c | 34 const struct drm_mode_fb_cmd2 *mode_cmd) in rockchip_fb_create() argument 44 file, info, mode_cmd, in rockchip_fb_create() 51 if (drm_is_afbc(mode_cmd->modifier[0])) { in rockchip_fb_create() 52 ret = drm_gem_fb_afbc_init(dev, info, mode_cmd, afbc_fb); in rockchip_fb_create()
|
| /linux/drivers/gpu/drm/renesas/rz-du/ |
| H A D | rzg2l_du_kms.c | 195 const struct drm_mode_fb_cmd2 *mode_cmd) in rzg2l_du_fb_create() argument 200 format = rzg2l_du_format_info(mode_cmd->pixel_format); in rzg2l_du_fb_create() 203 &mode_cmd->pixel_format); in rzg2l_du_fb_create() 212 if (mode_cmd->pitches[0] > max_pitch) { in rzg2l_du_fb_create() 214 mode_cmd->pitches[0]); in rzg2l_du_fb_create() 218 return drm_gem_fb_create(dev, file_priv, info, mode_cmd); in rzg2l_du_fb_create()
|
| /linux/drivers/gpu/drm/arm/display/komeda/ |
| H A D | komeda_framebuffer.h | 41 const struct drm_mode_fb_cmd2 *mode_cmd);
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_framebuffer_test.c | 367 const struct drm_mode_fb_cmd2 *mode_cmd) in fb_create_mock() argument
|