Home
last modified time | relevance | path

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

/arch/mips/sgi-ip27/
Dip27-klnuma.c40 cnodeid_t cnode; in setup_replication_mask() local
42 for_each_online_node(cnode) { in setup_replication_mask()
43 if (cnode == 0) in setup_replication_mask()
46 cpu_set(cnode, ktext_repmask); in setup_replication_mask()
87 cnodeid_t cnode; in replicate_kernel_text() local
96 for_each_online_node(cnode) { in replicate_kernel_text()
97 if (cnode == 0) in replicate_kernel_text()
99 client_nasid = COMPACT_TO_NASID_NODEID(cnode); in replicate_kernel_text()
102 if (cpu_isset(cnode, ktext_repmask)) { in replicate_kernel_text()
117 pfn_t node_getfirstfree(cnodeid_t cnode) in node_getfirstfree() argument
[all …]
Dip27-init.c57 static void __cpuinit 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.c49 static hubreg_t get_region(cnodeid_t cnode) in get_region() argument
52 return COMPACT_TO_NASID_NODEID(cnode) >> NASID_TO_FINEREG_SHFT; in get_region()
54 return COMPACT_TO_NASID_NODEID(cnode) >> NASID_TO_COARSEREG_SHFT; in get_region()
61 cnodeid_t cnode; in gen_region_mask() local
64 for_each_online_node(cnode) { in gen_region_mask()
65 (*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.c154 void nmi_node_eframe_save(cnodeid_t cnode) in nmi_node_eframe_save() argument
160 if (cnode == CNODEID_NONE) in nmi_node_eframe_save()
163 nasid = COMPACT_TO_NASID_NODEID(cnode); in nmi_node_eframe_save()
180 cnodeid_t cnode; in nmi_eframes_save() local
182 for_each_online_node(cnode) in nmi_eframes_save()
183 nmi_node_eframe_save(cnode); in nmi_eframes_save()
Dip27-smp.c57 static int do_cpumask(cnodeid_t cnode, nasid_t nasid, int highest) in do_cpumask() argument
73 cpuid_to_compact_node[cpuid] = cnode; in do_cpumask()
210 cnodeid_t cnode; in ip27_smp_setup() local
212 for_each_online_node(cnode) { in ip27_smp_setup()
213 if (cnode == 0) in ip27_smp_setup()
215 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.c197 void __cpuinit hub_rtc_init(cnodeid_t cnode) in hub_rtc_init() argument
205 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.c283 int cnode; in sn_common_bus_fixup() local
330 cnode = nasid_to_cnodeid(nasid); in sn_common_bus_fixup()
331 hubdev_info = (struct hubdev_info *)(NODEPDA(cnode)->pdinfo); in sn_common_bus_fixup()
405 cnodeid_get_geoid(cnodeid_t cnode) in cnodeid_get_geoid() argument
409 hubdev = (struct hubdev_info *)(NODEPDA(cnode)->pdinfo); in cnodeid_get_geoid()
416 cnodeid_t cnode; in sn_generate_path() local
422 cnode = nasid_to_cnodeid(nasid); in sn_generate_path()
423 geoid = cnodeid_get_geoid(cnode); in sn_generate_path()
523 cnodeid_t cnode; in sn_io_late_init() local
539 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.c26 phandle cnode; in __prom_getchild() local
29 cnode = prom_nodeops->no_child(node); in __prom_getchild()
33 return cnode; in __prom_getchild()
41 phandle cnode; in prom_getchild() local
46 cnode = __prom_getchild(node); in prom_getchild()
47 if (cnode == 0 || (s32)cnode == -1) in prom_getchild()
50 return cnode; in prom_getchild()
58 phandle cnode; in __prom_getsibling() local
61 cnode = prom_nodeops->no_nextnode(node); in __prom_getsibling()
65 return cnode; in __prom_getsibling()
Dtree_64.c44 phandle cnode; in prom_getchild() local
48 cnode = __prom_getchild(node); in prom_getchild()
49 if ((s32)cnode == -1) in prom_getchild()
51 return cnode; in prom_getchild()
57 phandle cnode; in prom_getparent() local
61 cnode = prom_node_to_node("parent", node); in prom_getparent()
62 if ((s32)cnode == -1) in prom_getparent()
64 return cnode; in prom_getparent()
/arch/mips/include/asm/sn/
Dhub.h12 extern unsigned long hub_pio_map(cnodeid_t cnode, xwidgetnum_t widget,
14 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/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/sn/kernel/sn2/
Dsn2_smp.c167 int i, ibegin, shub1, cnode, mynasid, cpu, lcpu = 0, nasid; in sn2_global_tlb_purge() local
185 cnode = cpu_to_node(cpu); in sn2_global_tlb_purge()
186 node_set(cnode, nodes_flushed); in sn2_global_tlb_purge()
222 for_each_node_mask(cnode, nodes_flushed) in sn2_global_tlb_purge()
223 nasids[nix++] = cnodeid_to_nasid(cnode); in sn2_global_tlb_purge()
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/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.h266 int cnode; member