/linux-4.1.27/drivers/gpu/drm/msm/ |
D | msm_fb.c | 141 struct drm_file *file, struct drm_mode_fb_cmd2 *mode_cmd) in msm_framebuffer_create() argument 145 int ret, i, n = drm_format_num_planes(mode_cmd->pixel_format); in msm_framebuffer_create() 149 mode_cmd->handles[i]); in msm_framebuffer_create() 156 fb = msm_framebuffer_init(dev, mode_cmd, bos); in msm_framebuffer_create() 171 struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos) in msm_framebuffer_init() argument 182 dev, mode_cmd, mode_cmd->width, mode_cmd->height, in msm_framebuffer_init() 183 (char *)&mode_cmd->pixel_format); in msm_framebuffer_init() 185 n = drm_format_num_planes(mode_cmd->pixel_format); in msm_framebuffer_init() 186 hsub = drm_format_horz_chroma_subsampling(mode_cmd->pixel_format); in msm_framebuffer_init() 187 vsub = drm_format_vert_chroma_subsampling(mode_cmd->pixel_format); in msm_framebuffer_init() [all …]
|
D | msm_fbdev.c | 92 struct drm_mode_fb_cmd2 mode_cmd = {0}; in msm_fbdev_create() local 100 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in msm_fbdev_create() 103 mode_cmd.width = sizes->surface_width; in msm_fbdev_create() 104 mode_cmd.height = sizes->surface_height; in msm_fbdev_create() 106 mode_cmd.pitches[0] = align_pitch( in msm_fbdev_create() 107 mode_cmd.width, sizes->surface_bpp); in msm_fbdev_create() 110 size = mode_cmd.pitches[0] * mode_cmd.height; in msm_fbdev_create() 123 fb = msm_framebuffer_init(dev, &mode_cmd, &fbdev->bo); in msm_fbdev_create()
|
D | msm_drv.h | 224 struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos); 226 struct drm_file *file, struct drm_mode_fb_cmd2 *mode_cmd);
|
/linux-4.1.27/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_fb.c | 75 rockchip_fb_alloc(struct drm_device *dev, struct drm_mode_fb_cmd2 *mode_cmd, in rockchip_fb_alloc() argument 86 drm_helper_mode_fill_fb_struct(&rockchip_fb->fb, mode_cmd); in rockchip_fb_alloc() 105 struct drm_mode_fb_cmd2 *mode_cmd) in rockchip_user_fb_create() argument 116 hsub = drm_format_horz_chroma_subsampling(mode_cmd->pixel_format); in rockchip_user_fb_create() 117 vsub = drm_format_vert_chroma_subsampling(mode_cmd->pixel_format); in rockchip_user_fb_create() 118 num_planes = min(drm_format_num_planes(mode_cmd->pixel_format), in rockchip_user_fb_create() 122 unsigned int width = mode_cmd->width / (i ? hsub : 1); in rockchip_user_fb_create() 123 unsigned int height = mode_cmd->height / (i ? vsub : 1); in rockchip_user_fb_create() 127 mode_cmd->handles[i]); in rockchip_user_fb_create() 134 min_size = (height - 1) * mode_cmd->pitches[i] + in rockchip_user_fb_create() [all …]
|
D | rockchip_drm_fbdev.c | 54 struct drm_mode_fb_cmd2 mode_cmd = { 0 }; in rockchip_drm_fbdev_create() local 66 mode_cmd.width = sizes->surface_width; in rockchip_drm_fbdev_create() 67 mode_cmd.height = sizes->surface_height; in rockchip_drm_fbdev_create() 68 mode_cmd.pitches[0] = sizes->surface_width * bytes_per_pixel; in rockchip_drm_fbdev_create() 69 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in rockchip_drm_fbdev_create() 72 size = mode_cmd.pitches[0] * mode_cmd.height; in rockchip_drm_fbdev_create() 87 helper->fb = rockchip_drm_framebuffer_init(dev, &mode_cmd, in rockchip_drm_fbdev_create()
|
D | rockchip_drm_fb.h | 20 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.1.27/drivers/gpu/drm/ |
D | drm_fb_cma_helper.c | 77 struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_cma_object **obj, in drm_fb_cma_alloc() argument 88 drm_helper_mode_fill_fb_struct(&fb_cma->fb, mode_cmd); in drm_fb_cma_alloc() 110 struct drm_file *file_priv, struct drm_mode_fb_cmd2 *mode_cmd) in drm_fb_cma_create() argument 120 hsub = drm_format_horz_chroma_subsampling(mode_cmd->pixel_format); in drm_fb_cma_create() 121 vsub = drm_format_vert_chroma_subsampling(mode_cmd->pixel_format); in drm_fb_cma_create() 123 for (i = 0; i < drm_format_num_planes(mode_cmd->pixel_format); i++) { in drm_fb_cma_create() 124 unsigned int width = mode_cmd->width / (i ? hsub : 1); in drm_fb_cma_create() 125 unsigned int height = mode_cmd->height / (i ? vsub : 1); in drm_fb_cma_create() 128 obj = drm_gem_object_lookup(dev, file_priv, mode_cmd->handles[i]); in drm_fb_cma_create() 135 min_size = (height - 1) * mode_cmd->pitches[i] in drm_fb_cma_create() [all …]
|
D | drm_crtc_helper.c | 832 struct drm_mode_fb_cmd2 *mode_cmd) in drm_helper_mode_fill_fb_struct() argument 836 fb->width = mode_cmd->width; in drm_helper_mode_fill_fb_struct() 837 fb->height = mode_cmd->height; in drm_helper_mode_fill_fb_struct() 839 fb->pitches[i] = mode_cmd->pitches[i]; in drm_helper_mode_fill_fb_struct() 840 fb->offsets[i] = mode_cmd->offsets[i]; in drm_helper_mode_fill_fb_struct() 841 fb->modifier[i] = mode_cmd->modifier[i]; in drm_helper_mode_fill_fb_struct() 843 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &fb->depth, in drm_helper_mode_fill_fb_struct() 845 fb->pixel_format = mode_cmd->pixel_format; in drm_helper_mode_fill_fb_struct() 846 fb->flags = mode_cmd->flags; in drm_helper_mode_fill_fb_struct()
|
/linux-4.1.27/drivers/gpu/drm/shmobile/ |
D | shmob_drm_kms.c | 107 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()
|
/linux-4.1.27/drivers/gpu/drm/bochs/ |
D | bochs_fbdev.c | 37 struct drm_mode_fb_cmd2 *mode_cmd, in bochsfb_create_object() argument 45 size = mode_cmd->pitches[0] * mode_cmd->height; in bochsfb_create_object() 62 struct drm_mode_fb_cmd2 mode_cmd; in bochsfb_create() local 71 mode_cmd.width = sizes->surface_width; in bochsfb_create() 72 mode_cmd.height = sizes->surface_height; in bochsfb_create() 73 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in bochsfb_create() 74 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in bochsfb_create() 76 size = mode_cmd.pitches[0] * mode_cmd.height; in bochsfb_create() 79 ret = bochsfb_create_object(bochs, &mode_cmd, &gobj); in bochsfb_create() 115 ret = bochs_framebuffer_init(bochs->dev, &bochs->fb.gfb, &mode_cmd, gobj); in bochsfb_create()
|
D | bochs_mm.c | 495 struct drm_mode_fb_cmd2 *mode_cmd, in bochs_framebuffer_init() argument 500 drm_helper_mode_fill_fb_struct(&gfb->base, mode_cmd); in bochs_framebuffer_init() 513 struct drm_mode_fb_cmd2 *mode_cmd) in bochs_user_framebuffer_create() argument 520 mode_cmd->width, mode_cmd->height, in bochs_user_framebuffer_create() 521 (mode_cmd->pixel_format) & 0xff, in bochs_user_framebuffer_create() 522 (mode_cmd->pixel_format >> 8) & 0xff, in bochs_user_framebuffer_create() 523 (mode_cmd->pixel_format >> 16) & 0xff, in bochs_user_framebuffer_create() 524 (mode_cmd->pixel_format >> 24) & 0xff); in bochs_user_framebuffer_create() 526 if (mode_cmd->pixel_format != DRM_FORMAT_XRGB8888) in bochs_user_framebuffer_create() 529 obj = drm_gem_object_lookup(dev, filp, mode_cmd->handles[0]); in bochs_user_framebuffer_create() [all …]
|
D | bochs.h | 152 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.1.27/drivers/gpu/drm/cirrus/ |
D | cirrus_fbdev.c | 138 struct drm_mode_fb_cmd2 *mode_cmd, in cirrusfb_create_object() argument 148 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); in cirrusfb_create_object() 150 if (!cirrus_check_framebuffer(cdev, mode_cmd->width, mode_cmd->height, in cirrusfb_create_object() 151 bpp, mode_cmd->pitches[0])) in cirrusfb_create_object() 154 size = mode_cmd->pitches[0] * mode_cmd->height; in cirrusfb_create_object() 172 struct drm_mode_fb_cmd2 mode_cmd; in cirrusfb_create() local 179 mode_cmd.width = sizes->surface_width; in cirrusfb_create() 180 mode_cmd.height = sizes->surface_height; in cirrusfb_create() 181 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in cirrusfb_create() 182 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in cirrusfb_create() [all …]
|
D | cirrus_main.c | 32 struct drm_mode_fb_cmd2 *mode_cmd, in cirrus_framebuffer_init() argument 37 drm_helper_mode_fill_fb_struct(&gfb->base, mode_cmd); in cirrus_framebuffer_init() 50 struct drm_mode_fb_cmd2 *mode_cmd) in cirrus_user_framebuffer_create() argument 58 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); 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(dev, 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()
|
D | cirrus_drv.h | 210 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.1.27/drivers/gpu/drm/omapdrm/ |
D | omap_fb.c | 359 struct drm_file *file, struct drm_mode_fb_cmd2 *mode_cmd) in omap_framebuffer_create() argument 365 ret = objects_lookup(dev, file, mode_cmd->pixel_format, in omap_framebuffer_create() 366 bos, mode_cmd->handles); in omap_framebuffer_create() 370 fb = omap_framebuffer_init(dev, mode_cmd, bos); in omap_framebuffer_create() 372 int i, n = drm_format_num_planes(mode_cmd->pixel_format); in omap_framebuffer_create() 381 struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos) in omap_framebuffer_init() argument 386 int ret, i, n = drm_format_num_planes(mode_cmd->pixel_format); in omap_framebuffer_init() 389 dev, mode_cmd, mode_cmd->width, mode_cmd->height, in omap_framebuffer_init() 390 (char *)&mode_cmd->pixel_format); in omap_framebuffer_init() 393 if (formats[i].pixel_format == mode_cmd->pixel_format) { in omap_framebuffer_init() [all …]
|
D | omap_fbdev.c | 111 struct drm_mode_fb_cmd2 mode_cmd = {0}; in omap_fbdev_create() local 125 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in omap_fbdev_create() 128 mode_cmd.width = sizes->surface_width; in omap_fbdev_create() 129 mode_cmd.height = sizes->surface_height; in omap_fbdev_create() 131 mode_cmd.pitches[0] = align_pitch( in omap_fbdev_create() 132 mode_cmd.width * ((sizes->surface_bpp + 7) / 8), in omap_fbdev_create() 133 mode_cmd.width, sizes->surface_bpp); in omap_fbdev_create() 138 mode_cmd.pitches[0] = ALIGN(mode_cmd.pitches[0], PAGE_SIZE); in omap_fbdev_create() 143 .bytes = PAGE_ALIGN(mode_cmd.pitches[0] * mode_cmd.height), in omap_fbdev_create() 153 fb = omap_framebuffer_init(dev, &mode_cmd, &fbdev->bo); in omap_fbdev_create()
|
D | omap_drv.h | 202 struct drm_file *file, struct drm_mode_fb_cmd2 *mode_cmd); 204 struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos);
|
/linux-4.1.27/drivers/gpu/drm/mgag200/ |
D | mgag200_fb.c | 141 struct drm_mode_fb_cmd2 *mode_cmd, in mgag200fb_create_object() argument 149 size = mode_cmd->pitches[0] * mode_cmd->height; in mgag200fb_create_object() 164 struct drm_mode_fb_cmd2 mode_cmd; in mgag200fb_create() local 175 mode_cmd.width = sizes->surface_width; in mgag200fb_create() 176 mode_cmd.height = sizes->surface_height; in mgag200fb_create() 177 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in mgag200fb_create() 179 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in mgag200fb_create() 181 size = mode_cmd.pitches[0] * mode_cmd.height; in mgag200fb_create() 183 ret = mgag200fb_create_object(mfbdev, &mode_cmd, &gobj); in mgag200fb_create() 200 ret = mgag200_framebuffer_init(dev, &mfbdev->mfb, &mode_cmd, gobj); in mgag200fb_create()
|
D | mgag200_main.c | 32 struct drm_mode_fb_cmd2 *mode_cmd, in mgag200_framebuffer_init() argument 37 drm_helper_mode_fill_fb_struct(&gfb->base, mode_cmd); in mgag200_framebuffer_init() 50 struct drm_mode_fb_cmd2 *mode_cmd) in mgag200_user_framebuffer_create() argument 56 obj = drm_gem_object_lookup(dev, filp, mode_cmd->handles[0]); in mgag200_user_framebuffer_create() 66 ret = mgag200_framebuffer_init(dev, mga_fb, mode_cmd, obj); in mgag200_user_framebuffer_create()
|
D | mgag200_drv.h | 254 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.1.27/drivers/gpu/drm/ast/ |
D | ast_fb.c | 166 struct drm_mode_fb_cmd2 *mode_cmd, in astfb_create_object() argument 175 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); in astfb_create_object() 177 size = mode_cmd->pitches[0] * mode_cmd->height; in astfb_create_object() 192 struct drm_mode_fb_cmd2 mode_cmd; in astfb_create() local 200 mode_cmd.width = sizes->surface_width; in astfb_create() 201 mode_cmd.height = sizes->surface_height; in astfb_create() 202 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7)/8); in astfb_create() 204 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in astfb_create() 207 size = mode_cmd.pitches[0] * mode_cmd.height; in astfb_create() 209 ret = astfb_create_object(afbdev, &mode_cmd, &gobj); in astfb_create() [all …]
|
D | ast_main.c | 312 struct drm_mode_fb_cmd2 *mode_cmd, in ast_framebuffer_init() argument 317 drm_helper_mode_fill_fb_struct(&ast_fb->base, mode_cmd); in ast_framebuffer_init() 330 struct drm_mode_fb_cmd2 *mode_cmd) in ast_user_framebuffer_create() argument 336 obj = drm_gem_object_lookup(dev, filp, mode_cmd->handles[0]); in ast_user_framebuffer_create() 346 ret = ast_framebuffer_init(dev, ast_fb, mode_cmd, obj); in ast_user_framebuffer_create()
|
D | ast_drv.h | 312 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
D | radeon_fb.c | 135 struct drm_mode_fb_cmd2 *mode_cmd, in radeonfb_create_pinned_object() argument 145 int height = mode_cmd->height; in radeonfb_create_pinned_object() 148 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); in radeonfb_create_pinned_object() 151 mode_cmd->pitches[0] = radeon_align_pitch(rdev, mode_cmd->width, bpp, in radeonfb_create_pinned_object() 155 height = ALIGN(mode_cmd->height, 8); in radeonfb_create_pinned_object() 156 size = mode_cmd->pitches[0] * height; in radeonfb_create_pinned_object() 186 mode_cmd->pitches[0]); in radeonfb_create_pinned_object() 227 struct drm_mode_fb_cmd2 mode_cmd; in radeonfb_create() local 234 mode_cmd.width = sizes->surface_width; in radeonfb_create() 235 mode_cmd.height = sizes->surface_height; in radeonfb_create() [all …]
|
D | radeon_display.c | 1294 struct drm_mode_fb_cmd2 *mode_cmd, in radeon_framebuffer_init() argument 1299 drm_helper_mode_fill_fb_struct(&rfb->base, mode_cmd); in radeon_framebuffer_init() 1311 struct drm_mode_fb_cmd2 *mode_cmd) in radeon_user_framebuffer_create() argument 1317 obj = drm_gem_object_lookup(dev, file_priv, mode_cmd->handles[0]); in radeon_user_framebuffer_create() 1320 "can't create framebuffer\n", mode_cmd->handles[0]); in radeon_user_framebuffer_create() 1330 ret = radeon_framebuffer_init(dev, radeon_fb, mode_cmd, obj); in radeon_user_framebuffer_create()
|
D | radeon_mode.h | 934 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.1.27/drivers/gpu/drm/qxl/ |
D | qxl_fb.c | 445 struct drm_mode_fb_cmd2 *mode_cmd, in qxlfb_create_pinned_object() argument 453 int height = mode_cmd->height; in qxlfb_create_pinned_object() 457 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &bpp, &depth); in qxlfb_create_pinned_object() 459 size = mode_cmd->pitches[0] * height; in qxlfb_create_pinned_object() 476 qbo->surf.width = mode_cmd->width; in qxlfb_create_pinned_object() 477 qbo->surf.height = mode_cmd->height; in qxlfb_create_pinned_object() 478 qbo->surf.stride = mode_cmd->pitches[0]; in qxlfb_create_pinned_object() 507 struct drm_mode_fb_cmd2 mode_cmd; in qxlfb_create() local 517 mode_cmd.width = sizes->surface_width; in qxlfb_create() 518 mode_cmd.height = sizes->surface_height; in qxlfb_create() [all …]
|
D | qxl_display.c | 521 struct drm_mode_fb_cmd2 *mode_cmd, in qxl_framebuffer_init() argument 532 drm_helper_mode_fill_fb_struct(&qfb->base, mode_cmd); in qxl_framebuffer_init() 1003 struct drm_mode_fb_cmd2 *mode_cmd) in qxl_user_framebuffer_create() argument 1009 obj = drm_gem_object_lookup(dev, file_priv, mode_cmd->handles[0]); in qxl_user_framebuffer_create() 1015 ret = qxl_framebuffer_init(dev, qxl_fb, mode_cmd, obj); in qxl_user_framebuffer_create()
|
D | qxl_drv.h | 395 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.1.27/drivers/gpu/drm/gma500/ |
D | framebuffer.c | 244 struct drm_mode_fb_cmd2 *mode_cmd, in psb_framebuffer_init() argument 250 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); in psb_framebuffer_init() 252 if (mode_cmd->pitches[0] & 63) in psb_framebuffer_init() 263 drm_helper_mode_fill_fb_struct(&fb->base, mode_cmd); in psb_framebuffer_init() 287 struct drm_mode_fb_cmd2 *mode_cmd, in psb_framebuffer_create() argument 297 ret = psb_framebuffer_init(dev, fb, mode_cmd, gt); in psb_framebuffer_create() 345 struct drm_mode_fb_cmd2 mode_cmd; in psbfb_create() local 354 mode_cmd.width = sizes->surface_width; in psbfb_create() 355 mode_cmd.height = sizes->surface_height; in psbfb_create() 369 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 7) / 8), 4096 >> pitch_lines); in psbfb_create() [all …]
|
/linux-4.1.27/drivers/gpu/drm/udl/ |
D | udl_fb.c | 459 struct drm_mode_fb_cmd2 *mode_cmd, in udl_framebuffer_init() argument 466 drm_helper_mode_fill_fb_struct(&ufb->base, mode_cmd); in udl_framebuffer_init() 481 struct drm_mode_fb_cmd2 mode_cmd; in udlfb_create() local 489 mode_cmd.width = sizes->surface_width; in udlfb_create() 490 mode_cmd.height = sizes->surface_height; in udlfb_create() 491 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in udlfb_create() 493 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in udlfb_create() 496 size = mode_cmd.pitches[0] * mode_cmd.height; in udlfb_create() 516 ret = udl_framebuffer_init(dev, &ufbdev->ufb, &mode_cmd, obj); in udlfb_create() 644 struct drm_mode_fb_cmd2 *mode_cmd) in udl_fb_user_fb_create() argument [all …]
|
D | udl_drv.h | 111 struct drm_mode_fb_cmd2 *mode_cmd);
|
/linux-4.1.27/drivers/gpu/drm/exynos/ |
D | exynos_drm_fb.c | 144 struct drm_mode_fb_cmd2 *mode_cmd, in exynos_drm_framebuffer_init() argument 161 drm_helper_mode_fill_fb_struct(&exynos_fb->fb, mode_cmd); in exynos_drm_framebuffer_init() 176 struct drm_mode_fb_cmd2 *mode_cmd) in exynos_user_fb_create() argument 187 obj = drm_gem_object_lookup(dev, file_priv, mode_cmd->handles[0]); in exynos_user_fb_create() 194 drm_helper_mode_fill_fb_struct(&exynos_fb->fb, mode_cmd); in exynos_user_fb_create() 196 exynos_fb->buf_cnt = drm_format_num_planes(mode_cmd->pixel_format); in exynos_user_fb_create() 202 mode_cmd->handles[i]); in exynos_user_fb_create()
|
D | exynos_drm_fbdev.c | 128 struct drm_mode_fb_cmd2 mode_cmd = { 0 }; in exynos_drm_fbdev_create() local 137 mode_cmd.width = sizes->surface_width; in exynos_drm_fbdev_create() 138 mode_cmd.height = sizes->surface_height; in exynos_drm_fbdev_create() 139 mode_cmd.pitches[0] = sizes->surface_width * (sizes->surface_bpp >> 3); in exynos_drm_fbdev_create() 140 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in exynos_drm_fbdev_create() 152 size = mode_cmd.pitches[0] * mode_cmd.height; in exynos_drm_fbdev_create() 173 helper->fb = exynos_drm_framebuffer_init(dev, &mode_cmd, in exynos_drm_fbdev_create()
|
D | exynos_drm_fb.h | 19 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_kms.c | 651 *mode_cmd) in vmw_kms_new_framebuffer_surface() 674 surface->base_size.width < mode_cmd->width || in vmw_kms_new_framebuffer_surface() 675 surface->base_size.height < mode_cmd->height || in vmw_kms_new_framebuffer_surface() 682 switch (mode_cmd->depth) { in vmw_kms_new_framebuffer_surface() 699 DRM_ERROR("Invalid color depth: %d\n", mode_cmd->depth); in vmw_kms_new_framebuffer_surface() 721 vfbs->base.base.bits_per_pixel = mode_cmd->bpp; in vmw_kms_new_framebuffer_surface() 722 vfbs->base.base.pitches[0] = mode_cmd->pitch; in vmw_kms_new_framebuffer_surface() 723 vfbs->base.base.depth = mode_cmd->depth; in vmw_kms_new_framebuffer_surface() 724 vfbs->base.base.width = mode_cmd->width; in vmw_kms_new_framebuffer_surface() 725 vfbs->base.base.height = mode_cmd->height; in vmw_kms_new_framebuffer_surface() [all …]
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
D | nouveau_fbcon.c | 345 struct drm_mode_fb_cmd2 mode_cmd; in nouveau_fbcon_create() local 349 mode_cmd.width = sizes->surface_width; in nouveau_fbcon_create() 350 mode_cmd.height = sizes->surface_height; in nouveau_fbcon_create() 352 mode_cmd.pitches[0] = mode_cmd.width * (sizes->surface_bpp >> 3); in nouveau_fbcon_create() 353 mode_cmd.pitches[0] = roundup(mode_cmd.pitches[0], 256); in nouveau_fbcon_create() 355 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in nouveau_fbcon_create() 358 size = mode_cmd.pitches[0] * mode_cmd.height; in nouveau_fbcon_create() 408 nouveau_framebuffer_init(dev, &fbcon->nouveau_fb, &mode_cmd, nvbo); in nouveau_fbcon_create()
|
D | nouveau_display.c | 246 struct drm_mode_fb_cmd2 *mode_cmd, in nouveau_framebuffer_init() argument 253 drm_helper_mode_fill_fb_struct(fb, mode_cmd); in nouveau_framebuffer_init() 272 struct drm_mode_fb_cmd2 *mode_cmd) in nouveau_user_framebuffer_create() argument 278 gem = drm_gem_object_lookup(dev, file_priv, mode_cmd->handles[0]); in nouveau_user_framebuffer_create() 286 ret = nouveau_framebuffer_init(dev, nouveau_fb, mode_cmd, nouveau_gem_object(gem)); in nouveau_user_framebuffer_create()
|
/linux-4.1.27/drivers/gpu/drm/rcar-du/ |
D | rcar_du_kms.c | 139 struct drm_mode_fb_cmd2 *mode_cmd) in rcar_du_fb_create() argument 147 format = rcar_du_format_info(mode_cmd->pixel_format); in rcar_du_fb_create() 150 mode_cmd->pixel_format); in rcar_du_fb_create() 166 if (mode_cmd->pitches[0] & (align - 1) || in rcar_du_fb_create() 167 mode_cmd->pitches[0] >= max_pitch) { in rcar_du_fb_create() 169 mode_cmd->pitches[0]); in rcar_du_fb_create() 174 if (mode_cmd->pitches[1] != mode_cmd->pitches[0]) { in rcar_du_fb_create() 181 return drm_fb_cma_create(dev, file_priv, mode_cmd); in rcar_du_fb_create()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | intel_fbdev.c | 120 struct drm_mode_fb_cmd2 mode_cmd = {}; in intelfb_alloc() local 128 mode_cmd.width = sizes->surface_width; in intelfb_alloc() 129 mode_cmd.height = sizes->surface_height; in intelfb_alloc() 131 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * in intelfb_alloc() 133 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in intelfb_alloc() 136 size = mode_cmd.pitches[0] * mode_cmd.height; in intelfb_alloc() 147 fb = __intel_framebuffer_create(dev, &mode_cmd, obj); in intelfb_alloc()
|
D | intel_display.c | 90 struct drm_mode_fb_cmd2 *mode_cmd, 2545 struct drm_mode_fb_cmd2 mode_cmd = { 0 }; in intel_alloc_initial_plane_obj() local 2567 mode_cmd.pixel_format = fb->pixel_format; in intel_alloc_initial_plane_obj() 2568 mode_cmd.width = fb->width; in intel_alloc_initial_plane_obj() 2569 mode_cmd.height = fb->height; in intel_alloc_initial_plane_obj() 2570 mode_cmd.pitches[0] = fb->pitches[0]; in intel_alloc_initial_plane_obj() 2571 mode_cmd.modifier[0] = fb->modifier[0]; in intel_alloc_initial_plane_obj() 2572 mode_cmd.flags = DRM_MODE_FB_MODIFIERS; in intel_alloc_initial_plane_obj() 2576 &mode_cmd, obj)) { in intel_alloc_initial_plane_obj() 8870 struct drm_mode_fb_cmd2 *mode_cmd, in __intel_framebuffer_create() argument [all …]
|
D | intel_drv.h | 970 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.1.27/include/drm/ |
D | drm_fb_cma_helper.h | 21 struct drm_file *file_priv, struct drm_mode_fb_cmd2 *mode_cmd);
|
D | drm_crtc_helper.h | 195 struct drm_mode_fb_cmd2 *mode_cmd);
|
D | drm_crtc.h | 987 struct drm_mode_fb_cmd2 *mode_cmd);
|
/linux-4.1.27/drivers/gpu/drm/tegra/ |
D | fb.c | 95 struct drm_mode_fb_cmd2 *mode_cmd, in tegra_fb_alloc() argument 115 drm_helper_mode_fill_fb_struct(&fb->base, mode_cmd); in tegra_fb_alloc()
|
/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_dc.c | 202 struct drm_file *file_priv, struct drm_mode_fb_cmd2 *mode_cmd) in atmel_hlcdc_fb_create() argument 204 return drm_fb_cma_create(dev, file_priv, mode_cmd); in atmel_hlcdc_fb_create()
|
/linux-4.1.27/drivers/gpu/drm/tilcdc/ |
D | tilcdc_drv.c | 53 struct drm_file *file_priv, struct drm_mode_fb_cmd2 *mode_cmd) in tilcdc_fb_create() argument 55 return drm_fb_cma_create(dev, file_priv, mode_cmd); in tilcdc_fb_create()
|