Lines Matching refs:orders
193 static inline int highest_order(unsigned long orders) in highest_order() argument
195 return fls_long(orders) - 1; in highest_order()
198 static inline int next_order(unsigned long *orders, int prev) in next_order() argument
200 *orders &= ~BIT(prev); in next_order()
201 return highest_order(*orders); in next_order()
241 unsigned long addr, unsigned long orders) in thp_vma_suitable_orders() argument
252 order = highest_order(orders); in thp_vma_suitable_orders()
254 while (orders) { in thp_vma_suitable_orders()
257 order = next_order(&orders, order); in thp_vma_suitable_orders()
260 return orders; in thp_vma_suitable_orders()
266 unsigned long orders);
287 unsigned long orders) in thp_vma_allowable_orders() argument
299 orders &= mask; in thp_vma_allowable_orders()
300 if (!orders) in thp_vma_allowable_orders()
304 return __thp_vma_allowable_orders(vma, vm_flags, tva_flags, orders); in thp_vma_allowable_orders()
524 unsigned long addr, unsigned long orders) in thp_vma_suitable_orders() argument
532 unsigned long orders) in thp_vma_allowable_orders() argument
663 static inline int highest_order(unsigned long orders) in highest_order() argument
668 static inline int next_order(unsigned long *orders, int prev) in next_order() argument