Home
last modified time | relevance | path

Searched refs:cnode (Results 1 – 22 of 22) sorted by relevance

/arch/mips/sgi-ip27/
Dip27-klnuma.c41 cnodeid_t cnode; in setup_replication_mask() local
43 for_each_online_node(cnode) { in setup_replication_mask()
44 if (cnode == 0) in setup_replication_mask()
47 cpumask_set_cpu(cnode, &ktext_repmask); in setup_replication_mask()
88 cnodeid_t cnode; in replicate_kernel_text() local
97 for_each_online_node(cnode) { in replicate_kernel_text()
98 if (cnode == 0) in replicate_kernel_text()
100 client_nasid = COMPACT_TO_NASID_NODEID(cnode); in replicate_kernel_text()
103 if (cpumask_test_cpu(cnode, &ktext_repmask)) { in replicate_kernel_text()
118 unsigned long node_getfirstfree(cnodeid_t cnode) in node_getfirstfree() argument
[all …]
Dip27-init.c57 static void per_hub_init(cnodeid_t cnode) in per_hub_init() argument
59 struct hub_data *hub = hub_data(cnode); in per_hub_init()
60 nasid_t nasid = COMPACT_TO_NASID_NODEID(cnode); in per_hub_init()
65 if (test_and_set_bit(cnode, hub_init_mask)) in per_hub_init()
73 hub_rtc_init(cnode); in per_hub_init()
74 xtalk_probe_node(cnode); in per_hub_init()
81 if (get_compact_nodeid() == cnode) { in per_hub_init()
117 cnodeid_t cnode = get_compact_nodeid(); in per_cpu_init() local
118 struct hub_data *hub = hub_data(cnode); in per_cpu_init()
127 per_hub_init(cnode); in per_cpu_init()
Dip27-hubio.c28 unsigned long hub_pio_map(cnodeid_t cnode, xwidgetnum_t widget, in hub_pio_map() argument
31 nasid_t nasid = COMPACT_TO_NASID_NODEID(cnode); in hub_pio_map()
47 if (test_and_set_bit(i, hub_data(cnode)->h_bigwin_used)) in hub_pio_map()
174 void hub_pio_init(cnodeid_t cnode) in hub_pio_init() argument
176 nasid_t nasid = COMPACT_TO_NASID_NODEID(cnode); in hub_pio_init()
180 bitmap_zero(hub_data(cnode)->h_bigwin_used, HUB_NUM_BIG_WINDOW); in hub_pio_init()
Dip27-memory.c48 static hubreg_t get_region(cnodeid_t cnode) in get_region() argument
51 return COMPACT_TO_NASID_NODEID(cnode) >> NASID_TO_FINEREG_SHFT; in get_region()
53 return COMPACT_TO_NASID_NODEID(cnode) >> NASID_TO_COARSEREG_SHFT; in get_region()
60 cnodeid_t cnode; in gen_region_mask() local
63 for_each_online_node(cnode) { in gen_region_mask()
64 (*region_mask) |= 1ULL << get_region(cnode); in gen_region_mask()
115 cnodeid_t cnode; in compute_node_distance() local
120 for_each_online_node(cnode) { in compute_node_distance()
121 nasid = COMPACT_TO_NASID_NODEID(cnode); in compute_node_distance()
200 cnodeid_t cnode; in dump_topology() local
[all …]
Dip27-nmi.c155 void nmi_node_eframe_save(cnodeid_t cnode) in nmi_node_eframe_save() argument
161 if (cnode == CNODEID_NONE) in nmi_node_eframe_save()
164 nasid = COMPACT_TO_NASID_NODEID(cnode); in nmi_node_eframe_save()
181 cnodeid_t cnode; in nmi_eframes_save() local
183 for_each_online_node(cnode) in nmi_eframes_save()
184 nmi_node_eframe_save(cnode); in nmi_eframes_save()
Dip27-smp.c61 static int do_cpumask(cnodeid_t cnode, nasid_t nasid, int highest) in do_cpumask() argument
77 cpuid_to_compact_node[cpuid] = cnode; in do_cpumask()
211 cnodeid_t cnode; in ip27_smp_setup() local
213 for_each_online_node(cnode) { in ip27_smp_setup()
214 if (cnode == 0) in ip27_smp_setup()
216 intr_clear_all(COMPACT_TO_NASID_NODEID(cnode)); in ip27_smp_setup()
Dip27-klconfig.c106 cnodeid_t cnode; in sn_get_cpuinfo() local
113 cnode = get_cpu_cnode(cpu); in sn_get_cpuinfo()
114 if (cnode == INVALID_CNODEID) in sn_get_cpuinfo()
117 if ((nasid = gdap->g_nasidtable[cnode]) == INVALID_NASID) in sn_get_cpuinfo()
Dip27-timer.c201 void hub_rtc_init(cnodeid_t cnode) in hub_rtc_init() argument
209 if (get_compact_nodeid() == cnode) { in hub_rtc_init()
/arch/ia64/sn/kernel/
Dsetup.c217 int cnode; in sn_check_for_wars() local
222 for_each_online_node(cnode) { in sn_check_for_wars()
223 if (is_shub_1_1(cnodeid_to_nasid(cnode))) in sn_check_for_wars()
507 cnodeid_t cnode; in sn_init_pdas() local
512 for_each_online_node(cnode) { in sn_init_pdas()
513 nodepdaindr[cnode] = in sn_init_pdas()
514 alloc_bootmem_node(NODE_DATA(cnode), sizeof(nodepda_t)); in sn_init_pdas()
515 memset(nodepdaindr[cnode]->phys_cpuid, -1, in sn_init_pdas()
516 sizeof(nodepdaindr[cnode]->phys_cpuid)); in sn_init_pdas()
517 spin_lock_init(&nodepdaindr[cnode]->ptc_lock); in sn_init_pdas()
[all …]
Dio_common.c281 int cnode; in sn_common_bus_fixup() local
328 cnode = nasid_to_cnodeid(nasid); in sn_common_bus_fixup()
329 hubdev_info = (struct hubdev_info *)(NODEPDA(cnode)->pdinfo); in sn_common_bus_fixup()
403 cnodeid_get_geoid(cnodeid_t cnode) in cnodeid_get_geoid() argument
407 hubdev = (struct hubdev_info *)(NODEPDA(cnode)->pdinfo); in cnodeid_get_geoid()
414 cnodeid_t cnode; in sn_generate_path() local
420 cnode = nasid_to_cnodeid(nasid); in sn_generate_path()
421 geoid = cnodeid_get_geoid(cnode); in sn_generate_path()
520 cnodeid_t cnode; in sn_io_late_init() local
536 cnode = nasid_to_cnodeid(nasid); in sn_io_late_init()
[all …]
Dbte_error.c240 bte_crb_error_handler(cnodeid_t cnode, int btenum, in bte_crb_error_handler() argument
246 bte = &(NODEPDA(cnode)->bte_if[btenum]); in bte_crb_error_handler()
258 bte_error_handler((unsigned long) NODEPDA(cnode)); in bte_crb_error_handler()
Dbte.c424 void bte_init_node(nodepda_t * mynodepda, cnodeid_t cnode) in bte_init_node() argument
448 REMOTE_HUB_ADDR(cnodeid_to_nasid(cnode), BTE_BASE_ADDR(i)); in bte_init_node()
464 mynodepda->bte_if[i].bte_cnode = cnode; in bte_init_node()
/arch/sparc/prom/
Dtree_32.c27 phandle cnode; in __prom_getchild() local
30 cnode = prom_nodeops->no_child(node); in __prom_getchild()
34 return cnode; in __prom_getchild()
42 phandle cnode; in prom_getchild() local
47 cnode = __prom_getchild(node); in prom_getchild()
48 if (cnode == 0 || (s32)cnode == -1) in prom_getchild()
51 return cnode; in prom_getchild()
59 phandle cnode; in __prom_getsibling() local
62 cnode = prom_nodeops->no_nextnode(node); in __prom_getsibling()
66 return cnode; in __prom_getsibling()
Dtree_64.c45 phandle cnode; in prom_getchild() local
49 cnode = __prom_getchild(node); in prom_getchild()
50 if ((s32)cnode == -1) in prom_getchild()
52 return cnode; in prom_getchild()
58 phandle cnode; in prom_getparent() local
62 cnode = prom_node_to_node("parent", node); in prom_getparent()
63 if ((s32)cnode == -1) in prom_getparent()
65 return cnode; in prom_getparent()
/arch/mips/include/asm/sn/
Dhub.h13 extern unsigned long hub_pio_map(cnodeid_t cnode, xwidgetnum_t widget,
15 extern void hub_pio_init(cnodeid_t cnode);
Darch.h61 #define COMPACT_TO_NASID_NODEID(cnode) (compact_to_nasid_node[cnode]) argument
/arch/ia64/sn/kernel/sn2/
Dsn2_smp.c168 int i, ibegin, shub1, cnode, mynasid, cpu, lcpu = 0, nasid; in sn2_global_tlb_purge() local
186 cnode = cpu_to_node(cpu); in sn2_global_tlb_purge()
187 node_set(cnode, nodes_flushed); in sn2_global_tlb_purge()
274 for_each_node_mask(cnode, nodes_flushed) { in sn2_global_tlb_purge()
275 nasid = cnodeid_to_nasid(cnode); in sn2_global_tlb_purge()
337 int cnode; in sn2_ptc_deadlock_recovery() local
346 for_each_node_mask(cnode, nodes) { in sn2_ptc_deadlock_recovery()
353 nasid = cnodeid_to_nasid(cnode); in sn2_ptc_deadlock_recovery()
Dsn_hwperf.c108 int cnode; in sn_hwperf_geoid_to_cnode() local
121 for (cnode = 0; cnode < num_cnodes; cnode++) { in sn_hwperf_geoid_to_cnode()
122 geoid = cnodeid_get_geoid(cnode); in sn_hwperf_geoid_to_cnode()
134 return cnode_possible(cnode) ? cnode : -1; in sn_hwperf_geoid_to_cnode()
/arch/ia64/sn/pci/pcibr/
Dpcibr_provider.c116 int nasid, cnode, j; in pcibr_bus_fixup() local
162 cnode = nasid_to_cnodeid(nasid); in pcibr_bus_fixup()
163 hubdev_info = (struct hubdev_info *)(NODEPDA(cnode)->pdinfo); in pcibr_bus_fixup()
/arch/ia64/include/asm/sn/
Dsn_cpuid.h97 #define get_cnode() (sn_nodepda->phys_cpuid[smp_processor_id()].cnode)
Dgeo.h130 extern geoid_t cnodeid_get_geoid(cnodeid_t cnode);
/arch/sparc/include/asm/
Dopenprom.h267 int cnode; member