Lines Matching refs:nr
260 u32 nr, i, nr_addr; in cpu_topology__new() local
276 nr = (u32)(ncpus & UINT_MAX); in cpu_topology__new()
278 sz = nr * sizeof(char *); in cpu_topology__new()
297 for (i = 0; i < nr; i++) { in cpu_topology__new()
315 static int load_numa_node(struct numa_topology_node *node, int nr) in load_numa_node() argument
325 node->node = (u32) nr; in load_numa_node()
328 sysfs__mountpoint(), nr); in load_numa_node()
351 sysfs__mountpoint(), nr); in load_numa_node()
382 u32 nr, i; in numa_topology__new() local
404 nr = (u32) perf_cpu_map__nr(node_map); in numa_topology__new()
406 tp = zalloc(sizeof(*tp) + sizeof(tp->nodes[0])*nr); in numa_topology__new()
410 tp->nr = nr; in numa_topology__new()
412 for (i = 0; i < nr; i++) { in numa_topology__new()
431 for (i = 0; i < tp->nr; i++) in numa_topology__delete()
475 int nr = perf_pmus__num_core_pmus(), i = 0; in hybrid_topology__new() local
477 if (nr <= 1) in hybrid_topology__new()
480 tp = zalloc(sizeof(*tp) + sizeof(tp->nodes[0]) * nr); in hybrid_topology__new()
484 tp->nr = nr; in hybrid_topology__new()
500 for (i = 0; i < tp->nr; i++) { in hybrid_topology__delete()