Home
last modified time | relevance | path

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

123456

/openbmc/linux/drivers/gpu/drm/tests/
H A Ddrm_framebuffer_test.c77 .pitches = { 4 * MAX_WIDTH, 0, 0 },
83 .pitches = { 4 * MAX_WIDTH, 0, 0 },
137 .pitches = { MAX_WIDTH, MAX_WIDTH, 0 },
144 .pitches = { MAX_WIDTH, MAX_WIDTH, 0 },
152 .pitches = { MAX_WIDTH, MAX_WIDTH, 0 },
159 .pitches = { MAX_WIDTH, MAX_WIDTH, 0 },
167 .pitches = { MAX_WIDTH, MAX_WIDTH, 0 },
173 .pitches = { MAX_WIDTH, MAX_WIDTH, 0 },
184 .pitches = { 600, 300, 300 },
288 .pitches = { 2 * MAX_WIDTH + 1, 0, 0 }
[all …]
H A Ddrm_format_helper_test.c518 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_gray8()
548 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb332()
578 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb565()
614 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_xrgb1555()
645 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_argb1555()
676 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgba5551()
707 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb888()
741 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_argb8888()
772 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_xrgb2101010()
803 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_argb2101010()
[all …]
/openbmc/linux/drivers/gpu/drm/armada/
H A Darmada_plane.c38 u16 pitches[3], bool interlaced) in armada_drm_plane_calc()
49 fb->pitches[0], x, y, format->cpp[0] * 8); in armada_drm_plane_calc()
54 addrs[0][0] = addr + fb->offsets[0] + y * fb->pitches[0] + in armada_drm_plane_calc()
56 pitches[0] = fb->pitches[0]; in armada_drm_plane_calc()
62 addrs[0][i] = addr + fb->offsets[i] + y * fb->pitches[i] + in armada_drm_plane_calc()
64 pitches[i] = fb->pitches[i]; in armada_drm_plane_calc()
68 pitches[i] = 0; in armada_drm_plane_calc()
72 addrs[1][i] = addrs[0][i] + pitches[i]; in armada_drm_plane_calc()
73 pitches[i] *= 2; in armada_drm_plane_calc()
129 armada_drm_plane_calc(new_plane_state, st->addrs, st->pitches, in armada_drm_plane_atomic_check()
H A Darmada_plane.h10 u16 pitches[3]; member
20 #define armada_pitch(state, n) to_armada_plane_state(state)->pitches[n]
23 u16 pitches[3], bool interlaced);
H A Darmada_fb.c96 mode->flags, mode->pitches[0], mode->pitches[1], in armada_fb_create()
97 mode->pitches[2]); in armada_fb_create()
/openbmc/linux/drivers/gpu/drm/imx/ipuv3/
H A Dipuv3-plane.c439 if (fb->pitches[0] < 1 || fb->pitches[0] > 16384) in ipu_plane_atomic_check()
442 if (old_fb && fb->pitches[0] != old_fb->pitches[0]) in ipu_plane_atomic_check()
446 fb->pitches[0] + fb->offsets[0]) { in ipu_plane_atomic_check()
477 if (fb->pitches[1] != fb->pitches[2]) in ipu_plane_atomic_check()
494 if (fb->pitches[1] < 1 || fb->pitches[1] > 16384) in ipu_plane_atomic_check()
497 if (old_fb && old_fb->pitches[1] != fb->pitches[1]) in ipu_plane_atomic_check()
518 if (fb->pitches[1] < 1 || fb->pitches[1] > 16384) in ipu_plane_atomic_check()
521 if (old_fb && old_fb->pitches[1] != fb->pitches[1]) in ipu_plane_atomic_check()
632 height, fb->pitches[0], in ipu_plane_atomic_update()
717 fb->pitches[1], ubo, vbo); in ipu_plane_atomic_update()
[all …]
/openbmc/linux/drivers/gpu/drm/renesas/shmobile/
H A Dshmob_drm_kms.c109 if (mode_cmd->pitches[0] & 7 || mode_cmd->pitches[0] >= 65536) { in shmob_drm_fb_create()
111 mode_cmd->pitches[0]); in shmob_drm_fb_create()
118 if (mode_cmd->pitches[1] != mode_cmd->pitches[0] * chroma_cpp) { in shmob_drm_fb_create()
/openbmc/linux/drivers/gpu/drm/arm/
H A Dmalidp_mw.c29 s32 pitches[2]; member
170 if (fb->pitches[i] & (alignment - 1)) { in malidp_mw_encoder_atomic_check()
172 fb->pitches[i], i); in malidp_mw_encoder_atomic_check()
175 mw_state->pitches[i] = fb->pitches[i]; in malidp_mw_encoder_atomic_check()
259 mw_state->pitches[0], in malidp_mw_atomic_commit()
265 mw_state->pitches, mw_state->n_planes, in malidp_mw_atomic_commit()
/openbmc/linux/drivers/gpu/drm/hyperv/
H A Dhyperv_drm_modeset.c33 iosys_map_incr(&dst, drm_fb_clip_offset(fb->pitches[0], fb->format, rect)); in hyperv_blit_to_vram_rect()
34 drm_fb_memcpy(&dst, fb->pitches, vmap, fb, rect); in hyperv_blit_to_vram_rect()
93 pitch = fb->pitches[0]; in hyperv_check_size()
112 plane_state->fb->pitches[0]); in hyperv_pipe_enable()
126 if (fb->pitches[0] * fb->height > hv->fb_size) { in hyperv_pipe_check()
128 current->comm, fb->width, fb->height, fb->pitches[0], hv->fb_size); in hyperv_pipe_check()
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_fb_dma_helper.c101 dma_addr += fb->pitches[plane] * block_start_y; in drm_fb_dma_get_gem_addr()
142 offset = clip.y1 * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent()
144 nb_bytes = (clip.y2 - clip.y1) * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent()
H A Ddrm_framebuffer.c136 r.pitches[0] = or->pitch; in drm_mode_addfb()
217 if ((uint64_t) height * r->pitches[i] + r->offsets[i] > UINT_MAX) in framebuffer_check()
220 if (block_size && r->pitches[i] < min_pitch) { in framebuffer_check()
221 drm_dbg_kms(dev, "bad pitch %u for plane %d\n", r->pitches[i], i); in framebuffer_check()
246 r->pitches[i] % 128) { in framebuffer_check()
272 if (r->pitches[i]) { in framebuffer_check()
534 r->pitch = fb->pitches[0]; in drm_mode_getfb()
602 r->pitches[i] = 0; in drm_mode_getfb2_ioctl()
608 r->pitches[i] = fb->pitches[i]; in drm_mode_getfb2_ioctl()
1194 drm_printf_indent(p, indent + 1, "pitch[%u]=%u\n", i, fb->pitches[i]); in drm_framebuffer_print_info()
H A Ddrm_modeset_helper.c91 fb->pitches[i] = mode_cmd->pitches[i]; in drm_helper_mode_fill_fb_struct()
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/
H A Dkomeda_framebuffer.c133 if ((fb->pitches[i] * block_h) % mdev->chip.bus_width) { in komeda_fb_none_afbc_size_check()
135 i, fb->pitches[i], mdev->chip.bus_width); in komeda_fb_none_afbc_size_check()
149 if (fb->pitches[1] != fb->pitches[2]) { in komeda_fb_none_afbc_size_check()
260 + plane_y * fb->pitches[plane]; in komeda_fb_get_pixel_addr()
/openbmc/linux/drivers/gpu/drm/sun4i/
H A Dsun4i_frontend.c170 strides[0] = SUN4I_FRONTEND_LINESTRD_TILED(fb->pitches[0]); in sun4i_frontend_update_buffer()
184 SUN4I_FRONTEND_LINESTRD_TILED(fb->pitches[1]); in sun4i_frontend_update_buffer()
192 SUN4I_FRONTEND_LINESTRD_TILED(fb->pitches[2]); in sun4i_frontend_update_buffer()
198 strides[0] = fb->pitches[0]; in sun4i_frontend_update_buffer()
201 strides[1] = fb->pitches[1]; in sun4i_frontend_update_buffer()
204 strides[2] = fb->pitches[2]; in sun4i_frontend_update_buffer()
208 DRM_DEBUG_DRIVER("Frontend stride: %d bytes\n", fb->pitches[0]); in sun4i_frontend_update_buffer()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/
H A DCVE-2022-34568.patch21 if ( hwdata->image != NULL && hwdata->image->pitches[0] != (width*bpp) ) {
24 width = hwdata->image->pitches[0] / bpp;
/openbmc/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_display.c315 (mode_cmd->pitches[0] & 0x3f || /* align 64 */ in nouveau_framebuffer_new()
316 mode_cmd->pitches[0] >= 0x10000 || /* at most 64k pitch */ in nouveau_framebuffer_new()
317 (mode_cmd->pitches[1] && /* pitches for planes must match */ in nouveau_framebuffer_new()
318 mode_cmd->pitches[0] != mode_cmd->pitches[1]))) { in nouveau_framebuffer_new()
321 mode_cmd->pitches[0], mode_cmd->pitches[1]); in nouveau_framebuffer_new()
347 mode_cmd->pitches[i], in nouveau_framebuffer_new()
352 uint32_t size = mode_cmd->pitches[i] * height; in nouveau_framebuffer_new()
/openbmc/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_fbdev.c80 offset += fbi->var.yoffset * fb->pitches[0]; in exynos_drm_fbdev_update()
106 mode_cmd.pitches[0] = sizes->surface_width * (sizes->surface_bpp >> 3); in exynos_drm_fbdev_create()
110 size = mode_cmd.pitches[0] * mode_cmd.height; in exynos_drm_fbdev_create()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_fb.c724 return fb->pitches[color_plane] * tile_height; in intel_tile_row_size()
1134 fb->pitches[color_plane], in intel_fb_offset_to_xy()
1221 if (fb->pitches[i] & alignment) in intel_plane_can_remap()
1320 fb->base.pitches[color_plane], in calc_plane_aligned_offset()
1787 if (fb->pitches[color_plane] > max_stride && in intel_fb_stride_alignment()
1995 if (mode_cmd->pitches[0] > max_stride) { in intel_framebuffer_init()
2000 mode_cmd->pitches[0], max_stride); in intel_framebuffer_init()
2011 mode_cmd->pitches[0], stride); in intel_framebuffer_init()
2038 i, fb->pitches[i], stride_alignment); in intel_framebuffer_init()
2045 if (fb->pitches[i] != ccs_aux_stride) { in intel_framebuffer_init()
[all …]
/openbmc/linux/drivers/gpu/drm/msm/
H A Dmsm_fb.c70 i, fb->offsets[i], fb->pitches[i]); in msm_framebuffer_describe()
213 min_size = (height - 1) * mode_cmd->pitches[i] in msm_framebuffer_init()
252 .pitches = { p }, in msm_alloc_stolen_fb()
259 size = mode_cmd.pitches[0] * mode_cmd.height; in msm_alloc_stolen_fb()
/openbmc/linux/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_plane.c656 fb->pitches[i]; in atmel_hlcdc_plane_atomic_check()
660 fb->pitches[i]) - in atmel_hlcdc_plane_atomic_check()
662 hstate->pstride[i] = fb->pitches[i] - hstate->bpp[i]; in atmel_hlcdc_plane_atomic_check()
666 ydiv) * fb->pitches[i]; in atmel_hlcdc_plane_atomic_check()
670 hstate->bpp[i]) - fb->pitches[i]; in atmel_hlcdc_plane_atomic_check()
675 ydiv) * fb->pitches[i]; in atmel_hlcdc_plane_atomic_check()
678 fb->pitches[i]; in atmel_hlcdc_plane_atomic_check()
679 hstate->pstride[i] = -fb->pitches[i] - hstate->bpp[i]; in atmel_hlcdc_plane_atomic_check()
683 offset = (hstate->src_y / ydiv) * fb->pitches[i]; in atmel_hlcdc_plane_atomic_check()
685 hstate->xstride[i] = fb->pitches[i] - in atmel_hlcdc_plane_atomic_check()
/openbmc/linux/drivers/gpu/drm/tegra/
H A Dfbdev.c87 cmd.pitches[0] = round_up(sizes->surface_width * bytes_per_pixel, in tegra_fbdev_probe()
93 size = cmd.pitches[0] * cmd.height; in tegra_fbdev_probe()
123 info->var.yoffset * fb->pitches[0]; in tegra_fbdev_probe()
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_fbdev.c74 mode_cmd->pitches[0] = radeon_align_pitch(rdev, mode_cmd->width, cpp, in radeon_fbdev_create_pinned_object()
79 size = mode_cmd->pitches[0] * height; in radeon_fbdev_create_pinned_object()
109 mode_cmd->pitches[0]); in radeon_fbdev_create_pinned_object()
276 DRM_INFO(" pitch is %d\n", fb->pitches[0]); in radeon_fbdev_fb_helper_fb_probe()
/openbmc/linux/drivers/gpu/drm/omapdrm/
H A Domap_fbdev.c155 mode_cmd.pitches[0] = in omap_fbdev_create()
161 mode_cmd.pitches[0] = PAGE_ALIGN(mode_cmd.pitches[0]); in omap_fbdev_create()
166 .bytes = PAGE_ALIGN(mode_cmd.pitches[0] * mode_cmd.height), in omap_fbdev_create()
H A Domap_fb.c93 + (y * fb->pitches[n] / (n == 0 ? 1 : format->vsub)); in get_linear_addr()
208 info->screen_width = fb->pitches[0]; in omap_framebuffer_update_scanout()
330 i, fb->offsets[n], fb->pitches[i]); in omap_framebuffer_describe()
373 unsigned int pitch = mode_cmd->pitches[0]; in omap_framebuffer_init()
409 if (format->num_planes == 2 && pitch != mode_cmd->pitches[1]) { in omap_framebuffer_init()
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_formats.c716 const uint32_t *pitches) in _dpu_format_get_plane_sizes_linear() argument
773 if (pitches && layout->plane_pitch[i] < pitches[i]) in _dpu_format_get_plane_sizes_linear()
774 layout->plane_pitch[i] = pitches[i]; in _dpu_format_get_plane_sizes_linear()
788 const uint32_t *pitches) in dpu_format_get_plane_sizes() argument
803 return _dpu_format_get_plane_sizes_linear(fmt, w, h, layout, pitches); in dpu_format_get_plane_sizes()
906 if (layout->plane_pitch[i] > fb->pitches[i]) { in _dpu_format_populate_addrs_linear()
908 i, layout->plane_pitch[i], fb->pitches[i]); in _dpu_format_populate_addrs_linear()
949 layout, fb->pitches); in dpu_format_populate_layout()
986 &layout, cmd->pitches); in dpu_format_check_modified_format()

123456