Lines Matching +full:hart +full:- +full:2
1 // SPDX-License-Identifier: GPL-2.0-only
34 * There is no maximum hartid concept in RISC-V and NR_CPUS must not be in __sbi_v01_cpumask_to_hartmask()
37 * greater than BITS_PER_LONG (32 for RV32 and 64 for RV64). Ideally, SBI v0.2 in __sbi_v01_cpumask_to_hartmask()
53 * sbi_console_putchar() - Writes given character to the console device.
65 * sbi_console_getchar() - Reads a byte from console device.
80 * sbi_shutdown() - Remove all the harts from executing supervisor code.
91 * __sbi_set_timer_v01() - Program the timer for next timer event.
125 /* v0.2 function IDs are equivalent to v0.1 extension IDs */ in __sbi_rfence_v01()
143 result = -EINVAL; in __sbi_rfence_v01()
245 result = -EINVAL; in __sbi_rfence_v02_call()
279 hmask <<= hbase - hartid; in __sbi_rfence_v02()
289 hmask |= BIT(hartid - hbase); in __sbi_rfence_v02()
316 ret = sbi_fwft_set(req->feature, req->value, req->flags); in cpu_sbi_fwft_set()
318 atomic_set(&req->error, ret); in cpu_sbi_fwft_set()
322 * sbi_fwft_set() - Set a feature on the local hart
334 return -EOPNOTSUPP; in sbi_fwft_set()
343 * sbi_fwft_set_cpumask() - Set a feature for the specified cpumask
362 return -EOPNOTSUPP; in sbi_fwft_set_cpumask()
365 return -EINVAL; in sbi_fwft_set_cpumask()
373 * sbi_set_timer() - Program the timer for next timer event.
384 * sbi_send_ipi() - Send an IPI to any hart.
394 * sbi_remote_fence_i() - Execute FENCE.I instruction on given remote harts.
407 * sbi_remote_sfence_vma_asid() - Execute SFENCE.VMA instructions on given
433 * sbi_remote_hfence_gvma() - Execute HFENCE.GVMA instructions on given remote
451 * sbi_remote_hfence_gvma_vmid() - Execute HFENCE.GVMA instructions on given
472 * sbi_remote_hfence_vvma() - Execute HFENCE.VVMA instructions on given remote
490 * sbi_remote_hfence_vvma_asid() - Execute HFENCE.VVMA instructions on given
538 * sbi_probe_extension() - Check if an SBI extension ID is supported or not.
597 return -EOPNOTSUPP; in sbi_debug_console_write()
605 num_bytes = PAGE_SIZE - offset_in_page(bytes); in sbi_debug_console_write()
616 return -EIO; in sbi_debug_console_write()
626 return -EOPNOTSUPP; in sbi_debug_console_read()
634 num_bytes = PAGE_SIZE - offset_in_page(bytes); in sbi_debug_console_read()
645 return -EIO; in sbi_debug_console_read()
690 if (sbi_spec_version >= sbi_mk_version(2, 0) && in sbi_init()