/arch/mips/sgi-ip27/ |
D | ip27-klnuma.c | 40 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 …]
|
D | ip27-init.c | 57 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()
|
D | ip27-hubio.c | 28 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()
|
D | ip27-memory.c | 49 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 …]
|
D | ip27-nmi.c | 154 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()
|
D | ip27-smp.c | 57 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()
|
D | ip27-klconfig.c | 106 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()
|
D | ip27-timer.c | 197 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/ |
D | setup.c | 217 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 …]
|
D | io_common.c | 283 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 …]
|
D | bte_error.c | 240 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()
|
D | bte.c | 424 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/ |
D | tree_32.c | 26 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()
|
D | tree_64.c | 44 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/ |
D | hub.h | 12 extern unsigned long hub_pio_map(cnodeid_t cnode, xwidgetnum_t widget, 14 extern void hub_pio_init(cnodeid_t cnode);
|
D | arch.h | 61 #define COMPACT_TO_NASID_NODEID(cnode) (compact_to_nasid_node[cnode]) argument
|
/arch/ia64/sn/pci/pcibr/ |
D | pcibr_provider.c | 116 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/ |
D | sn2_smp.c | 167 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()
|
D | sn_hwperf.c | 108 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/ |
D | sn_cpuid.h | 97 #define get_cnode() (sn_nodepda->phys_cpuid[smp_processor_id()].cnode)
|
D | geo.h | 130 extern geoid_t cnodeid_get_geoid(cnodeid_t cnode);
|
/arch/sparc/include/asm/ |
D | openprom.h | 266 int cnode; member
|