hartid             37 arch/riscv/include/asm/smp.h int riscv_hartid_to_cpuid(int hartid);
hartid             52 arch/riscv/include/asm/smp.h static inline int riscv_hartid_to_cpuid(int hartid)
hartid             54 arch/riscv/include/asm/smp.h 	if (hartid == boot_cpu_hartid)
hartid             45 arch/riscv/kernel/smp.c int riscv_hartid_to_cpuid(int hartid)
hartid             50 arch/riscv/kernel/smp.c 		if (cpuid_to_hartid_map(i) == hartid)
hartid             53 arch/riscv/kernel/smp.c 	pr_err("Couldn't find cpu id for hartid [%d]\n", hartid);
hartid            100 arch/riscv/kernel/smp.c 	int hartid = cpuid_to_hartid_map(cpu);
hartid            106 arch/riscv/kernel/smp.c 	sbi_send_ipi(cpumask_bits(cpumask_of(hartid)));
hartid            102 arch/riscv/kernel/smpboot.c 	int hartid = cpuid_to_hartid_map(cpu);
hartid            113 arch/riscv/kernel/smpboot.c 	WRITE_ONCE(__cpu_up_stack_pointer[hartid],
hartid            115 arch/riscv/kernel/smpboot.c 	WRITE_ONCE(__cpu_up_task_pointer[hartid], tidle);
hartid             85 drivers/clocksource/timer-riscv.c 	int cpuid, hartid, error;
hartid             87 drivers/clocksource/timer-riscv.c 	hartid = riscv_of_processor_hartid(n);
hartid             88 drivers/clocksource/timer-riscv.c 	if (hartid < 0) {
hartid             90 drivers/clocksource/timer-riscv.c 			n, hartid);
hartid             91 drivers/clocksource/timer-riscv.c 		return hartid;
hartid             94 drivers/clocksource/timer-riscv.c 	cpuid = riscv_hartid_to_cpuid(hartid);
hartid             96 drivers/clocksource/timer-riscv.c 		pr_warn("Invalid cpuid for hartid [%d]\n", hartid);
hartid            104 drivers/clocksource/timer-riscv.c 	       __func__, cpuid, hartid);
hartid            247 drivers/irqchip/irq-sifive-plic.c 		int cpu, hartid;
hartid            259 drivers/irqchip/irq-sifive-plic.c 		hartid = plic_find_hart_id(parent.np);
hartid            260 drivers/irqchip/irq-sifive-plic.c 		if (hartid < 0) {
hartid            265 drivers/irqchip/irq-sifive-plic.c 		cpu = riscv_hartid_to_cpuid(hartid);