Lines Matching defs:context_id

854 	u32 context_id = vmci_get_context_id();
858 ev.msg.hdr.dst = vmci_make_handle(context_id, VMCI_EVENT_HANDLER);
864 ev.payload.peer_id = context_id;
893 u32 context_id = vmci_get_context_id();
895 handle = vmci_make_handle(context_id, VMCI_INVALID_ID);
1191 u32 context_id = vmci_get_context_id();
1202 if (queue_pair_entry->qp.handle.context != context_id ||
1204 queue_pair_entry->qp.peer != context_id)) {
1294 const u32 context_id = vmci_ctx_get_id(context);
1308 if (handle.context != context_id && handle.context != peer)
1311 if (VMCI_CONTEXT_IS_VM(context_id) && VMCI_CONTEXT_IS_VM(peer))
1318 if (is_local && peer != VMCI_INVALID_ID && context_id != peer)
1347 entry->create_id = context_id;
1523 const u32 context_id = vmci_ctx_get_id(context);
1533 context_id != entry->create_id) {
1536 } else if (context_id == entry->create_id ||
1537 context_id == entry->attach_id) {
1541 if (VMCI_CONTEXT_IS_VM(context_id) &&
1565 if (entry->qp.peer != VMCI_INVALID_ID && entry->qp.peer != context_id)
1577 } else if (context_id == VMCI_HOST_CONTEXT_ID) {
1597 if (context_id != VMCI_HOST_CONTEXT_ID) {
1613 if (context_id != VMCI_HOST_CONTEXT_ID) {
1664 qp_notify_peer(true, entry->qp.handle, context_id,
1672 entry->attach_id = context_id;
1709 const u32 context_id = vmci_ctx_get_id(context);
1718 !context || context_id == VMCI_INVALID_ID ||
1735 context_id, handle.context, handle.resource);
1760 *swap = (context_id == VMCI_HOST_CONTEXT_ID) &&
1970 const u32 context_id = vmci_ctx_get_id(context);
1973 context_id == VMCI_INVALID_ID)
1988 context_id, handle.context, handle.resource);
2005 if (entry->create_id != context_id &&
2007 entry->attach_id != context_id)) {
2039 qp_notify_peer(true, handle, context_id, entry->create_id);
2085 const u32 context_id = vmci_ctx_get_id(context);
2091 context_id == VMCI_INVALID_ID) {
2099 context_id, handle.context, handle.resource);
2107 context_id, handle.context, handle.resource);
2112 if (context_id != entry->create_id && context_id != entry->attach_id) {
2117 if (context_id == entry->create_id) {
2128 if (context_id != VMCI_HOST_CONTEXT_ID) {
2188 qp_notify_peer(false, handle, context_id, peer_id);
2189 if (context_id == VMCI_HOST_CONTEXT_ID &&
2217 const u32 context_id = vmci_ctx_get_id(context);
2221 context_id == VMCI_INVALID_ID)
2228 context_id, handle.context, handle.resource);
2236 context_id, handle.context, handle.resource);
2241 if (context_id != entry->create_id && context_id != entry->attach_id) {
2248 if (context_id != VMCI_HOST_CONTEXT_ID &&
2327 const u32 context_id = vmci_ctx_get_id(context);
2331 context_id == VMCI_INVALID_ID)
2338 context_id, handle.context, handle.resource);
2346 context_id, handle.context, handle.resource);
2351 if (context_id != entry->create_id && context_id != entry->attach_id) {
2356 if (context_id != VMCI_HOST_CONTEXT_ID &&