Lines Matching refs:nr_nodes
1504 #define for_each_node_mask_to_alloc(next_node, nr_nodes, node, mask) \ argument
1505 for (nr_nodes = nodes_weight(*mask); \
1506 nr_nodes > 0 && \
1508 nr_nodes--)
1510 #define for_each_node_mask_to_free(hs, nr_nodes, node, mask) \ argument
1511 for (nr_nodes = nodes_weight(*mask); \
1512 nr_nodes > 0 && \
1514 nr_nodes--)
2131 int nr_nodes, node; in alloc_pool_huge_folio() local
2133 for_each_node_mask_to_alloc(next_node, nr_nodes, node, nodes_allowed) { in alloc_pool_huge_folio()
2155 int nr_nodes, node; in remove_pool_hugetlb_folio() local
2159 for_each_node_mask_to_free(h, nr_nodes, node, nodes_allowed) { in remove_pool_hugetlb_folio()
3122 int nr_nodes, node = nid; in __alloc_bootmem_huge_page() local
3133 for_each_node_mask_to_alloc(&h->next_nid_to_alloc, nr_nodes, node, &node_states[N_MEMORY]) { in __alloc_bootmem_huge_page()
3570 int nr_nodes, node; in adjust_pool_surplus() local
3576 for_each_node_mask_to_alloc(&h->next_nid_to_alloc, nr_nodes, node, nodes_allowed) { in adjust_pool_surplus()
3581 for_each_node_mask_to_free(h, nr_nodes, node, nodes_allowed) { in adjust_pool_surplus()
3823 int nr_nodes, node; in demote_pool_huge_page() local
3837 for_each_node_mask_to_free(src, nr_nodes, node, nodes_allowed) { in demote_pool_huge_page()