Lines Matching refs:context

18  * devices.  Will set the source context if it is invalid.
41 /* Must have a valid destination context. */
42 if (VMCI_INVALID_ID == dst->context)
46 if (VMCI_HYPERVISOR_CONTEXT_ID == dst->context) {
63 /* And we cannot send if the source is the host context. */
64 if (VMCI_HOST_CONTEXT_ID == src->context)
69 * respect it (both context and resource are invalid).
70 * However, if they passed only an invalid context,
72 * should set the real context here before passing it
75 if (VMCI_INVALID_ID == src->context &&
77 src->context = vmci_get_context_id();
85 if (VMCI_HOST_CONTEXT_ID == dst->context) {
92 * way to remove any ambiguity from the host context.
94 if (src->context == VMCI_HYPERVISOR_CONTEXT_ID) {
112 /* If no source context then use the current. */
113 if (VMCI_INVALID_ID == src->context)
114 src->context = vmci_get_context_id();
130 if (VMCI_INVALID_ID == src->context) {
133 * valid context. Otherwise we can use the
134 * host context.
139 src->context = VMCI_HOST_CONTEXT_ID;
152 /* It will have a context if it is meant for a guest. */
153 if (vmci_ctx_exists(dst->context)) {
154 if (VMCI_INVALID_ID == src->context) {
157 * must have a valid context.
159 * context.
165 src->context = VMCI_HOST_CONTEXT_ID;
166 } else if (VMCI_CONTEXT_IS_VM(src->context) &&
167 src->context != dst->context) {
173 * VM since there is a valid context.
185 * without an active context, and we can't
208 /* If no source context then use the current context. */
209 if (VMCI_INVALID_ID == src->context)
210 src->context = vmci_get_context_id();