Lines Matching refs:ret
60 bool ret; in is_hypercall_from_ring0() local
65 ret = true; in is_hypercall_from_ring0()
67 ret = false; in is_hypercall_from_ring0()
70 return ret; in is_hypercall_from_ring0()
89 int32_t ret = 0; in hcall_service_vm_offline_cpu() local
98 ret = -1; in hcall_service_vm_offline_cpu()
106 return ret; in hcall_service_vm_offline_cpu()
200 int32_t ret = -1; in hcall_create_vm() local
239 ret = copy_to_gpa(vm, &cv, param1, sizeof(cv)); in hcall_create_vm()
249 if (((ret != 0) || (cv.vmid == ACRN_INVALID_VMID)) && (!is_static_configured_vm(target_vm))) { in hcall_create_vm()
253 return ret; in hcall_create_vm()
269 int32_t ret = -1; in hcall_destroy_vm() local
273 ret = shutdown_vm(target_vm); in hcall_destroy_vm()
276 return ret; in hcall_destroy_vm()
293 int32_t ret = -1; in hcall_start_vm() local
298 ret = 0; in hcall_start_vm()
301 return ret; in hcall_start_vm()
318 int32_t ret = -1; in hcall_pause_vm() local
323 ret = 0; in hcall_pause_vm()
325 return ret; in hcall_pause_vm()
343 int32_t ret = -1; in hcall_reset_vm() local
347 ret = reset_vm(target_vm, COLD_RESET); in hcall_reset_vm()
349 return ret; in hcall_reset_vm()
373 int32_t ret = -1; in hcall_set_vcpu_regs() local
385 ret = 0; in hcall_set_vcpu_regs()
391 return ret; in hcall_set_vcpu_regs()
418 int32_t ret = -1; in hcall_set_irqline() local
435 ret = 0; in hcall_set_irqline()
439 return ret; in hcall_set_irqline()
458 int32_t ret = -1; in hcall_inject_msi() local
464 ret = vlapic_inject_msi(target_vm, msi.msi_addr, msi.msi_data); in hcall_inject_msi()
468 return ret; in hcall_inject_msi()
490 int32_t ret = -1; in hcall_set_ioreq_buffer() local
509 ret = 0; in hcall_set_ioreq_buffer()
514 return ret; in hcall_set_ioreq_buffer()
533 int ret = -1; in hcall_setup_sbuf() local
538 ret = sbuf_setup_common(target_vm, asp.cpu_id, asp.sbuf_id, hva); in hcall_setup_sbuf()
541 return ret; in hcall_setup_sbuf()
549 int ret = -1; in hcall_asyncio_assign() local
553 ret = 0; in hcall_asyncio_assign()
555 return ret; in hcall_asyncio_assign()
563 int ret = -1; in hcall_asyncio_deassign() local
567 ret = 0; in hcall_asyncio_deassign()
569 return ret; in hcall_asyncio_deassign()
587 int32_t ret = -1; in hcall_notify_ioreq_finish() local
604 ret = 0; in hcall_notify_ioreq_finish()
608 return ret; in hcall_notify_ioreq_finish()
669 int32_t ret = -EINVAL; in set_vm_memory_region() local
678 ret = 0; in set_vm_memory_region()
683 ret = 0; in set_vm_memory_region()
688 dev_dbg((ret == 0) ? DBG_LEVEL_HYCALL : LOG_ERROR, in set_vm_memory_region()
692 return ret; in set_vm_memory_region()
713 int32_t ret = -1; in hcall_set_vm_memory_regions() local
726 ret = set_vm_memory_region(vm, target_vm, &mr); in hcall_set_vm_memory_regions()
727 if (ret < 0) { in hcall_set_vm_memory_regions()
737 return ret; in hcall_set_vm_memory_regions()
748 int32_t ret = -EINVAL; in write_protect_page() local
775 ret = 0; in write_protect_page()
781 return ret; in write_protect_page()
799 int32_t ret = -1; in hcall_write_protect_page() local
806 ret = write_protect_page(target_vm, &wp); in hcall_write_protect_page()
812 return ret; in hcall_write_protect_page()
831 int32_t ret = -1; in hcall_gpa_to_hpa() local
842 ret = copy_to_gpa(vm, &v_gpa2hpa, param2, sizeof(v_gpa2hpa)); in hcall_gpa_to_hpa()
848 return ret; in hcall_gpa_to_hpa()
866 int32_t ret = -EINVAL; in hcall_assign_pcidev() local
872 ret = vpci_assign_pcidev(target_vm, &pcidev); in hcall_assign_pcidev()
878 return ret; in hcall_assign_pcidev()
896 int32_t ret = -EINVAL; in hcall_deassign_pcidev() local
902 ret = vpci_deassign_pcidev(target_vm, &pcidev); in hcall_deassign_pcidev()
908 return ret; in hcall_deassign_pcidev()
926 int32_t ret = -EINVAL; in hcall_assign_mmiodev() local
932 ret = deassign_mmio_dev(vm, &mmiodev); in hcall_assign_mmiodev()
933 if (ret == 0) { in hcall_assign_mmiodev()
934 ret = assign_mmio_dev(target_vm, &mmiodev); in hcall_assign_mmiodev()
941 return ret; in hcall_assign_mmiodev()
959 int32_t ret = -EINVAL; in hcall_deassign_mmiodev() local
965 ret = deassign_mmio_dev(target_vm, &mmiodev); in hcall_deassign_mmiodev()
966 if (ret == 0) { in hcall_deassign_mmiodev()
967 ret = assign_mmio_dev(vm, &mmiodev); in hcall_deassign_mmiodev()
974 return ret; in hcall_deassign_mmiodev()
992 int32_t ret = -1; in hcall_set_ptdev_intr_info() local
1016 ret = ptirq_add_intx_remapping(target_vm, irq.intx.virt_pin, in hcall_set_ptdev_intr_info()
1027 return ret; in hcall_set_ptdev_intr_info()
1045 int32_t ret = -1; in hcall_reset_ptdev_intr_info() local
1068 ret = 0; in hcall_reset_ptdev_intr_info()
1079 return ret; in hcall_reset_ptdev_intr_info()
1102 int32_t ret = -1; in hcall_get_cpu_pm_state() local
1122 ret = copy_to_gpa(vm, &px_cnt, param2, sizeof(px_cnt)); in hcall_get_cpu_pm_state()
1147 ret = copy_to_gpa(vm, px_data, param2, sizeof(struct acrn_pstate_data)); in hcall_get_cpu_pm_state()
1151 ret = copy_to_gpa(vm, &(target_vm->pm.cx_cnt), param2, sizeof(target_vm->pm.cx_cnt)); in hcall_get_cpu_pm_state()
1169 ret = copy_to_gpa(vm, cx_data, param2, sizeof(struct acrn_cstate_data)); in hcall_get_cpu_pm_state()
1178 return ret; in hcall_get_cpu_pm_state()
1250 int32_t ret; in hcall_set_callback_vector() local
1254 ret = -EINVAL; in hcall_set_callback_vector()
1257 ret = 0; in hcall_set_callback_vector()
1260 return ret; in hcall_set_callback_vector()
1294 int32_t ret = -EINVAL; in hcall_add_vdev() local
1303 ret = op->create(target_vm, &dev); in hcall_add_vdev()
1309 return ret; in hcall_add_vdev()
1326 int32_t ret = -EINVAL; in hcall_remove_vdev() local
1342 ret = op->destroy(vdev); in hcall_remove_vdev()
1344 ret = 0; in hcall_remove_vdev()
1355 return ret; in hcall_remove_vdev()