Home
last modified time | relevance | path

Searched refs:nasid (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v5.4/arch/mips/include/asm/sn/
Daddrs.h73 #define RAW_NODE_SWIN_BASE(nasid, widget) \ argument
74 (NODE_IO_BASE(nasid) + (UINT64_CAST(widget) << SWIN_SIZE_BITS))
106 #define NODE_SWIN_ADDR(nasid, addr) \ argument
107 (((addr) >= NODE_SWIN_BASE(nasid, 0)) && \
108 ((addr) < (NODE_SWIN_BASE(nasid, HUB_NUM_WIDGET) + SWIN_SIZE)\
279 #define EX_HANDLER_ADDR(nasid, slice) \ argument
280 PHYS_TO_K0(NODE_OFFSET(nasid) | EX_HANDLER_OFFSET(slice))
284 #define EX_FRAME_ADDR(nasid, slice) \ argument
285 PHYS_TO_K0(NODE_OFFSET(nasid) | EX_FRAME_OFFSET(slice))
289 #define ARCS_SPB_ADDR(nasid) \ argument
[all …]
Dio.h36 #define IIO_ITTE_PUT(nasid, bigwin, io_or_mem, widget, addr) \ argument
37 REMOTE_HUB_S((nasid), IIO_ITTE(bigwin), \
43 #define IIO_ITTE_DISABLE(nasid, bigwin) \ argument
44 IIO_ITTE_PUT((nasid), HUB_PIO_MAP_TO_MEM, \
47 #define IIO_ITTE_GET(nasid, bigwin) REMOTE_HUB_PTR((nasid), IIO_ITTE(bigwin)) argument
Dlaunch.h85 #define LAUNCH_SLAVE (*(void (*)(int nasid, int cpu, \
92 #define LAUNCH_WAIT (*(void (*)(int nasid, int cpu, int timeout_msec)) \
95 #define LAUNCH_POLL (*(launch_state_t (*)(int nasid, int cpu)) \
Dirq_alloc.h7 nasid_t nasid; member
/Linux-v5.4/arch/mips/sgi-ip27/
Dip27-hubio.c31 nasid_t nasid = COMPACT_TO_NASID_NODEID(cnode); in hub_pio_map() local
36 return NODE_SWIN_BASE(nasid, widget) + (xtalk_addr % SWIN_SIZE); in hub_pio_map()
41 nasid, widget, xtalk_addr, size); in hub_pio_map()
65 IIO_ITTE_PUT(nasid, i, HUB_PIO_MAP_TO_MEM, widget, xtalk_addr); in hub_pio_map()
66 __raw_readq(IIO_ITTE_GET(nasid, i)); in hub_pio_map()
68 return NODE_BWIN_BASE(nasid, widget) + (xtalk_addr % BWIN_SIZE); in hub_pio_map()
73 nasid, widget, xtalk_addr); in hub_pio_map()
84 static void hub_setup_prb(nasid_t nasid, int prbnum, int credits) in hub_setup_prb() argument
93 prb.iprb_regval = REMOTE_HUB_L(nasid, prb_offset); in hub_setup_prb()
115 REMOTE_HUB_S(nasid, prb_offset, prb.iprb_regval); in hub_setup_prb()
[all …]
Dip27-xtalk.c26 static void bridge_platform_create(nasid_t nasid, int widget, int masterwid) in bridge_platform_create() argument
41 offset = NODE_OFFSET(nasid); in bridge_platform_create()
43 bd->bridge_addr = RAW_NODE_SWIN_BASE(nasid, widget); in bridge_platform_create()
45 bd->nasid = nasid; in bridge_platform_create()
62 pr_info("xtalk:n%d/%x bridge widget\n", nasid, widget); in bridge_platform_create()
66 pr_warn("xtalk:n%d/%x bridge create out of memory\n", nasid, widget); in bridge_platform_create()
69 static int probe_one_port(nasid_t nasid, int widget, int masterwid) in probe_one_port() argument
75 (RAW_NODE_SWIN_BASE(nasid, widget) + WIDGET_ID); in probe_one_port()
81 bridge_platform_create(nasid, widget, masterwid); in probe_one_port()
90 static int xbow_probe(nasid_t nasid) in xbow_probe() argument
[all …]
Dip27-nmi.c55 void nmi_cpu_eframe_save(nasid_t nasid, int slice) in nmi_cpu_eframe_save() argument
62 (TO_UNCAC(TO_NODE(nasid, IP27_NMI_KREGS_OFFSET)) + in nmi_cpu_eframe_save()
65 pr_emerg("NMI nasid %d: slice %d\n", nasid, slice); in nmi_cpu_eframe_save()
131 void nmi_dump_hub_irq(nasid_t nasid, int slice) in nmi_dump_hub_irq() argument
136 mask0 = REMOTE_HUB_L(nasid, PI_INT_MASK0_A); in nmi_dump_hub_irq()
137 mask1 = REMOTE_HUB_L(nasid, PI_INT_MASK1_A); in nmi_dump_hub_irq()
139 mask0 = REMOTE_HUB_L(nasid, PI_INT_MASK0_B); in nmi_dump_hub_irq()
140 mask1 = REMOTE_HUB_L(nasid, PI_INT_MASK1_B); in nmi_dump_hub_irq()
143 pend0 = REMOTE_HUB_L(nasid, PI_INT_PEND0); in nmi_dump_hub_irq()
144 pend1 = REMOTE_HUB_L(nasid, PI_INT_PEND1); in nmi_dump_hub_irq()
[all …]
Dip27-smp.c37 nasid_t nasid = COMPACT_TO_NASID_NODEID(node); in alloc_cpupda() local
39 cputonasid(cpunum) = nasid; in alloc_cpupda()
61 static int do_cpumask(cnodeid_t cnode, nasid_t nasid, int highest) in do_cpumask() argument
69 brd = find_lboard((lboard_t *)KL_CONFIG_INFO(nasid), KLTYPE_IP27); in do_cpumask()
122 nasid_t nasid = gdap->g_nasidtable[i]; in cpu_node_probe() local
123 if (nasid == INVALID_NASID) in cpu_node_probe()
125 compact_to_nasid_node[i] = nasid; in cpu_node_probe()
126 nasid_to_compact_node[nasid] = i; in cpu_node_probe()
128 highest = do_cpumask(i, nasid, highest); in cpu_node_probe()
134 static __init void intr_clear_all(nasid_t nasid) in intr_clear_all() argument
[all …]
Dip27-memory.c115 nasid_t nasid; in compute_node_distance() local
120 nasid = COMPACT_TO_NASID_NODEID(cnode); in compute_node_distance()
122 if (nasid == -1) continue; in compute_node_distance()
124 brd = find_lboard_class((lboard_t *)KL_CONFIG_INFO(nasid), in compute_node_distance()
179 nasid_t nasid, nasid2; in init_topology_matrix() local
187 nasid = COMPACT_TO_NASID_NODEID(row); in init_topology_matrix()
191 compute_node_distance(nasid, nasid2); in init_topology_matrix()
198 nasid_t nasid; in dump_topology() local
220 nasid = COMPACT_TO_NASID_NODEID(cnode); in dump_topology()
222 if (nasid == -1) continue; in dump_topology()
[all …]
Dip27-init.c58 nasid_t nasid = COMPACT_TO_NASID_NODEID(cnode); in per_hub_init() local
67 REMOTE_HUB_S(nasid, IIO_ICTP, 0x800); in per_hub_init()
68 REMOTE_HUB_S(nasid, IIO_ICTO, 0xff); in per_hub_init()
72 if (nasid) { in per_hub_init()
74 memcpy((void *)NODE_OFFSET_TO_K0(nasid, 0), in per_hub_init()
78 REMOTE_HUB_S(nasid, PI_CALIAS_SIZE, PI_CALIAS_SIZE_8K); in per_hub_init()
Dip27-irq.c72 nasid_t nasid; in setup_hub_mask() local
76 nasid = COMPACT_TO_NASID_NODEID(cpu_to_node(cpu)); in setup_hub_mask()
79 hd->irq_mask[0] = REMOTE_HUB_PTR(nasid, PI_INT_MASK0_A); in setup_hub_mask()
80 hd->irq_mask[1] = REMOTE_HUB_PTR(nasid, PI_INT_MASK1_A); in setup_hub_mask()
82 hd->irq_mask[0] = REMOTE_HUB_PTR(nasid, PI_INT_MASK0_B); in setup_hub_mask()
83 hd->irq_mask[1] = REMOTE_HUB_PTR(nasid, PI_INT_MASK1_B); in setup_hub_mask()
140 hub = hub_data(NASID_TO_COMPACT_NODEID(info->nasid)); in hub_domain_alloc()
144 REMOTE_HUB_CLR_INTR(info->nasid, swlevel); in hub_domain_alloc()
147 desc->irq_common_data.node = info->nasid; in hub_domain_alloc()
Dip27-klconfig.c81 klcpu_t *nasid_slice_to_cpuinfo(nasid_t nasid, int slice) in nasid_slice_to_cpuinfo() argument
86 if (!(brd = find_lboard((lboard_t *)KL_CONFIG_INFO(nasid), KLTYPE_IP27))) in nasid_slice_to_cpuinfo()
102 nasid_t nasid; in sn_get_cpuinfo() local
117 if ((nasid = gdap->g_nasidtable[cnode]) == INVALID_NASID) in sn_get_cpuinfo()
121 acpu = nasid_slice_to_cpuinfo(nasid, slice); in sn_get_cpuinfo()
Dip27-console.c26 nasid_t nasid; in console_uart() local
28 nasid = (master_nasid == INVALID_NASID) ? get_nasid() : master_nasid; in console_uart()
29 ioc3 = (struct ioc3 *)KL_CONFIG_CH_CONS_INFO(nasid)->memory_base; in console_uart()
Dip27-klnuma.c121 nasid_t nasid = COMPACT_TO_NASID_NODEID(cnode); in node_getfirstfree() local
129 return TO_NODE(nasid, offset) >> PAGE_SHIFT; in node_getfirstfree()
131 return KDM_TO_PHYS(PAGE_ALIGN(SYMMON_STK_ADDR(nasid, 0))) >> PAGE_SHIFT; in node_getfirstfree()
/Linux-v5.4/arch/mips/include/asm/sn/sn0/
Daddrs.h89 #define NODE_SWIN_BASE(nasid, widget) \ argument
90 ((widget == 0) ? NODE_BWIN_BASE((nasid), SWIN0_BIGWIN) \
91 : RAW_NODE_SWIN_BASE(nasid, widget))
93 #define NODE_SWIN_BASE(nasid, widget) \ argument
94 (NODE_IO_BASE(nasid) + (UINT64_CAST(widget) << SWIN_SIZE_BITS))
107 #define NODE_BWIN_BASE0(nasid) (NODE_IO_BASE(nasid) + BWIN_SIZE) argument
108 #define NODE_BWIN_BASE(nasid, bigwin) (NODE_BWIN_BASE0(nasid) + \ argument
123 #define NODE_BWIN_ADDR(nasid, addr) \ argument
124 (((addr) >= NODE_BWIN_BASE0(nasid)) && \
125 ((addr) < (NODE_BWIN_BASE(nasid, HUB_NUM_BIG_WINDOW) + \
[all …]
Dhubio.h960 #define IIO_WCR_WID_GET(nasid) (REMOTE_HUB_L(nasid, III_WCR) & 0xf) argument
/Linux-v5.4/drivers/misc/sgi-xp/
Dxpc_partition.c66 xpc_get_rsvd_page_pa(int nasid) in xpc_get_rsvd_page_pa() argument
70 unsigned long rp_pa = nasid; /* seed with nasid */ in xpc_get_rsvd_page_pa()
211 xpc_get_remote_rp(int nasid, unsigned long *discovered_nasids, in xpc_get_remote_rp() argument
219 *remote_rp_pa = xpc_get_rsvd_page_pa(nasid); in xpc_get_remote_rp()
412 int nasid; in xpc_discovery() local
461 for (nasid = (region * region_size * 2); in xpc_discovery()
462 nasid < ((region + 1) * region_size * 2); nasid += 2) { in xpc_discovery()
467 dev_dbg(xpc_part, "checking nasid %d\n", nasid); in xpc_discovery()
469 if (test_bit(nasid / 2, xpc_part_nasids)) { in xpc_discovery()
472 "region\n", nasid); in xpc_discovery()
[all …]
/Linux-v5.4/arch/mips/pci/
Dpci-xtalk-bridge.c272 nasid_t nasid; member
282 nasid_t nasid; in bridge_set_affinity() local
288 nasid = COMPACT_TO_NASID_NODEID(cpu_to_node(cpu)); in bridge_set_affinity()
291 bit | (nasid << 8))); in bridge_set_affinity()
324 data->nasid = info->nasid; in bridge_domain_alloc()
357 bit | (data->nasid << 8))); in bridge_domain_activate()
417 info.nasid = bc->nasid; in bridge_map_irq()
420 irq = irq_domain_alloc_irqs(bc->domain, 1, bc->nasid, &info); in bridge_map_irq()
477 bc->nasid = bd->nasid; in bridge_probe()
Dpci-ip27.c30 return bc->nasid; in pcibus_to_node()
/Linux-v5.4/arch/x86/kernel/apic/
Dx2apic_uv_x.c460 grt->nasid = gre->nasid; in build_uv_gr_table()
478 grt->nasid = gre->nasid; in build_uv_gr_table()
486 grt->nasid = gre->nasid; in build_uv_gr_table()
513 pr_info("UV: GAM Range %2d %04x 0x%013lx-0x%013lx (%d)\n", i, grt->nasid, start, end, gb); in build_uv_gr_table()
833 int nasid, lnasid, fi, li; in map_mmioh_high_uv34() local
874 nasid = redirect & nasid_mask; in map_mmioh_high_uv34()
877 id, redirect, m_redirect, nasid); in map_mmioh_high_uv34()
880 if (nasid < min_pnode || max_pnode < nasid) in map_mmioh_high_uv34()
881 nasid = -1; in map_mmioh_high_uv34()
883 if (nasid == lnasid) { in map_mmioh_high_uv34()
[all …]
/Linux-v5.4/arch/mips/include/asm/mach-ip27/
Dkernel-entry-init.h47 dsll t1, NASID_SHFT # Shift text nasid into place
48 dsll t2, NASID_SHFT # Same for data nasid
/Linux-v5.4/include/linux/platform_data/
Dxtalk-bridge.h18 nasid_t nasid; member
/Linux-v5.4/drivers/misc/sgi-gru/
Dgrukservices.h62 void *p, unsigned int bytes, int nasid, int vector, int apicid);
/Linux-v5.4/arch/x86/include/asm/uv/
Duv_hub.h145 u16 nasid; /* node's global physical address */ member
485 return uv_gam_range(paddr)->nasid; in uv_soc_phys_ram_to_nasid()
555 return uv_gam_range(gpa)->nasid >> 1; in uv_gpa_to_gnode()
Dbios.h67 u16 nasid; /* HNasid */ member

12