/linux-6.1.9/arch/mips/include/asm/sn/ |
D | addrs.h | 73 #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 …]
|
D | io.h | 36 #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
|
D | launch.h | 85 #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)) \
|
D | irq_alloc.h | 7 nasid_t nasid; member
|
/linux-6.1.9/arch/mips/sgi-ip27/ |
D | ip27-hubio.c | 30 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 …]
|
D | ip27-xtalk.c | 26 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 …]
|
D | ip27-smp.c | 29 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 …]
|
D | ip27-nmi.c | 56 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 …]
|
D | ip27-init.c | 45 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 …]
|
D | ip27-klnuma.c | 41 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()
|
D | ip27-memory.c | 44 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 …]
|
D | ip27-irq.c | 72 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()
|
D | ip27-console.c | 27 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()
|
D | ip27-common.h | 10 extern void hub_rtc_init(nasid_t nasid); 15 extern unsigned long node_getfirstfree(nasid_t nasid);
|
D | ip27-timer.c | 143 void hub_rtc_init(nasid_t nasid) in hub_rtc_init() argument 151 if (get_nasid() == nasid) { in hub_rtc_init()
|
/linux-6.1.9/arch/mips/include/asm/sn/sn0/ |
D | addrs.h | 89 #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.1.9/drivers/misc/sgi-xp/ |
D | xpc_partition.c | 67 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.1.9/arch/x86/platform/uv/ |
D | bios_uv.c | 182 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.1.9/arch/x86/include/asm/uv/ |
D | bios.h | 82 u16 nasid; /* HNasid */ member 185 extern s64 uv_bios_get_master_nasid(u64 sz, u64 *nasid); 186 extern s64 uv_bios_get_heapsize(u64 nasid, u64 sz, u64 *heap_sz); 187 extern s64 uv_bios_install_heap(u64 nasid, u64 sz, u64 *heap); 188 extern s64 uv_bios_obj_count(u64 nasid, u64 sz, u64 *objcnt); 189 extern s64 uv_bios_enum_objs(u64 nasid, u64 sz, u64 *objbuf); 190 extern s64 uv_bios_enum_ports(u64 nasid, u64 obj_id, u64 sz, u64 *portbuf); 191 extern s64 uv_bios_get_geoinfo(u64 nasid, u64 sz, u64 *geo);
|
/linux-6.1.9/arch/mips/pci/ |
D | pci-ip27.c | 22 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()
|
D | pci-xtalk-bridge.c | 300 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.1.9/arch/x86/kernel/apic/ |
D | x2apic_uv_x.c | 645 grt->nasid = gre->nasid; in build_uv_gr_table() 663 grt->nasid = gre->nasid; in build_uv_gr_table() 671 grt->nasid = gre->nasid; in build_uv_gr_table() 698 pr_info("UV: GAM Range %2d %04x 0x%013lx-0x%013lx (%d)\n", i, grt->nasid, start, end, gb); in build_uv_gr_table() 1009 int nasid, min_nasid, max_nasid, lnasid, mapped; in calc_mmioh_map() local 1068 nasid = redirect & nasid_mask; in calc_mmioh_map() 1071 id, redirect, m_redirect, nasid); in calc_mmioh_map() 1074 if (nasid < min_nasid || max_nasid < nasid) { in calc_mmioh_map() 1077 nasid = -1; in calc_mmioh_map() 1080 if (nasid == lnasid) { in calc_mmioh_map() [all …]
|
/linux-6.1.9/arch/mips/include/asm/mach-ip27/ |
D | kernel-entry-init.h | 37 dsll t1, NASID_SHFT # Shift text nasid into place 38 dsll t2, NASID_SHFT # Same for data nasid
|
/linux-6.1.9/include/linux/platform_data/ |
D | xtalk-bridge.h | 18 nasid_t nasid; member
|
/linux-6.1.9/Documentation/ABI/testing/ |
D | sysfs-firmware-sgi_uv | 64 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.
|