| /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/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[ in armada_drm_plane_calc() [all...] |
| 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()
|
| H A D | armada_fbdev.c | 57 mode.pitches[0] = armada_pitch(mode.width, sizes->surface_bpp); in armada_fbdev_driver_fbdev_probe() 61 size = mode.pitches[0] * mode.height; in armada_fbdev_driver_fbdev_probe()
|
| /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()
|
| H A D | malidp_planes.c | 520 if (((fb->pitches[i] * drm_format_info_block_height(fb->format, i)) in malidp_de_plane_check() 523 fb->pitches[i], i); in malidp_de_plane_check() 547 * fb->pitches[1] == fb->pitches[2] since they don't have a in malidp_de_plane_check() 552 (new_plane_state->fb->pitches[1] != new_plane_state->fb->pitches[2])) in malidp_de_plane_check() 606 int num_planes, unsigned int pitches[3]) in malidp_de_set_plane_pitches() 626 malidp_hw_write(mp->hwdev, pitches[i] * block_h, in malidp_de_set_plane_pitches() 824 new_state->fb->pitches); in malidp_de_plane_update()
|
| /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()
|
| H A D | shmob_drm_plane.c | 56 + y * fb->pitches[0] + x * bpp / 8; in shmob_drm_plane_compute_base() 62 + y / (bpp == 4 ? 2 : 1) * fb->pitches[1] in shmob_drm_plane_compute_base() 76 lcdc_write(sdev, LDMLSR, fb->pitches[0]); in shmob_drm_primary_plane_setup() 126 fb->pitches[0] << LDBBSMWR_BSMW_SHIFT); in shmob_drm_overlay_plane_setup()
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_fbdev.c | |
| /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/tegra/ |
| H A D | fbdev.c | |
| /linux/drivers/gpu/drm/ |
| 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[ in drm_mode_getfb2_ioctl() [all...] |
| 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()
|
| H A D | drm_fbdev_ttm.c | 72 size_t offset = clip->y1 * fb->pitches[0]; in drm_fbdev_ttm_damage_blit_real() 101 iosys_map_incr(dst, fb->pitches[0]); in drm_fbdev_ttm_damage_blit_real() 102 src += fb->pitches[0]; in drm_fbdev_ttm_damage_blit_real()
|
| /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/atmel-hlcdc/ |
| H A D | atmel_hlcdc_plane.c | 771 fb->pitches[i]; in atmel_hlcdc_plane_atomic_check() 775 fb->pitches[i]) - in atmel_hlcdc_plane_atomic_check() 777 hstate->pstride[i] = fb->pitches[i] - hstate->bpp[i]; in atmel_hlcdc_plane_atomic_check() 781 ydiv) * fb->pitches[i]; in atmel_hlcdc_plane_atomic_check() 785 hstate->bpp[i]) - fb->pitches[i]; in atmel_hlcdc_plane_atomic_check() 790 ydiv) * fb->pitches[i]; in atmel_hlcdc_plane_atomic_check() 793 fb->pitches[i]; in atmel_hlcdc_plane_atomic_check() 794 hstate->pstride[i] = -fb->pitches[i] - hstate->bpp[i]; in atmel_hlcdc_plane_atomic_check() 798 offset = (hstate->src_y / ydiv) * fb->pitches[i]; in atmel_hlcdc_plane_atomic_check() 800 hstate->xstride[i] = fb->pitches[ in atmel_hlcdc_plane_atomic_check() [all...] |
| /linux/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_formats.c | 196 if (layout->plane_pitch[i] <= fb->pitches[i]) { in _dpu_format_populate_plane_sizes_linear() 197 layout->plane_pitch[i] = fb->pitches[i]; in _dpu_format_populate_plane_sizes_linear() 200 i, layout->plane_pitch[i], fb->pitches[i]); in _dpu_format_populate_plane_sizes_linear()
|
| /linux/drivers/gpu/drm/clients/ |
| H A D | drm_log.c | 101 iosys_map_memset(&map, r.y1 * fb->pitches[0], 0, height * fb->pitches[0]); in drm_log_clear_line() 122 iosys_map_incr(&map, r.y1 * fb->pitches[0]); in drm_log_draw_line() 126 drm_log_blit(&map, fb->pitches[0], src, font_pitch, in drm_log_draw_line()
|
| /linux/drivers/gpu/drm/imx/dcss/ |
| H A D | dcss-plane.c | 229 fb->pitches[0] * (state->src.y1 >> 16) + in dcss_plane_atomic_set_base() 236 fb->pitches[0] * (state->src.y1 >> 16) + in dcss_plane_atomic_set_base() 242 (((fb->pitches[1] >> 1) * (state->src.y1 >> 17) + in dcss_plane_atomic_set_base() 246 fb->pitches[0]); in dcss_plane_atomic_set_base()
|
| /linux/drivers/gpu/drm/ast/ |
| H A D | ast_mode.c | 370 offset = fb->pitches[0] >> 3; in ast_set_dclk_reg() 548 iosys_map_incr(&dst, drm_fb_clip_offset(fb->pitches[0], fb->format, clip)); in ast_primary_plane_helper_atomic_update() 551 drm_fb_swab(&dst, fb->pitches, src, fb, clip, !src[0].is_iomem, fmtcnv_state); in ast_primary_plane_helper_atomic_update() 553 drm_fb_memcpy(&dst, fb->pitches, src, fb, clip); in ast_primary_plane_helper_atomic_update() 597 if (!old_fb || old_fb->pitches[0] != fb->pitches[0]) in ast_primary_plane_helper_atomic_enable() 634 sb->pitch[0] = plane->state->fb->pitches[0];
|
| /linux/drivers/gpu/drm/gud/ |
| H A D | gud_pipe.c | 119 sbuf32 = src + (y * fb->pitches[0]); in gud_xrgb8888_to_color() 204 } else if (compression && cached_reads && pitch == fb->pitches[0]) { in gud_prep_flush() 403 gdrm->shadow_buf = vcalloc(fb->pitches[0], fb->height); in gud_fb_queue_damage() 411 iosys_map_incr(&shadow_map, drm_fb_clip_offset(fb->pitches[0], fb->format, damage)); in gud_fb_queue_damage() 412 drm_fb_memcpy(&shadow_map, fb->pitches, src, fb, damage); in gud_fb_queue_damage()
|
| /linux/drivers/gpu/drm/nouveau/dispnv04/ |
| H A D | crtc.c | 376 regp->CRTC[NV_CIO_CR_OFFSET_INDEX] = fb->pitches[0] / 8; in nv_crtc_mode_set_vga() 389 XLATE(fb->pitches[0] / 8, 8, NV_CIO_CRE_RPC0_OFFSET_10_8); in nv_crtc_mode_set_vga() 391 XLATE(fb->pitches[0] / 8, 11, NV_CIO_CRE_42_OFFSET_11); in nv_crtc_mode_set_vga() 878 regp->CRTC[NV_CIO_CR_OFFSET_INDEX] = drm_fb->pitches[0] >> 3; in nv04_crtc_do_mode_set_base() 880 XLATE(drm_fb->pitches[0] >> 3, 8, NV_CIO_CRE_RPC0_OFFSET_10_8); in nv04_crtc_do_mode_set_base() 882 XLATE(drm_fb->pitches[0] / 8, 11, NV_CIO_CRE_42_OFFSET_11); in nv04_crtc_do_mode_set_base() 889 regp->fb_start += (y * drm_fb->pitches[0]) + (x * drm_fb->format->cpp[0]); in nv04_crtc_do_mode_set_base() 1193 { { }, event, crtc, fb->format->cpp[0] * 8, fb->pitches[0], in nv04_crtc_page_flip()
|