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

1 // SPDX-License-Identifier: GPL-2.0-only
24 unsigned long start, unsigned long size,
34 * There is no maximum hartid concept in RISC-V and NR_CPUS must not be 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.
67 * Returns the value read from console.
80 * sbi_shutdown() - Remove all the harts from executing supervisor code.
91 * __sbi_set_timer_v01() - Program the timer for next timer event.
92 * @stime_value: The value after which next timer event should fire.
115 unsigned long start, unsigned long size, in __sbi_rfence_v01() argument
133 (unsigned long)&hart_mask, start, size, in __sbi_rfence_v01()
138 (unsigned long)&hart_mask, start, size, in __sbi_rfence_v01()
143 result = -EINVAL; in __sbi_rfence_v01()
167 unsigned long start, unsigned long size, in __sbi_rfence_v01() argument
205 unsigned long hbase, unsigned long start, in __sbi_rfence_v02_call() argument
218 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
222 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
227 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
231 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
235 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
239 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
245 result = -EINVAL; in __sbi_rfence_v02_call()
258 unsigned long start, unsigned long size, in __sbi_rfence_v02() argument
273 hbase, start, size, arg4, arg5); in __sbi_rfence_v02()
279 hmask <<= hbase - hartid; in __sbi_rfence_v02()
289 hmask |= BIT(hartid - hbase); in __sbi_rfence_v02()
294 start, size, arg4, arg5); in __sbi_rfence_v02()
303 * sbi_set_timer() - Program the timer for next timer event.
304 * @stime_value: The value after which next timer event should fire.
314 * sbi_send_ipi() - Send an IPI to any hart.
324 * sbi_remote_fence_i() - Execute FENCE.I instruction on given remote harts.
337 * sbi_remote_sfence_vma_asid() - Execute SFENCE.VMA instructions on given
341 * @start: Start of the virtual address
343 * @asid: The value of address space identifier (ASID), or FLUSH_TLB_NO_ASID
349 unsigned long start, in sbi_remote_sfence_vma_asid() argument
355 cpu_mask, start, size, 0, 0); in sbi_remote_sfence_vma_asid()
358 cpu_mask, start, size, asid, 0); in sbi_remote_sfence_vma_asid()
363 * sbi_remote_hfence_gvma() - Execute HFENCE.GVMA instructions on given remote
366 * @start: Start of the guest physical address
372 unsigned long start, in sbi_remote_hfence_gvma() argument
376 cpu_mask, start, size, 0, 0); in sbi_remote_hfence_gvma()
381 * sbi_remote_hfence_gvma_vmid() - Execute HFENCE.GVMA instructions on given
385 * @start: Start of the guest physical address
387 * @vmid: The value of guest ID (VMID).
392 unsigned long start, in sbi_remote_hfence_gvma_vmid() argument
397 cpu_mask, start, size, vmid, 0); in sbi_remote_hfence_gvma_vmid()
402 * sbi_remote_hfence_vvma() - Execute HFENCE.VVMA instructions on given remote
405 * @start: Start of the current guest virtual address
411 unsigned long start, in sbi_remote_hfence_vvma() argument
415 cpu_mask, start, size, 0, 0); in sbi_remote_hfence_vvma()
420 * sbi_remote_hfence_vvma_asid() - Execute HFENCE.VVMA instructions on given
425 * @start: Start of the current guest virtual address
427 * @asid: The value of address space identifier (ASID).
432 unsigned long start, in sbi_remote_hfence_vvma_asid() argument
437 cpu_mask, start, size, asid, 0); in sbi_remote_hfence_vvma_asid()
468 * sbi_probe_extension() - Check if an SBI extension ID is supported or not.
471 * Return: 1 or an extension specific nonzero value if yes, 0 otherwise.
480 return ret.value; in sbi_probe_extension()
527 return -EOPNOTSUPP; in sbi_debug_console_write()
535 num_bytes = PAGE_SIZE - offset_in_page(bytes); in sbi_debug_console_write()
546 return -EIO; in sbi_debug_console_write()
547 return ret.error ? sbi_err_map_linux_errno(ret.error) : ret.value; in sbi_debug_console_write()
556 return -EOPNOTSUPP; in sbi_debug_console_read()
564 num_bytes = PAGE_SIZE - offset_in_page(bytes); in sbi_debug_console_read()
575 return -EIO; in sbi_debug_console_read()
576 return ret.error ? sbi_err_map_linux_errno(ret.error) : ret.value; in sbi_debug_console_read()