Lines Matching refs:context_id

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