Lines Matching full:status
48 u64 status; in hv_call_withdraw_memory() local
64 status = hv_do_rep_hypercall(HVCALL_WITHDRAW_MEMORY, in hv_call_withdraw_memory()
70 completed = hv_repcomp(status); in hv_call_withdraw_memory()
75 if (!hv_result_success(status)) { in hv_call_withdraw_memory()
76 if (hv_result(status) == HV_STATUS_NO_RESOURCES) in hv_call_withdraw_memory()
77 status = HV_STATUS_SUCCESS; in hv_call_withdraw_memory()
85 return hv_result_to_errno(status); in hv_call_withdraw_memory()
95 u64 status; in hv_call_create_partition() local
114 status = hv_do_hypercall(HVCALL_CREATE_PARTITION, in hv_call_create_partition()
117 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_create_partition()
118 if (hv_result_success(status)) in hv_call_create_partition()
121 ret = hv_result_to_errno(status); in hv_call_create_partition()
135 u64 status; in hv_call_initialize_partition() local
146 status = hv_do_fast_hypercall8(HVCALL_INITIALIZE_PARTITION, in hv_call_initialize_partition()
149 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_initialize_partition()
150 ret = hv_result_to_errno(status); in hv_call_initialize_partition()
162 u64 status; in hv_call_finalize_partition() local
165 status = hv_do_fast_hypercall8(HVCALL_FINALIZE_PARTITION, in hv_call_finalize_partition()
168 return hv_result_to_errno(status); in hv_call_finalize_partition()
174 u64 status; in hv_call_delete_partition() local
177 status = hv_do_fast_hypercall8(HVCALL_DELETE_PARTITION, *(u64 *)&input); in hv_call_delete_partition()
179 return hv_result_to_errno(status); in hv_call_delete_partition()
187 u64 status, *pfnlist; in hv_do_map_gpa_hcall() local
235 status = hv_do_rep_hypercall(HVCALL_MAP_GPA_PAGES, rep_count, 0, in hv_do_map_gpa_hcall()
239 completed = hv_repcomp(status); in hv_do_map_gpa_hcall()
241 if (hv_result(status) == HV_STATUS_INSUFFICIENT_MEMORY) { in hv_do_map_gpa_hcall()
247 } else if (!hv_result_success(status)) { in hv_do_map_gpa_hcall()
248 ret = hv_result_to_errno(status); in hv_do_map_gpa_hcall()
293 u64 status, page_count = page_count_4k; in hv_call_unmap_gpa_pages() local
318 status = hv_do_rep_hypercall(HVCALL_UNMAP_GPA_PAGES, rep_count, in hv_call_unmap_gpa_pages()
322 completed = hv_repcomp(status); in hv_call_unmap_gpa_pages()
323 if (!hv_result_success(status)) { in hv_call_unmap_gpa_pages()
324 ret = hv_result_to_errno(status); in hv_call_unmap_gpa_pages()
344 u64 status = 0; in hv_call_get_gpa_access_states() local
358 status = hv_do_rep_hypercall(HVCALL_GET_GPA_PAGES_ACCESS_STATES, rep_count, in hv_call_get_gpa_access_states()
360 if (!hv_result_success(status)) { in hv_call_get_gpa_access_states()
364 completed = hv_repcomp(status); in hv_call_get_gpa_access_states()
374 return hv_result_to_errno(status); in hv_call_get_gpa_access_states()
383 u64 status; in hv_call_assert_virtual_interrupt() local
392 status = hv_do_hypercall(HVCALL_ASSERT_VIRTUAL_INTERRUPT, input, NULL); in hv_call_assert_virtual_interrupt()
395 return hv_result_to_errno(status); in hv_call_assert_virtual_interrupt()
401 u64 status; in hv_call_delete_vp() local
406 status = hv_do_fast_hypercall16(HVCALL_DELETE_VP, in hv_call_delete_vp()
409 return hv_result_to_errno(status); in hv_call_delete_vp()
421 u64 status; in hv_call_get_vp_state() local
449 status = hv_do_hypercall(control, input, output); in hv_call_get_vp_state()
451 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_get_vp_state()
452 if (hv_result_success(status) && ret_output) in hv_call_get_vp_state()
456 ret = hv_result_to_errno(status); in hv_call_get_vp_state()
474 u64 status; in hv_call_set_vp_state() local
512 status = hv_do_hypercall(control, input, NULL); in hv_call_set_vp_state()
514 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_set_vp_state()
516 ret = hv_result_to_errno(status); in hv_call_set_vp_state()
534 u64 status; in hv_call_map_vp_state_page() local
549 status = hv_do_hypercall(HVCALL_MAP_VP_STATE_PAGE, input, output); in hv_call_map_vp_state_page()
551 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_map_vp_state_page()
552 if (hv_result_success(status)) in hv_call_map_vp_state_page()
555 ret = hv_result_to_errno(status); in hv_call_map_vp_state_page()
571 u64 status; in hv_call_unmap_vp_state_page() local
585 status = hv_do_hypercall(HVCALL_UNMAP_VP_STATE_PAGE, input, NULL); in hv_call_unmap_vp_state_page()
589 return hv_result_to_errno(status); in hv_call_unmap_vp_state_page()
595 int status; in hv_call_clear_virtual_interrupt() local
597 status = hv_do_fast_hypercall8(HVCALL_CLEAR_VIRTUAL_INTERRUPT, in hv_call_clear_virtual_interrupt()
600 return hv_result_to_errno(status); in hv_call_clear_virtual_interrupt()
612 int status; in hv_call_create_port() local
626 status = hv_do_hypercall(HVCALL_CREATE_PORT, input, NULL); in hv_call_create_port()
628 if (hv_result_success(status)) in hv_call_create_port()
631 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_create_port()
632 ret = hv_result_to_errno(status); in hv_call_create_port()
646 int status; in hv_call_delete_port() local
650 status = hv_do_fast_hypercall16(HVCALL_DELETE_PORT, in hv_call_delete_port()
654 return hv_result_to_errno(status); in hv_call_delete_port()
666 int ret = 0, status; in hv_call_connect_port() local
679 status = hv_do_hypercall(HVCALL_CONNECT_PORT, input, NULL); in hv_call_connect_port()
682 if (hv_result_success(status)) in hv_call_connect_port()
685 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_connect_port()
686 ret = hv_result_to_errno(status); in hv_call_connect_port()
701 int status; in hv_call_disconnect_port() local
706 status = hv_do_fast_hypercall16(HVCALL_DISCONNECT_PORT, in hv_call_disconnect_port()
710 return hv_result_to_errno(status); in hv_call_disconnect_port()
717 int status; in hv_call_notify_port_ring_empty() local
720 status = hv_do_fast_hypercall8(HVCALL_NOTIFY_PORT_RING_EMPTY, in hv_call_notify_port_ring_empty()
723 return hv_result_to_errno(status); in hv_call_notify_port_ring_empty()
733 u64 status, pfn; in hv_call_map_stat_page() local
745 status = hv_do_hypercall(HVCALL_MAP_STATS_PAGE, input, output); in hv_call_map_stat_page()
749 if (hv_result(status) != HV_STATUS_INSUFFICIENT_MEMORY) { in hv_call_map_stat_page()
750 ret = hv_result_to_errno(status); in hv_call_map_stat_page()
751 if (hv_result_success(status)) in hv_call_map_stat_page()
772 u64 status; in hv_call_unmap_stat_page() local
781 status = hv_do_hypercall(HVCALL_UNMAP_STATS_PAGE, input, NULL); in hv_call_unmap_stat_page()
784 return hv_result_to_errno(status); in hv_call_unmap_stat_page()
792 u64 status; in hv_call_modify_spa_host_access() local
836 status = hv_do_rep_hypercall(code, rep_count, 0, input_page, in hv_call_modify_spa_host_access()
840 completed = hv_repcomp(status); in hv_call_modify_spa_host_access()
842 if (!hv_result_success(status)) in hv_call_modify_spa_host_access()
843 return hv_result_to_errno(status); in hv_call_modify_spa_host_access()