Lines Matching refs:node_cnt
215 #define NODE_DOMAIN_HASH(domain, node_cnt) \ argument
216 ((lgrp_plat_prox_domain_min == UINT32_MAX) ? (domain) % node_cnt : \
217 ((domain) - lgrp_plat_prox_domain_min) % node_cnt)
452 int node_cnt, cpu_node_map_t *cpu_node, int nentries, uint32_t apicid,
459 int node_cnt, uint32_t domain);
475 int node_cnt, uint32_t domain);
478 int node_cnt, memnode_phys_addr_map_t *memnode_info, int memnode_cnt,
482 int node_cnt, cpu_node_map_t *cpu_node, int cpu_count,
492 node_domain_map_t *node_domain, uint_t node_cnt,
497 uint32_t sli_cnt, node_domain_map_t *node_domain, uint_t node_cnt,
515 static void opt_get_numa_config(uint_t *node_cnt, int *mem_intrlv,
1359 lgrp_plat_cpu_node_update(node_domain_map_t *node_domain, int node_cnt, in lgrp_plat_cpu_node_update() argument
1368 node = lgrp_plat_domain_to_node(node_domain, node_cnt, domain); in lgrp_plat_cpu_node_update()
1370 node = lgrp_plat_node_domain_update(node_domain, node_cnt, in lgrp_plat_cpu_node_update()
1462 lgrp_plat_domain_to_node(node_domain_map_t *node_domain, int node_cnt, in lgrp_plat_domain_to_node() argument
1473 node = start = NODE_DOMAIN_HASH(domain, node_cnt); in lgrp_plat_domain_to_node()
1480 node = (node + 1) % node_cnt; in lgrp_plat_domain_to_node()
2171 lgrp_plat_node_domain_update(node_domain_map_t *node_domain, int node_cnt, in lgrp_plat_node_domain_update() argument
2181 node = start = NODE_DOMAIN_HASH(domain, node_cnt); in lgrp_plat_node_domain_update()
2200 node = NODE_DOMAIN_HASH(node + 1, node_cnt); in lgrp_plat_node_domain_update()
2216 lgrp_plat_memnode_info_update(node_domain_map_t *node_domain, int node_cnt, in lgrp_plat_memnode_info_update() argument
2225 node = lgrp_plat_domain_to_node(node_domain, node_cnt, domain); in lgrp_plat_memnode_info_update()
2227 node = lgrp_plat_node_domain_update(node_domain, node_cnt, in lgrp_plat_memnode_info_update()
2307 lgrp_plat_node_sort(node_domain_map_t *node_domain, int node_cnt, in lgrp_plat_node_sort() argument
2318 if (!lgrp_plat_node_sort_enable || node_cnt <= 1 || in lgrp_plat_node_sort()
2326 for (i = 0; i < node_cnt - 1; i++) { in lgrp_plat_node_sort()
2337 for (j = i + 1; j < node_cnt; j++) { in lgrp_plat_node_sort()
2369 n = node_cnt; in lgrp_plat_node_sort()
2429 if (n == node_cnt - 1 || cpu_node == NULL || cpu_count < 1) in lgrp_plat_node_sort()
2434 node = lgrp_plat_domain_to_node(node_domain, node_cnt, in lgrp_plat_node_sort()
2643 node_domain_map_t *node_domain, uint_t node_cnt, in lgrp_plat_process_slit() argument
2673 node_cnt, i); in lgrp_plat_process_slit()
2681 node_cnt, j); in lgrp_plat_process_slit()
2725 uint32_t sli_cnt, node_domain_map_t *node_domain, uint_t node_cnt, in lgrp_plat_process_sli() argument
2737 src = lgrp_plat_domain_to_node(node_domain, node_cnt, domain_id); in lgrp_plat_process_sli()
2739 src = lgrp_plat_node_domain_update(node_domain, node_cnt, in lgrp_plat_process_sli()
2779 dst = lgrp_plat_domain_to_node(node_domain, node_cnt, i); in lgrp_plat_process_sli()
2821 int node_cnt; in lgrp_plat_process_srat() local
2836 node_cnt = lgrp_plat_msct_domains(mp, prox_domain_min); in lgrp_plat_process_srat()
2837 if (node_cnt <= 0) { in lgrp_plat_process_srat()
2842 node_cnt = lgrp_plat_srat_domains(tp, prox_domain_min); in lgrp_plat_process_srat()
2847 if (node_cnt == 1) in lgrp_plat_process_srat()
2849 else if (node_cnt <= 0) in lgrp_plat_process_srat()
2886 rc = lgrp_plat_cpu_node_update(node_domain, node_cnt, in lgrp_plat_process_srat()
2952 node_cnt, memnode_info, node_cnt, in lgrp_plat_process_srat()
2972 rc = lgrp_plat_cpu_node_update(node_domain, node_cnt, in lgrp_plat_process_srat()
2998 lgrp_plat_node_sort(node_domain, node_cnt, cpu_node, cpu_count, in lgrp_plat_process_srat()
3001 return (node_cnt); in lgrp_plat_process_srat()
3484 opt_get_numa_config(uint_t *node_cnt, int *mem_intrlv, in opt_get_numa_config() argument
3514 *node_cnt = OPT_NODE_CNT(node_info[0]) + 1; in opt_get_numa_config()
3520 if (*node_cnt > MAX_NODES) { in opt_get_numa_config()
3521 *node_cnt = 1; in opt_get_numa_config()
3537 for (node = 0; node < *node_cnt; node++) { in opt_get_numa_config()