Home
last modified time | relevance | path

Searched refs:pitches (Results 1 – 25 of 99) sorted by relevance

1234

/drivers/gpu/drm/vmwgfx/device_include/
Dsvga_overlay.h141 uint32 *pitches, /* OUT (optional) */ in VMwareVideoGetAttributes() argument
157 if (pitches) { in VMwareVideoGetAttributes()
158 pitches[0] = *width; in VMwareVideoGetAttributes()
167 if (pitches) { in VMwareVideoGetAttributes()
168 pitches[1] = pitches[2] = tmp; in VMwareVideoGetAttributes()
185 if (pitches) { in VMwareVideoGetAttributes()
186 pitches[0] = *size; in VMwareVideoGetAttributes()
/drivers/gpu/drm/imx/
Dipuv3-plane.c96 return cma_obj->paddr + fb->offsets[plane] + fb->pitches[plane] * y + in drm_plane_state_to_eba()
115 return cma_obj->paddr + fb->offsets[1] + fb->pitches[1] * y + in drm_plane_state_to_ubo()
134 return cma_obj->paddr + fb->offsets[2] + fb->pitches[2] * y + in drm_plane_state_to_vbo()
389 if (fb->pitches[0] < 1 || fb->pitches[0] > 16384) in ipu_plane_atomic_check()
392 if (old_fb && fb->pitches[0] != old_fb->pitches[0]) in ipu_plane_atomic_check()
421 if (fb->pitches[1] != fb->pitches[2]) in ipu_plane_atomic_check()
438 if (fb->pitches[1] < 1 || fb->pitches[1] > 16384) in ipu_plane_atomic_check()
441 if (old_fb && old_fb->pitches[1] != fb->pitches[1]) in ipu_plane_atomic_check()
464 if (fb->pitches[1] < 1 || fb->pitches[1] > 16384) in ipu_plane_atomic_check()
467 if (old_fb && old_fb->pitches[1] != fb->pitches[1]) in ipu_plane_atomic_check()
[all …]
/drivers/gpu/drm/shmobile/
Dshmob_drm_kms.c118 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()
/drivers/gpu/drm/qxl/
Dqxl_fb.c127 size = mode_cmd->pitches[0] * height; in qxlfb_create_pinned_object()
146 qbo->surf.stride = mode_cmd->pitches[0]; in qxlfb_create_pinned_object()
183 int stride = qfbdev->qfb.base.pitches[0]; in qxlfb_framebuffer_dirty()
235 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 1) / 8), 64); in qxlfb_create()
244 mode_cmd.height, mode_cmd.pitches[0]); in qxlfb_create()
246 shadow = vmalloc(mode_cmd.pitches[0] * mode_cmd.height); in qxlfb_create()
255 size = mode_cmd.pitches[0] * mode_cmd.height; in qxlfb_create()
276 drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth); in qxlfb_create()
313 fb->format->depth, fb->pitches[0], fb->width, fb->height); in qxlfb_create()
/drivers/gpu/drm/
Ddrm_gem_framebuffer_helper.c162 min_size = (height - 1) * mode_cmd->pitches[i] in drm_gem_fb_create_with_funcs()
271 mode_cmd.pitches[0] = sizes->surface_width * in drm_gem_fbdev_fb_create()
274 mode_cmd.pitches[0] = roundup(mode_cmd.pitches[0], in drm_gem_fbdev_fb_create()
278 if (obj->size < mode_cmd.pitches[0] * mode_cmd.height) in drm_gem_fbdev_fb_create()
Ddrm_framebuffer.c117 r.pitches[0] = or->pitch; in drm_mode_addfb()
194 if ((uint64_t) height * r->pitches[i] + r->offsets[i] > UINT_MAX) in framebuffer_check()
197 if (r->pitches[i] < width * cpp) { in framebuffer_check()
198 DRM_DEBUG_KMS("bad pitch %u for plane %d\n", r->pitches[i], i); in framebuffer_check()
223 r->pitches[i] % 128) { in framebuffer_check()
249 if (r->pitches[i]) { in framebuffer_check()
471 r->pitch = fb->pitches[0]; in drm_mode_getfb()
Ddrm_modeset_helper.c85 fb->pitches[i] = mode_cmd->pitches[i]; in drm_helper_mode_fill_fb_struct()
/drivers/gpu/drm/cirrus/
Dcirrus_fbdev.c85 src_offset = dst_offset = i * afbdev->gfb.base.pitches[0] + (x * bpp); in cirrus_dirty_update()
149 bpp, mode_cmd->pitches[0])) in cirrusfb_create_object()
152 size = mode_cmd->pitches[0] * mode_cmd->height; in cirrusfb_create_object()
177 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in cirrusfb_create()
180 size = mode_cmd.pitches[0] * mode_cmd.height; in cirrusfb_create()
220 drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth); in cirrusfb_create()
241 DRM_INFO(" pitch is %d\n", fb->pitches[0]); in cirrusfb_create()
/drivers/gpu/drm/rockchip/
Drockchip_drm_fbdev.c65 mode_cmd.pitches[0] = sizes->surface_width * bytes_per_pixel; in rockchip_drm_fbdev_create()
69 size = mode_cmd.pitches[0] * mode_cmd.height; in rockchip_drm_fbdev_create()
97 drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->format->depth); in rockchip_drm_fbdev_create()
101 offset += fbi->var.yoffset * fb->pitches[0]; in rockchip_drm_fbdev_create()
/drivers/gpu/drm/omapdrm/
Domap_fbdev.c125 mode_cmd.pitches[0] = in omap_fbdev_create()
131 mode_cmd.pitches[0] = PAGE_ALIGN(mode_cmd.pitches[0]); in omap_fbdev_create()
136 .bytes = PAGE_ALIGN(mode_cmd.pitches[0] * mode_cmd.height), in omap_fbdev_create()
191 drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->format->depth); in omap_fbdev_create()
/drivers/gpu/drm/arm/
Dmalidp_planes.c196 if (!malidp_hw_pitch_valid(mp->hwdev, fb->pitches[i])) { in malidp_de_plane_check()
198 fb->pitches[i], i); in malidp_de_plane_check()
216 (state->fb->pitches[1] != state->fb->pitches[2])) in malidp_de_plane_check()
246 int num_planes, unsigned int pitches[3]) in malidp_de_set_plane_pitches()
259 malidp_hw_write(mp->hwdev, pitches[i], in malidp_de_set_plane_pitches()
296 plane->state->fb->pitches); in malidp_de_plane_update()
/drivers/gpu/drm/bochs/
Dbochs_fbdev.c41 size = mode_cmd->pitches[0] * mode_cmd->height; in bochsfb_create_object()
67 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in bochsfb_create()
70 size = mode_cmd.pitches[0] * mode_cmd.height; in bochsfb_create()
123 drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth); in bochsfb_create()
/drivers/gpu/drm/mgag200/
Dmgag200_fb.c88 src_offset = dst_offset = i * mfbdev->mfb.base.pitches[0] + (x * bpp); in mga_dirty_update()
147 size = mode_cmd->pitches[0] * mode_cmd->height; in mgag200fb_create_object()
173 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in mgag200fb_create()
177 size = mode_cmd.pitches[0] * mode_cmd.height; in mgag200fb_create()
219 drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth); in mgag200fb_create()
/drivers/gpu/drm/ast/
Dast_fb.c113 src_offset = dst_offset = i * afbdev->afb.base.pitches[0] + (x * bpp); in ast_dirty_update()
173 size = mode_cmd->pitches[0] * mode_cmd->height; in astfb_create_object()
197 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7)/8); in astfb_create()
202 size = mode_cmd.pitches[0] * mode_cmd.height; in astfb_create()
239 drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth); in astfb_create()
/drivers/gpu/drm/hisilicon/hibmc/
Dhibmc_drm_fbdev.c35 size = mode_cmd->pitches[0] * mode_cmd->height; in hibmcfb_create_object()
79 mode_cmd.pitches[0] = mode_cmd.width * bytes_per_pixel; in hibmc_drm_fb_create()
83 size = PAGE_ALIGN(mode_cmd.pitches[0] * mode_cmd.height); in hibmc_drm_fb_create()
136 drm_fb_helper_fill_fix(info, hi_fbdev->fb->fb.pitches[0], in hibmc_drm_fb_create()
/drivers/gpu/drm/radeon/
Dradeon_fb.c141 mode_cmd->pitches[0] = radeon_align_pitch(rdev, mode_cmd->width, cpp, in radeonfb_create_pinned_object()
146 size = mode_cmd->pitches[0] * height; in radeonfb_create_pinned_object()
175 mode_cmd->pitches[0]); in radeonfb_create_pinned_object()
264 drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth); in radeonfb_create()
291 DRM_INFO(" pitch is %d\n", fb->pitches[0]); in radeonfb_create()
/drivers/gpu/drm/exynos/
Dexynos_drm_fbdev.c95 drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->format->depth); in exynos_drm_fbdev_update()
108 offset += fbi->var.yoffset * fb->pitches[0]; in exynos_drm_fbdev_update()
133 mode_cmd.pitches[0] = sizes->surface_width * (sizes->surface_bpp >> 3); in exynos_drm_fbdev_create()
137 size = mode_cmd.pitches[0] * mode_cmd.height; in exynos_drm_fbdev_create()
/drivers/gpu/drm/armada/
Darmada_fbdev.c42 mode.pitches[0] = armada_pitch(mode.width, sizes->surface_bpp); in armada_fb_create()
46 size = mode.pitches[0] * mode.height; in armada_fb_create()
91 drm_fb_helper_fill_fix(info, dfb->fb.pitches[0], in armada_fb_create()
Darmada_fb.c112 mode->flags, mode->pitches[0], mode->pitches[1], in armada_fb_create()
113 mode->pitches[2]); in armada_fb_create()
/drivers/gpu/drm/tegra/
Dfb.c177 size = (height - 1) * cmd->pitches[i] + in tegra_fb_create()
231 cmd.pitches[0] = round_up(sizes->surface_width * bytes_per_pixel, in tegra_fbdev_probe()
236 size = cmd.pitches[0] * cmd.height; in tegra_fbdev_probe()
266 drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth); in tegra_fbdev_probe()
270 info->var.yoffset * fb->pitches[0]; in tegra_fbdev_probe()
/drivers/gpu/drm/msm/
Dmsm_fb.c79 i, fb->offsets[i], fb->pitches[i]); in msm_framebuffer_describe()
214 min_size = (height - 1) * mode_cmd->pitches[i] in msm_framebuffer_init()
251 .pitches = { p }, in msm_alloc_stolen_fb()
258 size = mode_cmd.pitches[0] * mode_cmd.height; in msm_alloc_stolen_fb()
/drivers/gpu/drm/udl/
Dudl_fb.c130 const int line_offset = fb->base.pitches[0] * i; in udl_handle_damage()
372 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in udlfb_create()
377 size = mode_cmd.pitches[0] * mode_cmd.height; in udlfb_create()
412 drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth); in udlfb_create()
517 size = mode_cmd->pitches[0] * mode_cmd->height; in udl_fb_user_fb_create()
521 …DRM_ERROR("object size not sufficient for fb %d %zu %d %d\n", size, obj->size, mode_cmd->pitches[0… in udl_fb_user_fb_create()
/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c712 ydiv) * fb->pitches[i]; in atmel_hlcdc_plane_atomic_check()
716 fb->pitches[i]; in atmel_hlcdc_plane_atomic_check()
717 state->pstride[i] = -fb->pitches[i] - state->bpp[i]; in atmel_hlcdc_plane_atomic_check()
721 ydiv) * fb->pitches[i]; in atmel_hlcdc_plane_atomic_check()
725 state->bpp[i]) - fb->pitches[i]; in atmel_hlcdc_plane_atomic_check()
730 fb->pitches[i]; in atmel_hlcdc_plane_atomic_check()
734 fb->pitches[i]) - in atmel_hlcdc_plane_atomic_check()
736 state->pstride[i] = fb->pitches[i] - state->bpp[i]; in atmel_hlcdc_plane_atomic_check()
741 fb->pitches[i]; in atmel_hlcdc_plane_atomic_check()
744 state->xstride[i] = fb->pitches[i] - in atmel_hlcdc_plane_atomic_check()
/drivers/gpu/drm/rcar-du/
Drcar_du_kms.c201 if (mode_cmd->pitches[0] & (align - 1) || in rcar_du_fb_create()
202 mode_cmd->pitches[0] >= max_pitch) { in rcar_du_fb_create()
204 mode_cmd->pitches[0]); in rcar_du_fb_create()
209 if (mode_cmd->pitches[i] != mode_cmd->pitches[0]) { in rcar_du_fb_create()
/drivers/staging/vboxvideo/
Dvbox_fb.c76 u32 pitch = mode_cmd->pitches[0]; in vboxfb_create_object()
108 mode_cmd.pitches[0] = pitch; in vboxfb_create()
169 drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth); in vboxfb_create()

1234