Lines Matching refs:handle

93 int vmci_dbell_get_priv_flags(struct vmci_handle handle, u32 *priv_flags)  in vmci_dbell_get_priv_flags()  argument
95 if (priv_flags == NULL || handle.context == VMCI_INVALID_ID) in vmci_dbell_get_priv_flags()
98 if (handle.context == VMCI_HOST_CONTEXT_ID) { in vmci_dbell_get_priv_flags()
102 resource = vmci_resource_by_handle(handle, in vmci_dbell_get_priv_flags()
110 } else if (handle.context == VMCI_HYPERVISOR_CONTEXT_ID) { in vmci_dbell_get_priv_flags()
117 *priv_flags = vmci_context_get_priv_flags(handle.context); in vmci_dbell_get_priv_flags()
237 static int dbell_link(struct vmci_handle handle, u32 notify_idx) in dbell_link() argument
245 link_msg.handle = handle; in dbell_link()
255 static int dbell_unlink(struct vmci_handle handle) in dbell_unlink() argument
263 unlink_msg.handle = handle; in dbell_unlink()
272 static int dbell_notify_as_guest(struct vmci_handle handle, u32 priv_flags) in dbell_notify_as_guest() argument
280 notify_msg.handle = handle; in dbell_notify_as_guest()
300 int vmci_dbell_host_context_notify(u32 src_cid, struct vmci_handle handle) in vmci_dbell_host_context_notify() argument
305 if (vmci_handle_is_invalid(handle)) { in vmci_dbell_host_context_notify()
307 handle.context, handle.resource); in vmci_dbell_host_context_notify()
311 resource = vmci_resource_by_handle(handle, in vmci_dbell_host_context_notify()
315 handle.context, handle.resource); in vmci_dbell_host_context_notify()
412 int vmci_doorbell_create(struct vmci_handle *handle, in vmci_doorbell_create() argument
421 if (!handle || !notify_cb || flags & ~VMCI_FLAG_DELAYED_CB || in vmci_doorbell_create()
431 if (vmci_handle_is_invalid(*handle)) { in vmci_doorbell_create()
446 if (handle->context == VMCI_HOST_CONTEXT_ID || in vmci_doorbell_create()
448 vmci_get_context_id() == handle->context)) { in vmci_doorbell_create()
452 if (!valid_context || handle->resource == VMCI_INVALID_ID) { in vmci_doorbell_create()
454 handle->context, handle->resource); in vmci_doorbell_create()
459 new_handle = *handle; in vmci_doorbell_create()
490 *handle = new_handle; in vmci_doorbell_create()
510 int vmci_doorbell_destroy(struct vmci_handle handle) in vmci_doorbell_destroy() argument
515 if (vmci_handle_is_invalid(handle)) in vmci_doorbell_destroy()
518 resource = vmci_resource_by_handle(handle, in vmci_doorbell_destroy()
522 handle.context, handle.resource); in vmci_doorbell_destroy()
533 result = dbell_unlink(handle); in vmci_doorbell_destroy()
550 handle.context, handle.resource, result); in vmci_doorbell_destroy()