Home
last modified time | relevance | path

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

/arch/mips/loongson64/
Denv.c31 struct loongson_system_configuration loongson_sysconf; variable
89 loongson_sysconf.cputype = ecpu->cputype; in prom_lefi_init_env()
93 loongson_sysconf.cores_per_node = 4; in prom_lefi_init_env()
94 loongson_sysconf.cores_per_package = 4; in prom_lefi_init_env()
111 loongson_sysconf.workarounds = WORKAROUND_CPUFREQ; in prom_lefi_init_env()
115 loongson_sysconf.cores_per_node = 4; /* One chip has 2 nodes */ in prom_lefi_init_env()
116 loongson_sysconf.cores_per_package = 8; in prom_lefi_init_env()
133 loongson_sysconf.workarounds = WORKAROUND_CPUHOTPLUG; in prom_lefi_init_env()
136 loongson_sysconf.cores_per_node = 1; in prom_lefi_init_env()
137 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.c55 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()
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()
836 if (!(loongson_sysconf.workarounds & WORKAROUND_CPUHOTPLUG)) in loongson3_disable_clock()
850 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)
/arch/mips/include/asm/mach-loongson64/
Dboot_param.h207 extern struct loongson_system_configuration loongson_sysconf;
Dloongson.h109 #define LOONGSON_PCIIO_BASE loongson_sysconf.pci_io_base