• Home
  • Raw
  • Download

Lines Matching refs:max_node

41 	unsigned long max_node = 0;  in get_max_node()  local
43 max_node = numa_max_possible_node() + 1; in get_max_node()
45 return max_node; in get_max_node()
49 static void get_nodemask_allnodes(nodemask_t * nodemask, unsigned long max_node) in get_nodemask_allnodes() argument
51 unsigned long nodemask_size = max_node / 8; in get_nodemask_allnodes()
57 for (i = 0; i < (int)max_node; i++) { in get_nodemask_allnodes()
64 static int filter_nodemask_mem(nodemask_t * nodemask, unsigned long max_node) in filter_nodemask_mem() argument
67 unsigned long nodemask_size = max_node / 8; in filter_nodemask_mem()
81 max_node, 0, MPOL_F_MEMS_ALLOWED) < 0) { in filter_nodemask_mem()
92 for (i = 0; i < (int)max_node; i++) { in filter_nodemask_mem()
115 static void filter_nodemask_cpu(nodemask_t * nodemask, unsigned long max_node) in filter_nodemask_cpu() argument
123 for (i = 0; i < (int)max_node; i++) { in filter_nodemask_cpu()
164 unsigned long max_node, nodemask_size; in get_allowed_nodes_arr() local
169 max_node = LTP_ALIGN(get_max_node(), sizeof(unsigned long)*8); in get_allowed_nodes_arr()
170 nodemask_size = max_node / 8; in get_allowed_nodes_arr()
174 *nodes = malloc(sizeof(int) * max_node); in get_allowed_nodes_arr()
183 get_nodemask_allnodes(nodemask, max_node); in get_allowed_nodes_arr()
185 ret = filter_nodemask_mem(nodemask, max_node); in get_allowed_nodes_arr()
190 filter_nodemask_cpu(nodemask, max_node); in get_allowed_nodes_arr()
192 for (i = 0; i < (int)max_node; i++) { in get_allowed_nodes_arr()