/linux-4.4.14/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 | 87 struct drm_mode_fb_cmd2 mode_cmd = {0}; in msm_fbdev_create() local 95 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in msm_fbdev_create() 98 mode_cmd.width = sizes->surface_width; in msm_fbdev_create() 99 mode_cmd.height = sizes->surface_height; in msm_fbdev_create() 101 mode_cmd.pitches[0] = align_pitch( in msm_fbdev_create() 102 mode_cmd.width, sizes->surface_bpp); in msm_fbdev_create() 105 size = mode_cmd.pitches[0] * mode_cmd.height; in msm_fbdev_create() 118 fb = msm_framebuffer_init(dev, &mode_cmd, &fbdev->bo); in msm_fbdev_create()
|
D | msm_drv.h | 243 struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos); 245 struct drm_file *file, struct drm_mode_fb_cmd2 *mode_cmd);
|
/linux-4.4.14/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.4.14/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 | 821 struct drm_mode_fb_cmd2 *mode_cmd) in drm_helper_mode_fill_fb_struct() argument 825 fb->width = mode_cmd->width; in drm_helper_mode_fill_fb_struct() 826 fb->height = mode_cmd->height; in drm_helper_mode_fill_fb_struct() 828 fb->pitches[i] = mode_cmd->pitches[i]; in drm_helper_mode_fill_fb_struct() 829 fb->offsets[i] = mode_cmd->offsets[i]; in drm_helper_mode_fill_fb_struct() 830 fb->modifier[i] = mode_cmd->modifier[i]; in drm_helper_mode_fill_fb_struct() 832 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &fb->depth, in drm_helper_mode_fill_fb_struct() 834 fb->pixel_format = mode_cmd->pixel_format; in drm_helper_mode_fill_fb_struct() 835 fb->flags = mode_cmd->flags; in drm_helper_mode_fill_fb_struct()
|
/linux-4.4.14/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.4.14/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() 61 struct drm_mode_fb_cmd2 mode_cmd; in bochsfb_create() local 69 mode_cmd.width = sizes->surface_width; in bochsfb_create() 70 mode_cmd.height = sizes->surface_height; in bochsfb_create() 71 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in bochsfb_create() 72 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in bochsfb_create() 74 size = mode_cmd.pitches[0] * mode_cmd.height; in bochsfb_create() 77 ret = bochsfb_create_object(bochs, &mode_cmd, &gobj); in bochsfb_create() 113 ret = bochs_framebuffer_init(bochs->dev, &bochs->fb.gfb, &mode_cmd, gobj); in bochsfb_create()
|
D | bochs_mm.c | 487 struct drm_mode_fb_cmd2 *mode_cmd, in bochs_framebuffer_init() argument 492 drm_helper_mode_fill_fb_struct(&gfb->base, mode_cmd); in bochs_framebuffer_init() 505 struct drm_mode_fb_cmd2 *mode_cmd) in bochs_user_framebuffer_create() argument 512 mode_cmd->width, mode_cmd->height, in bochs_user_framebuffer_create() 513 (mode_cmd->pixel_format) & 0xff, in bochs_user_framebuffer_create() 514 (mode_cmd->pixel_format >> 8) & 0xff, in bochs_user_framebuffer_create() 515 (mode_cmd->pixel_format >> 16) & 0xff, in bochs_user_framebuffer_create() 516 (mode_cmd->pixel_format >> 24) & 0xff); in bochs_user_framebuffer_create() 518 if (mode_cmd->pixel_format != DRM_FORMAT_XRGB8888) in bochs_user_framebuffer_create() 521 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.4.14/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() 171 struct drm_mode_fb_cmd2 mode_cmd; in cirrusfb_create() local 177 mode_cmd.width = sizes->surface_width; in cirrusfb_create() 178 mode_cmd.height = sizes->surface_height; in cirrusfb_create() 179 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in cirrusfb_create() 180 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.4.14/drivers/gpu/drm/omapdrm/ |
D | omap_fb.c | 367 struct drm_file *file, struct drm_mode_fb_cmd2 *mode_cmd) in omap_framebuffer_create() argument 373 ret = objects_lookup(dev, file, mode_cmd->pixel_format, in omap_framebuffer_create() 374 bos, mode_cmd->handles); in omap_framebuffer_create() 378 fb = omap_framebuffer_init(dev, mode_cmd, bos); in omap_framebuffer_create() 380 int i, n = drm_format_num_planes(mode_cmd->pixel_format); in omap_framebuffer_create() 389 struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos) in omap_framebuffer_init() argument 394 int ret, i, n = drm_format_num_planes(mode_cmd->pixel_format); in omap_framebuffer_init() 397 dev, mode_cmd, mode_cmd->width, mode_cmd->height, in omap_framebuffer_init() 398 (char *)&mode_cmd->pixel_format); in omap_framebuffer_init() 401 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 122 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in omap_fbdev_create() 125 mode_cmd.width = sizes->surface_width; in omap_fbdev_create() 126 mode_cmd.height = sizes->surface_height; in omap_fbdev_create() 128 mode_cmd.pitches[0] = align_pitch( in omap_fbdev_create() 129 mode_cmd.width * ((sizes->surface_bpp + 7) / 8), in omap_fbdev_create() 130 mode_cmd.width, sizes->surface_bpp); in omap_fbdev_create() 135 mode_cmd.pitches[0] = PAGE_ALIGN(mode_cmd.pitches[0]); in omap_fbdev_create() 140 .bytes = PAGE_ALIGN(mode_cmd.pitches[0] * mode_cmd.height), in omap_fbdev_create() 150 fb = omap_framebuffer_init(dev, &mode_cmd, &fbdev->bo); in omap_fbdev_create()
|
D | omap_drv.h | 175 struct drm_file *file, struct drm_mode_fb_cmd2 *mode_cmd); 177 struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos);
|
/linux-4.4.14/drivers/gpu/drm/qxl/ |
D | qxl_fb.c | 286 struct drm_mode_fb_cmd2 *mode_cmd, in qxlfb_create_pinned_object() argument 294 int height = mode_cmd->height; in qxlfb_create_pinned_object() 298 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &bpp, &depth); in qxlfb_create_pinned_object() 300 size = mode_cmd->pitches[0] * height; in qxlfb_create_pinned_object() 317 qbo->surf.width = mode_cmd->width; in qxlfb_create_pinned_object() 318 qbo->surf.height = mode_cmd->height; in qxlfb_create_pinned_object() 319 qbo->surf.stride = mode_cmd->pitches[0]; in qxlfb_create_pinned_object() 348 struct drm_mode_fb_cmd2 mode_cmd; in qxlfb_create() local 357 mode_cmd.width = sizes->surface_width; in qxlfb_create() 358 mode_cmd.height = sizes->surface_height; in qxlfb_create() [all …]
|
D | qxl_display.c | 529 struct drm_mode_fb_cmd2 *mode_cmd, in qxl_framebuffer_init() argument 540 drm_helper_mode_fill_fb_struct(&qfb->base, mode_cmd); in qxl_framebuffer_init() 1011 struct drm_mode_fb_cmd2 *mode_cmd) in qxl_user_framebuffer_create() argument 1017 obj = drm_gem_object_lookup(dev, file_priv, mode_cmd->handles[0]); in qxl_user_framebuffer_create() 1023 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.4.14/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 173 mode_cmd.width = sizes->surface_width; in mgag200fb_create() 174 mode_cmd.height = sizes->surface_height; in mgag200fb_create() 175 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in mgag200fb_create() 177 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in mgag200fb_create() 179 size = mode_cmd.pitches[0] * mode_cmd.height; in mgag200fb_create() 181 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()
|
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 | 255 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
D | radeon_fb.c | 105 struct drm_mode_fb_cmd2 *mode_cmd, in radeonfb_create_pinned_object() argument 115 int height = mode_cmd->height; in radeonfb_create_pinned_object() 118 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); in radeonfb_create_pinned_object() 121 mode_cmd->pitches[0] = radeon_align_pitch(rdev, mode_cmd->width, bpp, in radeonfb_create_pinned_object() 125 height = ALIGN(mode_cmd->height, 8); in radeonfb_create_pinned_object() 126 size = mode_cmd->pitches[0] * height; in radeonfb_create_pinned_object() 156 mode_cmd->pitches[0]); in radeonfb_create_pinned_object() 197 struct drm_mode_fb_cmd2 mode_cmd; in radeonfb_create() local 203 mode_cmd.width = sizes->surface_width; in radeonfb_create() 204 mode_cmd.height = sizes->surface_height; in radeonfb_create() [all …]
|
D | radeon_display.c | 1347 struct drm_mode_fb_cmd2 *mode_cmd, in radeon_framebuffer_init() argument 1352 drm_helper_mode_fill_fb_struct(&rfb->base, mode_cmd); in radeon_framebuffer_init() 1364 struct drm_mode_fb_cmd2 *mode_cmd) in radeon_user_framebuffer_create() argument 1370 obj = drm_gem_object_lookup(dev, file_priv, mode_cmd->handles[0]); in radeon_user_framebuffer_create() 1373 "can't create framebuffer\n", mode_cmd->handles[0]); in radeon_user_framebuffer_create() 1383 ret = radeon_framebuffer_init(dev, radeon_fb, mode_cmd, obj); in radeon_user_framebuffer_create()
|
D | radeon_mode.h | 937 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_fb.c | 105 struct drm_mode_fb_cmd2 *mode_cmd, in amdgpufb_create_pinned_object() argument 115 int height = mode_cmd->height; in amdgpufb_create_pinned_object() 118 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); in amdgpufb_create_pinned_object() 121 mode_cmd->pitches[0] = amdgpu_align_pitch(adev, mode_cmd->width, bpp, in amdgpufb_create_pinned_object() 124 height = ALIGN(mode_cmd->height, 8); in amdgpufb_create_pinned_object() 125 size = mode_cmd->pitches[0] * height; in amdgpufb_create_pinned_object() 179 struct drm_mode_fb_cmd2 mode_cmd; in amdgpufb_create() local 185 mode_cmd.width = sizes->surface_width; in amdgpufb_create() 186 mode_cmd.height = sizes->surface_height; in amdgpufb_create() 191 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in amdgpufb_create() [all …]
|
D | amdgpu_display.c | 533 struct drm_mode_fb_cmd2 *mode_cmd, in amdgpu_framebuffer_init() argument 538 drm_helper_mode_fill_fb_struct(&rfb->base, mode_cmd); in amdgpu_framebuffer_init() 550 struct drm_mode_fb_cmd2 *mode_cmd) in amdgpu_user_framebuffer_create() argument 556 obj = drm_gem_object_lookup(dev, file_priv, mode_cmd->handles[0]); in amdgpu_user_framebuffer_create() 559 "can't create framebuffer\n", mode_cmd->handles[0]); in amdgpu_user_framebuffer_create() 569 ret = amdgpu_framebuffer_init(dev, amdgpu_fb, mode_cmd, obj); in amdgpu_user_framebuffer_create()
|
D | amdgpu_mode.h | 559 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.4.14/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 199 mode_cmd.width = sizes->surface_width; in astfb_create() 200 mode_cmd.height = sizes->surface_height; in astfb_create() 201 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7)/8); in astfb_create() 203 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in astfb_create() 206 size = mode_cmd.pitches[0] * mode_cmd.height; in astfb_create() 208 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.4.14/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_kms.c | 520 *mode_cmd, in vmw_kms_new_framebuffer_surface() 543 surface->base_size.width < mode_cmd->width || in vmw_kms_new_framebuffer_surface() 544 surface->base_size.height < mode_cmd->height || in vmw_kms_new_framebuffer_surface() 551 switch (mode_cmd->depth) { in vmw_kms_new_framebuffer_surface() 565 DRM_ERROR("Invalid color depth: %d\n", mode_cmd->depth); in vmw_kms_new_framebuffer_surface() 585 vfbs->base.base.bits_per_pixel = mode_cmd->bpp; in vmw_kms_new_framebuffer_surface() 586 vfbs->base.base.pitches[0] = mode_cmd->pitch; in vmw_kms_new_framebuffer_surface() 587 vfbs->base.base.depth = mode_cmd->depth; in vmw_kms_new_framebuffer_surface() 588 vfbs->base.base.width = mode_cmd->width; in vmw_kms_new_framebuffer_surface() 589 vfbs->base.base.height = mode_cmd->height; in vmw_kms_new_framebuffer_surface() [all …]
|
D | vmwgfx_fb.c | 468 struct drm_mode_fb_cmd mode_cmd; in vmw_fb_kms_framebuffer() local 476 ret = vmw_fb_compute_depth(var, &mode_cmd.depth); in vmw_fb_kms_framebuffer() 480 mode_cmd.width = var->xres; in vmw_fb_kms_framebuffer() 481 mode_cmd.height = var->yres; in vmw_fb_kms_framebuffer() 482 mode_cmd.bpp = var->bits_per_pixel; in vmw_fb_kms_framebuffer() 483 mode_cmd.pitch = ((mode_cmd.bpp + 7) / 8) * mode_cmd.width; in vmw_fb_kms_framebuffer() 486 if (cur_fb && cur_fb->width == mode_cmd.width && in vmw_fb_kms_framebuffer() 487 cur_fb->height == mode_cmd.height && in vmw_fb_kms_framebuffer() 488 cur_fb->bits_per_pixel == mode_cmd.bpp && in vmw_fb_kms_framebuffer() 489 cur_fb->depth == mode_cmd.depth && in vmw_fb_kms_framebuffer() [all …]
|
D | vmwgfx_kms.h | 248 const struct drm_mode_fb_cmd *mode_cmd);
|
/linux-4.4.14/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() 480 struct drm_mode_fb_cmd2 mode_cmd; in udlfb_create() local 488 mode_cmd.width = sizes->surface_width; in udlfb_create() 489 mode_cmd.height = sizes->surface_height; in udlfb_create() 490 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in udlfb_create() 492 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in udlfb_create() 495 size = mode_cmd.pitches[0] * mode_cmd.height; in udlfb_create() 515 ret = udl_framebuffer_init(dev, &ufbdev->ufb, &mode_cmd, obj); in udlfb_create() 627 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.4.14/drivers/gpu/drm/virtio/ |
D | virtgpu_fb.c | 231 struct drm_mode_fb_cmd2 mode_cmd = {}; in virtio_gpufb_create() local 236 mode_cmd.width = sizes->surface_width; in virtio_gpufb_create() 237 mode_cmd.height = sizes->surface_height; in virtio_gpufb_create() 238 mode_cmd.pitches[0] = mode_cmd.width * 4; in virtio_gpufb_create() 239 mode_cmd.pixel_format = drm_mode_legacy_fb_format(32, 24); in virtio_gpufb_create() 241 switch (mode_cmd.pixel_format) { in virtio_gpufb_create() 295 mode_cmd.pixel_format); in virtio_gpufb_create() 299 size = mode_cmd.pitches[0] * mode_cmd.height; in virtio_gpufb_create() 306 mode_cmd.width, mode_cmd.height); in virtio_gpufb_create() 328 &mode_cmd, &obj->gem_base); in virtio_gpufb_create()
|
D | virtgpu_display.c | 218 struct drm_mode_fb_cmd2 *mode_cmd, in virtio_gpu_framebuffer_init() argument 232 drm_helper_mode_fill_fb_struct(&vgfb->base, mode_cmd); in virtio_gpu_framebuffer_init() 468 struct drm_mode_fb_cmd2 *mode_cmd) in virtio_gpu_user_framebuffer_create() argument 475 obj = drm_gem_object_lookup(dev, file_priv, mode_cmd->handles[0]); in virtio_gpu_user_framebuffer_create() 483 ret = virtio_gpu_framebuffer_init(dev, virtio_gpu_fb, mode_cmd, obj); in virtio_gpu_user_framebuffer_create()
|
D | virtgpu_drv.h | 331 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.4.14/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 353 mode_cmd.width = sizes->surface_width; in psbfb_create() 354 mode_cmd.height = sizes->surface_height; in psbfb_create() 368 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 7) / 8), 4096 >> pitch_lines); in psbfb_create() [all …]
|
/linux-4.4.14/drivers/gpu/drm/exynos/ |
D | exynos_drm_fb.c | 120 struct drm_mode_fb_cmd2 *mode_cmd, in exynos_drm_framebuffer_init() argument 140 drm_helper_mode_fill_fb_struct(&exynos_fb->fb, mode_cmd); in exynos_drm_framebuffer_init() 157 struct drm_mode_fb_cmd2 *mode_cmd) in exynos_user_fb_create() argument 165 for (i = 0; i < drm_format_num_planes(mode_cmd->pixel_format); i++) { in exynos_user_fb_create() 167 mode_cmd->handles[i]); in exynos_user_fb_create() 177 fb = exynos_drm_framebuffer_init(dev, mode_cmd, exynos_gem, i); in exynos_user_fb_create()
|
D | exynos_drm_fbdev.c | 126 struct drm_mode_fb_cmd2 mode_cmd = { 0 }; in exynos_drm_fbdev_create() local 135 mode_cmd.width = sizes->surface_width; in exynos_drm_fbdev_create() 136 mode_cmd.height = sizes->surface_height; in exynos_drm_fbdev_create() 137 mode_cmd.pitches[0] = sizes->surface_width * (sizes->surface_bpp >> 3); in exynos_drm_fbdev_create() 138 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in exynos_drm_fbdev_create() 143 size = mode_cmd.pitches[0] * mode_cmd.height; in exynos_drm_fbdev_create() 165 exynos_drm_framebuffer_init(dev, &mode_cmd, &exynos_gem, 1); in exynos_drm_fbdev_create()
|
D | exynos_drm_fb.h | 21 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.4.14/drivers/gpu/drm/nouveau/ |
D | nouveau_fbcon.c | 345 struct drm_mode_fb_cmd2 mode_cmd; in nouveau_fbcon_create() local 348 mode_cmd.width = sizes->surface_width; in nouveau_fbcon_create() 349 mode_cmd.height = sizes->surface_height; in nouveau_fbcon_create() 351 mode_cmd.pitches[0] = mode_cmd.width * (sizes->surface_bpp >> 3); in nouveau_fbcon_create() 352 mode_cmd.pitches[0] = roundup(mode_cmd.pitches[0], 256); in nouveau_fbcon_create() 354 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in nouveau_fbcon_create() 357 size = mode_cmd.pitches[0] * mode_cmd.height; in nouveau_fbcon_create() 400 nouveau_framebuffer_init(dev, &fbcon->nouveau_fb, &mode_cmd, nvbo); in nouveau_fbcon_create()
|
D | nouveau_display.c | 249 struct drm_mode_fb_cmd2 *mode_cmd, in nouveau_framebuffer_init() argument 256 drm_helper_mode_fill_fb_struct(fb, mode_cmd); in nouveau_framebuffer_init() 275 struct drm_mode_fb_cmd2 *mode_cmd) in nouveau_user_framebuffer_create() argument 281 gem = drm_gem_object_lookup(dev, file_priv, mode_cmd->handles[0]); in nouveau_user_framebuffer_create() 289 ret = nouveau_framebuffer_init(dev, nouveau_fb, mode_cmd, nouveau_gem_object(gem)); in nouveau_user_framebuffer_create()
|
/linux-4.4.14/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.4.14/drivers/gpu/drm/i915/ |
D | intel_fbdev.c | 125 struct drm_mode_fb_cmd2 mode_cmd = {}; in intelfb_alloc() local 133 mode_cmd.width = sizes->surface_width; in intelfb_alloc() 134 mode_cmd.height = sizes->surface_height; in intelfb_alloc() 136 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * in intelfb_alloc() 138 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in intelfb_alloc() 141 size = mode_cmd.pitches[0] * mode_cmd.height; in intelfb_alloc() 157 fb = __intel_framebuffer_create(dev, &mode_cmd, obj); in intelfb_alloc()
|
D | intel_display.c | 95 struct drm_mode_fb_cmd2 *mode_cmd, 2534 struct drm_mode_fb_cmd2 mode_cmd = { 0 }; in intel_alloc_initial_plane_obj() local 2562 mode_cmd.pixel_format = fb->pixel_format; in intel_alloc_initial_plane_obj() 2563 mode_cmd.width = fb->width; in intel_alloc_initial_plane_obj() 2564 mode_cmd.height = fb->height; in intel_alloc_initial_plane_obj() 2565 mode_cmd.pitches[0] = fb->pitches[0]; in intel_alloc_initial_plane_obj() 2566 mode_cmd.modifier[0] = fb->modifier[0]; in intel_alloc_initial_plane_obj() 2567 mode_cmd.flags = DRM_MODE_FB_MODIFIERS; in intel_alloc_initial_plane_obj() 2571 &mode_cmd, obj)) { in intel_alloc_initial_plane_obj() 10150 struct drm_mode_fb_cmd2 *mode_cmd, in __intel_framebuffer_create() argument [all …]
|
D | intel_drv.h | 1076 struct drm_mode_fb_cmd2 *mode_cmd,
|
/linux-4.4.14/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 | 200 struct drm_mode_fb_cmd2 *mode_cmd);
|
D | drm_crtc.h | 995 struct drm_mode_fb_cmd2 *mode_cmd);
|
/linux-4.4.14/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.4.14/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_dc.c | 405 struct drm_file *file_priv, struct drm_mode_fb_cmd2 *mode_cmd) in atmel_hlcdc_fb_create() argument 407 return drm_fb_cma_create(dev, file_priv, mode_cmd); in atmel_hlcdc_fb_create()
|
/linux-4.4.14/drivers/gpu/drm/tilcdc/ |
D | tilcdc_drv.c | 49 struct drm_file *file_priv, struct drm_mode_fb_cmd2 *mode_cmd) in tilcdc_fb_create() argument 51 return drm_fb_cma_create(dev, file_priv, mode_cmd); in tilcdc_fb_create()
|