Home
last modified time | relevance | path

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

/linux/drivers/firmware/efi/libstub/
H A Driscv.c16 static unsigned long hartid; variable
37 hartid = (unsigned long) fdt32_to_cpu(*(fdt32_t *)prop); in get_boot_hartid_from_fdt()
39 hartid = (unsigned long) fdt64_to_cpu(__get_unaligned_t(fdt64_t, prop)); in get_boot_hartid_from_fdt()
56 return efi_call_proto(boot_protocol, get_boot_hartid, &hartid); in get_boot_hartid_from_efi()
97 jump_kernel(hartid, fdt); in efi_enter_kernel()
/linux/arch/riscv/include/asm/
H A Dsmp.h40 int riscv_hartid_to_cpuid(unsigned long hartid);
77 static inline int riscv_hartid_to_cpuid(unsigned long hartid) in riscv_hartid_to_cpuid() argument
79 if (hartid == boot_cpu_hartid) in riscv_hartid_to_cpuid()
H A Dsuspend.h43 int __cpu_resume_enter(unsigned long hartid, unsigned long context);
H A Dkexec.h52 unsigned long hartid,
/linux/Documentation/translations/zh_CN/arch/riscv/
H A Dboot.rst31 * ``$a0`` 应包含当前核心的hartid
93 使用UEFI启动时,EFI stub 需要引导hartid以便将其传递给 ``$a1`` 中的
94 RISC-V内核。EFI stub使用以下方法之一获取引导hartid
97 - ``boot-hartid`` 设备树子节点(**已弃用**)。
/linux/arch/riscv/mm/
H A Dcacheflush.c124 unsigned long hartid; in cbo_get_block_size() local
127 if (riscv_of_processor_hartid(node, &hartid)) in cbo_get_block_size()
135 *first_hartid = hartid; in cbo_get_block_size()
138 name, *first_hartid, hartid); in cbo_get_block_size()
/linux/arch/riscv/kernel/
H A Dcpu.c125 int riscv_of_parent_hartid(struct device_node *node, unsigned long *hartid) in riscv_of_parent_hartid() argument
129 *hartid = (unsigned long)of_get_cpu_hwid(node, 0); in riscv_of_parent_hartid()
130 if (*hartid == ~0UL) { in riscv_of_parent_hartid()
H A Dhibernate.c59 unsigned long hartid; member
101 hdr->hartid = cpuid_to_hartid_map(sleep_cpu); in arch_hibernation_header_save()
125 sleep_cpu = riscv_hartid_to_cpuid(hdr->hartid); in arch_hibernation_header_restore()
/linux/drivers/irqchip/
H A Dirq-sifive-plic.c591 unsigned long hartid; in plic_parse_context_parent() local
595 hartid = acpi_rintc_ext_parent_to_hartid(id, context); in plic_parse_context_parent()
596 if (hartid == INVALID_HARTID) in plic_parse_context_parent()
599 *parent_cpu = riscv_hartid_to_cpuid(hartid); in plic_parse_context_parent()
608 rc = riscv_of_parent_hartid(parent.np, &hartid); in plic_parse_context_parent()
613 *parent_cpu = riscv_hartid_to_cpuid(hartid); in plic_parse_context_parent()
/linux/Documentation/arch/riscv/
H A Dboot.rst26 * ``$a0`` to contain the hartid of the current core.
95 When booting with UEFI, the EFI stub requires the boot hartid in order to pass
96 it to the RISC-V kernel in ``$a1``. The EFI stub retrieves the boot hartid using
100 - ``boot-hartid`` devicetree subnode (**deprecated**).
/linux/drivers/mailbox/
H A Dmailbox-mchp-ipc-sbi.c375 unsigned long hartid; in mchp_ipc_get_cluster_aggr_irq() local
379 hartid = cpuid_to_hartid_map(cpuid); in mchp_ipc_get_cluster_aggr_irq()
380 irq_name = devm_kasprintf(ipc->dev, GFP_KERNEL, "hart-%lu", hartid); in mchp_ipc_get_cluster_aggr_irq()
/linux/arch/riscv/
H A DKconfig1095 variable. This method cannot support CPU hotplug and sparse hartid