Lines Matching full:orders

71  * Mask of all large folio orders supported for anonymous THP; all orders up to
78 * Mask of all large folio orders supported for file THP.
83 * Mask of all large folio orders supported for THP.
129 static inline int highest_order(unsigned long orders) in highest_order() argument
131 return fls_long(orders) - 1; in highest_order()
134 static inline int next_order(unsigned long *orders, int prev) in next_order() argument
136 *orders &= ~BIT(prev); in next_order()
137 return highest_order(*orders); in next_order()
172 * Filter the bitfield of input orders to the ones suitable for use in the vma.
174 * All orders that pass the checks are returned as a bitfield.
177 unsigned long addr, unsigned long orders) in thp_vma_suitable_orders() argument
182 * Iterate over orders, highest to lowest, removing orders that don't in thp_vma_suitable_orders()
184 * that meets requirements, since all lower orders must also meet in thp_vma_suitable_orders()
188 order = highest_order(orders); in thp_vma_suitable_orders()
190 while (orders) { in thp_vma_suitable_orders()
193 order = next_order(&orders, order); in thp_vma_suitable_orders()
196 return orders; in thp_vma_suitable_orders()
215 unsigned long orders);
218 * thp_vma_allowable_orders - determine hugepage orders that are allowed for vma
224 * @orders: bitfield of all orders to consider
226 * Calculates the intersection of the requested hugepage orders and the allowed
227 * hugepage orders for the provided vma. Permitted orders are encoded as a set
231 * Return: bitfield of orders allowed for hugepage in the vma. 0 if no hugepage
232 * orders are allowed.
238 unsigned long orders) in thp_vma_allowable_orders() argument
240 /* Optimization to check if required orders are enabled early. */ in thp_vma_allowable_orders()
250 orders &= mask; in thp_vma_allowable_orders()
251 if (!orders) in thp_vma_allowable_orders()
256 enforce_sysfs, orders); in thp_vma_allowable_orders()
400 unsigned long addr, unsigned long orders) in thp_vma_suitable_orders() argument
408 unsigned long orders) in thp_vma_allowable_orders() argument