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

1 // SPDX-License-Identifier: GPL-2.0-only
24 unsigned long start, unsigned long size,
47 ret.value = a1; in sbi_ecall()
59 return -EPERM; in sbi_err_map_linux_errno()
61 return -EINVAL; in sbi_err_map_linux_errno()
63 return -EFAULT; in sbi_err_map_linux_errno()
67 return -ENOTSUPP; in sbi_err_map_linux_errno()
79 * There is no maximum hartid concept in RISC-V and NR_CPUS must not be in __sbi_v01_cpumask_to_hartmask()
98 * sbi_console_putchar() - Writes given character to the console device.
110 * sbi_console_getchar() - Reads a byte from console device.
112 * Returns the value read from console.
125 * sbi_shutdown() - Remove all the harts from executing supervisor code.
136 * __sbi_set_timer_v01() - Program the timer for next timer event.
137 * @stime_value: The value after which next timer event should fire.
160 unsigned long start, unsigned long size, in __sbi_rfence_v01() argument
178 (unsigned long)&hart_mask, start, size, in __sbi_rfence_v01()
183 (unsigned long)&hart_mask, start, size, in __sbi_rfence_v01()
188 result = -EINVAL; in __sbi_rfence_v01()
212 unsigned long start, unsigned long size, in __sbi_rfence_v01() argument
250 unsigned long hbase, unsigned long start, in __sbi_rfence_v02_call() argument
263 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
267 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
272 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
276 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
280 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
284 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
290 result = -EINVAL; in __sbi_rfence_v02_call()
303 unsigned long start, unsigned long size, in __sbi_rfence_v02() argument
318 hbase, start, size, arg4, arg5); in __sbi_rfence_v02()
324 hmask <<= hbase - hartid; in __sbi_rfence_v02()
334 hmask |= BIT(hartid - hbase); in __sbi_rfence_v02()
339 start, size, arg4, arg5); in __sbi_rfence_v02()
348 * sbi_set_timer() - Program the timer for next timer event.
349 * @stime_value: The value after which next timer event should fire.
359 * sbi_send_ipi() - Send an IPI to any hart.
369 * sbi_remote_fence_i() - Execute FENCE.I instruction on given remote harts.
382 * sbi_remote_sfence_vma_asid() - Execute SFENCE.VMA instructions on given
386 * @start: Start of the virtual address
388 * @asid: The value of address space identifier (ASID), or FLUSH_TLB_NO_ASID
394 unsigned long start, in sbi_remote_sfence_vma_asid() argument
400 cpu_mask, start, size, 0, 0); in sbi_remote_sfence_vma_asid()
403 cpu_mask, start, size, asid, 0); in sbi_remote_sfence_vma_asid()
408 * sbi_remote_hfence_gvma() - Execute HFENCE.GVMA instructions on given remote
411 * @start: Start of the guest physical address
417 unsigned long start, in sbi_remote_hfence_gvma() argument
421 cpu_mask, start, size, 0, 0); in sbi_remote_hfence_gvma()
426 * sbi_remote_hfence_gvma_vmid() - Execute HFENCE.GVMA instructions on given
430 * @start: Start of the guest physical address
432 * @vmid: The value of guest ID (VMID).
437 unsigned long start, in sbi_remote_hfence_gvma_vmid() argument
442 cpu_mask, start, size, vmid, 0); in sbi_remote_hfence_gvma_vmid()
447 * sbi_remote_hfence_vvma() - Execute HFENCE.VVMA instructions on given remote
450 * @start: Start of the current guest virtual address
456 unsigned long start, in sbi_remote_hfence_vvma() argument
460 cpu_mask, start, size, 0, 0); in sbi_remote_hfence_vvma()
465 * sbi_remote_hfence_vvma_asid() - Execute HFENCE.VVMA instructions on given
470 * @start: Start of the current guest virtual address
472 * @asid: The value of address space identifier (ASID).
477 unsigned long start, in sbi_remote_hfence_vvma_asid() argument
482 cpu_mask, start, size, asid, 0); in sbi_remote_hfence_vvma_asid()
513 * sbi_probe_extension() - Check if an SBI extension ID is supported or not.
516 * Return: 1 or an extension specific nonzero value if yes, 0 otherwise.
525 return ret.value; in sbi_probe_extension()
537 return ret.value; in __sbi_base_ecall()
583 return -EOPNOTSUPP; in sbi_debug_console_write()
591 num_bytes = PAGE_SIZE - offset_in_page(bytes); in sbi_debug_console_write()
602 return -EIO; in sbi_debug_console_write()
603 return ret.error ? sbi_err_map_linux_errno(ret.error) : ret.value; in sbi_debug_console_write()
612 return -EOPNOTSUPP; in sbi_debug_console_read()
620 num_bytes = PAGE_SIZE - offset_in_page(bytes); in sbi_debug_console_read()
631 return -EIO; in sbi_debug_console_read()
632 return ret.error ? sbi_err_map_linux_errno(ret.error) : ret.value; in sbi_debug_console_read()