/Linux-v4.19/drivers/gpu/drm/ |
D | drm_fourcc.c | 108 …{ .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 …]
|
D | drm_gem_framebuffer_helper.c | 161 unsigned int width = mode_cmd->width / (i ? info->hsub : 1); in drm_gem_fb_create_with_funcs()
|
D | drm_framebuffer.c | 148 return DIV_ROUND_UP(width, format->hsub); in fb_plane_width()
|
/Linux-v4.19/drivers/gpu/drm/sun4i/ |
D | sun8i_vi_scaler.c | 867 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()
|
D | sun8i_vi_layer.c | 91 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/ |
D | rockchip_drm_fb.c | 80 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()
|
D | rockchip_drm_vop.c | 287 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/ |
D | mdp5_smp.c | 131 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()
|
D | mdp5_plane.c | 658 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/ |
D | vsp1_wpf.c | 420 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()
|
D | vsp1_pipe.h | 45 unsigned int hsub; member
|
D | vsp1_video.c | 135 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()
|
D | vsp1_rpf.c | 296 + crop.left / fmtinfo->hsub in rpf_configure_partition()
|
/Linux-v4.19/drivers/gpu/drm/msm/ |
D | msm_fb.c | 144 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/ |
D | drm_fourcc.h | 49 u8 hsub; member
|
/Linux-v4.19/drivers/gpu/drm/tegra/ |
D | fb.c | 133 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/ |
D | camss-video.c | 39 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/ |
D | ipuv3-plane.c | 356 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/ |
D | atmel_hlcdc_plane.c | 611 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/ |
D | rcar_fdp1.c | 285 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/ |
D | armada_plane.c | 60 x /= format->hsub; in armada_drm_plane_calc()
|
D | armada_overlay.c | 146 if (format->num_planes == 1 && src_x & (format->hsub - 1)) in armada_drm_overlay_plane_atomic_update()
|
/Linux-v4.19/drivers/gpu/drm/omapdrm/ |
D | omap_fb.c | 82 + (x * format->cpp[n] / (n == 0 ? 1 : format->hsub)) in get_linear_addr()
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | intel_display.c | 2443 …{ .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/ |
D | exynos_drm_ipp.c | 568 DIV_ROUND_UP(buf->buf.width, buf->format->hsub); in exynos_drm_ipp_check_format()
|