Home
last modified time | relevance | path

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

/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_smp.c218 int i, hsub, nplanes, nlines, nblks, ret; in mdp5_smp_request() local
222 hsub = drm_format_horz_chroma_subsampling(fmt); in mdp5_smp_request()
238 if (hdecim && (hsub > 1)) in mdp5_smp_request()
239 hsub = 1; in mdp5_smp_request()
246 fetch_stride = width * cpp / (i ? hsub : 1); in mdp5_smp_request()
Dmdp5_plane.c508 unsigned int hsub; in calc_scalex_steps() local
517 hsub = drm_format_horz_chroma_subsampling(pixel_format); in calc_scalex_steps()
521 phasex_steps[COMP_1_2] = phasex_step / hsub; in calc_scalex_steps()
/drivers/gpu/drm/rockchip/
Drockchip_drm_fb.c110 unsigned int hsub; in rockchip_user_fb_create() local
116 hsub = drm_format_horz_chroma_subsampling(mode_cmd->pixel_format); in rockchip_user_fb_create()
122 unsigned int width = mode_cmd->width / (i ? hsub : 1); in rockchip_user_fb_create()
Drockchip_drm_vop.c525 int hsub = drm_format_horz_chroma_subsampling(pixel_format); in scl_vop_cal_scl_fac() local
528 uint16_t cbcr_src_w = src_w / hsub; in scl_vop_cal_scl_fac()
893 int hsub = drm_format_horz_chroma_subsampling(fb->pixel_format); in vop_update_plane_event() local
905 offset = (src.x1 >> 16) * bpp / hsub; in vop_update_plane_event()
/drivers/gpu/drm/msm/
Dmsm_fb.c179 unsigned int hsub, vsub; in msm_framebuffer_init() local
186 hsub = drm_format_horz_chroma_subsampling(mode_cmd->pixel_format); in msm_framebuffer_init()
213 unsigned int width = mode_cmd->width / (i ? hsub : 1); in msm_framebuffer_init()
/drivers/gpu/drm/
Ddrm_fb_cma_helper.c115 unsigned int hsub; in drm_fb_cma_create() local
120 hsub = drm_format_horz_chroma_subsampling(mode_cmd->pixel_format); in drm_fb_cma_create()
124 unsigned int width = mode_cmd->width / (i ? hsub : 1); in drm_fb_cma_create()
Ddrm_crtc.c3136 int ret, hsub, vsub, num_planes, i; in framebuffer_check() local
3145 hsub = drm_format_horz_chroma_subsampling(r->pixel_format); in framebuffer_check()
3149 if (r->width == 0 || r->width % hsub) { in framebuffer_check()
3160 unsigned int width = r->width / (i != 0 ? hsub : 1); in framebuffer_check()
/drivers/gpu/drm/tegra/
Dfb.c136 unsigned int hsub, vsub, i; in tegra_fb_create() local
142 hsub = drm_format_horz_chroma_subsampling(cmd->pixel_format); in tegra_fb_create()
146 unsigned int width = cmd->width / (i ? hsub : 1); in tegra_fb_create()
/drivers/gpu/drm/armada/
Darmada_overlay.c173 int i, num_planes, hsub; in armada_ovl_plane_update() local
188 hsub = drm_format_horz_chroma_subsampling(pixel_format); in armada_ovl_plane_update()
196 if (src_x & (hsub - 1) && num_planes == 1) in armada_ovl_plane_update()
/drivers/media/platform/vsp1/
Dvsp1_video.h47 unsigned int hsub; member
Dvsp1_video.c236 width = round_down(width, info->hsub); in __vsp1_video_try_format()
249 unsigned int hsub = i > 0 ? info->hsub : 1; in __vsp1_video_try_format() local
255 pix->width / hsub * info->bpp[i] / 8, in __vsp1_video_try_format()
/drivers/video/adf/
Dadf_client.c251 u8 hsub, vsub, num_planes, cpp[ADF_MAX_PLANES], i; in adf_buffer_validate() local
263 hsub = adf_format_horz_chroma_subsampling(buf->format); in adf_buffer_validate()
269 return adf_format_validate_yuv(parent, buf, num_planes, hsub, vsub, in adf_buffer_validate()
Dadf.c1055 u8 num_planes, u8 hsub, u8 vsub, u8 cpp[]) in adf_format_validate_yuv() argument
1067 if (buf->w == 0 || buf->w % hsub) { in adf_format_validate_yuv()
1078 u32 width = buf->w / (i != 0 ? hsub : 1); in adf_format_validate_yuv()
/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c556 int hsub = 1; in atmel_hlcdc_plane_atomic_check() local
626 hsub = drm_format_horz_chroma_subsampling(fb->pixel_format); in atmel_hlcdc_plane_atomic_check()
631 int xdiv = i ? hsub : 1; in atmel_hlcdc_plane_atomic_check()