/openbmc/linux/arch/mips/loongson64/ |
H A D | env.c | 94 loongson_sysconf.cores_per_node = 2; in prom_lefi_init_env() 99 loongson_sysconf.cores_per_node = 4; in prom_lefi_init_env() 142 loongson_sysconf.cores_per_node = 1; in prom_lefi_init_env() 151 loongson_sysconf.nr_cpus = NR_CPUS; in prom_lefi_init_env() 152 loongson_sysconf.nr_nodes = (loongson_sysconf.nr_cpus + in prom_lefi_init_env() 154 loongson_sysconf.cores_per_node; in prom_lefi_init_env() 159 loongson_sysconf.dma_mask_bits = 32; in prom_lefi_init_env() 173 loongson_sysconf.poweroff_addr, loongson_sysconf.restart_addr, in prom_lefi_init_env() 174 loongson_sysconf.vgabios_addr); in prom_lefi_init_env() 187 loongson_sysconf.bridgetype = LS7A; in prom_lefi_init_env() [all …]
|
H A D | numa.c | 44 for (i = 0; i < loongson_sysconf.nr_nodes; i++) { in cpu_node_probe() 50 loongson_sysconf.nr_cpus, num_online_nodes()); in cpu_node_probe() 55 int package_row = row * loongson_sysconf.cores_per_node / in compute_node_distance() 56 loongson_sysconf.cores_per_package; in compute_node_distance() 57 int package_col = col * loongson_sysconf.cores_per_node / in compute_node_distance() 58 loongson_sysconf.cores_per_package; in compute_node_distance() 145 for (node = 0; node < loongson_sysconf.nr_nodes; node++) { in prom_meminit() 154 for (cpu = 0; cpu < loongson_sysconf.nr_cpus; cpu++) { in prom_meminit() 155 node = cpu / loongson_sysconf.cores_per_node; in prom_meminit() 159 if (loongson_sysconf.reserved_cpus_mask & (1<<cpu)) in prom_meminit()
|
H A D | init.c | 55 if (loongson_sysconf.fw_interface != LOONGSON_LEFI) in szmem() 103 if (loongson_sysconf.vgabios_addr) in szmem() 104 memblock_reserve(virt_to_phys((void *)loongson_sysconf.vgabios_addr), in szmem() 120 loongson_sysconf.fw_interface = LOONGSON_DTB; in prom_init() 123 loongson_sysconf.fw_interface = LOONGSON_LEFI; in prom_init() 130 if (loongson_sysconf.early_config) in prom_init() 131 loongson_sysconf.early_config(); in prom_init()
|
H A D | reset.c | 28 void (*fw_restart)(void) = (void *)loongson_sysconf.restart_addr; in firmware_restart() 36 void (*fw_poweroff)(void) = (void *)loongson_sysconf.poweroff_addr; in firmware_poweroff() 143 if (loongson_sysconf.restart_addr) { in mips_reboot_setup() 149 if (loongson_sysconf.poweroff_addr) { in mips_reboot_setup()
|
H A D | smp.c | 432 cpu_logical_map(cpu) % loongson_sysconf.cores_per_package); in loongson3_init_secondary() 434 cpu_logical_map(cpu) / loongson_sysconf.cores_per_package; in loongson3_init_secondary() 476 max_cpus += loongson_sysconf.cores_per_node; in loongson3_smp_setup() 479 if (max_cpus < loongson_sysconf.nr_cpus) { in loongson3_smp_setup() 481 loongson_sysconf.nr_cpus = max_cpus ? max_cpus : 1; in loongson3_smp_setup() 488 while (i < loongson_sysconf.nr_cpus) { in loongson3_smp_setup() 489 if (loongson_sysconf.reserved_cpus_mask & (1<<i)) { in loongson3_smp_setup() 504 while (num < loongson_sysconf.nr_cpus) { in loongson3_smp_setup() 518 cpu_logical_map(0) % loongson_sysconf.cores_per_package); in loongson3_smp_setup() 840 if (!(loongson_sysconf.workarounds & WORKAROUND_CPUHOTPLUG)) in loongson3_disable_clock() [all …]
|
H A D | vbios_quirk.c | 13 if (!loongson_sysconf.vgabios_addr) in pci_fixup_video() 20 res->start = virt_to_phys((void *) loongson_sysconf.vgabios_addr); in pci_fixup_video()
|
H A D | time.c | 22 if (loongson_sysconf.fw_interface == LOONGSON_DTB) { in plat_time_init()
|
H A D | hpet.c | 12 #define SMBUS_CFG_BASE (loongson_sysconf.ht_control_base + 0x0300a000)
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | env.c | 17 struct loongson_system_configuration loongson_sysconf; variable 18 EXPORT_SYMBOL(loongson_sysconf); 41 if (loongson_sysconf.cpuname && !strncmp(loongson_sysconf.cpuname, "Loongson", 8)) { in init_cpu_fullname() 43 __cpu_full_name[cpu] = loongson_sysconf.cpuname; in init_cpu_fullname()
|
H A D | smp.c | 263 if (cpuid == loongson_sysconf.boot_cpu_id) { in fdt_smp_setup() 279 loongson_sysconf.nr_cpus = num_processors; in fdt_smp_setup() 280 set_bit(0, &(loongson_sysconf.cores_io_master)); in fdt_smp_setup() 288 cpu_data[0].core = cpu_logical_map(0) % loongson_sysconf.cores_per_package; in loongson_smp_setup() 289 cpu_data[0].package = cpu_logical_map(0) / loongson_sysconf.cores_per_package; in loongson_smp_setup() 292 pr_info("Detected %i available CPU(s)\n", loongson_sysconf.nr_cpus); in loongson_smp_setup() 301 for (i = 0; i < loongson_sysconf.nr_cpus; i++) { in loongson_prepare_cpus() 346 cpu_logical_map(cpu) / loongson_sysconf.cores_per_package; in loongson_init_secondary() 348 cpu_logical_map(cpu) % loongson_sysconf.cores_per_package; in loongson_init_secondary()
|
H A D | acpi.c | 73 if (cpuid == loongson_sysconf.boot_cpu_id) in set_processor_mask() 120 set_bit(core, &(loongson_sysconf.cores_io_master)); in acpi_parse_eio_master() 141 loongson_sysconf.nr_cpus = num_processors; in acpi_process_madt() 195 loongson_sysconf.boot_cpu_id = read_csr_cpuid(); in acpi_boot_table_init()
|
H A D | numa.c | 409 loongson_sysconf.nr_nodes = nr_node_ids; in init_numa_memory() 410 loongson_sysconf.cores_per_node = cpumask_weight(&phys_cpus_on_node[0]); in init_numa_memory()
|
H A D | setup.c | 131 loongson_sysconf.cpuname = (void *)dmi_string_parse(dm, dmi_data[16]); in parse_cpu_table() 132 loongson_sysconf.cores_per_package = *(dmi_data + SMBIOS_CORE_PACKAGE_OFFSET); in parse_cpu_table()
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A D | bootinfo.h | 41 extern struct loongson_system_configuration loongson_sysconf; 45 return test_bit(cpu, &loongson_sysconf.cores_io_master); in io_master()
|
/openbmc/linux/drivers/platform/mips/ |
H A D | cpu_hwmon.c | 145 nr_packages = loongson_sysconf.nr_cpus / in loongson_hwmon_init() 146 loongson_sysconf.cores_per_package; in loongson_hwmon_init()
|
/openbmc/linux/arch/loongarch/power/ |
H A D | platform.c | 52 loongson_sysconf.suspend_addr = (u64)phys_to_virt(PHYSADDR(suspend_addr)); in loongson3_acpi_suspend_init()
|
H A D | suspend.c | 40 loongarch_suspend_addr = loongson_sysconf.suspend_addr; in loongarch_common_suspend()
|
/openbmc/linux/drivers/soc/loongson/ |
H A D | loongson2_pm.c | 178 loongson_sysconf.suspend_addr = (u64)phys_to_virt(suspend_addr); in loongson2_pm_probe() 193 if (loongson_sysconf.suspend_addr) in loongson2_pm_probe()
|
/openbmc/linux/arch/mips/include/asm/mach-loongson64/ |
H A D | boot_param.h | 209 extern struct loongson_system_configuration loongson_sysconf;
|
H A D | loongson.h | 109 #define LOONGSON_PCIIO_BASE loongson_sysconf.pci_io_base
|
/openbmc/linux/arch/loongarch/mm/ |
H A D | cache.c | 50 nr_nodes = cache_private(cdesc) ? 1 : loongson_sysconf.nr_nodes; in flush_cache_leaf()
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-loongson-liointc.c | 280 priv->map_cache[i] |= BIT(loongson_sysconf.boot_cpu_id); in liointc_init()
|