Lines Matching +full:value +full:- +full:start

1 // SPDX-License-Identifier: GPL-2.0-only
22 unsigned long start, unsigned long size,
45 ret.value = a1; in sbi_ecall()
57 return -EPERM; in sbi_err_map_linux_errno()
59 return -EINVAL; in sbi_err_map_linux_errno()
61 return -EFAULT; in sbi_err_map_linux_errno()
65 return -ENOTSUPP; in sbi_err_map_linux_errno()
77 * There is no maximum hartid concept in RISC-V and NR_CPUS must not be in __sbi_v01_cpumask_to_hartmask()
96 * sbi_console_putchar() - Writes given character to the console device.
108 * sbi_console_getchar() - Reads a byte from console device.
110 * Returns the value read from console.
123 * sbi_shutdown() - Remove all the harts from executing supervisor code.
134 * __sbi_set_timer_v01() - Program the timer for next timer event.
135 * @stime_value: The value after which next timer event should fire.
158 unsigned long start, unsigned long size, in __sbi_rfence_v01() argument
176 (unsigned long)&hart_mask, start, size, in __sbi_rfence_v01()
181 (unsigned long)&hart_mask, start, size, in __sbi_rfence_v01()
186 result = -EINVAL; in __sbi_rfence_v01()
210 unsigned long start, unsigned long size, in __sbi_rfence_v01() argument
248 unsigned long hbase, unsigned long start, in __sbi_rfence_v02_call() argument
261 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
265 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
270 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
274 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
278 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
282 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
288 result = -EINVAL; in __sbi_rfence_v02_call()
301 unsigned long start, unsigned long size, in __sbi_rfence_v02() argument
316 hbase, start, size, arg4, arg5); in __sbi_rfence_v02()
322 hmask <<= hbase - hartid; in __sbi_rfence_v02()
332 hmask |= BIT(hartid - hbase); in __sbi_rfence_v02()
337 start, size, arg4, arg5); in __sbi_rfence_v02()
346 * sbi_set_timer() - Program the timer for next timer event.
347 * @stime_value: The value after which next timer event should fire.
357 * sbi_send_ipi() - Send an IPI to any hart.
367 * sbi_remote_fence_i() - Execute FENCE.I instruction on given remote harts.
380 * sbi_remote_sfence_vma() - Execute SFENCE.VMA instructions on given remote
383 * @start: Start of the virtual address
389 unsigned long start, in sbi_remote_sfence_vma() argument
393 cpu_mask, start, size, 0, 0); in sbi_remote_sfence_vma()
398 * sbi_remote_sfence_vma_asid() - Execute SFENCE.VMA instructions on given
402 * @start: Start of the virtual address
404 * @asid: The value of address space identifier (ASID).
409 unsigned long start, in sbi_remote_sfence_vma_asid() argument
414 cpu_mask, start, size, asid, 0); in sbi_remote_sfence_vma_asid()
419 * sbi_remote_hfence_gvma() - Execute HFENCE.GVMA instructions on given remote
422 * @start: Start of the guest physical address
428 unsigned long start, in sbi_remote_hfence_gvma() argument
432 cpu_mask, start, size, 0, 0); in sbi_remote_hfence_gvma()
437 * sbi_remote_hfence_gvma_vmid() - Execute HFENCE.GVMA instructions on given
441 * @start: Start of the guest physical address
443 * @vmid: The value of guest ID (VMID).
448 unsigned long start, in sbi_remote_hfence_gvma_vmid() argument
453 cpu_mask, start, size, vmid, 0); in sbi_remote_hfence_gvma_vmid()
458 * sbi_remote_hfence_vvma() - Execute HFENCE.VVMA instructions on given remote
461 * @start: Start of the current guest virtual address
467 unsigned long start, in sbi_remote_hfence_vvma() argument
471 cpu_mask, start, size, 0, 0); in sbi_remote_hfence_vvma()
476 * sbi_remote_hfence_vvma_asid() - Execute HFENCE.VVMA instructions on given
481 * @start: Start of the current guest virtual address
483 * @asid: The value of address space identifier (ASID).
488 unsigned long start, in sbi_remote_hfence_vvma_asid() argument
493 cpu_mask, start, size, asid, 0); in sbi_remote_hfence_vvma_asid()
524 * sbi_probe_extension() - Check if an SBI extension ID is supported or not.
527 * Return: 1 or an extension specific nonzero value if yes, 0 otherwise.
536 return ret.value; in sbi_probe_extension()
548 return ret.value; in __sbi_base_ecall()