Home
last modified time | relevance | path

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

/Linux-v5.10/arch/mips/loongson64/
Denv.c29 struct loongson_system_configuration loongson_sysconf; variable
66 loongson_sysconf.cputype = ecpu->cputype; in prom_init_env()
70 loongson_sysconf.cores_per_node = 4; in prom_init_env()
71 loongson_sysconf.cores_per_package = 4; in prom_init_env()
88 loongson_sysconf.ht_control_base = 0x90000EFDFB000000; in prom_init_env()
89 loongson_sysconf.workarounds = WORKAROUND_CPUFREQ; in prom_init_env()
93 loongson_sysconf.cores_per_node = 4; /* One chip has 2 nodes */ in prom_init_env()
94 loongson_sysconf.cores_per_package = 8; in prom_init_env()
111 loongson_sysconf.ht_control_base = 0x90001EFDFB000000; in prom_init_env()
112 loongson_sysconf.workarounds = WORKAROUND_CPUHOTPLUG; in prom_init_env()
[all …]
Dplatform.c22 if (loongson_sysconf.ecname[0] != '\0') in loongson3_platform_init()
23 platform_device_register_simple(loongson_sysconf.ecname, -1, NULL, 0); in loongson3_platform_init()
25 for (i = 0; i < loongson_sysconf.nr_sensors; i++) { in loongson3_platform_init()
26 if (loongson_sysconf.sensors[i].type > SENSOR_FAN) in loongson3_platform_init()
33 pdev->name = loongson_sysconf.sensors[i].name; in loongson3_platform_init()
34 pdev->id = loongson_sysconf.sensors[i].id; in loongson3_platform_init()
35 pdev->dev.platform_data = &loongson_sysconf.sensors[i]; in loongson3_platform_init()
Dnuma.c61 for (i = 0; i < loongson_sysconf.nr_nodes; i++) { in cpu_node_probe()
67 loongson_sysconf.nr_cpus, num_online_nodes()); in cpu_node_probe()
72 int package_row = row * loongson_sysconf.cores_per_node / in compute_node_distance()
73 loongson_sysconf.cores_per_package; in compute_node_distance()
74 int package_col = col * loongson_sysconf.cores_per_node / in compute_node_distance()
75 loongson_sysconf.cores_per_package; in compute_node_distance()
195 for (node = 0; node < loongson_sysconf.nr_nodes; node++) { in prom_meminit()
204 for (cpu = 0; cpu < loongson_sysconf.nr_cpus; cpu++) { in prom_meminit()
205 node = cpu / loongson_sysconf.cores_per_node; in prom_meminit()
209 if (loongson_sysconf.reserved_cpus_mask & (1<<cpu)) in prom_meminit()
Dreset.c21 void (*fw_restart)(void) = (void *)loongson_sysconf.restart_addr; in loongson_restart()
32 void (*fw_poweroff)(void) = (void *)loongson_sysconf.poweroff_addr; in loongson_poweroff()
Dsmp.c356 cpu_logical_map(cpu) % loongson_sysconf.cores_per_package); in loongson3_init_secondary()
358 cpu_logical_map(cpu) / loongson_sysconf.cores_per_package; in loongson3_init_secondary()
398 while (i < loongson_sysconf.nr_cpus) { in loongson3_smp_setup()
399 if (loongson_sysconf.reserved_cpus_mask & (1<<i)) { in loongson3_smp_setup()
412 while (num < loongson_sysconf.nr_cpus) { in loongson3_smp_setup()
424 cpu_logical_map(0) % loongson_sysconf.cores_per_package); in loongson3_smp_setup()
425 cpu_data[0].package = cpu_logical_map(0) / loongson_sysconf.cores_per_package; in loongson3_smp_setup()
760 if (!(loongson_sysconf.workarounds & WORKAROUND_CPUHOTPLUG)) in loongson3_disable_clock()
774 if (!(loongson_sysconf.workarounds & WORKAROUND_CPUHOTPLUG)) in loongson3_enable_clock()
Dvbios_quirk.c13 if (!loongson_sysconf.vgabios_addr) in pci_fixup_radeon()
20 res->start = virt_to_phys((void *) loongson_sysconf.vgabios_addr); in pci_fixup_radeon()
Dinit.c58 loongson_sysconf.early_config(); in prom_init()
Dhpet.c12 #define SMBUS_CFG_BASE (loongson_sysconf.ht_control_base + 0x0300a000)
/Linux-v5.10/drivers/platform/mips/
Dcpu_hwmon.c177 nr_packages = loongson_sysconf.nr_cpus / in loongson_hwmon_init()
178 loongson_sysconf.cores_per_package; in loongson_hwmon_init()
/Linux-v5.10/arch/mips/include/asm/mach-loongson64/
Dboot_param.h229 extern struct loongson_system_configuration loongson_sysconf;
Dloongson.h84 #define LOONGSON_PCIIO_BASE loongson_sysconf.pci_io_base
/Linux-v5.10/drivers/irqchip/
Dirq-loongson-liointc.c229 priv->map_cache[i] |= BIT(loongson_sysconf.boot_cpu_id); in liointc_of_init()