Home
last modified time | relevance | path

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

/linux/arch/riscv/kernel/
A Dcpu_ops_sbi.c17 static int sbi_hsm_hart_start(unsigned long hartid, unsigned long saddr, in sbi_hsm_hart_start() argument
23 hartid, saddr, priv, 0, 0, 0); in sbi_hsm_hart_start()
43 static int sbi_hsm_hart_get_status(unsigned long hartid) in sbi_hsm_hart_get_status() argument
48 hartid, 0, 0, 0, 0, 0); in sbi_hsm_hart_get_status()
60 int hartid = cpuid_to_hartid_map(cpuid); in sbi_cpu_start() local
63 rc = sbi_hsm_hart_start(hartid, boot_addr, 0); in sbi_cpu_start()
96 int hartid = cpuid_to_hartid_map(cpuid); in sbi_cpu_is_stopped() local
98 rc = sbi_hsm_hart_get_status(hartid); in sbi_cpu_is_stopped()
A Dsbi.c216 unsigned long hartid, hmask_val, hbase; in __sbi_send_ipi_v02() local
228 for_each_set_bit(hartid, hart_mask, NR_CPUS) { in __sbi_send_ipi_v02()
229 if (hmask_val && ((hbase + BITS_PER_LONG) <= hartid)) { in __sbi_send_ipi_v02()
238 hbase = hartid; in __sbi_send_ipi_v02()
239 hmask_val |= 1UL << (hartid - hbase); in __sbi_send_ipi_v02()
315 unsigned long hmask_val, hartid, hbase; in __sbi_rfence_v02() local
326 for_each_set_bit(hartid, hart_mask, NR_CPUS) { in __sbi_rfence_v02()
327 if (hmask_val && ((hbase + BITS_PER_LONG) <= hartid)) { in __sbi_rfence_v02()
336 hbase = hartid; in __sbi_rfence_v02()
337 hmask_val |= 1UL << (hartid - hbase); in __sbi_rfence_v02()
A Dcpu_ops.c27 int hartid = cpuid_to_hartid_map(cpuid); in cpu_update_secondary_bootdata() local
31 WRITE_ONCE(__cpu_up_stack_pointer[hartid], in cpu_update_secondary_bootdata()
33 WRITE_ONCE(__cpu_up_task_pointer[hartid], tidle); in cpu_update_secondary_bootdata()
A Dsmp.c50 int riscv_hartid_to_cpuid(int hartid) in riscv_hartid_to_cpuid() argument
55 if (cpuid_to_hartid_map(i) == hartid) in riscv_hartid_to_cpuid()
58 pr_err("Couldn't find cpu id for hartid [%d]\n", hartid); in riscv_hartid_to_cpuid()
/linux/drivers/clocksource/
A Dtimer-riscv.c104 int cpuid, hartid, error; in riscv_timer_init_dt() local
108 hartid = riscv_of_processor_hartid(n); in riscv_timer_init_dt()
109 if (hartid < 0) { in riscv_timer_init_dt()
111 n, hartid); in riscv_timer_init_dt()
112 return hartid; in riscv_timer_init_dt()
115 cpuid = riscv_hartid_to_cpuid(hartid); in riscv_timer_init_dt()
117 pr_warn("Invalid cpuid for hartid [%d]\n", hartid); in riscv_timer_init_dt()
144 __func__, cpuid, hartid); in riscv_timer_init_dt()
/linux/drivers/firmware/efi/libstub/
A Driscv-stub.c26 static u32 hartid; variable
51 hartid = get_boot_hartid_from_fdt(); in check_platform_features()
52 if (hartid == U32_MAX) { in check_platform_features()
73 jump_kernel(hartid, fdt); in efi_enter_kernel()
/linux/drivers/irqchip/
A Dirq-riscv-intc.c98 int rc, hartid; in riscv_intc_init() local
100 hartid = riscv_of_parent_hartid(node); in riscv_intc_init()
101 if (hartid < 0) { in riscv_intc_init()
112 if (riscv_hartid_to_cpuid(hartid) != smp_processor_id()) in riscv_intc_init()
A Dirq-sifive-plic.c316 int cpu, hartid; in plic_init() local
330 hartid = riscv_of_parent_hartid(parent.np); in plic_init()
331 if (hartid < 0) { in plic_init()
336 cpu = riscv_hartid_to_cpuid(hartid); in plic_init()
/linux/arch/riscv/include/asm/
A Dsmp.h45 int riscv_hartid_to_cpuid(int hartid);
76 static inline int riscv_hartid_to_cpuid(int hartid) in riscv_hartid_to_cpuid() argument
78 if (hartid == boot_cpu_hartid) in riscv_hartid_to_cpuid()
A Dkexec.h51 unsigned long hartid,

Completed in 12 milliseconds