Searched refs:hart (Results 1 - 5 of 5) sorted by relevance
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | cpu.c | 26 * Returns the hart ID of the given device tree node, or -ENODEV if the node 27 * isn't an enabled and valid RISC-V hart node. 29 int riscv_of_processor_hartid(struct device_node *node, unsigned long *hart) in riscv_of_processor_hartid() argument 33 *hart = (unsigned long)of_get_cpu_hwid(node, 0); in riscv_of_processor_hartid() 34 if (*hart == ~0UL) { in riscv_of_processor_hartid() 35 pr_warn("Found CPU without hart ID\n"); in riscv_of_processor_hartid() 39 cpu = riscv_hartid_to_cpuid(*hart); in riscv_of_processor_hartid() 49 int __init riscv_early_of_processor_hartid(struct device_node *node, unsigned long *hart) in riscv_early_of_processor_hartid() argument 58 *hart = (unsigned long)of_get_cpu_hwid(node, 0); in riscv_early_of_processor_hartid() 59 if (*hart in riscv_early_of_processor_hartid() [all...] |
H A D | smpboot.c | 82 unsigned long hart; in acpi_parse_rintc() local 99 hart = processor->hart_id; in acpi_parse_rintc() 100 if (hart == INVALID_HARTID) { in acpi_parse_rintc() 105 if (hart == cpuid_to_hartid_map(0)) { in acpi_parse_rintc() 117 cpuid_to_hartid_map(cpu_count) = hart; in acpi_parse_rintc() 146 unsigned long hart; in of_parse_and_init_cpus() local 154 rc = riscv_early_of_processor_hartid(dn, &hart); in of_parse_and_init_cpus() 158 if (hart == cpuid_to_hartid_map(0)) { in of_parse_and_init_cpus() 166 cpuid, hart); in of_parse_and_init_cpus() 170 cpuid_to_hartid_map(cpuid) = hart; in of_parse_and_init_cpus() [all...] |
/kernel/linux/linux-5.10/arch/riscv/kernel/ |
H A D | smpboot.c | 70 int hart; in setup_smp() local 77 hart = riscv_of_processor_hartid(dn); in setup_smp() 78 if (hart < 0) in setup_smp() 81 if (hart == cpuid_to_hartid_map(0)) { in setup_smp() 88 cpuid, hart); in setup_smp() 92 cpuid_to_hartid_map(cpuid) = hart; in setup_smp()
|
H A D | cpu.c | 12 * Returns the hart ID of the given device tree node, or -ENODEV if the node 13 * isn't an enabled and valid RISC-V hart node. 18 u32 hart; in riscv_of_processor_hartid() local 25 if (of_property_read_u32(node, "reg", &hart)) { in riscv_of_processor_hartid() 26 pr_warn("Found CPU without hart ID\n"); in riscv_of_processor_hartid() 31 pr_info("CPU with hartid=%d is not available\n", hart); in riscv_of_processor_hartid() 36 pr_warn("CPU with hartid=%d has no \"riscv,isa\" property\n", hart); in riscv_of_processor_hartid() 40 pr_warn("CPU with hartid=%d has an invalid ISA of \"%s\"\n", hart, isa); in riscv_of_processor_hartid() 44 return hart; in riscv_of_processor_hartid() 48 * Find hart I [all...] |
/kernel/linux/linux-6.6/arch/riscv/kvm/ |
H A D | aia_device.c | 240 u32 hart, group = 0; in aia_imsic_hart_index() local 242 hart = (addr >> (aia->nr_guest_bits + IMSIC_MMIO_PAGE_SHIFT)) & in aia_imsic_hart_index() 248 return (group << aia->nr_hart_bits) | hart; in aia_imsic_hart_index()
|
Completed in 2 milliseconds