/kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
D | v4l2-common.c | 122 unsigned int halign, unsigned int salign) in v4l_bound_align_image() argument 125 *h = clamp_align(*h, hmin, hmax, halign); in v4l_bound_align_image() 133 halign = __ffs(*h); in v4l_bound_align_image() 135 if (walign + halign < salign) { in v4l_bound_align_image() 143 if (halign >= hmaxa || in v4l_bound_align_image() 144 (walign <= halign && walign < wmaxa)) { in v4l_bound_align_image() 148 *h = clamp_align(*h, hmin, hmax, halign + 1); in v4l_bound_align_image() 149 halign = __ffs(*h); in v4l_bound_align_image() 151 } while (halign + walign < salign); in v4l_bound_align_image()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | evergreen_cs.c | 186 unsigned halign; member 197 surf->halign = 1; in evergreen_surface_check_linear() 212 surf->halign = 1; in evergreen_surface_check_linear_aligned() 235 surf->halign = 8; in evergreen_surface_check_1d() 259 unsigned palign, halign, tileb, slice_pt; in evergreen_surface_check_2d() local 270 halign = (8 * surf->bankh * surf->nbanks) / surf->mtilea; in evergreen_surface_check_2d() 271 mtileb = (palign / 8) * (halign / 8) * tileb; in evergreen_surface_check_2d() 273 mtile_ps = (mtile_pr * surf->nby) / halign; in evergreen_surface_check_2d() 275 surf->base_align = (palign / 8) * (halign / 8) * tileb; in evergreen_surface_check_2d() 277 surf->halign = halign; in evergreen_surface_check_2d() [all …]
|
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/ |
D | fimc-m2m.c | 432 u32 min_size, halign, depth = 0; in fimc_m2m_try_selection() local 457 halign = fimc_fmt_is_rgb(f->fmt->color) ? 0 : 1; in fimc_m2m_try_selection() 459 halign = ffs(fimc->variant->min_vsize_align) - 1; in fimc_m2m_try_selection() 467 halign, 64/(ALIGN(depth, 8))); in fimc_m2m_try_selection()
|
/kernel/linux/linux-5.10/drivers/media/test-drivers/ |
D | vim2m.c | 173 unsigned int *walign, unsigned int *halign) in get_alignment() argument 181 *halign = BAYER_HEIGHT_ALIGN; in get_alignment() 185 *halign = HEIGHT_ALIGN; in get_alignment() 770 int walign, halign; in vidioc_try_fmt() local 785 get_alignment(f->fmt.pix.pixelformat, &walign, &halign); in vidioc_try_fmt() 787 f->fmt.pix.height &= ~(halign - 1); in vidioc_try_fmt()
|
/kernel/linux/linux-5.10/drivers/media/platform/exynos-gsc/ |
D | gsc-core.c | 279 int remainder = 0, walign, halign; in gsc_check_src_scale_info() local 283 halign = GSC_SC_ALIGN_4; in gsc_check_src_scale_info() 286 halign = GSC_SC_ALIGN_2; in gsc_check_src_scale_info() 289 halign = GSC_SC_ALIGN_2; in gsc_check_src_scale_info() 300 remainder = s_frame->crop.height % (*hratio * halign); in gsc_check_src_scale_info()
|
/kernel/linux/linux-5.10/drivers/media/platform/mtk-mdp/ |
D | mtk_mdp_m2m.c | 157 int walign, halign; in mtk_mdp_bound_align_image() local 162 halign = ffs(align_h) - 1; in mtk_mdp_bound_align_image() 163 v4l_bound_align_image(w, wmin, wmax, walign, h, hmin, hmax, halign, 0); in mtk_mdp_bound_align_image() 166 step_h = 1 << halign; in mtk_mdp_bound_align_image()
|
/kernel/linux/linux-5.10/include/media/ |
D | v4l2-common.h | 389 unsigned int hmax, unsigned int halign,
|
/kernel/linux/linux-5.10/drivers/media/platform/s5p-jpeg/ |
D | jpeg-core.c | 1396 unsigned int halign) in jpeg_bound_align_image() argument 1404 h_step = 1 << halign; in jpeg_bound_align_image() 1420 v4l_bound_align_image(w, wmin, wmax, walign, h, hmin, hmax, halign, 0); in jpeg_bound_align_image()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/ |
D | qp.c | 3451 unsigned halign = ALIGN(sizeof *wqe + wr->hlen, 16); in build_lso_seg() local 3453 if (unlikely(halign > MLX4_IB_CACHE_LINE_SIZE)) in build_lso_seg() 3457 wr->wr.num_sge > qp->sq.max_gs - (halign >> 4))) in build_lso_seg() 3463 *lso_seg_len = halign; in build_lso_seg()
|