| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_framebuffer_test.c | 37 .handles = { 1, 0, 0 }, .pitches = { 4 * 600, 0, 0 }, 42 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 47 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH + 1, 0, 0 }, 52 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH - 1, 0, 0 }, 57 .handles = { 1, 0, 0 }, .pitches = { 4 * (MAX_WIDTH + 1), 0, 0 }, 62 .handles = { 0, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 67 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 72 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 77 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 83 .pitches = { 4 * MAX_WIDTH, 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() 768 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_xrgb1555() 809 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_argb1555() 850 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgba5551() 891 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb888() 934 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_bgr888() 976 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_argb8888() 1017 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_xrgb2101010() [all …]
|
| /linux/drivers/gpu/drm/imx/ipuv3/ |
| H A D | ipuv3-plane.c | 136 return dma_obj->dma_addr + fb->offsets[plane] + fb->pitches[plane] * y + in drm_plane_state_to_eba() 155 return dma_obj->dma_addr + fb->offsets[1] + fb->pitches[1] * y + in drm_plane_state_to_ubo() 174 return dma_obj->dma_addr + fb->offsets[2] + fb->pitches[2] * y + in drm_plane_state_to_vbo() 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() [all …]
|
| /linux/drivers/gpu/drm/armada/ |
| H A D | armada_plane.c | 39 u16 pitches[3], bool interlaced) in armada_drm_plane_calc() 50 fb->pitches[0], x, y, format->cpp[0] * 8); in armada_drm_plane_calc() 55 addrs[0][0] = addr + fb->offsets[0] + y * fb->pitches[0] + in armada_drm_plane_calc() 57 pitches[0] = fb->pitches[0]; in armada_drm_plane_calc() 63 addrs[0][i] = addr + fb->offsets[i] + y * fb->pitches[i] + in armada_drm_plane_calc() 65 pitches[i] = fb->pitches[i]; in armada_drm_plane_calc() 69 pitches[i] = 0; in armada_drm_plane_calc() 73 addrs[1][i] = addrs[0][i] + pitches[i]; in armada_drm_plane_calc() 74 pitches[i] *= 2; in armada_drm_plane_calc() 125 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 | 99 mode->flags, mode->pitches[0], mode->pitches[1], in armada_fb_create() 100 mode->pitches[2]); in armada_fb_create()
|
| /linux/drivers/gpu/drm/arm/ |
| H A D | malidp_mw.c | 30 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/drivers/gpu/drm/renesas/shmobile/ |
| H A D | shmob_drm_kms.c | 132 if (mode_cmd->pitches[0] & 7 || mode_cmd->pitches[0] >= 65536) { in shmob_drm_fb_create() 134 mode_cmd->pitches[0]); in shmob_drm_fb_create() 141 if (mode_cmd->pitches[1] != mode_cmd->pitches[0] * chroma_cpp) { in shmob_drm_fb_create()
|
| /linux/drivers/gpu/drm/hyperv/ |
| H A D | hyperv_drm_modeset.c | 39 iosys_map_incr(&dst, drm_fb_clip_offset(fb->pitches[0], fb->format, rect)); in hyperv_blit_to_vram_rect() 40 drm_fb_memcpy(&dst, fb->pitches, vmap, fb, rect); in hyperv_blit_to_vram_rect() 87 pitch = fb->pitches[0]; in hyperv_check_size() 116 plane_state->fb->pitches[0]); in hyperv_crtc_helper_atomic_enable() 161 if (fb->pitches[0] * fb->height > hv->fb_size) { in hyperv_plane_atomic_check() 163 current->comm, fb->width, fb->height, fb->pitches[0], hv->fb_size); in hyperv_plane_atomic_check() 203 sb->pitch[0] = plane->state->fb->pitches[0]; in hyperv_plane_get_scanout_buffer()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_fb_dma_helper.c | 104 dma_addr += fb->pitches[plane] * block_start_y; in drm_fb_dma_get_gem_addr() 145 offset = clip.y1 * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent() 147 nb_bytes = (clip.y2 - clip.y1) * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent() 194 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() 190 if ((uint64_t) height * r->pitches[i] + r->offsets[i] > UINT_MAX) in framebuffer_check() 193 if (block_size && r->pitches[i] < min_pitch) { in framebuffer_check() 194 drm_dbg_kms(dev, "bad pitch %u for plane %d\n", r->pitches[i], i); in framebuffer_check() 219 r->pitches[i] % 128) { in framebuffer_check() 245 if (r->pitches[i]) { in framebuffer_check() 550 r->pitch = fb->pitches[0]; in drm_mode_getfb() 618 r->pitches[i] = 0; in drm_mode_getfb2_ioctl() 624 r->pitches[i] = fb->pitches[i]; in drm_mode_getfb2_ioctl() 1202 drm_printf_indent(p, indent + 1, "pitch[%u]=%u\n", i, fb->pitches[i]); in drm_framebuffer_print_info()
|
| H A D | drm_format_helper.c | 165 vaddr += clip_offset(clip, fb->pitches[0], fb->format->cpp[0]); in __drm_fb_xfrm() 173 vaddr += fb->pitches[0]; in __drm_fb_xfrm() 208 vaddr += clip_offset(clip, fb->pitches[0], fb->format->cpp[0]); in __drm_fb_xfrm_toio() 217 vaddr += fb->pitches[0]; in __drm_fb_xfrm_toio() 439 iosys_map_incr(&src_i, clip_offset(clip, fb->pitches[i], cpp_i)); in drm_fb_memcpy() 443 iosys_map_incr(&src_i, fb->pitches[i]); in drm_fb_memcpy() 1283 vaddr += clip_offset(clip, fb->pitches[0], cpp); in drm_fb_xrgb8888_to_mono() 1288 vaddr += fb->pitches[0]; in drm_fb_xrgb8888_to_mono() 1371 vaddr += clip_offset(clip, fb->pitches[0], cpp); in drm_fb_xrgb8888_to_gray2() 1376 vaddr += fb->pitches[0]; in drm_fb_xrgb8888_to_gray2()
|
| H A D | drm_fbdev_dma.c | 114 size_t offset = clip->y1 * fb->pitches[0]; in drm_fbdev_dma_damage_blit_real() 143 iosys_map_incr(dst, fb->pitches[0]); in drm_fbdev_dma_damage_blit_real() 144 src += fb->pitches[0]; in drm_fbdev_dma_damage_blit_real() 215 info->screen_size = sizes->surface_height * fb->pitches[0]; in drm_fbdev_dma_driver_fbdev_probe_tail()
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_display.c | 277 (mode_cmd->pitches[0] & 0x3f || /* align 64 */ in nouveau_framebuffer_new() 278 mode_cmd->pitches[0] >= 0x10000 || /* at most 64k pitch */ in nouveau_framebuffer_new() 279 (mode_cmd->pitches[1] && /* pitches for planes must match */ in nouveau_framebuffer_new() 280 mode_cmd->pitches[0] != mode_cmd->pitches[1]))) { in nouveau_framebuffer_new() 283 mode_cmd->pitches[0], mode_cmd->pitches[1]); in nouveau_framebuffer_new() 307 mode_cmd->pitches[i], in nouveau_framebuffer_new() 312 uint32_t size = mode_cmd->pitches[i] * height; in nouveau_framebuffer_new()
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_fbdev.c | 71 offset += fbi->var.yoffset * fb->pitches[0]; in exynos_drm_fbdev_update() 100 mode_cmd.pitches[0] = sizes->surface_width * (sizes->surface_bpp >> 3); in exynos_drm_fbdev_driver_fbdev_probe() 104 size = mode_cmd.pitches[0] * mode_cmd.height; in exynos_drm_fbdev_driver_fbdev_probe()
|
| /linux/drivers/gpu/drm/arm/display/komeda/ |
| H A D | komeda_framebuffer.c | 134 if ((fb->pitches[i] * block_h) % mdev->chip.bus_width) { in komeda_fb_none_afbc_size_check() 136 i, fb->pitches[i], mdev->chip.bus_width); in komeda_fb_none_afbc_size_check() 150 if (fb->pitches[1] != fb->pitches[2]) { in komeda_fb_none_afbc_size_check() 262 + plane_y * fb->pitches[plane]; in komeda_fb_get_pixel_addr()
|
| /linux/drivers/gpu/drm/sun4i/ |
| H A D | sun4i_frontend.c | 171 strides[0] = SUN4I_FRONTEND_LINESTRD_TILED(fb->pitches[0]); in sun4i_frontend_update_buffer() 185 SUN4I_FRONTEND_LINESTRD_TILED(fb->pitches[1]); in sun4i_frontend_update_buffer() 193 SUN4I_FRONTEND_LINESTRD_TILED(fb->pitches[2]); in sun4i_frontend_update_buffer() 199 strides[0] = fb->pitches[0]; in sun4i_frontend_update_buffer() 202 strides[1] = fb->pitches[1]; in sun4i_frontend_update_buffer() 205 strides[2] = fb->pitches[2]; in sun4i_frontend_update_buffer() 209 DRM_DEBUG_DRIVER("Frontend stride: %d bytes\n", fb->pitches[0]); in sun4i_frontend_update_buffer()
|
| /linux/drivers/gpu/drm/tiny/ |
| H A D | cirrus-qemu.c | 320 if (fb->pitches[0] > CIRRUS_MAX_PITCH) in cirrus_primary_plane_helper_atomic_check() 322 else if (fb->pitches[0] > CIRRUS_VRAM_SIZE / fb->height) in cirrus_primary_plane_helper_atomic_check() 350 if (!old_fb || old_fb->pitches[0] != fb->pitches[0]) in cirrus_primary_plane_helper_atomic_update() 351 cirrus_pitch_set(cirrus, fb->pitches[0]); in cirrus_primary_plane_helper_atomic_update() 355 unsigned int offset = drm_fb_clip_offset(fb->pitches[0], fb->format, &damage); in cirrus_primary_plane_helper_atomic_update() 358 drm_fb_memcpy(&dst, fb->pitches, shadow_plane_state->data, fb, &damage); in cirrus_primary_plane_helper_atomic_update()
|
| /linux/drivers/gpu/drm/tegra/ |
| H A D | fbdev.c | 88 cmd.pitches[0] = round_up(sizes->surface_width * bytes_per_pixel, in tegra_fbdev_driver_fbdev_probe() 94 size = cmd.pitches[0] * cmd.height; in tegra_fbdev_driver_fbdev_probe() 120 info->var.yoffset * fb->pitches[0]; in tegra_fbdev_driver_fbdev_probe()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_fbdev.c | 73 mode_cmd->pitches[0] = radeon_align_pitch(rdev, mode_cmd->width, cpp, in radeon_fbdev_create_pinned_object() 78 size = mode_cmd->pitches[0] * height; in radeon_fbdev_create_pinned_object() 108 mode_cmd->pitches[0]); in radeon_fbdev_create_pinned_object() 267 DRM_INFO(" pitch is %d\n", fb->pitches[0]); in radeon_fbdev_driver_fbdev_probe()
|
| /linux/drivers/gpu/drm/omapdrm/ |
| H A D | omap_fbdev.c | 178 mode_cmd.pitches[0] = in omap_fbdev_driver_fbdev_probe() 184 mode_cmd.pitches[0] = PAGE_ALIGN(mode_cmd.pitches[0]); in omap_fbdev_driver_fbdev_probe() 189 .bytes = PAGE_ALIGN(mode_cmd.pitches[0] * mode_cmd.height), in omap_fbdev_driver_fbdev_probe()
|
| H A D | omap_fb.c | 95 + (y * fb->pitches[n] / (n == 0 ? 1 : format->vsub)); in get_linear_addr() 210 info->screen_width = fb->pitches[0]; in omap_framebuffer_update_scanout() 332 i, fb->offsets[n], fb->pitches[i]); in omap_framebuffer_describe() 374 unsigned int pitch = mode_cmd->pitches[0]; in omap_framebuffer_init() 408 if (info->num_planes == 2 && pitch != mode_cmd->pitches[1]) { in omap_framebuffer_init()
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_fb_bo.c | 70 if (tiling != I915_TILING_NONE && mode_cmd->pitches[0] != stride) { in intel_fb_bo_framebuffer_init() 73 mode_cmd->pitches[0], stride); in intel_fb_bo_framebuffer_init()
|
| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_fb.c | 71 i, fb->offsets[i], fb->pitches[i]); in msm_framebuffer_describe() 217 min_size = (height - 1) * mode_cmd->pitches[i] in msm_framebuffer_init() 256 .pitches = { p }, in msm_alloc_stolen_fb() 263 size = mode_cmd.pitches[0] * mode_cmd.height; in msm_alloc_stolen_fb()
|
| /linux/drivers/gpu/drm/imx/dc/ |
| H A D | dc-plane.c | 77 if (fb->pitches[0] > DC_PLANE_MAX_PITCH) { in dc_plane_check_fb() 83 if (fb->pitches[0] & 0x3) { in dc_plane_check_fb() 155 fu_ops->set_src_stride(fu, DC_FETCHUNIT_FRAC0, fb->pitches[0]); in dc_plane_atomic_update()
|