Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/
H A Ddrm_fourcc.c179 ….char_per_block = { 1, }, .block_w = { 8, }, .block_h = { 1, }, .hsub = 1, .vsub = 1, .is_color_in… in __drm_format_info()
181 ….char_per_block = { 1, }, .block_w = { 4, }, .block_h = { 1, }, .hsub = 1, .vsub = 1, .is_color_in… in __drm_format_info()
183 ….char_per_block = { 1, }, .block_w = { 2, }, .block_h = { 1, }, .hsub = 1, .vsub = 1, .is_color_in… in __drm_format_info()
184 …{ .format = DRM_FORMAT_C8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
186 .char_per_block = { 1, }, .block_w = { 8, }, .block_h = { 1, }, .hsub = 1, .vsub = 1 }, in __drm_format_info()
188 .char_per_block = { 1, }, .block_w = { 4, }, .block_h = { 1, }, .hsub = 1, .vsub = 1 }, in __drm_format_info()
190 .char_per_block = { 1, }, .block_w = { 2, }, .block_h = { 1, }, .hsub = 1, .vsub = 1 }, in __drm_format_info()
191 …{ .format = DRM_FORMAT_D8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
193 .char_per_block = { 1, }, .block_w = { 8, }, .block_h = { 1, }, .hsub = 1, .vsub = 1 }, in __drm_format_info()
195 .char_per_block = { 1, }, .block_w = { 4, }, .block_h = { 1, }, .hsub = 1, .vsub = 1 }, in __drm_format_info()
[all …]
/linux/drivers/media/platform/sunxi/sun8i-rotate/
H A Dsun8i_formats.c19 .hsub = 1,
27 .hsub = 1,
35 .hsub = 1,
43 .hsub = 1,
51 .hsub = 1,
59 .hsub = 1,
67 .hsub = 1,
75 .hsub = 1,
83 .hsub = 1,
91 .hsub = 1,
[all …]
H A Dsun8i-formats.h17 int hsub; member
H A Dsun8i_rotate.c53 pitch[i] /= fmt->hsub / fmt->bpp[i]; in rotate_calc_addr_pitch()
186 width = ALIGN(pix_fmt->width, fmt->hsub); in rotate_prepare_format()
192 alignment *= fmt->hsub / fmt->bpp[1]; in rotate_prepare_format()
200 size /= fmt->hsub; in rotate_prepare_format()
252 fsize->stepwise.step_width = fmt->hsub; in rotate_enum_framesizes()
/linux/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_du_kms.c48 .hsub = 1,
56 .hsub = 1,
71 .hsub = 1,
79 .hsub = 1,
87 .hsub = 2,
95 .hsub = 2,
103 .hsub = 2,
111 .hsub = 2,
119 .hsub = 2,
132 .hsub = 1,
[all …]
H A Drcar_du_kms.h28 unsigned int hsub; member
/linux/drivers/gpu/drm/renesas/rz-du/
H A Drzg2l_du_kms.c42 .hsub = 1,
47 .hsub = 1,
52 .hsub = 1,
57 .hsub = 1,
66 .hsub = 1,
71 .hsub = 1,
76 .hsub = 1,
81 .hsub = 1,
86 .hsub = 1,
91 .hsub = 1,
[all …]
/linux/drivers/gpu/drm/i915/display/
H A Dintel_fb.c44 .cpp = { 4, 1, }, .hsub = 8, .vsub = 16, },
46 .cpp = { 4, 1, }, .hsub = 8, .vsub = 16, },
48 .cpp = { 4, 1, }, .hsub = 8, .vsub = 16, .has_alpha = true, },
50 .cpp = { 4, 1, }, .hsub = 8, .vsub = 16, .has_alpha = true, },
52 .cpp = { 4, 1, }, .hsub = 8, .vsub = 16, },
54 .cpp = { 4, 1, }, .hsub = 8, .vsub = 16, },
56 .cpp = { 4, 1, }, .hsub = 8, .vsub = 16, .has_alpha = true, },
58 .cpp = { 4, 1, }, .hsub = 8, .vsub = 16, .has_alpha = true, },
71 .hsub = 1, .vsub = 1, },
74 .hsub = 1, .vsub = 1, },
[all …]
H A Dintel_plane.c1069 u32 src_x, src_y, src_w, src_h, hsub, vsub; in intel_plane_check_src_coordinates() local
1097 hsub = 2; in intel_plane_check_src_coordinates()
1105 hsub = 1; in intel_plane_check_src_coordinates()
1113 hsub = 2; in intel_plane_check_src_coordinates()
1118 hsub = fb->format->hsub; in intel_plane_check_src_coordinates()
1123 hsub = vsub = max(hsub, vsub); in intel_plane_check_src_coordinates()
1125 if (src_x % hsub || src_w % hsub) { in intel_plane_check_src_coordinates()
1129 src_x, src_w, hsub, str_yes_no(rotated)); in intel_plane_check_src_coordinates()
/linux/include/drm/
H A Ddrm_fourcc.h132 u8 hsub; member
200 return info->is_yuv && info->hsub == 4 && info->vsub == 4; in drm_format_info_is_yuv_sampling_410()
215 return info->is_yuv && info->hsub == 4 && info->vsub == 1; in drm_format_info_is_yuv_sampling_411()
230 return info->is_yuv && info->hsub == 2 && info->vsub == 2; in drm_format_info_is_yuv_sampling_420()
245 return info->is_yuv && info->hsub == 2 && info->vsub == 1; in drm_format_info_is_yuv_sampling_422()
260 return info->is_yuv && info->hsub == 1 && info->vsub == 1; in drm_format_info_is_yuv_sampling_444()
282 return DIV_ROUND_UP(width, info->hsub); in drm_format_info_plane_width()
/linux/drivers/media/platform/qcom/camss/
H A Dcamss-format.h16 .hsub[(plane)].numerator = (h_fract_num), \
17 .hsub[(plane)].denominator = (h_fract_den), \
47 struct fract hsub[3]; member
/linux/drivers/media/platform/sunxi/sun4i-csi/
H A Dsun4i_v4l2.c30 .hsub = 2,
113 width = ALIGN(pix->width, _fmt->hsub); in _sun4i_csi_try_fmt()
117 pix->width = clamp(width, _fmt->hsub, CSI_MAX_WIDTH); in _sun4i_csi_try_fmt()
121 unsigned int hsub = i > 0 ? _fmt->hsub : 1; in _sun4i_csi_try_fmt() local
125 bpl = pix->width / hsub * _fmt->bpp[i] / 8; in _sun4i_csi_try_fmt()
H A Dsun4i_csi.h101 unsigned int hsub; member
/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_smp.c123 int i, hsub, nplanes, nlines; in mdp5_smp_calculate() local
127 hsub = info->hsub; in mdp5_smp_calculate()
142 if (hdecim && (hsub > 1)) in mdp5_smp_calculate()
143 hsub = 1; in mdp5_smp_calculate()
150 fetch_stride = width * cpp / (i ? hsub : 1); in mdp5_smp_calculate()
H A Dmdp5_plane.c588 phasex_steps[COMP_1_2] = phasex_step / info->hsub; in calc_scalex_steps()
629 sub = horz ? info->hsub : info->vsub; in get_scale_config()
683 roi_w /= info->hsub; in mdp5_write_pixel_ext()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_display.c583 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, },
585 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, },
587 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1,
590 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1,
593 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1,
596 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, },
598 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, },
600 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1,
603 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1,
606 .cpp = { 2, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, },
[all …]
/linux/drivers/gpu/drm/tidss/
H A Dtidss_plane.c80 if ((new_plane_state->src_x >> 16) % finfo->hsub != 0) { in tidss_plane_atomic_check()
83 __func__, (new_plane_state->src_x >> 16), finfo->hsub); in tidss_plane_atomic_check()
94 if ((new_plane_state->src_w >> 16) % finfo->hsub != 0) { in tidss_plane_atomic_check()
98 finfo->hsub); in tidss_plane_atomic_check()
/linux/drivers/gpu/drm/arm/display/komeda/
H A Dkomeda_framebuffer.c223 if ((src_x % info->hsub) || (src_w % info->hsub) || in komeda_fb_check_src_coords()
258 plane_x = x / (plane ? fb->format->hsub : 1); in komeda_fb_get_pixel_addr()
/linux/drivers/media/platform/renesas/vsp1/
H A Dvsp1_video.c152 width = round_down(width, info->hsub); in __vsp1_video_try_format()
156 pix->width = clamp(width, info->hsub, VSP1_VIDEO_MAX_WIDTH); in __vsp1_video_try_format()
165 unsigned int hsub = i > 0 ? info->hsub : 1; in __vsp1_video_try_format() local
171 pix->width / hsub * info->bpp[i] / 8, in __vsp1_video_try_format()
/linux/drivers/gpu/drm/tegra/
H A Dfb.c147 unsigned int width = cmd->width / (i ? info->hsub : 1); in tegra_fb_create()
/linux/drivers/gpu/drm/imx/ipuv3/
H A Dipuv3-plane.c152 x /= fb->format->hsub; in drm_plane_state_to_ubo()
171 x /= fb->format->hsub; in drm_plane_state_to_vbo()
504 if (((new_state->src.x1 >> 16) & (fb->format->hsub - 1)) || in ipu_plane_atomic_check()
/linux/drivers/gpu/drm/vc4/
H A Dvc4_plane.c497 u32 h_subsample = fb->format->hsub; in vc4_plane_setup_clipping_and_scaling()
758 if (info->hsub > 1 && channel == 1) in vc4_lbm_channel_size()
762 width = round_up(width / info->hsub, 4); in vc4_lbm_channel_size()
777 lines = DIV_ROUND_UP(words, 128 / info->hsub); in vc4_lbm_channel_size()
793 if (info->hsub > 1) in __vc6_lbm_size()
1216 u32 h_subsample = fb->format->hsub; in vc4_plane_mode_set()
1746 u32 h_subsample = fb->format->hsub; in vc6_plane_mode_set()
/linux/drivers/gpu/drm/gud/
H A Dgud_drv.c42 .hsub = 1,
52 .hsub = 1,
/linux/drivers/media/platform/renesas/
H A Drcar_fdp1.c287 u8 hsub; member
1425 unsigned int hsub = i > 0 ? fmt->hsub : 1; in fdp1_compute_stride() local
1432 pix->width / hsub * fmt->bpp[i] / 8, in fdp1_compute_stride()
1493 width = round_down(pix->width, fmt->hsub); in fdp1_try_fmt_output()
/linux/drivers/gpu/drm/msm/
H A Dmsm_fb.c213 unsigned int width = mode_cmd->width / (i ? info->hsub : 1); in msm_framebuffer_init()

12