Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/gpu/drm/
Ddrm_fourcc.c108 …{ .format = DRM_FORMAT_C8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
109 …{ .format = DRM_FORMAT_RGB332, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub… in __drm_format_info()
110 …{ .format = DRM_FORMAT_BGR233, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub… in __drm_format_info()
111 …{ .format = DRM_FORMAT_XRGB4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsu… in __drm_format_info()
112 …{ .format = DRM_FORMAT_XBGR4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsu… in __drm_format_info()
113 …{ .format = DRM_FORMAT_RGBX4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsu… in __drm_format_info()
114 …{ .format = DRM_FORMAT_BGRX4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsu… in __drm_format_info()
115 …{ .format = DRM_FORMAT_ARGB4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsu… in __drm_format_info()
116 …{ .format = DRM_FORMAT_ABGR4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsu… in __drm_format_info()
117 …{ .format = DRM_FORMAT_RGBA4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsu… in __drm_format_info()
[all …]
Ddrm_gem_framebuffer_helper.c161 unsigned int width = mode_cmd->width / (i ? info->hsub : 1); in drm_gem_fb_create_with_funcs()
Ddrm_framebuffer.c148 return DIV_ROUND_UP(width, format->hsub); in fb_plane_width()
/Linux-v4.19/drivers/gpu/drm/sun4i/
Dsun8i_vi_scaler.c867 if (format->hsub == 1 && format->vsub == 1) { in sun8i_vi_scaler_set_coeff()
934 if (format->hsub == 2 && format->vsub == 2) { in sun8i_vi_scaler_setup()
957 SUN8I_VI_SCALER_SIZE(src_w / format->hsub, in sun8i_vi_scaler_setup()
961 hscale / format->hsub); in sun8i_vi_scaler_setup()
Dsun8i_vi_layer.c91 if (format->hsub > 1) { in sun8i_vi_layer_update_coord()
94 mask = format->hsub - 1; in sun8i_vi_layer_update_coord()
114 (state->src.x1 >> 16) & ~(format->hsub - 1), in sun8i_vi_layer_update_coord()
128 subsampled = format->hsub > 1 || format->vsub > 1; in sun8i_vi_layer_update_coord()
210 src_x = (state->src.x1 >> 16) & ~(format->hsub - 1); in sun8i_vi_layer_update_buffer()
226 dx /= format->hsub; in sun8i_vi_layer_update_buffer()
/Linux-v4.19/drivers/gpu/drm/rockchip/
Drockchip_drm_fb.c80 unsigned int hsub; in rockchip_user_fb_create() local
86 hsub = drm_format_horz_chroma_subsampling(mode_cmd->pixel_format); in rockchip_user_fb_create()
92 unsigned int width = mode_cmd->width / (i ? hsub : 1); in rockchip_user_fb_create()
Drockchip_drm_vop.c287 int hsub = drm_format_horz_chroma_subsampling(pixel_format); in scl_vop_cal_scl_fac() local
291 uint16_t cbcr_src_w = src_w / hsub; in scl_vop_cal_scl_fac()
765 int hsub = drm_format_horz_chroma_subsampling(fb->format->format); in vop_plane_atomic_update() local
772 offset = (src->x1 >> 16) * bpp / hsub; in vop_plane_atomic_update()
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_smp.c131 int i, hsub, nplanes, nlines; in mdp5_smp_calculate() local
136 hsub = drm_format_horz_chroma_subsampling(fmt); in mdp5_smp_calculate()
152 if (hdecim && (hsub > 1)) in mdp5_smp_calculate()
153 hsub = 1; in mdp5_smp_calculate()
160 fetch_stride = width * cpp / (i ? hsub : 1); in mdp5_smp_calculate()
Dmdp5_plane.c658 unsigned int hsub; in calc_scalex_steps() local
667 hsub = drm_format_horz_chroma_subsampling(pixel_format); in calc_scalex_steps()
671 phasex_steps[COMP_1_2] = phasex_step / hsub; in calc_scalex_steps()
/Linux-v4.19/drivers/media/platform/vsp1/
Dvsp1_wpf.c420 unsigned int hsub = i > 0 ? fmtinfo->hsub : 1; in wpf_configure_partition() local
427 mem.addr[i] += offset / hsub in wpf_configure_partition()
462 unsigned int hsub = i > 0 ? fmtinfo->hsub : 1; in wpf_configure_partition() local
464 mem.addr[i] += hoffset / hsub in wpf_configure_partition()
Dvsp1_pipe.h45 unsigned int hsub; member
Dvsp1_video.c135 width = round_down(width, info->hsub); in __vsp1_video_try_format()
149 unsigned int hsub = i > 0 ? info->hsub : 1; in __vsp1_video_try_format() local
155 pix->width / hsub * info->bpp[i] / 8, in __vsp1_video_try_format()
Dvsp1_rpf.c296 + crop.left / fmtinfo->hsub in rpf_configure_partition()
/Linux-v4.19/drivers/gpu/drm/msm/
Dmsm_fb.c144 unsigned int hsub, vsub; in msm_framebuffer_init() local
151 hsub = drm_format_horz_chroma_subsampling(mode_cmd->pixel_format); in msm_framebuffer_init()
179 unsigned int width = mode_cmd->width / (i ? hsub : 1); in msm_framebuffer_init()
/Linux-v4.19/include/drm/
Ddrm_fourcc.h49 u8 hsub; member
/Linux-v4.19/drivers/gpu/drm/tegra/
Dfb.c133 unsigned int hsub, vsub, i; in tegra_fb_create() local
139 hsub = drm_format_horz_chroma_subsampling(cmd->pixel_format); in tegra_fb_create()
143 unsigned int width = cmd->width / (i ? hsub : 1); in tegra_fb_create()
/Linux-v4.19/drivers/media/platform/qcom/camss/
Dcamss-video.c39 struct fract hsub[3]; member
257 bytesperline = pix->width / f->hsub[i].numerator * in video_mbus_to_pix_mp()
258 f->hsub[i].denominator * f->bpp[i] / 8; in video_mbus_to_pix_mp()
617 bpl = pix_mp->width / fi->hsub[i].numerator * in __video_try_fmt()
618 fi->hsub[i].denominator * fi->bpp[i] / 8; in __video_try_fmt()
/Linux-v4.19/drivers/gpu/drm/imx/
Dipuv3-plane.c356 int hsub, vsub; in ipu_plane_atomic_check() local
475 hsub = drm_format_horz_chroma_subsampling(fb->format->format); in ipu_plane_atomic_check()
477 if (((state->src.x1 >> 16) & (hsub - 1)) || in ipu_plane_atomic_check()
/Linux-v4.19/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c611 int hsub = 1; in atmel_hlcdc_plane_atomic_check() local
681 hsub = drm_format_horz_chroma_subsampling(fb->format->format); in atmel_hlcdc_plane_atomic_check()
686 int xdiv = i ? hsub : 1; in atmel_hlcdc_plane_atomic_check()
/Linux-v4.19/drivers/media/platform/
Drcar_fdp1.c285 u8 hsub; member
1426 unsigned int hsub = i > 0 ? fmt->hsub : 1; in fdp1_compute_stride() local
1433 pix->width / hsub * fmt->bpp[i] / 8, in fdp1_compute_stride()
1498 width = round_down(pix->width, fmt->hsub); in fdp1_try_fmt_output()
/Linux-v4.19/drivers/gpu/drm/armada/
Darmada_plane.c60 x /= format->hsub; in armada_drm_plane_calc()
Darmada_overlay.c146 if (format->num_planes == 1 && src_x & (format->hsub - 1)) in armada_drm_overlay_plane_atomic_update()
/Linux-v4.19/drivers/gpu/drm/omapdrm/
Domap_fb.c82 + (x * format->cpp[n] / (n == 0 ? 1 : format->hsub)) in get_linear_addr()
/Linux-v4.19/drivers/gpu/drm/i915/
Dintel_display.c2443 …{ .format = DRM_FORMAT_XRGB8888, .depth = 24, .num_planes = 2, .cpp = { 4, 1, }, .hsub = 8, .vsub …
2444 …{ .format = DRM_FORMAT_XBGR8888, .depth = 24, .num_planes = 2, .cpp = { 4, 1, }, .hsub = 8, .vsub …
2445 …{ .format = DRM_FORMAT_ARGB8888, .depth = 32, .num_planes = 2, .cpp = { 4, 1, }, .hsub = 8, .vsub …
2446 …{ .format = DRM_FORMAT_ABGR8888, .depth = 32, .num_planes = 2, .cpp = { 4, 1, }, .hsub = 8, .vsub …
2509 int hsub = fb->format->hsub; in intel_fill_fb_info() local
2516 tile_width *= hsub; in intel_fill_fb_info()
2519 ccs_x = (x * hsub) % tile_width; in intel_fill_fb_info()
2945 int hsub = fb->format->hsub; in skl_check_main_ccs_coordinates() local
2961 x = aux_x / hsub; in skl_check_main_ccs_coordinates()
2965 aux_x = x * hsub + aux_x % hsub; in skl_check_main_ccs_coordinates()
[all …]
/Linux-v4.19/drivers/gpu/drm/exynos/
Dexynos_drm_ipp.c568 DIV_ROUND_UP(buf->buf.width, buf->format->hsub); in exynos_drm_ipp_check_format()