Home
last modified time | relevance | path

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

12

/linux-6.12.1/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.12.1/arch/mips/sgi-ip27/
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()
75 nasid_t nasid = gdap->g_nasidtable[i]; in cpu_node_probe() local
76 if (nasid == INVALID_NASID) in cpu_node_probe()
78 node_set_online(nasid); in cpu_node_probe()
79 node_set(nasid, node_possible_map); in cpu_node_probe()
80 highest = node_scan_cpus(nasid, highest); in cpu_node_probe()
86 static __init void intr_clear_all(nasid_t nasid) in intr_clear_all() argument
90 REMOTE_HUB_S(nasid, PI_INT_MASK0_A, 0); in intr_clear_all()
[all …]
Dip27-nmi.c49 static void nmi_cpu_eframe_save(nasid_t nasid, int slice) in nmi_cpu_eframe_save() argument
56 (TO_UNCAC(TO_NODE(nasid, IP27_NMI_KREGS_OFFSET)) + in nmi_cpu_eframe_save()
59 pr_emerg("NMI nasid %d: slice %d\n", nasid, slice); in nmi_cpu_eframe_save()
125 static void nmi_dump_hub_irq(nasid_t nasid, int slice) in nmi_dump_hub_irq() argument
130 mask0 = REMOTE_HUB_L(nasid, PI_INT_MASK0_A); in nmi_dump_hub_irq()
131 mask1 = REMOTE_HUB_L(nasid, PI_INT_MASK1_A); in nmi_dump_hub_irq()
133 mask0 = REMOTE_HUB_L(nasid, PI_INT_MASK0_B); in nmi_dump_hub_irq()
134 mask1 = REMOTE_HUB_L(nasid, PI_INT_MASK1_B); in nmi_dump_hub_irq()
137 pend0 = REMOTE_HUB_L(nasid, PI_INT_PEND0); in nmi_dump_hub_irq()
138 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-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-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-irq.c74 nasid_t nasid; in setup_hub_mask() local
81 nasid = cpu_to_node(cpu); in setup_hub_mask()
84 hd->irq_mask[0] = REMOTE_HUB_PTR(nasid, PI_INT_MASK0_A); in setup_hub_mask()
85 hd->irq_mask[1] = REMOTE_HUB_PTR(nasid, PI_INT_MASK1_A); in setup_hub_mask()
87 hd->irq_mask[0] = REMOTE_HUB_PTR(nasid, PI_INT_MASK0_B); in setup_hub_mask()
88 hd->irq_mask[1] = REMOTE_HUB_PTR(nasid, PI_INT_MASK1_B); in setup_hub_mask()
145 hub = hub_data(info->nasid); in hub_domain_alloc()
147 info->nasid = cpu_to_node(hd->cpu); in hub_domain_alloc()
150 REMOTE_HUB_CLR_INTR(info->nasid, swlevel); in hub_domain_alloc()
153 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);
16 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.12.1/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.12.1/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.12.1/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.12.1/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);
Duv_mmrs.h3270 unsigned long nasid:7; /* RW */ member
3276 unsigned long nasid:7; /* RW */ member
3282 unsigned long nasid:7; /* RW */ member
3309 unsigned long nasid:7; /* RW */ member
3315 unsigned long nasid:7; /* RW */ member
3321 unsigned long nasid:7; /* RW */ member
4215 unsigned long nasid:15; /* RW */ member
4221 unsigned long nasid:15; /* RW */ member
4226 unsigned long nasid:12; /* RW */ member
4232 unsigned long nasid:15; /* RW */ member
[all …]
/linux-6.12.1/arch/mips/pci/
Dpci-ip27.c25 return bc->nasid; in pcibus_to_node()
32 int nasid = pcibus_to_node(dev->bus); in ip29_fixup_phy() local
35 if (nasid != 1) in ip29_fixup_phy()
41 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.12.1/arch/x86/kernel/apic/
Dx2apic_uv_x.c613 grt->nasid = gre->nasid; in build_uv_gr_table()
631 grt->nasid = gre->nasid; in build_uv_gr_table()
639 grt->nasid = gre->nasid; in build_uv_gr_table()
666 pr_info("UV: GAM Range %2d %04x 0x%013lx-0x%013lx (%d)\n", i, grt->nasid, start, end, gb); in build_uv_gr_table()
920 int nasid, min_nasid, max_nasid, lnasid, mapped; in calc_mmioh_map() local
979 nasid = redirect & nasid_mask; in calc_mmioh_map()
982 id, redirect, m_redirect, nasid); in calc_mmioh_map()
985 if (nasid < min_nasid || max_nasid < nasid) { in calc_mmioh_map()
988 __func__, index, nasid, min_nasid, max_nasid); in calc_mmioh_map()
989 nasid = -1; in calc_mmioh_map()
[all …]
/linux-6.12.1/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.12.1/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.12.1/include/linux/platform_data/
Dxtalk-bridge.h18 nasid_t nasid; member

12