/linux/arch/riscv/kernel/ |
H A D | sbi.c | 60 sbi_ecall(SBI_EXT_0_1_CONSOLE_PUTCHAR, 0, ch, 0, 0, 0, 0, 0); in sbi_console_putchar() 73 ret = sbi_ecall(SBI_EXT_0_1_CONSOLE_GETCHAR, 0, 0, 0, 0, 0, 0, 0); in sbi_console_getchar() 86 sbi_ecall(SBI_EXT_0_1_SHUTDOWN, 0, 0, 0, 0, 0, 0, 0); in sbi_shutdown() 99 sbi_ecall(SBI_EXT_0_1_SET_TIMER, 0, stime_value, in __sbi_set_timer_v01() 102 sbi_ecall(SBI_EXT_0_1_SET_TIMER, 0, stime_value, 0, 0, 0, 0, 0); in __sbi_set_timer_v01() 110 sbi_ecall(SBI_EXT_0_1_SEND_IPI, 0, (unsigned long)(&hart_mask), in __sbi_send_ipi_v01() 128 sbi_ecall(SBI_EXT_0_1_REMOTE_FENCE_I, 0, in __sbi_rfence_v01() 132 sbi_ecall(SBI_EXT_0_1_REMOTE_SFENCE_VMA, 0, in __sbi_rfence_v01() 137 sbi_ecall(SBI_EXT_0_1_REMOTE_SFENCE_VMA_ASID, 0, in __sbi_rfence_v01() 182 sbi_ecall(SBI_EXT_TIME, SBI_EXT_TIME_SET_TIMER, stime_value, in __sbi_set_timer_v02() [all …]
|
H A D | sbi_ecall.c | 12 ret = sbi_ecall(SBI_EXT_BASE, fid, 0, 0, 0, 0, 0, 0); in __sbi_base_ecall()
|
H A D | paravirt.c | 62 ret = sbi_ecall(SBI_EXT_STA, SBI_EXT_STA_STEAL_TIME_SET_SHMEM, in sbi_sta_steal_time_set_shmem()
|
H A D | Makefile | 100 obj-$(CONFIG_RISCV_SBI) += sbi.o sbi_ecall.o
|
/linux/tools/testing/selftests/kvm/riscv/ |
H A D | sbi_pmu_test.c | 99 ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_START, counter, 1, start_flags, in start_counter() 109 ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_STOP, counter, 1, in stop_reset_counter() 119 ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_STOP, counter, 1, stop_flags, in stop_counter() 166 ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_CFG_MATCH, cbase, cmask, in get_counter_index() 179 ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_NUM_COUNTERS, 0, 0, 0, 0, 0, 0); in get_num_counters() 194 ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_GET_INFO, i, 0, 0, 0, 0, 0); in update_counter_info() 212 ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_FW_READ, idx, 0, 0, 0, 0, 0); in read_fw_counter() 251 struct sbiret ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_SNAPSHOT_SET_SHMEM, in snapshot_set_shmem() 390 ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_CFG_MATCH, 0, in test_invalid_event() 427 ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_GET_INFO, i, in test_pmu_basic_sanity()
|
/linux/drivers/acpi/riscv/ |
H A D | cppc.c | 55 data->ret = sbi_ecall(SBI_EXT_CPPC, SBI_CPPC_READ, in sbi_cppc_read() 63 data->ret = sbi_ecall(SBI_EXT_CPPC, SBI_CPPC_WRITE, in sbi_cppc_write()
|
/linux/tools/testing/selftests/kvm/include/riscv/ |
H A D | ucall.h | 16 sbi_ecall(KVM_RISCV_SELFTESTS_SBI_EXT, in ucall_arch_do_ucall()
|
H A D | sbi.h | 124 struct sbiret sbi_ecall(int ext, int fid, unsigned long arg0,
|
/linux/arch/riscv/errata/andes/ |
H A D | errata.c | 36 ret = sbi_ecall(ANDES_SBI_EXT_ANDES, ANDES_SBI_EXT_IOCP_SW_WORKAROUND, in ax45mp_iocp_sw_workaround()
|
/linux/tools/testing/selftests/kvm/lib/riscv/ |
H A D | processor.c | 288 sbi_ecall(KVM_RISCV_SELFTESTS_SBI_EXT, in guest_unexp_trap() 462 struct sbiret sbi_ecall(int ext, int fid, unsigned long arg0, in sbi_ecall() function 492 ret = sbi_ecall(SBI_EXT_BASE, SBI_EXT_BASE_PROBE_EXT, extid, in guest_sbi_probe_extension() 511 ret = sbi_ecall(SBI_EXT_BASE, SBI_EXT_BASE_GET_SPEC_VERSION, 0, in get_host_sbi_spec_version()
|
/linux/arch/riscv/include/asm/ |
H A D | sbi.h | 314 #define sbi_ecall(e, f, a0, a1, a2, a3, a4, a5) \ macro
|
/linux/tools/testing/selftests/kvm/ |
H A D | steal_time.c | 231 struct sbiret ret = sbi_ecall(SBI_EXT_STA, 0, lo, hi, flags, 0, 0, 0); in sta_set_shmem()
|