Lines Matching refs:result
247 int result; in ctx_fire_notification() local
257 result = vmci_datagram_dispatch(VMCI_HYPERVISOR_CONTEXT_ID, in ctx_fire_notification()
259 if (result < VMCI_SUCCESS) { in ctx_fire_notification()
602 int result; in vmci_ctx_add_notification() local
612 result = VMCI_ERROR_DST_UNREACHABLE; in vmci_ctx_add_notification()
617 result = VMCI_ERROR_NO_ACCESS; in vmci_ctx_add_notification()
623 result = VMCI_ERROR_NO_MEM; in vmci_ctx_add_notification()
642 result = VMCI_ERROR_ALREADY_EXISTS; in vmci_ctx_add_notification()
647 result = VMCI_SUCCESS; in vmci_ctx_add_notification()
651 result = VMCI_ERROR_NO_MEM; in vmci_ctx_add_notification()
658 return result; in vmci_ctx_add_notification()
773 int result; in vmci_ctx_get_chkpt_state() local
783 result = vmci_ctx_get_chkpt_notifiers(context, buf_size, pbuf); in vmci_ctx_get_chkpt_state()
794 result = VMCI_SUCCESS; in vmci_ctx_get_chkpt_state()
798 result = vmci_ctx_get_chkpt_doorbells(context, buf_size, pbuf); in vmci_ctx_get_chkpt_state()
803 result = VMCI_ERROR_INVALID_ARGS; in vmci_ctx_get_chkpt_state()
810 return result; in vmci_ctx_get_chkpt_state()
823 int result = VMCI_SUCCESS; in vmci_ctx_set_chkpt_state() local
840 for (i = 0; i < num_ids && result == VMCI_SUCCESS; i++) { in vmci_ctx_set_chkpt_state()
842 result = vmci_ctx_add_notification(context_id, current_id); in vmci_ctx_set_chkpt_state()
843 if (result != VMCI_SUCCESS) in vmci_ctx_set_chkpt_state()
846 if (result != VMCI_SUCCESS) in vmci_ctx_set_chkpt_state()
848 cpt_type, result); in vmci_ctx_set_chkpt_state()
850 return result; in vmci_ctx_set_chkpt_state()
865 int result = VMCI_SUCCESS; in vmci_ctx_rcv_notifications_get() local
879 result = VMCI_ERROR_NO_MEM; in vmci_ctx_rcv_notifications_get()
886 return result; in vmci_ctx_rcv_notifications_get()
947 int result; in vmci_ctx_dbell_create() local
958 result = vmci_handle_arr_append_entry(&context->doorbell_array, in vmci_ctx_dbell_create()
961 result = VMCI_ERROR_DUPLICATE_ENTRY; in vmci_ctx_dbell_create()
966 return result; in vmci_ctx_dbell_create()
1044 int result; in vmci_ctx_notify_dbell() local
1063 result = VMCI_ERROR_DST_UNREACHABLE; in vmci_ctx_notify_dbell()
1067 result = vmci_dbell_get_priv_flags(handle, &dst_priv_flags); in vmci_ctx_notify_dbell()
1068 if (result < VMCI_SUCCESS) { in vmci_ctx_notify_dbell()
1080 result = VMCI_ERROR_NO_ACCESS; in vmci_ctx_notify_dbell()
1086 result = vmci_dbell_host_context_notify(src_cid, handle); in vmci_ctx_notify_dbell()
1092 result = VMCI_ERROR_NOT_FOUND; in vmci_ctx_notify_dbell()
1097 result = vmci_handle_arr_append_entry( in vmci_ctx_notify_dbell()
1100 if (result == VMCI_SUCCESS) { in vmci_ctx_notify_dbell()
1105 result = VMCI_SUCCESS; in vmci_ctx_notify_dbell()
1114 return result; in vmci_ctx_notify_dbell()
1128 int result; in vmci_ctx_qp_create() local
1134 result = vmci_handle_arr_append_entry( in vmci_ctx_qp_create()
1137 result = VMCI_ERROR_DUPLICATE_ENTRY; in vmci_ctx_qp_create()
1139 return result; in vmci_ctx_qp_create()