| /linux/drivers/gpu/drm/ |
| H A D | drm_fourcc.c | 179 ….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 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 …]
|
| H A D | sun8i-formats.h | 17 int hsub; member
|
| H A 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/drivers/gpu/drm/renesas/rcar-du/ |
| H A D | rcar_du_kms.c | 48 .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 D | rcar_du_kms.h | 28 unsigned int hsub; member
|
| /linux/drivers/gpu/drm/renesas/rz-du/ |
| H A D | rzg2l_du_kms.c | 42 .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 …]
|
| H A D | rzg2l_du_kms.h | 27 unsigned int hsub; member
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_fb.c | 44 .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 D | intel_plane.c | 1074 u32 src_x, src_y, src_w, src_h, hsub, vsub; in intel_plane_check_src_coordinates() local 1102 hsub = 2; in intel_plane_check_src_coordinates() 1110 hsub = 1; in intel_plane_check_src_coordinates() 1118 hsub = 2; in intel_plane_check_src_coordinates() 1123 hsub = fb->format->hsub; in intel_plane_check_src_coordinates() 1128 hsub = vsub = max(hsub, vsub); in intel_plane_check_src_coordinates() 1130 if (src_x % hsub || src_w % hsub) { in intel_plane_check_src_coordinates() 1134 src_x, src_w, hsub, str_yes_no(rotated)); in intel_plane_check_src_coordinates()
|
| /linux/include/drm/ |
| H A D | drm_fourcc.h | 132 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/gpu/drm/sun4i/ |
| H A D | sun8i_vi_scaler.c | 880 if (format->hsub == 1 && format->vsub == 1) { in sun8i_vi_scaler_set_coeff() 953 if (format->hsub == 2 && format->vsub == 2) { in sun8i_vi_scaler_setup() 965 if (format->hsub == 1 && format->vsub == 1) in sun8i_vi_scaler_setup() 988 SUN8I_VI_SCALER_SIZE(src_w / format->hsub, in sun8i_vi_scaler_setup() 992 hscale / format->hsub); in sun8i_vi_scaler_setup()
|
| H A D | sun8i_vi_layer.c | 92 if (format->hsub > 1) { in sun8i_vi_layer_update_coord() 95 mask = format->hsub - 1; in sun8i_vi_layer_update_coord() 115 (state->src.x1 >> 16) & ~(format->hsub - 1), in sun8i_vi_layer_update_coord() 129 subsampled = format->hsub > 1 || format->vsub > 1; in sun8i_vi_layer_update_coord() 209 src_x = (state->src.x1 >> 16) & ~(format->hsub - 1); in sun8i_vi_layer_update_buffer() 225 dx /= format->hsub; in sun8i_vi_layer_update_buffer()
|
| /linux/drivers/media/platform/qcom/camss/ |
| H A D | camss-format.h | 16 .hsub[(plane)].numerator = (h_fract_num), \ 17 .hsub[(plane)].denominator = (h_fract_den), \ 47 struct fract hsub[3]; member
|
| H A D | camss-video.c | 55 bytesperline = pix->width / f->hsub[i].numerator * in video_mbus_to_pix_mp() 56 f->hsub[i].denominator * f->bpp[i] / 8; in video_mbus_to_pix_mp() 495 bpl = pix_mp->width / fi->hsub[i].numerator * in __video_try_fmt() 496 fi->hsub[i].denominator * fi->bpp[i] / 8; in __video_try_fmt()
|
| /linux/drivers/gpu/drm/msm/disp/mdp5/ |
| H A 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/drivers/media/platform/sunxi/sun4i-csi/ |
| H A D | sun4i_v4l2.c | 30 .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 D | sun4i_csi.h | 101 unsigned int hsub; member
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_display.c | 583 .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 D | tidss_plane.c | 80 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/media/platform/renesas/vsp1/ |
| H A D | vsp1_wpf.c | 460 unsigned int hsub = i > 0 ? fmtinfo->hsub : 1; in wpf_configure_partition() local 467 mem.addr[i] += offset / hsub in wpf_configure_partition() 502 unsigned int hsub = i > 0 ? fmtinfo->hsub : 1; in wpf_configure_partition() local 504 mem.addr[i] += hoffset / hsub in wpf_configure_partition()
|
| H A D | vsp1_pipe.h | 46 unsigned int hsub; member
|
| /linux/drivers/gpu/drm/arm/display/komeda/ |
| H A D | komeda_framebuffer.c | 223 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/nxp/imx8-isi/ |
| H A D | imx8-isi-video.c | 67 .hsub = 2, 78 .hsub = 2, 89 .hsub = 2, 100 .hsub = 2, 111 .hsub = 1, 1216 h_align = max_t(unsigned int, info->hsub, 1); in mxc_isi_video_enum_framesizes()
|
| /linux/drivers/gpu/drm/vkms/ |
| H A D | vkms_formats.c | 160 return format->hsub; in get_subsampling() 509 x_start / plane->frame_info->fb->format->hsub, \ in READ_LINE_ARGB8888() 554 x_start / plane->frame_info->fb->format->hsub, 558 x_start / plane->frame_info->fb->format->hsub,
|