Lines Matching full:status

49 	u64 status;  in hv_call_withdraw_memory()  local
65 status = hv_do_rep_hypercall(HVCALL_WITHDRAW_MEMORY, in hv_call_withdraw_memory()
71 completed = hv_repcomp(status); in hv_call_withdraw_memory()
76 if (!hv_result_success(status)) { in hv_call_withdraw_memory()
77 if (hv_result(status) == HV_STATUS_NO_RESOURCES) in hv_call_withdraw_memory()
78 status = HV_STATUS_SUCCESS; in hv_call_withdraw_memory()
86 return hv_result_to_errno(status); in hv_call_withdraw_memory()
96 u64 status; in hv_call_create_partition() local
115 status = hv_do_hypercall(HVCALL_CREATE_PARTITION, in hv_call_create_partition()
118 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_create_partition()
119 if (hv_result_success(status)) in hv_call_create_partition()
122 ret = hv_result_to_errno(status); in hv_call_create_partition()
136 u64 status; in hv_call_initialize_partition() local
147 status = hv_do_fast_hypercall8(HVCALL_INITIALIZE_PARTITION, in hv_call_initialize_partition()
150 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_initialize_partition()
151 ret = hv_result_to_errno(status); in hv_call_initialize_partition()
163 u64 status; in hv_call_finalize_partition() local
166 status = hv_do_fast_hypercall8(HVCALL_FINALIZE_PARTITION, in hv_call_finalize_partition()
169 return hv_result_to_errno(status); in hv_call_finalize_partition()
175 u64 status; in hv_call_delete_partition() local
178 status = hv_do_fast_hypercall8(HVCALL_DELETE_PARTITION, *(u64 *)&input); in hv_call_delete_partition()
180 return hv_result_to_errno(status); in hv_call_delete_partition()
188 u64 status, *pfnlist; in hv_do_map_gpa_hcall() local
236 status = hv_do_rep_hypercall(HVCALL_MAP_GPA_PAGES, rep_count, 0, in hv_do_map_gpa_hcall()
240 completed = hv_repcomp(status); in hv_do_map_gpa_hcall()
242 if (hv_result(status) == HV_STATUS_INSUFFICIENT_MEMORY) { in hv_do_map_gpa_hcall()
248 } else if (!hv_result_success(status)) { in hv_do_map_gpa_hcall()
249 ret = hv_result_to_errno(status); in hv_do_map_gpa_hcall()
294 u64 status, page_count = page_count_4k; in hv_call_unmap_gpa_pages() local
319 status = hv_do_rep_hypercall(HVCALL_UNMAP_GPA_PAGES, rep_count, in hv_call_unmap_gpa_pages()
323 completed = hv_repcomp(status); in hv_call_unmap_gpa_pages()
324 if (!hv_result_success(status)) { in hv_call_unmap_gpa_pages()
325 ret = hv_result_to_errno(status); in hv_call_unmap_gpa_pages()
345 u64 status = 0; in hv_call_get_gpa_access_states() local
359 status = hv_do_rep_hypercall(HVCALL_GET_GPA_PAGES_ACCESS_STATES, rep_count, in hv_call_get_gpa_access_states()
361 if (!hv_result_success(status)) { in hv_call_get_gpa_access_states()
365 completed = hv_repcomp(status); in hv_call_get_gpa_access_states()
375 return hv_result_to_errno(status); in hv_call_get_gpa_access_states()
384 u64 status; in hv_call_assert_virtual_interrupt() local
393 status = hv_do_hypercall(HVCALL_ASSERT_VIRTUAL_INTERRUPT, input, NULL); in hv_call_assert_virtual_interrupt()
396 return hv_result_to_errno(status); in hv_call_assert_virtual_interrupt()
402 u64 status; in hv_call_delete_vp() local
407 status = hv_do_fast_hypercall16(HVCALL_DELETE_VP, in hv_call_delete_vp()
410 return hv_result_to_errno(status); in hv_call_delete_vp()
422 u64 status; in hv_call_get_vp_state() local
450 status = hv_do_hypercall(control, input, output); in hv_call_get_vp_state()
452 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_get_vp_state()
453 if (hv_result_success(status) && ret_output) in hv_call_get_vp_state()
457 ret = hv_result_to_errno(status); in hv_call_get_vp_state()
475 u64 status; in hv_call_set_vp_state() local
513 status = hv_do_hypercall(control, input, NULL); in hv_call_set_vp_state()
515 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_set_vp_state()
517 ret = hv_result_to_errno(status); in hv_call_set_vp_state()
535 u64 status; in hv_call_map_vp_state_page() local
550 status = hv_do_hypercall(HVCALL_MAP_VP_STATE_PAGE, input, output); in hv_call_map_vp_state_page()
552 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_map_vp_state_page()
553 if (hv_result_success(status)) in hv_call_map_vp_state_page()
556 ret = hv_result_to_errno(status); in hv_call_map_vp_state_page()
572 u64 status; in hv_call_unmap_vp_state_page() local
586 status = hv_do_hypercall(HVCALL_UNMAP_VP_STATE_PAGE, input, NULL); in hv_call_unmap_vp_state_page()
590 return hv_result_to_errno(status); in hv_call_unmap_vp_state_page()
596 int status; in hv_call_clear_virtual_interrupt() local
598 status = hv_do_fast_hypercall8(HVCALL_CLEAR_VIRTUAL_INTERRUPT, in hv_call_clear_virtual_interrupt()
601 return hv_result_to_errno(status); in hv_call_clear_virtual_interrupt()
613 int status; in hv_call_create_port() local
627 status = hv_do_hypercall(HVCALL_CREATE_PORT, input, NULL); in hv_call_create_port()
629 if (hv_result_success(status)) in hv_call_create_port()
632 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_create_port()
633 ret = hv_result_to_errno(status); in hv_call_create_port()
647 int status; in hv_call_delete_port() local
651 status = hv_do_fast_hypercall16(HVCALL_DELETE_PORT, in hv_call_delete_port()
655 return hv_result_to_errno(status); in hv_call_delete_port()
667 int ret = 0, status; in hv_call_connect_port() local
680 status = hv_do_hypercall(HVCALL_CONNECT_PORT, input, NULL); in hv_call_connect_port()
683 if (hv_result_success(status)) in hv_call_connect_port()
686 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_connect_port()
687 ret = hv_result_to_errno(status); in hv_call_connect_port()
702 int status; in hv_call_disconnect_port() local
707 status = hv_do_fast_hypercall16(HVCALL_DISCONNECT_PORT, in hv_call_disconnect_port()
711 return hv_result_to_errno(status); in hv_call_disconnect_port()
718 int status; in hv_call_notify_port_ring_empty() local
721 status = hv_do_fast_hypercall8(HVCALL_NOTIFY_PORT_RING_EMPTY, in hv_call_notify_port_ring_empty()
724 return hv_result_to_errno(status); in hv_call_notify_port_ring_empty()
734 u64 status, pfn; in hv_call_map_stat_page() local
746 status = hv_do_hypercall(HVCALL_MAP_STATS_PAGE, input, output); in hv_call_map_stat_page()
750 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_map_stat_page()
751 ret = hv_result_to_errno(status); in hv_call_map_stat_page()
752 if (hv_result_success(status)) in hv_call_map_stat_page()
773 u64 status; in hv_call_unmap_stat_page() local
782 status = hv_do_hypercall(HVCALL_UNMAP_STATS_PAGE, input, NULL); in hv_call_unmap_stat_page()
785 return hv_result_to_errno(status); in hv_call_unmap_stat_page()
793 u64 status; in hv_call_modify_spa_host_access() local
837 status = hv_do_rep_hypercall(code, rep_count, 0, input_page, in hv_call_modify_spa_host_access()
841 completed = hv_repcomp(status); in hv_call_modify_spa_host_access()
843 if (!hv_result_success(status)) in hv_call_modify_spa_host_access()
844 return hv_result_to_errno(status); in hv_call_modify_spa_host_access()