Lines Matching +full:value +full:- +full:start
1 // SPDX-License-Identifier: GPL-2.0-only
20 unsigned long start, unsigned long size,
43 ret.value = a1; in sbi_ecall()
55 return -EPERM; in sbi_err_map_linux_errno()
57 return -EINVAL; in sbi_err_map_linux_errno()
59 return -EFAULT; in sbi_err_map_linux_errno()
63 return -ENOTSUPP; in sbi_err_map_linux_errno()
70 * sbi_console_putchar() - Writes given character to the console device.
82 * sbi_console_getchar() - Reads a byte from console device.
84 * Returns the value read from console.
97 * sbi_shutdown() - Remove all the harts from executing supervisor code.
108 * sbi_clear_ipi() - Clear any pending IPIs for the calling hart.
119 * sbi_set_timer_v01() - Program the timer for next timer event.
120 * @stime_value: The value after which next timer event should fire.
142 unsigned long start, unsigned long size, in __sbi_rfence_v01() argument
155 (unsigned long)hart_mask, start, size, in __sbi_rfence_v01()
160 (unsigned long)hart_mask, start, size, in __sbi_rfence_v01()
165 result = -EINVAL; in __sbi_rfence_v01()
191 unsigned long start, unsigned long size, in __sbi_rfence_v01() argument
239 hmask_val |= 1UL << (hartid - hbase); in __sbi_send_ipi_v02()
259 unsigned long hbase, unsigned long start, in __sbi_rfence_v02_call() argument
272 ret = sbi_ecall(ext, fid, hmask_val, hbase, start, in __sbi_rfence_v02_call()
276 ret = sbi_ecall(ext, fid, hmask_val, hbase, start, in __sbi_rfence_v02_call()
281 ret = sbi_ecall(ext, fid, hmask_val, hbase, start, in __sbi_rfence_v02_call()
285 ret = sbi_ecall(ext, fid, hmask_val, hbase, start, in __sbi_rfence_v02_call()
289 ret = sbi_ecall(ext, fid, hmask_val, hbase, start, in __sbi_rfence_v02_call()
293 ret = sbi_ecall(ext, fid, hmask_val, hbase, start, in __sbi_rfence_v02_call()
299 result = -EINVAL; in __sbi_rfence_v02_call()
312 unsigned long start, unsigned long size, in __sbi_rfence_v02() argument
329 start, size, arg4, arg5); in __sbi_rfence_v02()
337 hmask_val |= 1UL << (hartid - hbase); in __sbi_rfence_v02()
342 start, size, arg4, arg5); in __sbi_rfence_v02()
351 * sbi_set_timer() - Program the timer for next timer event.
352 * @stime_value: The value after which next timer event should fire.
362 * sbi_send_ipi() - Send an IPI to any hart.
374 * sbi_remote_fence_i() - Execute FENCE.I instruction on given remote harts.
387 * sbi_remote_sfence_vma() - Execute SFENCE.VMA instructions on given remote
390 * @start: Start of the virtual address
396 unsigned long start, in sbi_remote_sfence_vma() argument
400 hart_mask, start, size, 0, 0); in sbi_remote_sfence_vma()
405 * sbi_remote_sfence_vma_asid() - Execute SFENCE.VMA instructions on given
409 * @start: Start of the virtual address
411 * @asid: The value of address space identifier (ASID).
416 unsigned long start, in sbi_remote_sfence_vma_asid() argument
421 hart_mask, start, size, asid, 0); in sbi_remote_sfence_vma_asid()
426 * sbi_remote_hfence_gvma() - Execute HFENCE.GVMA instructions on given remote
429 * @start: Start of the guest physical address
435 unsigned long start, in sbi_remote_hfence_gvma() argument
439 hart_mask, start, size, 0, 0); in sbi_remote_hfence_gvma()
444 * sbi_remote_hfence_gvma_vmid() - Execute HFENCE.GVMA instructions on given
448 * @start: Start of the guest physical address
450 * @vmid: The value of guest ID (VMID).
455 unsigned long start, in sbi_remote_hfence_gvma_vmid() argument
460 hart_mask, start, size, vmid, 0); in sbi_remote_hfence_gvma_vmid()
465 * sbi_remote_hfence_vvma() - Execute HFENCE.VVMA instructions on given remote
468 * @start: Start of the current guest virtual address
474 unsigned long start, in sbi_remote_hfence_vvma() argument
478 hart_mask, start, size, 0, 0); in sbi_remote_hfence_vvma()
483 * sbi_remote_hfence_vvma_asid() - Execute HFENCE.VVMA instructions on given
488 * @start: Start of the current guest virtual address
490 * @asid: The value of address space identifier (ASID).
495 unsigned long start, in sbi_remote_hfence_vvma_asid() argument
500 hart_mask, start, size, asid, 0); in sbi_remote_hfence_vvma_asid()
505 * sbi_probe_extension() - Check if an SBI extension ID is supported or not.
508 * Return: Extension specific nonzero value f yes, -ENOTSUPP otherwise.
517 if (ret.value) in sbi_probe_extension()
518 return ret.value; in sbi_probe_extension()
520 return -ENOTSUPP; in sbi_probe_extension()
530 return ret.value; in __sbi_base_ecall()