/kernel/linux/linux-5.10/drivers/gpu/drm/selftests/ |
D | test-drm_framebuffer.c | 30 .handles = { 1, 0, 0 }, .pitches = { 4 * 600, 0, 0 }, 35 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 40 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH + 1, 0, 0 }, 45 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH - 1, 0, 0 }, 50 .handles = { 1, 0, 0 }, .pitches = { 4 * (MAX_WIDTH + 1), 0, 0 }, 55 .handles = { 0, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 60 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 65 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 70 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 75 .handles = { 1, 0, 0 }, .offsets = { UINT_MAX - 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/device_include/ |
D | svga_overlay.h | 142 uint32 *pitches, /* OUT (optional) */ in VMwareVideoGetAttributes() argument 158 if (pitches) { in VMwareVideoGetAttributes() 159 pitches[0] = *width; in VMwareVideoGetAttributes() 168 if (pitches) { in VMwareVideoGetAttributes() 169 pitches[1] = pitches[2] = tmp; in VMwareVideoGetAttributes() 186 if (pitches) { in VMwareVideoGetAttributes() 187 pitches[0] = *size; in VMwareVideoGetAttributes()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_format_helper.c | 43 vaddr += clip_offset(clip, fb->pitches[0], cpp); in drm_fb_memcpy() 46 vaddr += fb->pitches[0]; in drm_fb_memcpy() 67 unsigned int offset = clip_offset(clip, fb->pitches[0], cpp); in drm_fb_memcpy_dstclip() 75 vaddr += fb->pitches[0]; in drm_fb_memcpy_dstclip() 76 dst += fb->pitches[0]; in drm_fb_memcpy_dstclip() 111 src += clip_offset(clip, fb->pitches[0], cpp); in drm_fb_swab() 130 src += fb->pitches[0]; in drm_fb_swab() 187 vaddr += clip_offset(clip, fb->pitches[0], sizeof(u32)); in drm_fb_xrgb8888_to_rgb565() 191 vaddr += fb->pitches[0]; in drm_fb_xrgb8888_to_rgb565() 227 vaddr += clip_offset(clip, fb->pitches[0], sizeof(u32)); in drm_fb_xrgb8888_to_rgb565_dstclip() [all …]
|
D | drm_framebuffer.c | 136 r.pitches[0] = or->pitch; in drm_mode_addfb() 220 if ((uint64_t) height * r->pitches[i] + r->offsets[i] > UINT_MAX) in framebuffer_check() 223 if (block_size && r->pitches[i] < min_pitch) { in framebuffer_check() 224 DRM_DEBUG_KMS("bad pitch %u for plane %d\n", r->pitches[i], i); in framebuffer_check() 249 r->pitches[i] % 128) { in framebuffer_check() 275 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() 1179 drm_printf_indent(p, indent + 1, "pitch[%u]=%u\n", i, fb->pitches[i]); in drm_framebuffer_print_info()
|
D | drm_modeset_helper.c | 90 fb->pitches[i] = mode_cmd->pitches[i]; in drm_helper_mode_fill_fb_struct()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/imx/ |
D | ipuv3-plane.c | 103 return cma_obj->paddr + fb->offsets[plane] + fb->pitches[plane] * y + in drm_plane_state_to_eba() 122 return cma_obj->paddr + fb->offsets[1] + fb->pitches[1] * y + in drm_plane_state_to_ubo() 141 return cma_obj->paddr + fb->offsets[2] + fb->pitches[2] * y + in drm_plane_state_to_vbo() 415 if (fb->pitches[0] < 1 || fb->pitches[0] > 16384) in ipu_plane_atomic_check() 418 if (old_fb && fb->pitches[0] != old_fb->pitches[0]) in ipu_plane_atomic_check() 447 if (fb->pitches[1] != fb->pitches[2]) 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() 488 if (fb->pitches[1] < 1 || fb->pitches[1] > 16384) in ipu_plane_atomic_check() 491 if (old_fb && old_fb->pitches[1] != fb->pitches[1]) in ipu_plane_atomic_check() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/armada/ |
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() 152 armada_drm_plane_calc(state, st->addrs, st->pitches, interlace); in armada_drm_plane_atomic_check()
|
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);
|
D | armada_fb.c | 97 mode->flags, mode->pitches[0], mode->pitches[1], in armada_fb_create() 98 mode->pitches[2]); in armada_fb_create()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/shmobile/ |
D | shmob_drm_kms.c | 104 if (mode_cmd->pitches[0] & 7 || mode_cmd->pitches[0] >= 65536) { in shmob_drm_fb_create() 106 mode_cmd->pitches[0]); in shmob_drm_fb_create() 113 if (mode_cmd->pitches[1] != mode_cmd->pitches[0] * chroma_cpp) { in shmob_drm_fb_create()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/ |
D | malidp_mw.c | 27 s32 pitches[2]; member 168 if (fb->pitches[i] & (alignment - 1)) { in malidp_mw_encoder_atomic_check() 170 fb->pitches[i], i); in malidp_mw_encoder_atomic_check() 173 mw_state->pitches[i] = fb->pitches[i]; in malidp_mw_encoder_atomic_check() 257 mw_state->pitches[0], in malidp_mw_atomic_commit() 263 mw_state->pitches, mw_state->n_planes, in malidp_mw_atomic_commit()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/display/komeda/ |
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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_fbdev.c | 57 mode_cmd.pitches[0] = sizes->surface_width * bytes_per_pixel; in rockchip_drm_fbdev_create() 61 size = mode_cmd.pitches[0] * mode_cmd.height; in rockchip_drm_fbdev_create() 91 offset += fbi->var.yoffset * fb->pitches[0]; in rockchip_drm_fbdev_create()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/ |
D | msm_fb.c | 44 i, fb->offsets[i], fb->pitches[i]); in msm_framebuffer_describe() 176 min_size = (height - 1) * mode_cmd->pitches[i] in msm_framebuffer_init() 213 .pitches = { p }, in msm_alloc_stolen_fb() 220 size = mode_cmd.pitches[0] * mode_cmd.height; in msm_alloc_stolen_fb()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/ |
D | omap_fbdev.c | 116 mode_cmd.pitches[0] = in omap_fbdev_create() 122 mode_cmd.pitches[0] = PAGE_ALIGN(mode_cmd.pitches[0]); in omap_fbdev_create() 127 .bytes = PAGE_ALIGN(mode_cmd.pitches[0] * mode_cmd.height), in omap_fbdev_create()
|
D | omap_fb.c | 91 + (y * fb->pitches[n] / (n == 0 ? 1 : format->vsub)); in get_linear_addr() 204 info->screen_width = fb->pitches[0]; in omap_framebuffer_update_scanout() 297 i, fb->offsets[n], fb->pitches[i]); in omap_framebuffer_describe() 340 unsigned int pitch = mode_cmd->pitches[0]; in omap_framebuffer_init() 376 if (format->num_planes == 2 && pitch != mode_cmd->pitches[1]) { in omap_framebuffer_init()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_display.c | 321 (mode_cmd->pitches[0] & 0x3f || /* align 64 */ in nouveau_framebuffer_new() 322 mode_cmd->pitches[0] >= 0x10000 || /* at most 64k pitch */ in nouveau_framebuffer_new() 323 (mode_cmd->pitches[1] && /* pitches for planes must match */ in nouveau_framebuffer_new() 324 mode_cmd->pitches[0] != mode_cmd->pitches[1]))) { in nouveau_framebuffer_new() 329 mode_cmd->pitches[0], in nouveau_framebuffer_new() 330 mode_cmd->pitches[1]); in nouveau_framebuffer_new() 359 mode_cmd->pitches[i], in nouveau_framebuffer_new() 364 uint32_t size = mode_cmd->pitches[i] * height; in nouveau_framebuffer_new()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_plane.c | 653 fb->pitches[i]; in atmel_hlcdc_plane_atomic_check() 657 fb->pitches[i]) - in atmel_hlcdc_plane_atomic_check() 659 state->pstride[i] = fb->pitches[i] - state->bpp[i]; in atmel_hlcdc_plane_atomic_check() 663 ydiv) * fb->pitches[i]; in atmel_hlcdc_plane_atomic_check() 667 state->bpp[i]) - fb->pitches[i]; in atmel_hlcdc_plane_atomic_check() 672 ydiv) * fb->pitches[i]; in atmel_hlcdc_plane_atomic_check() 675 fb->pitches[i]; in atmel_hlcdc_plane_atomic_check() 676 state->pstride[i] = -fb->pitches[i] - state->bpp[i]; in atmel_hlcdc_plane_atomic_check() 680 offset = (state->src_y / ydiv) * fb->pitches[i]; in atmel_hlcdc_plane_atomic_check() 682 state->xstride[i] = fb->pitches[i] - in atmel_hlcdc_plane_atomic_check()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/ |
D | exynos_drm_fbdev.c | 93 offset += fbi->var.yoffset * fb->pitches[0]; in exynos_drm_fbdev_update() 119 mode_cmd.pitches[0] = sizes->surface_width * (sizes->surface_bpp >> 3); in exynos_drm_fbdev_create() 123 size = mode_cmd.pitches[0] * mode_cmd.height; in exynos_drm_fbdev_create()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/xlnx/ |
D | zynqmp_dpsub.c | 61 for (i = 0; i < ARRAY_SIZE(cmd.pitches); ++i) in zynqmp_dpsub_fb_create() 62 cmd.pitches[i] = ALIGN(cmd.pitches[i], dpsub->dma_align); in zynqmp_dpsub_fb_create()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | radeon_fb.c | 144 mode_cmd->pitches[0] = radeon_align_pitch(rdev, mode_cmd->width, cpp, in radeonfb_create_pinned_object() 149 size = mode_cmd->pitches[0] * height; in radeonfb_create_pinned_object() 178 mode_cmd->pitches[0]); in radeonfb_create_pinned_object() 291 DRM_INFO(" pitch is %d\n", fb->pitches[0]); in radeonfb_create()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_formats.c | 682 const uint32_t *pitches) in _dpu_format_get_plane_sizes_linear() argument 739 if (pitches && layout->plane_pitch[i] < pitches[i]) in _dpu_format_get_plane_sizes_linear() 740 layout->plane_pitch[i] = pitches[i]; in _dpu_format_get_plane_sizes_linear() 754 const uint32_t *pitches) in dpu_format_get_plane_sizes() argument 769 return _dpu_format_get_plane_sizes_linear(fmt, w, h, layout, pitches); in dpu_format_get_plane_sizes() 872 if (layout->plane_pitch[i] > fb->pitches[i]) { in _dpu_format_populate_addrs_linear() 874 i, layout->plane_pitch[i], fb->pitches[i]); in _dpu_format_populate_addrs_linear() 916 layout, fb->pitches); in dpu_format_populate_layout() 960 &layout, cmd->pitches); in dpu_format_check_modified_format()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/ |
D | fb.c | 153 size = (height - 1) * cmd->pitches[i] + in tegra_fb_create() 223 cmd.pitches[0] = round_up(sizes->surface_width * bytes_per_pixel, in tegra_fbdev_probe() 229 size = cmd.pitches[0] * cmd.height; in tegra_fbdev_probe() 260 info->var.yoffset * fb->pitches[0]; in tegra_fbdev_probe()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp4/ |
D | mdp4_plane.c | 146 MDP4_PIPE_SRC_STRIDE_A_P0(fb->pitches[0]) | in mdp4_plane_set_scanout() 147 MDP4_PIPE_SRC_STRIDE_A_P1(fb->pitches[1])); in mdp4_plane_set_scanout() 150 MDP4_PIPE_SRC_STRIDE_B_P2(fb->pitches[2]) | in mdp4_plane_set_scanout() 151 MDP4_PIPE_SRC_STRIDE_B_P3(fb->pitches[3])); in mdp4_plane_set_scanout()
|