| /linux-6.15/drivers/gpu/drm/tests/ |
| H A D | drm_framebuffer_test.c | 83 .pitches = { 4 * MAX_WIDTH, 0, 0 }, 89 .pitches = { 4 * MAX_WIDTH, 0, 0 }, 161 .pitches = { MAX_WIDTH, MAX_WIDTH, 0 }, 168 .pitches = { MAX_WIDTH, MAX_WIDTH, 0 }, 176 .pitches = { MAX_WIDTH, MAX_WIDTH, 0 }, 183 .pitches = { MAX_WIDTH, MAX_WIDTH, 0 }, 191 .pitches = { MAX_WIDTH, MAX_WIDTH, 0 }, 208 .pitches = { 600, 300, 300 }, 293 .pitches = { MAX_WIDTH, 0, 0 }, 319 .pitches = { 2 * MAX_WIDTH + 1, 0, 0 } [all …]
|
| H A D | drm_format_helper_test.c | 653 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_gray8() 686 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb332() 719 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb565() 773 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_xrgb1555() 820 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_argb1555() 867 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgba5551() 914 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb888() 962 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_bgr888() 1008 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_argb8888() 1055 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_xrgb2101010() [all …]
|
| /linux-6.15/drivers/gpu/drm/armada/ |
| H A D | armada_plane.c | 38 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 D | armada_plane.h | 10 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 D | armada_fb.c | 96 mode->flags, mode->pitches[0], mode->pitches[1], in armada_fb_create() 97 mode->pitches[2]); in armada_fb_create()
|
| H A D | armada_fbdev.c | 58 mode.pitches[0] = armada_pitch(mode.width, sizes->surface_bpp); in armada_fbdev_driver_fbdev_probe() 62 size = mode.pitches[0] * mode.height; in armada_fbdev_driver_fbdev_probe()
|
| /linux-6.15/drivers/gpu/drm/imx/ipuv3/ |
| H A D | ipuv3-plane.c | 439 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 …]
|
| /linux-6.15/drivers/gpu/drm/arm/ |
| H A D | malidp_mw.c | 29 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()
|
| /linux-6.15/drivers/gpu/drm/renesas/shmobile/ |
| H A D | shmob_drm_kms.c | 131 if (mode_cmd->pitches[0] & 7 || mode_cmd->pitches[0] >= 65536) { in shmob_drm_fb_create() 133 mode_cmd->pitches[0]); in shmob_drm_fb_create() 140 if (mode_cmd->pitches[1] != mode_cmd->pitches[0] * chroma_cpp) { in shmob_drm_fb_create()
|
| /linux-6.15/drivers/gpu/drm/hyperv/ |
| H A D | hyperv_drm_modeset.c | 33 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()
|
| /linux-6.15/drivers/gpu/drm/ |
| H A D | drm_fb_dma_helper.c | 102 dma_addr += fb->pitches[plane] * block_start_y; in drm_fb_dma_get_gem_addr() 143 offset = clip.y1 * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent() 145 nb_bytes = (clip.y2 - clip.y1) * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent() 192 sb->pitch[0] = fb->pitches[0]; in drm_fb_dma_get_scanout_buffer()
|
| H A D | drm_framebuffer.c | 137 r.pitches[0] = or->pitch; in drm_mode_addfb() 200 if ((uint64_t) height * r->pitches[i] + r->offsets[i] > UINT_MAX) in framebuffer_check() 203 if (block_size && r->pitches[i] < min_pitch) { in framebuffer_check() 204 drm_dbg_kms(dev, "bad pitch %u for plane %d\n", r->pitches[i], i); in framebuffer_check() 229 r->pitches[i] % 128) { in framebuffer_check() 255 if (r->pitches[i]) { in framebuffer_check() 549 r->pitch = fb->pitches[0]; in drm_mode_getfb() 617 r->pitches[i] = 0; in drm_mode_getfb2_ioctl() 623 r->pitches[i] = fb->pitches[i]; in drm_mode_getfb2_ioctl() 1174 drm_printf_indent(p, indent + 1, "pitch[%u]=%u\n", i, fb->pitches[i]); in drm_framebuffer_print_info()
|
| H A D | drm_fbdev_dma.c | 116 size_t offset = clip->y1 * fb->pitches[0]; in drm_fbdev_dma_damage_blit_real() 145 iosys_map_incr(dst, fb->pitches[0]); in drm_fbdev_dma_damage_blit_real() 146 src += fb->pitches[0]; in drm_fbdev_dma_damage_blit_real() 217 info->screen_size = sizes->surface_height * fb->pitches[0]; in drm_fbdev_dma_driver_fbdev_probe_tail()
|
| H A D | drm_fbdev_ttm.c | 73 size_t offset = clip->y1 * fb->pitches[0]; in drm_fbdev_ttm_damage_blit_real() 102 iosys_map_incr(dst, fb->pitches[0]); in drm_fbdev_ttm_damage_blit_real() 103 src += fb->pitches[0]; in drm_fbdev_ttm_damage_blit_real()
|
| /linux-6.15/drivers/gpu/drm/arm/display/komeda/ |
| H A D | komeda_framebuffer.c | 133 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()
|
| /linux-6.15/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_fbdev.c | 79 offset += fbi->var.yoffset * fb->pitches[0]; in exynos_drm_fbdev_update() 108 mode_cmd.pitches[0] = sizes->surface_width * (sizes->surface_bpp >> 3); in exynos_drm_fbdev_driver_fbdev_probe() 112 size = mode_cmd.pitches[0] * mode_cmd.height; in exynos_drm_fbdev_driver_fbdev_probe()
|
| /linux-6.15/drivers/gpu/drm/tegra/ |
| H A D | fbdev.c | 90 cmd.pitches[0] = round_up(sizes->surface_width * bytes_per_pixel, in tegra_fbdev_driver_fbdev_probe() 96 size = cmd.pitches[0] * cmd.height; in tegra_fbdev_driver_fbdev_probe() 127 info->var.yoffset * fb->pitches[0]; in tegra_fbdev_driver_fbdev_probe()
|
| /linux-6.15/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_display.c | 276 (mode_cmd->pitches[0] & 0x3f || /* align 64 */ in nouveau_framebuffer_new() 277 mode_cmd->pitches[0] >= 0x10000 || /* at most 64k pitch */ in nouveau_framebuffer_new() 278 (mode_cmd->pitches[1] && /* pitches for planes must match */ in nouveau_framebuffer_new() 279 mode_cmd->pitches[0] != mode_cmd->pitches[1]))) { in nouveau_framebuffer_new() 282 mode_cmd->pitches[0], mode_cmd->pitches[1]); in nouveau_framebuffer_new() 308 mode_cmd->pitches[i], in nouveau_framebuffer_new() 313 uint32_t size = mode_cmd->pitches[i] * height; in nouveau_framebuffer_new()
|
| /linux-6.15/drivers/gpu/drm/radeon/ |
| H A D | radeon_fbdev.c | 74 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_driver_fbdev_probe()
|
| /linux-6.15/drivers/gpu/drm/sun4i/ |
| H A D | sun4i_frontend.c | 170 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()
|
| /linux-6.15/drivers/gpu/drm/omapdrm/ |
| H A D | omap_fbdev.c | 179 mode_cmd.pitches[0] = in omap_fbdev_driver_fbdev_probe() 185 mode_cmd.pitches[0] = PAGE_ALIGN(mode_cmd.pitches[0]); in omap_fbdev_driver_fbdev_probe() 190 .bytes = PAGE_ALIGN(mode_cmd.pitches[0] * mode_cmd.height), in omap_fbdev_driver_fbdev_probe()
|
| H A D | omap_fb.c | 94 + (y * fb->pitches[n] / (n == 0 ? 1 : format->vsub)); in get_linear_addr() 209 info->screen_width = fb->pitches[0]; in omap_framebuffer_update_scanout() 331 i, fb->offsets[n], fb->pitches[i]); in omap_framebuffer_describe() 374 unsigned int pitch = mode_cmd->pitches[0]; in omap_framebuffer_init() 410 if (format->num_planes == 2 && pitch != mode_cmd->pitches[1]) { in omap_framebuffer_init()
|
| /linux-6.15/drivers/gpu/drm/i915/display/ |
| H A D | intel_fb_bo.c | 69 if (tiling != I915_TILING_NONE && mode_cmd->pitches[0] != stride) { in intel_fb_bo_framebuffer_init() 72 mode_cmd->pitches[0], stride); in intel_fb_bo_framebuffer_init()
|
| H A D | intel_fbdev_fb.c | 32 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * in intel_fbdev_fb_alloc() 37 size = mode_cmd.pitches[0] * mode_cmd.height; in intel_fbdev_fb_alloc()
|
| /linux-6.15/drivers/gpu/drm/msm/ |
| H A D | msm_fb.c | 70 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()
|