Home
last modified time | relevance | path

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

12

/linux-6.6.21/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-6.6.21/arch/mips/sgi-ip27/
Dip27-hubio.c30 unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget, in hub_pio_map() argument
37 return NODE_SWIN_BASE(nasid, widget) + (xtalk_addr % SWIN_SIZE); in hub_pio_map()
42 nasid, widget, xtalk_addr, size); in hub_pio_map()
48 if (test_and_set_bit(i, hub_data(nasid)->h_bigwin_used)) in hub_pio_map()
66 IIO_ITTE_PUT(nasid, i, HUB_PIO_MAP_TO_MEM, widget, xtalk_addr); in hub_pio_map()
67 __raw_readq(IIO_ITTE_GET(nasid, i)); in hub_pio_map()
69 return NODE_BWIN_BASE(nasid, widget) + (xtalk_addr % BWIN_SIZE); in hub_pio_map()
74 nasid, widget, xtalk_addr); in hub_pio_map()
85 static void hub_setup_prb(nasid_t nasid, int prbnum, int credits) in hub_setup_prb() argument
94 prb.iprb_regval = REMOTE_HUB_L(nasid, prb_offset); 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
35 offset = NODE_OFFSET(nasid); in bridge_platform_create()
39 pr_warn("xtalk:n%d/%x bridge create out of memory\n", nasid, widget); in bridge_platform_create()
54 pr_warn("xtalk:n%d/%x bridge create out of memory\n", nasid, widget); in bridge_platform_create()
58 pr_warn("xtalk:n%d/%x bridge failed to add platform resources.\n", nasid, widget); in bridge_platform_create()
62 pr_warn("xtalk:n%d/%x bridge failed to add platform data.\n", nasid, widget); in bridge_platform_create()
66 pr_warn("xtalk:n%d/%x bridge failed to add platform device.\n", nasid, widget); in bridge_platform_create()
74 pr_warn("xtalk:n%d/%x bridge create out of memory\n", nasid, widget); in bridge_platform_create()
79 pr_warn("xtalk:n%d/%x bridge create out of memory\n", nasid, widget); in bridge_platform_create()
84 bd->bridge_addr = RAW_NODE_SWIN_BASE(nasid, widget); in bridge_platform_create()
[all …]
Dip27-smp.c29 static int node_scan_cpus(nasid_t nasid, int highest) in node_scan_cpus() argument
36 brd = find_lboard((lboard_t *)KL_CONFIG_INFO(nasid), KLTYPE_IP27); in node_scan_cpus()
48 cputonasid(cpus_found) = nasid; in node_scan_cpus()
74 nasid_t nasid = gdap->g_nasidtable[i]; in cpu_node_probe() local
75 if (nasid == INVALID_NASID) in cpu_node_probe()
77 node_set_online(nasid); in cpu_node_probe()
78 highest = node_scan_cpus(nasid, highest); in cpu_node_probe()
84 static __init void intr_clear_all(nasid_t nasid) in intr_clear_all() argument
88 REMOTE_HUB_S(nasid, PI_INT_MASK0_A, 0); in intr_clear_all()
89 REMOTE_HUB_S(nasid, PI_INT_MASK0_B, 0); in intr_clear_all()
[all …]
Dip27-nmi.c56 void nmi_cpu_eframe_save(nasid_t nasid, int slice) in nmi_cpu_eframe_save() argument
63 (TO_UNCAC(TO_NODE(nasid, IP27_NMI_KREGS_OFFSET)) + in nmi_cpu_eframe_save()
66 pr_emerg("NMI nasid %d: slice %d\n", nasid, slice); in nmi_cpu_eframe_save()
132 void nmi_dump_hub_irq(nasid_t nasid, int slice) in nmi_dump_hub_irq() argument
137 mask0 = REMOTE_HUB_L(nasid, PI_INT_MASK0_A); in nmi_dump_hub_irq()
138 mask1 = REMOTE_HUB_L(nasid, PI_INT_MASK1_A); in nmi_dump_hub_irq()
140 mask0 = REMOTE_HUB_L(nasid, PI_INT_MASK0_B); in nmi_dump_hub_irq()
141 mask1 = REMOTE_HUB_L(nasid, PI_INT_MASK1_B); in nmi_dump_hub_irq()
144 pend0 = REMOTE_HUB_L(nasid, PI_INT_PEND0); in nmi_dump_hub_irq()
145 pend1 = REMOTE_HUB_L(nasid, PI_INT_PEND1); in nmi_dump_hub_irq()
[all …]
Dip27-init.c45 static void per_hub_init(nasid_t nasid) in per_hub_init() argument
47 struct hub_data *hub = hub_data(nasid); in per_hub_init()
51 if (test_and_set_bit(nasid, hub_init_mask)) in per_hub_init()
56 REMOTE_HUB_S(nasid, IIO_ICTP, 0x800); in per_hub_init()
57 REMOTE_HUB_S(nasid, IIO_ICTO, 0xff); in per_hub_init()
59 hub_rtc_init(nasid); in per_hub_init()
61 if (nasid) { in per_hub_init()
63 memcpy((void *)NODE_OFFSET_TO_K0(nasid, 0), in per_hub_init()
67 REMOTE_HUB_S(nasid, PI_CALIAS_SIZE, PI_CALIAS_SIZE_8K); in per_hub_init()
74 nasid_t nasid = get_nasid(); in per_cpu_init() local
[all …]
Dip27-klnuma.c41 nasid_t nasid; in setup_replication_mask() local
43 for_each_online_node(nasid) { in setup_replication_mask()
44 if (nasid == 0) in setup_replication_mask()
47 node_set(nasid, ktext_repmask); in setup_replication_mask()
116 unsigned long node_getfirstfree(nasid_t nasid) in node_getfirstfree() argument
125 if ((nasid == 0) || (node_isset(nasid, ktext_repmask))) in node_getfirstfree()
126 return TO_NODE(nasid, offset) >> PAGE_SHIFT; in node_getfirstfree()
128 return KDM_TO_PHYS(PAGE_ALIGN(SYMMON_STK_ADDR(nasid, 0))) >> PAGE_SHIFT; in node_getfirstfree()
Dip27-memory.c44 nasid_t nasid; in gen_region_mask() local
48 for_each_online_node(nasid) in gen_region_mask()
49 region_mask |= BIT_ULL(nasid >> region_shift); in gen_region_mask()
101 nasid_t nasid; in compute_node_distance() local
105 for_each_online_node(nasid) { in compute_node_distance()
106 brd = find_lboard_class((lboard_t *)KL_CONFIG_INFO(nasid), in compute_node_distance()
177 nasid_t nasid; in dump_topology() local
197 for_each_online_node(nasid) { in dump_topology()
198 brd = find_lboard_class((lboard_t *)KL_CONFIG_INFO(nasid), in dump_topology()
231 static unsigned long __init slot_getbasepfn(nasid_t nasid, int slot) in slot_getbasepfn() argument
[all …]
Dip27-irq.c72 nasid_t nasid; in setup_hub_mask() local
79 nasid = cpu_to_node(cpu); in setup_hub_mask()
82 hd->irq_mask[0] = REMOTE_HUB_PTR(nasid, PI_INT_MASK0_A); in setup_hub_mask()
83 hd->irq_mask[1] = REMOTE_HUB_PTR(nasid, PI_INT_MASK1_A); in setup_hub_mask()
85 hd->irq_mask[0] = REMOTE_HUB_PTR(nasid, PI_INT_MASK0_B); in setup_hub_mask()
86 hd->irq_mask[1] = REMOTE_HUB_PTR(nasid, PI_INT_MASK1_B); in setup_hub_mask()
143 hub = hub_data(info->nasid); in hub_domain_alloc()
145 info->nasid = cpu_to_node(hd->cpu); in hub_domain_alloc()
148 REMOTE_HUB_CLR_INTR(info->nasid, swlevel); in hub_domain_alloc()
151 desc->irq_common_data.node = info->nasid; in hub_domain_alloc()
Dip27-console.c27 nasid_t nasid; in console_uart() local
29 nasid = (master_nasid == INVALID_NASID) ? get_nasid() : master_nasid; in console_uart()
30 ioc3 = (struct ioc3 *)KL_CONFIG_CH_CONS_INFO(nasid)->memory_base; in console_uart()
Dip27-common.h10 extern void hub_rtc_init(nasid_t nasid);
15 extern unsigned long node_getfirstfree(nasid_t nasid);
Dip27-timer.c143 void hub_rtc_init(nasid_t nasid) in hub_rtc_init() argument
151 if (get_nasid() == nasid) { in hub_rtc_init()
/linux-6.6.21/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 …]
/linux-6.6.21/drivers/misc/sgi-xp/
Dxpc_partition.c67 xpc_get_rsvd_page_pa(int nasid) in xpc_get_rsvd_page_pa() argument
71 unsigned long rp_pa = nasid; /* seed with nasid */ in xpc_get_rsvd_page_pa()
212 xpc_get_remote_rp(int nasid, unsigned long *discovered_nasids, in xpc_get_remote_rp() argument
220 *remote_rp_pa = xpc_get_rsvd_page_pa(nasid); in xpc_get_remote_rp()
423 int nasid; in xpc_discovery() local
472 for (nasid = (region * region_size * 2); in xpc_discovery()
473 nasid < ((region + 1) * region_size * 2); nasid += 2) { in xpc_discovery()
478 dev_dbg(xpc_part, "checking nasid %d\n", nasid); in xpc_discovery()
480 if (test_bit(nasid / 2, xpc_part_nasids)) { in xpc_discovery()
483 "region\n", nasid); in xpc_discovery()
[all …]
/linux-6.6.21/arch/x86/platform/uv/
Dbios_uv.c182 extern s64 uv_bios_get_heapsize(u64 nasid, u64 size, u64 *heap_size) in uv_bios_get_heapsize() argument
184 return uv_bios_call(UV_BIOS_EXTRA, nasid, UV_BIOS_EXTRA_GET_HEAPSIZE, in uv_bios_get_heapsize()
189 extern s64 uv_bios_install_heap(u64 nasid, u64 heap_size, u64 *bios_heap) in uv_bios_install_heap() argument
191 return uv_bios_call(UV_BIOS_EXTRA, nasid, UV_BIOS_EXTRA_INSTALL_HEAP, in uv_bios_install_heap()
196 extern s64 uv_bios_obj_count(u64 nasid, u64 size, u64 *objcnt) in uv_bios_obj_count() argument
198 return uv_bios_call(UV_BIOS_EXTRA, nasid, UV_BIOS_EXTRA_OBJECT_COUNT, in uv_bios_obj_count()
203 extern s64 uv_bios_enum_objs(u64 nasid, u64 size, u64 *objbuf) in uv_bios_enum_objs() argument
205 return uv_bios_call(UV_BIOS_EXTRA, nasid, UV_BIOS_EXTRA_ENUM_OBJECTS, in uv_bios_enum_objs()
210 extern s64 uv_bios_enum_ports(u64 nasid, u64 obj_id, u64 size, u64 *portbuf) in uv_bios_enum_ports() argument
212 return uv_bios_call(UV_BIOS_EXTRA, nasid, UV_BIOS_EXTRA_ENUM_PORTS, in uv_bios_enum_ports()
[all …]
/linux-6.6.21/arch/x86/include/asm/uv/
Dbios.h83 u16 nasid; /* HNasid */ member
187 extern s64 uv_bios_get_master_nasid(u64 sz, u64 *nasid);
188 extern s64 uv_bios_get_heapsize(u64 nasid, u64 sz, u64 *heap_sz);
189 extern s64 uv_bios_install_heap(u64 nasid, u64 sz, u64 *heap);
190 extern s64 uv_bios_obj_count(u64 nasid, u64 sz, u64 *objcnt);
191 extern s64 uv_bios_enum_objs(u64 nasid, u64 sz, u64 *objbuf);
192 extern s64 uv_bios_enum_ports(u64 nasid, u64 obj_id, u64 sz, u64 *portbuf);
193 extern s64 uv_bios_get_geoinfo(u64 nasid, u64 sz, u64 *geo);
/linux-6.6.21/arch/mips/pci/
Dpci-ip27.c22 return bc->nasid; in pcibus_to_node()
29 int nasid = pcibus_to_node(dev->bus); in ip29_fixup_phy() local
32 if (nasid != 1) in ip29_fixup_phy()
38 REMOTE_HUB_S(nasid, MD_LED0, 0x09); in ip29_fixup_phy()
Dpci-xtalk-bridge.c300 nasid_t nasid; member
315 data->nasid = cpu_to_node(cpu); in bridge_set_affinity()
318 bit | (data->nasid << 8))); in bridge_set_affinity()
351 data->nasid = info->nasid; in bridge_domain_alloc()
384 bit | (data->nasid << 8))); in bridge_domain_activate()
455 info.nasid = bc->nasid; in bridge_map_irq()
458 irq = irq_domain_alloc_irqs(bc->domain, 1, bc->nasid, &info); in bridge_map_irq()
661 bc->nasid = bd->nasid; in bridge_probe()
/linux-6.6.21/arch/x86/kernel/apic/
Dx2apic_uv_x.c647 grt->nasid = gre->nasid; in build_uv_gr_table()
665 grt->nasid = gre->nasid; in build_uv_gr_table()
673 grt->nasid = gre->nasid; in build_uv_gr_table()
700 pr_info("UV: GAM Range %2d %04x 0x%013lx-0x%013lx (%d)\n", i, grt->nasid, start, end, gb); in build_uv_gr_table()
972 int nasid, min_nasid, max_nasid, lnasid, mapped; in calc_mmioh_map() local
1031 nasid = redirect & nasid_mask; in calc_mmioh_map()
1034 id, redirect, m_redirect, nasid); in calc_mmioh_map()
1037 if (nasid < min_nasid || max_nasid < nasid) { in calc_mmioh_map()
1040 __func__, index, nasid, min_nasid, max_nasid); in calc_mmioh_map()
1041 nasid = -1; in calc_mmioh_map()
[all …]
/linux-6.6.21/arch/mips/include/asm/mach-ip27/
Dkernel-entry-init.h37 dsll t1, NASID_SHFT # Shift text nasid into place
38 dsll t2, NASID_SHFT # Same for data nasid
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-firmware-sgi_uv64 nasid
85 The nasid entry contains the nasid number of the corresponding hub.
86 If a nasid value is not applicable, the value returned will be -1.
/linux-6.6.21/include/linux/platform_data/
Dxtalk-bridge.h18 nasid_t nasid; member

12