Lines Matching refs:halign
584 * 2^walign, the height will be a multiple of 2^halign, and the overall size
599 unsigned int halign, unsigned int salign)
602 *h = clamp_align(*h, hmin, hmax, halign);
610 halign = __ffs(*h);
612 if (walign + halign < salign) {
615 /* Max halign where there is still a valid height */
620 if (halign >= hmaxa ||
621 (walign <= halign && walign < wmaxa)) {
625 *h = clamp_align(*h, hmin, hmax, halign + 1);
626 halign = __ffs(*h);
628 } while (halign + walign < salign);