| /Linux-v5.15/drivers/gpu/drm/ |
| D | drm_fourcc.c | 135 …{ .format = DRM_FORMAT_C8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info() 136 …{ .format = DRM_FORMAT_RGB332, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub… in __drm_format_info() 137 …{ .format = DRM_FORMAT_BGR233, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub… in __drm_format_info() 138 …{ .format = DRM_FORMAT_XRGB4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsu… in __drm_format_info() 139 …{ .format = DRM_FORMAT_XBGR4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsu… in __drm_format_info() 140 …{ .format = DRM_FORMAT_RGBX4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsu… in __drm_format_info() 141 …{ .format = DRM_FORMAT_BGRX4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsu… in __drm_format_info() 142 …{ .format = DRM_FORMAT_ARGB4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsu… in __drm_format_info() 143 …{ .format = DRM_FORMAT_ABGR4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsu… in __drm_format_info() 144 …{ .format = DRM_FORMAT_RGBA4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsu… in __drm_format_info() [all …]
|
| D | drm_fb_cma_helper.c | 87 h_div = fb->format->hsub; in drm_fb_cma_get_gem_addr()
|
| /Linux-v5.15/drivers/media/platform/sunxi/sun8i-rotate/ |
| D | sun8i_formats.c | 19 .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 …]
|
| D | sun8i-formats.h | 17 int hsub; member
|
| D | sun8i_rotate.c | 53 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-v5.15/drivers/gpu/drm/rcar-du/ |
| D | rcar_du_kms.c | 44 .hsub = 1, 52 .hsub = 1, 67 .hsub = 1, 75 .hsub = 1, 83 .hsub = 2, 91 .hsub = 2, 99 .hsub = 2, 107 .hsub = 2, 115 .hsub = 2, 128 .hsub = 1, [all …]
|
| D | rcar_du_kms.h | 25 unsigned int hsub; member
|
| /Linux-v5.15/include/drm/ |
| D | drm_fourcc.h | 132 u8 hsub; member 197 return info->is_yuv && info->hsub == 4 && info->vsub == 4; in drm_format_info_is_yuv_sampling_410() 212 return info->is_yuv && info->hsub == 4 && info->vsub == 1; in drm_format_info_is_yuv_sampling_411() 227 return info->is_yuv && info->hsub == 2 && info->vsub == 2; in drm_format_info_is_yuv_sampling_420() 242 return info->is_yuv && info->hsub == 2 && info->vsub == 1; in drm_format_info_is_yuv_sampling_422() 257 return info->is_yuv && info->hsub == 1 && info->vsub == 1; in drm_format_info_is_yuv_sampling_444() 279 return width / info->hsub; in drm_format_info_plane_width()
|
| /Linux-v5.15/drivers/gpu/drm/sun4i/ |
| D | sun8i_vi_scaler.c | 877 if (format->hsub == 1 && format->vsub == 1) { in sun8i_vi_scaler_set_coeff() 950 if (format->hsub == 2 && format->vsub == 2) { in sun8i_vi_scaler_setup() 962 if (format->hsub == 1 && format->vsub == 1) in sun8i_vi_scaler_setup() 985 SUN8I_VI_SCALER_SIZE(src_w / format->hsub, in sun8i_vi_scaler_setup() 989 hscale / format->hsub); in sun8i_vi_scaler_setup()
|
| D | sun8i_vi_layer.c | 128 if (format->hsub > 1) { in sun8i_vi_layer_update_coord() 131 mask = format->hsub - 1; in sun8i_vi_layer_update_coord() 151 (state->src.x1 >> 16) & ~(format->hsub - 1), in sun8i_vi_layer_update_coord() 165 subsampled = format->hsub > 1 || format->vsub > 1; in sun8i_vi_layer_update_coord() 319 src_x = (state->src.x1 >> 16) & ~(format->hsub - 1); in sun8i_vi_layer_update_buffer() 335 dx /= format->hsub; in sun8i_vi_layer_update_buffer()
|
| /Linux-v5.15/drivers/gpu/drm/i915/display/ |
| D | intel_fb.c | 124 void intel_fb_plane_get_subsampling(int *hsub, int *vsub, in intel_fb_plane_get_subsampling() argument 131 *hsub = 1; in intel_fb_plane_get_subsampling() 142 *hsub = fb->format->hsub; in intel_fb_plane_get_subsampling() 149 *hsub = drm_format_info_block_width(fb->format, color_plane) / in intel_fb_plane_get_subsampling() 161 *hsub *= fb->format->hsub; in intel_fb_plane_get_subsampling() 171 int hsub, vsub; in intel_fb_plane_dims() local 174 intel_fb_plane_get_subsampling(&hsub, &vsub, &fb->base, color_plane); in intel_fb_plane_dims() 175 *w = fb->base.width / main_hsub / hsub; in intel_fb_plane_dims() 411 int hsub, vsub; in intel_fb_check_ccs_xy() local 420 intel_fb_plane_get_subsampling(&hsub, &vsub, fb, ccs_plane); in intel_fb_check_ccs_xy() [all …]
|
| D | intel_fb.h | 36 void intel_fb_plane_get_subsampling(int *hsub, int *vsub,
|
| D | skl_universal_plane.c | 1371 int hsub; in skl_check_main_ccs_coordinates() local 1374 intel_fb_plane_get_subsampling(&hsub, &vsub, fb, ccs_plane); in skl_check_main_ccs_coordinates() 1384 x = aux_x / hsub; in skl_check_main_ccs_coordinates() 1392 aux_x = x * hsub + aux_x % hsub; in skl_check_main_ccs_coordinates() 1608 int hsub, vsub; in skl_check_ccs_aux_surface() local 1617 intel_fb_plane_get_subsampling(&hsub, &vsub, fb, ccs_plane); in skl_check_ccs_aux_surface() 1619 hsub *= main_hsub; in skl_check_ccs_aux_surface() 1621 x = src_x / hsub; in skl_check_ccs_aux_surface() 1631 plane_state->view.color_plane[ccs_plane].x = (x * hsub + src_x % hsub) / main_hsub; in skl_check_ccs_aux_surface()
|
| D | intel_sprite.c | 57 u32 src_x, src_y, src_w, src_h, hsub, vsub; in intel_plane_check_src_coordinates() local 85 hsub = 2; in intel_plane_check_src_coordinates() 88 hsub = fb->format->hsub; in intel_plane_check_src_coordinates() 93 hsub = vsub = max(hsub, vsub); in intel_plane_check_src_coordinates() 95 if (src_x % hsub || src_w % hsub) { in intel_plane_check_src_coordinates() 97 src_x, src_w, hsub, yesno(rotated)); in intel_plane_check_src_coordinates()
|
| /Linux-v5.15/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_display.c | 540 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, }, 542 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, }, 544 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, 547 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, 550 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, 553 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, }, 555 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, }, 557 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, 560 .cpp = { 4, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, 563 .cpp = { 2, 0, }, .block_w = {1, 1, 1}, .block_h = {1, 1, 1}, .hsub = 1, .vsub = 1, }, [all …]
|
| /Linux-v5.15/drivers/media/platform/sunxi/sun4i-csi/ |
| D | sun4i_v4l2.c | 30 .hsub = 2, 117 width = ALIGN(pix->width, _fmt->hsub); in _sun4i_csi_try_fmt() 121 pix->width = clamp(width, _fmt->hsub, CSI_MAX_WIDTH); in _sun4i_csi_try_fmt() 125 unsigned int hsub = i > 0 ? _fmt->hsub : 1; in _sun4i_csi_try_fmt() local 129 bpl = pix->width / hsub * _fmt->bpp[i] / 8; in _sun4i_csi_try_fmt()
|
| D | sun4i_csi.h | 100 unsigned int hsub; member
|
| /Linux-v5.15/drivers/gpu/drm/tidss/ |
| D | tidss_plane.c | 72 if ((new_plane_state->src_x >> 16) % finfo->hsub != 0) { in tidss_plane_atomic_check() 75 __func__, (new_plane_state->src_x >> 16), finfo->hsub); in tidss_plane_atomic_check() 86 if ((new_plane_state->src_w >> 16) % finfo->hsub != 0) { in tidss_plane_atomic_check() 90 finfo->hsub); in tidss_plane_atomic_check()
|
| /Linux-v5.15/drivers/gpu/drm/msm/disp/mdp5/ |
| D | mdp5_smp.c | 123 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()
|
| /Linux-v5.15/drivers/media/platform/vsp1/ |
| D | vsp1_wpf.c | 465 unsigned int hsub = i > 0 ? fmtinfo->hsub : 1; in wpf_configure_partition() local 472 mem.addr[i] += offset / hsub in wpf_configure_partition() 507 unsigned int hsub = i > 0 ? fmtinfo->hsub : 1; in wpf_configure_partition() local 509 mem.addr[i] += hoffset / hsub in wpf_configure_partition()
|
| D | vsp1_pipe.h | 45 unsigned int hsub; member
|
| D | vsp1_video.c | 133 width = round_down(width, info->hsub); in __vsp1_video_try_format() 137 pix->width = clamp(width, info->hsub, VSP1_VIDEO_MAX_WIDTH); in __vsp1_video_try_format() 146 unsigned int hsub = i > 0 ? info->hsub : 1; in __vsp1_video_try_format() local 152 pix->width / hsub * info->bpp[i] / 8, in __vsp1_video_try_format()
|
| /Linux-v5.15/drivers/gpu/drm/arm/display/komeda/ |
| D | komeda_framebuffer.c | 221 if ((src_x % info->hsub) || (src_w % info->hsub) || in komeda_fb_check_src_coords() 256 plane_x = x / (plane ? fb->format->hsub : 1); in komeda_fb_get_pixel_addr()
|
| /Linux-v5.15/drivers/media/platform/qcom/camss/ |
| D | camss-video.c | 45 struct fract hsub[3]; member 312 bytesperline = pix->width / f->hsub[i].numerator * in video_mbus_to_pix_mp() 313 f->hsub[i].denominator * f->bpp[i] / 8; in video_mbus_to_pix_mp() 724 bpl = pix_mp->width / fi->hsub[i].numerator * in __video_try_fmt() 725 fi->hsub[i].denominator * fi->bpp[i] / 8; in __video_try_fmt()
|
| /Linux-v5.15/drivers/gpu/drm/imx/ |
| D | ipuv3-plane.c | 150 x /= fb->format->hsub; in drm_plane_state_to_ubo() 169 x /= fb->format->hsub; in drm_plane_state_to_vbo() 509 if (((new_state->src.x1 >> 16) & (fb->format->hsub - 1)) || in ipu_plane_atomic_check()
|