Lines Matching refs:orders
186 static inline int highest_order(unsigned long orders) in highest_order() argument
188 return fls_long(orders) - 1; in highest_order()
191 static inline int next_order(unsigned long *orders, int prev) in next_order() argument
193 *orders &= ~BIT(prev); in next_order()
194 return highest_order(*orders); in next_order()
234 unsigned long addr, unsigned long orders) in thp_vma_suitable_orders() argument
245 order = highest_order(orders); in thp_vma_suitable_orders()
247 while (orders) { in thp_vma_suitable_orders()
250 order = next_order(&orders, order); in thp_vma_suitable_orders()
253 return orders; in thp_vma_suitable_orders()
272 unsigned long orders);
293 unsigned long orders) in thp_vma_allowable_orders() argument
305 orders &= mask; in thp_vma_allowable_orders()
306 if (!orders) in thp_vma_allowable_orders()
310 return __thp_vma_allowable_orders(vma, vm_flags, tva_flags, orders); in thp_vma_allowable_orders()
500 unsigned long addr, unsigned long orders) in thp_vma_suitable_orders() argument
508 unsigned long orders) in thp_vma_allowable_orders() argument
633 static inline int highest_order(unsigned long orders) in highest_order() argument
638 static inline int next_order(unsigned long *orders, int prev) in next_order() argument