Home
last modified time | relevance | path

Searched refs:halign (Results 1 – 5 of 5) sorted by relevance

/drivers/media/video/
Dv4l2-common.c519 unsigned int halign, unsigned int salign) in v4l_bound_align_image() argument
522 *h = clamp_align(*h, hmin, hmax, halign); in v4l_bound_align_image()
530 halign = __ffs(*h); in v4l_bound_align_image()
532 if (walign + halign < salign) { in v4l_bound_align_image()
540 if (halign >= hmaxa || in v4l_bound_align_image()
541 (walign <= halign && walign < wmaxa)) { in v4l_bound_align_image()
545 *h = clamp_align(*h, hmin, hmax, halign + 1); in v4l_bound_align_image()
546 halign = __ffs(*h); in v4l_bound_align_image()
548 } while (halign + walign < salign); in v4l_bound_align_image()
/drivers/gpu/drm/radeon/
Devergreen_cs.c182 unsigned halign; member
193 surf->halign = 1; in evergreen_surface_check_linear()
208 surf->halign = 1; in evergreen_surface_check_linear_aligned()
231 surf->halign = 8; in evergreen_surface_check_1d()
255 unsigned palign, halign, tileb, slice_pt; in evergreen_surface_check_2d() local
266 halign = (8 * surf->bankh * surf->nbanks) / surf->mtilea; in evergreen_surface_check_2d()
267 mtileb = (palign / 8) * (halign / 8) * tileb;; in evergreen_surface_check_2d()
269 mtile_ps = (mtile_pr * surf->nby) / halign; in evergreen_surface_check_2d()
271 surf->base_align = (palign / 8) * (halign / 8) * tileb; in evergreen_surface_check_2d()
273 surf->halign = halign; in evergreen_surface_check_2d()
[all …]
/drivers/media/video/s5p-jpeg/
Djpeg-core.c620 unsigned int halign) in jpeg_bound_align_image() argument
628 h_step = 1 << halign; in jpeg_bound_align_image()
629 v4l_bound_align_image(w, wmin, wmax, walign, h, hmin, hmax, halign, 0); in jpeg_bound_align_image()
/drivers/media/video/s5p-fimc/
Dfimc-core.c1282 u32 min_size, halign, depth = 0; in fimc_m2m_try_crop() local
1302 halign = fimc_fmt_is_rgb(f->fmt->color) ? 0 : 1; in fimc_m2m_try_crop()
1304 halign = ffs(fimc->variant->min_vsize_align) - 1; in fimc_m2m_try_crop()
1312 halign, 64/(ALIGN(depth, 8))); in fimc_m2m_try_crop()
/drivers/infiniband/hw/mlx4/
Dqp.c1662 unsigned halign = ALIGN(sizeof *wqe + wr->wr.ud.hlen, 16); in build_lso_seg() local
1664 if (unlikely(halign > MLX4_IB_CACHE_LINE_SIZE)) in build_lso_seg()
1668 wr->num_sge > qp->sq.max_gs - (halign >> 4))) in build_lso_seg()
1675 *lso_seg_len = halign; in build_lso_seg()