Lines Matching +full:non +full:- +full:contiguous

1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * Seung-Woo Kim <sw0312.kim@samsung.com>
37 flags = exynos_gem->flags; in check_fb_gem_memory_type()
40 * Physically non-contiguous memory type for framebuffer is not in check_fb_gem_memory_type()
44 DRM_DEV_ERROR(drm_dev->dev, in check_fb_gem_memory_type()
45 "Non-contiguous GEM memory is not supported.\n"); in check_fb_gem_memory_type()
46 return -EINVAL; in check_fb_gem_memory_type()
69 return ERR_PTR(-ENOMEM); in exynos_drm_framebuffer_init()
76 fb->obj[i] = &exynos_gem[i]->base; in exynos_drm_framebuffer_init()
83 DRM_DEV_ERROR(dev->dev, in exynos_drm_framebuffer_init()
105 for (i = 0; i < info->num_planes; i++) { in exynos_user_fb_create()
106 unsigned int height = (i == 0) ? mode_cmd->height : in exynos_user_fb_create()
107 DIV_ROUND_UP(mode_cmd->height, info->vsub); in exynos_user_fb_create()
108 unsigned long size = height * mode_cmd->pitches[i] + in exynos_user_fb_create()
109 mode_cmd->offsets[i]; in exynos_user_fb_create()
112 mode_cmd->handles[i]); in exynos_user_fb_create()
114 DRM_DEV_ERROR(dev->dev, in exynos_user_fb_create()
116 ret = -ENOENT; in exynos_user_fb_create()
120 if (size > exynos_gem[i]->size) { in exynos_user_fb_create()
122 ret = -EINVAL; in exynos_user_fb_create()
136 while (i--) in exynos_user_fb_create()
149 exynos_gem = to_exynos_gem(fb->obj[index]); in exynos_drm_fb_dma_addr()
150 return exynos_gem->dma_addr + fb->offsets[index]; in exynos_drm_fb_dma_addr()
165 dev->mode_config.min_width = 0; in exynos_drm_mode_config_init()
166 dev->mode_config.min_height = 0; in exynos_drm_mode_config_init()
173 dev->mode_config.max_width = 4096; in exynos_drm_mode_config_init()
174 dev->mode_config.max_height = 4096; in exynos_drm_mode_config_init()
176 dev->mode_config.funcs = &exynos_drm_mode_config_funcs; in exynos_drm_mode_config_init()
177 dev->mode_config.helper_private = &exynos_drm_mode_config_helpers; in exynos_drm_mode_config_init()
179 dev->mode_config.normalize_zpos = true; in exynos_drm_mode_config_init()