/kernel/linux/linux-5.10/drivers/gpu/drm/selftests/ |
H A 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 [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/tests/ |
H A D | drm_framebuffer_test.c | 31 .handles = { 1, 0, 0 }, .pitches = { 4 * 600, 0, 0 }, 36 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 41 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH + 1, 0, 0 }, 46 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH - 1, 0, 0 }, 51 .handles = { 1, 0, 0 }, .pitches = { 4 * (MAX_WIDTH + 1), 0, 0 }, 56 .handles = { 0, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 61 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 66 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 71 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 77 .pitches [all...] |
H A D | drm_format_helper_test.c | 518 .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 in drm_test_fb_xrgb8888_to_argb2101010() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/device_include/ |
H A D | svga_overlay.h | 125 * Computes the size, pitches and offsets for YUV frames. 131 * Pitches and offsets for the given YUV frame are put in 'pitches' 142 uint32 *pitches, /* OUT (optional) */ in VMwareVideoGetAttributes() 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[ in VMwareVideoGetAttributes() 138 VMwareVideoGetAttributes(const SVGAOverlayFormat format, uint32 *width, uint32 *height, uint32 *size, uint32 *pitches, uint32 *offsets) VMwareVideoGetAttributes() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A 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[ in drm_fb_xrgb8888_to_rgb565_dstclip() [all...] |
H A 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[ in drm_mode_getfb2_ioctl() [all...] |
/kernel/linux/linux-6.6/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[ in armada_drm_plane_calc() 37 armada_drm_plane_calc(struct drm_plane_state *state, u32 addrs[2][3], u16 pitches[3], bool interlaced) armada_drm_plane_calc() argument [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 | 96 mode->flags, mode->pitches[0], mode->pitches[1], in armada_fb_create() 97 mode->pitches[2]); in armada_fb_create()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/imx/ipuv3/ |
H A D | ipuv3-plane.c | 135 return dma_obj->dma_addr + fb->offsets[plane] + fb->pitches[plane] * y + in drm_plane_state_to_eba() 154 return dma_obj->dma_addr + fb->offsets[1] + fb->pitches[1] * y + in drm_plane_state_to_ubo() 173 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[ in ipu_plane_atomic_check() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/imx/ |
H A 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[ in ipu_plane_atomic_check() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/shmobile/ |
H A 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() 115 "luma and chroma pitches do not match\n"); in shmob_drm_fb_create()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/renesas/shmobile/ |
H A D | shmob_drm_kms.c | 109 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() 120 "luma and chroma pitches do not match\n"); in shmob_drm_fb_create()
|
/kernel/linux/linux-5.10/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[ in armada_drm_plane_calc() 37 armada_drm_plane_calc(struct drm_plane_state *state, u32 addrs[2][3], u16 pitches[3], bool interlaced) armada_drm_plane_calc() argument [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 | 97 mode->flags, mode->pitches[0], mode->pitches[1], in armada_fb_create() 98 mode->pitches[2]); in armada_fb_create()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/ |
H A D | malidp_mw.c | 27 s32 pitches[2]; member 171 if (fb->pitches[i] & (alignment - 1)) { in malidp_mw_encoder_atomic_check() 173 fb->pitches[i], i); in malidp_mw_encoder_atomic_check() 176 mw_state->pitches[i] = fb->pitches[i]; in malidp_mw_encoder_atomic_check() 260 mw_state->pitches[0], in malidp_mw_atomic_commit() 266 mw_state->pitches, mw_state->n_planes, in malidp_mw_atomic_commit()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/arm/ |
H A D | malidp_mw.c | 29 s32 pitches[2]; member 167 if (fb->pitches[i] & (alignment - 1)) { in malidp_mw_encoder_atomic_check() 169 fb->pitches[i], i); in malidp_mw_encoder_atomic_check() 172 mw_state->pitches[i] = fb->pitches[i]; in malidp_mw_encoder_atomic_check() 256 mw_state->pitches[0], in malidp_mw_atomic_commit() 262 mw_state->pitches, mw_state->n_planes, in malidp_mw_atomic_commit()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_fb_dma_helper.c | 101 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 D | drm_framebuffer.c | 136 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[ in drm_mode_getfb2_ioctl() [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/ |
H A 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-6.6/drivers/gpu/drm/i915/display/ |
H A D | intel_fb.c | 590 unsigned int main_stride = fb->base.pitches[main_plane]; in gen12_ccs_aux_stride() 724 return fb->pitches[color_plane] * tile_height; in intel_tile_row_size() 1120 if (add_overflows_t(u32, mul_u32_u32(height, fb->pitches[color_plane]), in intel_fb_offset_to_xy() 1124 fb->offsets[color_plane], fb->pitches[color_plane], in intel_fb_offset_to_xy() 1134 fb->pitches[color_plane], in intel_fb_offset_to_xy() 1221 if (fb->pitches[i] & alignment) in intel_plane_can_remap() 1303 (*x + plane_width) * fb->base.format->cpp[color_plane] > fb->base.pitches[color_plane]) { in convert_plane_offset_to_xy() 1320 fb->base.pitches[color_plane], in calc_plane_aligned_offset() 1346 return DIV_ROUND_UP(fb->base.pitches[color_plane], in plane_view_src_stride_tiles() 1406 size = (y + dims->height) * fb->base.pitches[color_plan in plane_view_linear_tiles() [all...] |