/Linux-v5.10/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-v5.10/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 34 offset = NODE_OFFSET(nasid); in bridge_platform_create() 68 bd->bridge_addr = RAW_NODE_SWIN_BASE(nasid, widget); in bridge_platform_create() 70 bd->nasid = nasid; in bridge_platform_create() 87 pr_info("xtalk:n%d/%x bridge widget\n", nasid, widget); in bridge_platform_create() 91 pr_warn("xtalk:n%d/%x bridge create out of memory\n", nasid, widget); in bridge_platform_create() 94 static int probe_one_port(nasid_t nasid, int widget, int masterwid) in probe_one_port() argument 100 (RAW_NODE_SWIN_BASE(nasid, widget) + WIDGET_ID); in probe_one_port() 106 bridge_platform_create(nasid, widget, masterwid); in probe_one_port() 110 nasid, widget, partnum); in probe_one_port() [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 | 71 nasid_t nasid; in setup_hub_mask() local 78 nasid = cpu_to_node(cpu); in setup_hub_mask() 81 hd->irq_mask[0] = REMOTE_HUB_PTR(nasid, PI_INT_MASK0_A); in setup_hub_mask() 82 hd->irq_mask[1] = REMOTE_HUB_PTR(nasid, PI_INT_MASK1_A); in setup_hub_mask() 84 hd->irq_mask[0] = REMOTE_HUB_PTR(nasid, PI_INT_MASK0_B); in setup_hub_mask() 85 hd->irq_mask[1] = REMOTE_HUB_PTR(nasid, PI_INT_MASK1_B); in setup_hub_mask() 142 hub = hub_data(info->nasid); in hub_domain_alloc() 144 info->nasid = cpu_to_node(hd->cpu); in hub_domain_alloc() 147 REMOTE_HUB_CLR_INTR(info->nasid, swlevel); in hub_domain_alloc() 150 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-v5.10/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-v5.10/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() 413 int nasid; in xpc_discovery() local 462 for (nasid = (region * region_size * 2); in xpc_discovery() 463 nasid < ((region + 1) * region_size * 2); nasid += 2) { in xpc_discovery() 468 dev_dbg(xpc_part, "checking nasid %d\n", nasid); in xpc_discovery() 470 if (test_bit(nasid / 2, xpc_part_nasids)) { in xpc_discovery() 473 "region\n", nasid); in xpc_discovery() [all …]
|
/Linux-v5.10/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 | 299 nasid_t nasid; member 314 data->nasid = cpu_to_node(cpu); in bridge_set_affinity() 317 bit | (data->nasid << 8))); in bridge_set_affinity() 350 data->nasid = info->nasid; in bridge_domain_alloc() 383 bit | (data->nasid << 8))); in bridge_domain_activate() 454 info.nasid = bc->nasid; in bridge_map_irq() 457 irq = irq_domain_alloc_irqs(bc->domain, 1, bc->nasid, &info); in bridge_map_irq() 660 bc->nasid = bd->nasid; in bridge_probe()
|
/Linux-v5.10/arch/x86/kernel/apic/ |
D | x2apic_uv_x.c | 631 grt->nasid = gre->nasid; in build_uv_gr_table() 649 grt->nasid = gre->nasid; in build_uv_gr_table() 657 grt->nasid = gre->nasid; in build_uv_gr_table() 684 pr_info("UV: GAM Range %2d %04x 0x%013lx-0x%013lx (%d)\n", i, grt->nasid, start, end, gb); in build_uv_gr_table() 997 int nasid, min_nasid, max_nasid, lnasid, mapped; in calc_mmioh_map() local 1056 nasid = redirect & nasid_mask; in calc_mmioh_map() 1059 id, redirect, m_redirect, nasid); in calc_mmioh_map() 1062 if (nasid < min_nasid || max_nasid < nasid) { in calc_mmioh_map() 1065 nasid = -1; in calc_mmioh_map() 1068 if (nasid == lnasid) { in calc_mmioh_map() [all …]
|
/Linux-v5.10/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-v5.10/include/linux/platform_data/ |
D | xtalk-bridge.h | 18 nasid_t nasid; member
|
/Linux-v5.10/arch/x86/include/asm/uv/ |
D | uv_mmrs.h | 3270 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 4208 unsigned long nasid:15; /* RW */ member 4214 unsigned long nasid:15; /* RW */ member 4219 unsigned long nasid:12; /* RW */ member 4225 unsigned long nasid:15; /* RW */ member [all …]
|
D | uv_hub.h | 136 u16 nasid; /* node's global physical address */ member 421 return uv_gam_range(paddr)->nasid; in uv_soc_phys_ram_to_nasid() 491 return uv_gam_range(gpa)->nasid >> 1; in uv_gpa_to_gnode()
|
/Linux-v5.10/drivers/misc/sgi-gru/ |
D | grukservices.h | 62 void *p, unsigned int bytes, int nasid, int vector, int apicid);
|