Home
last modified time | relevance | path

Searched refs:pitches (Results 1 – 25 of 46) sorted by relevance

12

/netbsd-src/sys/external/bsd/drm2/dist/drm/vmwgfx/device_include/
H A Dsvga_overlay.h144 uint32 *pitches, /* OUT (optional) */ in VMwareVideoGetAttributes() argument
160 if (pitches) { in VMwareVideoGetAttributes()
161 pitches[0] = *width; in VMwareVideoGetAttributes()
170 if (pitches) { in VMwareVideoGetAttributes()
171 pitches[1] = pitches[2] = tmp; in VMwareVideoGetAttributes()
188 if (pitches) { in VMwareVideoGetAttributes()
189 pitches[0] = *size; in VMwareVideoGetAttributes()
/netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/
H A Dnouveau_display.c254 (mode_cmd->pitches[0] & 0x3f || /* align 64 */ in nouveau_framebuffer_new()
255 mode_cmd->pitches[0] >= 0x10000 || /* at most 64k pitch */ in nouveau_framebuffer_new()
256 (mode_cmd->pitches[1] && /* pitches for planes must match */ in nouveau_framebuffer_new()
257 mode_cmd->pitches[0] != mode_cmd->pitches[1]))) { in nouveau_framebuffer_new()
262 mode_cmd->pitches[0], in nouveau_framebuffer_new()
263 mode_cmd->pitches[1]); in nouveau_framebuffer_new()
H A Dnouveau_fbcon.c371 mode_cmd.pitches[0] = mode_cmd.width * (sizes->surface_bpp >> 3); in nouveau_fbcon_create()
372 mode_cmd.pitches[0] = roundup(mode_cmd.pitches[0], 256); in nouveau_fbcon_create()
377 ret = nouveau_gem_new(&drm->client, mode_cmd.pitches[0] * in nouveau_fbcon_create()
421 nfa.nfa_fb_linebytes = mode_cmd.pitches[0]; in nouveau_fbcon_create()
/netbsd-src/sys/external/bsd/drm2/dist/drm/radeon/
H A Dradeon_fb.c157 mode_cmd->pitches[0] = radeon_align_pitch(rdev, mode_cmd->width, cpp, in radeonfb_create_pinned_object()
162 size = mode_cmd->pitches[0] * height; in radeonfb_create_pinned_object()
191 mode_cmd->pitches[0]); in radeonfb_create_pinned_object()
276 rfa.rfa_fb_linebytes = mode_cmd.pitches[0]; in radeonfb_create()
338 DRM_INFO(" pitch is %d\n", fb->pitches[0]); in radeonfb_create()
/netbsd-src/sys/external/bsd/drm2/dist/drm/
H A Ddrm_framebuffer.c141 r.pitches[0] = or->pitch; in drm_mode_addfb()
226 if ((uint64_t) height * r->pitches[i] + r->offsets[i] > UINT_MAX) in framebuffer_check()
229 if (block_size && r->pitches[i] < min_pitch) { in framebuffer_check()
230 DRM_DEBUG_KMS("bad pitch %u for plane %d\n", r->pitches[i], i); in framebuffer_check()
255 r->pitches[i] % 128) { in framebuffer_check()
281 if (r->pitches[i]) { in framebuffer_check()
540 r->pitch = fb->pitches[0]; in drm_mode_getfb()
1067 drm_printf_indent(p, indent + 1, "pitch[%u]=%u\n", i, fb->pitches[i]); in drm_framebuffer_print_info()
H A Ddrm_modeset_helper.c95 fb->pitches[i] = mode_cmd->pitches[i]; in drm_helper_mode_fill_fb_struct()
H A Ddrm_fb_helper.c402 size_t offset = clip->y1 * fb->pitches[0] + clip->x1 * cpp; in drm_fb_helper_dirty_blit_real()
410 src = (char *)src + fb->pitches[0]; in drm_fb_helper_dirty_blit_real()
411 dst = (char *)dst + fb->pitches[0]; in drm_fb_helper_dirty_blit_real()
1723 drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth); in drm_fb_helper_fill_info()
2153 fbi->screen_size = fb->height * fb->pitches[0]; in drm_fb_helper_generic_probe()
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_fb.c158 mode_cmd->pitches[0] = amdgpu_align_pitch(adev, mode_cmd->width, cpp, in amdgpufb_create_pinned_object()
162 size = mode_cmd->pitches[0] * height; in amdgpufb_create_pinned_object()
275 afa.afa_fb_linebytes = mode_cmd.pitches[0]; in amdgpufb_create()
312 DRM_INFO(" pitch is %d\n", fb->pitches[0]); in amdgpufb_create()
/netbsd-src/sys/arch/arm/nvidia/
H A Dtegra_drm_fb.c108 tfa.tfa_fb_linebytes = helper->fb->pitches[0]; in tegra_fb_probe()
135 fb->pitches[0] = pitch; in tegra_fb_init()
/netbsd-src/sys/arch/arm/sunxi/
H A Dsunxi_mixer.c288 paddr += y * sfb->base.pitches[0]; in sunxi_mixer_mode_do_set_base()
295 OVL_UI_WRITE(sc, 0, OVL_UI_PITCH(0), sfb->base.pitches[0]); in sunxi_mixer_mode_do_set_base()
1105 OVL_V_WRITE(sc, OVL_V_PITCH0(0), fb->pitches[0]); in sunxi_mixer_overlay_update_plane()
1106 OVL_V_WRITE(sc, OVL_V_PITCH1(0), fb->pitches[2]); in sunxi_mixer_overlay_update_plane()
1107 OVL_V_WRITE(sc, OVL_V_PITCH2(0), fb->pitches[1]); in sunxi_mixer_overlay_update_plane()
1111 (src_y >> 16) * fb->pitches[0]; in sunxi_mixer_overlay_update_plane()
1114 (src_y >> 16) * fb->pitches[2]; in sunxi_mixer_overlay_update_plane()
1117 (src_y >> 16) * fb->pitches[1]; in sunxi_mixer_overlay_update_plane()
H A Dsunxi_drm.c394 fb->pitches[0] = pitch; in sunxi_drm_fb_probe()
413 sfa.sfa_fb_linebytes = helper->fb->pitches[0]; in sunxi_drm_fb_probe()
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/display/
H A Dintel_fbdev.c145 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * in intelfb_alloc()
150 size = mode_cmd.pitches[0] * mode_cmd.height; in intelfb_alloc()
431 if (fb->base.pitches[0] < cur_size) { in intel_fbdev_init_bios()
434 cur_size, fb->base.pitches[0]); in intel_fbdev_init_bios()
441 cur_size *= fb->base.pitches[0]; in intel_fbdev_init_bios()
H A Dintel_display.c2090 return fb->pitches[color_plane] * tile_height; in intel_tile_row_size()
2321 return fb->pitches[color_plane]; in intel_fb_pitch()
2558 if (add_overflows_t(u32, mul_u32_u32(height, fb->pitches[color_plane]), in intel_fb_offset_to_xy()
2561 fb->offsets[color_plane], fb->pitches[color_plane], in intel_fb_offset_to_xy()
2571 fb->pitches[color_plane], in intel_fb_offset_to_xy()
2706 return DIV_ROUND_UP(fb->pitches[ccs_to_main_plane(fb, ccs_plane)], in gen12_ccs_aux_stride()
2765 if (fb->pitches[color_plane] > max_stride && in intel_fb_stride_alignment()
2827 if (fb->pitches[i] & alignment) in intel_plane_can_remap()
3065 (x + width) * cpp > fb->pitches[i]) { in intel_fill_fb_info()
3079 fb->pitches[i], in intel_fill_fb_info()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/vmwgfx/
H A Dvmwgfx_fb.c243 (dst_y1 * par->set_fb->pitches[0] + dst_x1 * cpp); in vmw_fb_dirty_flush()
250 dst_ptr += par->set_fb->pitches[0]; in vmw_fb_dirty_flush()
520 mode_cmd.pitches[0] = ((var->bits_per_pixel + 7) / 8) * mode_cmd.width; in vmw_fb_kms_framebuffer()
528 cur_fb->pitches[0] == mode_cmd.pitches[0]) in vmw_fb_kms_framebuffer()
532 new_bo_size = (size_t) mode_cmd.pitches[0] * (size_t) mode_cmd.height; in vmw_fb_kms_framebuffer()
H A Dvmwgfx_ldu.c107 return vmw_kms_write_svga(dev_priv, w, h, fb->pitches[0], in vmw_ldu_commit_list()
116 vmw_kms_write_svga(dev_priv, fb->width, fb->height, fb->pitches[0], in vmw_ldu_commit_list()
H A Dvmwgfx_stdu.c713 ddirty.pitch = vfb->base.pitches[0]; in vmw_kms_stdu_dma()
1180 vps->cpp = new_fb->pitches[0] / new_fb->width; in vmw_stdu_primary_plane_prepare_fb()
1219 cmd_dma->body.guest.pitch = update->vfb->base.pitches[0]; in vmw_stdu_bo_populate_dma()
1320 src_pitch = update->vfb->base.pitches[0]; in vmw_stdu_bo_populate_update_cpu()
/netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/dispnv04/
H A Dnouveau_dispnv04_crtc.c376 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()
870 regp->CRTC[NV_CIO_CR_OFFSET_INDEX] = drm_fb->pitches[0] >> 3; in nv04_crtc_do_mode_set_base()
872 XLATE(drm_fb->pitches[0] >> 3, 8, NV_CIO_CRE_RPC0_OFFSET_10_8); in nv04_crtc_do_mode_set_base()
874 XLATE(drm_fb->pitches[0] / 8, 11, NV_CIO_CRE_42_OFFSET_11); in nv04_crtc_do_mode_set_base()
881 regp->fb_start += (y * drm_fb->pitches[0]) + (x * drm_fb->format->cpp[0]); in nv04_crtc_do_mode_set_base()
1198 { { }, event, crtc, fb->format->cpp[0] * 8, fb->pitches[0], in nv04_crtc_page_flip()
H A Dnouveau_dispnv04_overlay.c183 nvif_wr32(dev, NV_PVIDEO_FORMAT(flip), format | fb->pitches[0]); in nv10_update_plane()
407 fb->pitches[0]); in nv04_update_plane()
/netbsd-src/sys/external/bsd/drm2/dist/include/drm/
H A Ddrm_framebuffer.h152 unsigned int pitches[4]; member
/netbsd-src/sys/external/bsd/drm2/drm/
H A Ddrm_gem_framebuffer_helper.c138 size = (mode_cmd->height/vsub - 1)*mode_cmd->pitches[plane] in drm_gem_fb_create_with_funcs()
/netbsd-src/sys/arch/arm/rockchip/
H A Drk_drm.c336 fb->pitches[0] = pitch; in rk_drm_fb_probe()
361 sfa.sfa_fb_linebytes = helper->fb->pitches[0]; in rk_drm_fb_probe()
/netbsd-src/sys/external/bsd/drm2/i915drm/
H A Dintelfb.c138 .da_fb_linebytes = ifa->ifa_fb_helper->fb->pitches[0], in intelfb_attach_task()
/netbsd-src/sys/compat/netbsd32/
H A Dnetbsd32_drm.c876 uint32_t pitches[4]; member
904 req64.pitches[i] = req32.pitches[i]; in compat_drm_mode_addfb2()
/netbsd-src/sys/arch/arm/ti/
H A Dti_lcdc.c578 fb->pitches[0] = pitch; in tilcdc_fb_probe()
599 tfa.tfa_fb_linebytes = helper->fb->pitches[0]; in tilcdc_fb_probe()
/netbsd-src/sys/external/bsd/drm2/dist/drm/qxl/
H A Dqxl_draw.c147 int stride = fb->pitches[0]; in qxl_draw_dirty_fb()

12