Lines Matching refs:handle

235 			if (!vmci_handle_is_equal(node->handle, context_handle))  in ctx_fire_notification()
629 notifier->handle = vmci_make_handle(remote_cid, VMCI_EVENT_HANDLER); in vmci_ctx_add_notification()
634 if (vmci_handle_is_equal(n->handle, notifier->handle)) { in vmci_ctx_add_notification()
664 struct vmci_handle handle; in vmci_ctx_remove_notification() local
671 handle = vmci_make_handle(remote_cid, VMCI_EVENT_HANDLER); in vmci_ctx_remove_notification()
676 if (vmci_handle_is_equal(notifier->handle, handle)) { in vmci_ctx_remove_notification()
720 notifiers[i++] = entry->handle.context; in vmci_ctx_get_chkpt_notifiers()
747 dbells[i].handle = vmci_handle_arr_get_entry( in vmci_ctx_get_chkpt_doorbells()
899 struct vmci_handle handle; in vmci_ctx_rcv_notifications_release() local
908 handle = vmci_handle_arr_remove_tail( in vmci_ctx_rcv_notifications_release()
910 while (!vmci_handle_is_invalid(handle)) { in vmci_ctx_rcv_notifications_release()
912 handle)) { in vmci_ctx_rcv_notifications_release()
914 &db_handle_array, handle); in vmci_ctx_rcv_notifications_release()
916 handle = vmci_handle_arr_remove_tail( in vmci_ctx_rcv_notifications_release()
939 int vmci_ctx_dbell_create(u32 context_id, struct vmci_handle handle) in vmci_ctx_dbell_create() argument
944 if (context_id == VMCI_INVALID_ID || vmci_handle_is_invalid(handle)) in vmci_ctx_dbell_create()
952 if (!vmci_handle_arr_has_entry(context->doorbell_array, handle)) { in vmci_ctx_dbell_create()
953 vmci_handle_arr_append_entry(&context->doorbell_array, handle); in vmci_ctx_dbell_create()
969 int vmci_ctx_dbell_destroy(u32 context_id, struct vmci_handle handle) in vmci_ctx_dbell_destroy() argument
974 if (context_id == VMCI_INVALID_ID || vmci_handle_is_invalid(handle)) in vmci_ctx_dbell_destroy()
983 vmci_handle_arr_remove_entry(context->doorbell_array, handle); in vmci_ctx_dbell_destroy()
984 vmci_handle_arr_remove_entry(context->pending_doorbell_array, handle); in vmci_ctx_dbell_destroy()
1000 struct vmci_handle handle; in vmci_ctx_dbell_destroy_all() local
1012 handle = vmci_handle_arr_remove_tail(arr); in vmci_ctx_dbell_destroy_all()
1013 } while (!vmci_handle_is_invalid(handle)); in vmci_ctx_dbell_destroy_all()
1016 handle = vmci_handle_arr_remove_tail(arr); in vmci_ctx_dbell_destroy_all()
1017 } while (!vmci_handle_is_invalid(handle)); in vmci_ctx_dbell_destroy_all()
1036 struct vmci_handle handle, in vmci_ctx_notify_dbell() argument
1042 if (vmci_handle_is_invalid(handle)) in vmci_ctx_notify_dbell()
1046 dst_context = vmci_ctx_get(handle.context); in vmci_ctx_notify_dbell()
1048 pr_devel("Invalid context (ID=0x%x)\n", handle.context); in vmci_ctx_notify_dbell()
1052 if (src_cid != handle.context) { in vmci_ctx_notify_dbell()
1056 VMCI_CONTEXT_IS_VM(handle.context)) { in vmci_ctx_notify_dbell()
1058 src_cid, handle.context); in vmci_ctx_notify_dbell()
1063 result = vmci_dbell_get_priv_flags(handle, &dst_priv_flags); in vmci_ctx_notify_dbell()
1066 handle.context, handle.resource); in vmci_ctx_notify_dbell()
1081 if (handle.context == VMCI_HOST_CONTEXT_ID) { in vmci_ctx_notify_dbell()
1082 result = vmci_dbell_host_context_notify(src_cid, handle); in vmci_ctx_notify_dbell()
1087 handle)) { in vmci_ctx_notify_dbell()
1092 handle)) { in vmci_ctx_notify_dbell()
1095 handle); in vmci_ctx_notify_dbell()
1121 int vmci_ctx_qp_create(struct vmci_ctx *context, struct vmci_handle handle) in vmci_ctx_qp_create() argument
1125 if (context == NULL || vmci_handle_is_invalid(handle)) in vmci_ctx_qp_create()
1128 if (!vmci_handle_arr_has_entry(context->queue_pair_array, handle)) { in vmci_ctx_qp_create()
1130 handle); in vmci_ctx_qp_create()
1143 int vmci_ctx_qp_destroy(struct vmci_ctx *context, struct vmci_handle handle) in vmci_ctx_qp_destroy() argument
1147 if (context == NULL || vmci_handle_is_invalid(handle)) in vmci_ctx_qp_destroy()
1150 hndl = vmci_handle_arr_remove_entry(context->queue_pair_array, handle); in vmci_ctx_qp_destroy()
1160 bool vmci_ctx_qp_exists(struct vmci_ctx *context, struct vmci_handle handle) in vmci_ctx_qp_exists() argument
1162 if (context == NULL || vmci_handle_is_invalid(handle)) in vmci_ctx_qp_exists()
1165 return vmci_handle_arr_has_entry(context->queue_pair_array, handle); in vmci_ctx_qp_exists()