Home
last modified time | relevance | path

Searched refs:loongson_sysconf (Results 1 – 19 of 19) sorted by relevance

/linux-6.1.9/arch/mips/loongson64/
Denv.c29 struct loongson_system_configuration loongson_sysconf; variable
87 loongson_sysconf.cputype = ecpu->cputype; in prom_lefi_init_env()
91 loongson_sysconf.cores_per_node = 4; in prom_lefi_init_env()
92 loongson_sysconf.cores_per_package = 4; in prom_lefi_init_env()
109 loongson_sysconf.workarounds = WORKAROUND_CPUFREQ; in prom_lefi_init_env()
113 loongson_sysconf.cores_per_node = 4; /* One chip has 2 nodes */ in prom_lefi_init_env()
114 loongson_sysconf.cores_per_package = 8; in prom_lefi_init_env()
131 loongson_sysconf.workarounds = WORKAROUND_CPUHOTPLUG; in prom_lefi_init_env()
134 loongson_sysconf.cores_per_node = 1; in prom_lefi_init_env()
135 loongson_sysconf.cores_per_package = 1; in prom_lefi_init_env()
[all …]
Dnuma.c44 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()
Dinit.c56 if (loongson_sysconf.fw_interface != LOONGSON_LEFI) in szmem()
105 loongson_sysconf.fw_interface = LOONGSON_DTB; in prom_init()
108 loongson_sysconf.fw_interface = LOONGSON_LEFI; in prom_init()
115 if (loongson_sysconf.early_config) in prom_init()
116 loongson_sysconf.early_config(); in prom_init()
Dvbios_quirk.c13 if (!loongson_sysconf.vgabios_addr) in pci_fixup_video()
20 res->start = virt_to_phys((void *) loongson_sysconf.vgabios_addr); in pci_fixup_video()
Dsmp.c445 cpu_logical_map(cpu) % loongson_sysconf.cores_per_package); in loongson3_init_secondary()
447 cpu_logical_map(cpu) / loongson_sysconf.cores_per_package; in loongson3_init_secondary()
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()
519 cpu_data[0].package = cpu_logical_map(0) / loongson_sysconf.cores_per_package; in loongson3_smp_setup()
835 if (!(loongson_sysconf.workarounds & WORKAROUND_CPUHOTPLUG)) in loongson3_disable_clock()
849 if (!(loongson_sysconf.workarounds & WORKAROUND_CPUHOTPLUG)) in loongson3_enable_clock()
Dreset.c27 void (*fw_restart)(void) = (void *)loongson_sysconf.restart_addr; in loongson_restart()
38 void (*fw_poweroff)(void) = (void *)loongson_sysconf.poweroff_addr; in loongson_poweroff()
Dtime.c22 if (loongson_sysconf.fw_interface == LOONGSON_DTB) { in plat_time_init()
Dhpet.c12 #define SMBUS_CFG_BASE (loongson_sysconf.ht_control_base + 0x0300a000)
/linux-6.1.9/arch/loongarch/kernel/
Denv.c16 struct loongson_system_configuration loongson_sysconf; variable
17 EXPORT_SYMBOL(loongson_sysconf);
39 if (loongson_sysconf.cpuname && !strncmp(loongson_sysconf.cpuname, "Loongson", 8)) { in init_cpu_fullname()
41 __cpu_full_name[cpu] = loongson_sysconf.cpuname; in init_cpu_fullname()
Dacpi.c72 if (cpuid == loongson_sysconf.boot_cpu_id) in set_processor_mask()
118 set_bit(core, &(loongson_sysconf.cores_io_master)); in acpi_parse_eio_master()
139 loongson_sysconf.nr_cpus = num_processors; in acpi_process_madt()
158 loongson_sysconf.boot_cpu_id = read_csr_cpuid(); in acpi_boot_table_init()
Dsmp.c185 cpu_data[0].core = cpu_logical_map(0) % loongson_sysconf.cores_per_package; in loongson_smp_setup()
186 cpu_data[0].package = cpu_logical_map(0) / loongson_sysconf.cores_per_package; in loongson_smp_setup()
189 pr_info("Detected %i available CPU(s)\n", loongson_sysconf.nr_cpus); in loongson_smp_setup()
196 for (i = 0; i < loongson_sysconf.nr_cpus; i++) { in loongson_prepare_cpus()
240 cpu_logical_map(cpu) % loongson_sysconf.cores_per_package; in loongson_init_secondary()
242 cpu_logical_map(cpu) / loongson_sysconf.cores_per_package; in loongson_init_secondary()
Dsetup.c117 loongson_sysconf.cpuname = (void *)dmi_string_parse(dm, dmi_data[16]); in parse_cpu_table()
118 loongson_sysconf.cores_per_package = *(dmi_data + SMBIOS_CORE_PACKAGE_OFFSET); in parse_cpu_table()
Dnuma.c426 loongson_sysconf.nr_nodes = nr_node_ids; in init_numa_memory()
427 loongson_sysconf.cores_per_node = cpumask_weight(&phys_cpus_on_node[0]); in init_numa_memory()
/linux-6.1.9/arch/loongarch/include/asm/
Dbootinfo.h41 extern struct loongson_system_configuration loongson_sysconf;
45 return test_bit(cpu, &loongson_sysconf.cores_io_master); in io_master()
/linux-6.1.9/drivers/platform/mips/
Dcpu_hwmon.c142 nr_packages = loongson_sysconf.nr_cpus / in loongson_hwmon_init()
143 loongson_sysconf.cores_per_package; in loongson_hwmon_init()
/linux-6.1.9/arch/mips/include/asm/mach-loongson64/
Dboot_param.h202 extern struct loongson_system_configuration loongson_sysconf;
Dloongson.h109 #define LOONGSON_PCIIO_BASE loongson_sysconf.pci_io_base
/linux-6.1.9/arch/loongarch/mm/
Dcache.c50 nr_nodes = cache_private(cdesc) ? 1 : loongson_sysconf.nr_nodes; in flush_cache_leaf()
/linux-6.1.9/drivers/irqchip/
Dirq-loongson-liointc.c259 priv->map_cache[i] |= BIT(loongson_sysconf.boot_cpu_id); in liointc_init()