Searched refs:hartid (Results 1 – 10 of 10) sorted by relevance
/linux/arch/riscv/kernel/ |
A D | cpu_ops_sbi.c | 17 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 D | sbi.c | 216 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 D | cpu_ops.c | 27 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 D | smp.c | 50 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 D | timer-riscv.c | 104 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 D | riscv-stub.c | 26 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 D | irq-riscv-intc.c | 98 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 D | irq-sifive-plic.c | 316 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 D | smp.h | 45 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 D | kexec.h | 51 unsigned long hartid,
|
Completed in 12 milliseconds