Lines Matching refs:context_id
849 u32 context_id = vmci_get_context_id(); in qp_notify_peer_local() local
852 ev.msg.hdr.dst = vmci_make_handle(context_id, VMCI_EVENT_HANDLER); in qp_notify_peer_local()
858 ev.payload.peer_id = context_id; in qp_notify_peer_local()
887 u32 context_id = vmci_get_context_id(); in qp_guest_endpoint_create() local
889 handle = vmci_make_handle(context_id, VMCI_INVALID_ID); in qp_guest_endpoint_create()
1185 u32 context_id = vmci_get_context_id(); in qp_alloc_guest_work() local
1196 if (queue_pair_entry->qp.handle.context != context_id || in qp_alloc_guest_work()
1198 queue_pair_entry->qp.peer != context_id)) { in qp_alloc_guest_work()
1288 const u32 context_id = vmci_ctx_get_id(context); in qp_broker_create() local
1302 if (handle.context != context_id && handle.context != peer) in qp_broker_create()
1305 if (VMCI_CONTEXT_IS_VM(context_id) && VMCI_CONTEXT_IS_VM(peer)) in qp_broker_create()
1312 if (is_local && peer != VMCI_INVALID_ID && context_id != peer) in qp_broker_create()
1341 entry->create_id = context_id; in qp_broker_create()
1516 const u32 context_id = vmci_ctx_get_id(context); in qp_broker_attach() local
1526 context_id != entry->create_id) { in qp_broker_attach()
1529 } else if (context_id == entry->create_id || in qp_broker_attach()
1530 context_id == entry->attach_id) { in qp_broker_attach()
1534 if (VMCI_CONTEXT_IS_VM(context_id) && in qp_broker_attach()
1558 if (entry->qp.peer != VMCI_INVALID_ID && entry->qp.peer != context_id) in qp_broker_attach()
1570 } else if (context_id == VMCI_HOST_CONTEXT_ID) { in qp_broker_attach()
1590 if (context_id != VMCI_HOST_CONTEXT_ID) { in qp_broker_attach()
1606 if (context_id != VMCI_HOST_CONTEXT_ID) { in qp_broker_attach()
1657 qp_notify_peer(true, entry->qp.handle, context_id, in qp_broker_attach()
1665 entry->attach_id = context_id; in qp_broker_attach()
1702 const u32 context_id = vmci_ctx_get_id(context); in qp_broker_alloc() local
1711 !context || context_id == VMCI_INVALID_ID || in qp_broker_alloc()
1728 context_id, handle.context, handle.resource); in qp_broker_alloc()
1753 *swap = (context_id == VMCI_HOST_CONTEXT_ID) && in qp_broker_alloc()
1960 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_set_page_store() local
1963 context_id == VMCI_INVALID_ID) in vmci_qp_broker_set_page_store()
1978 context_id, handle.context, handle.resource); in vmci_qp_broker_set_page_store()
1995 if (entry->create_id != context_id && in vmci_qp_broker_set_page_store()
1997 entry->attach_id != context_id)) { in vmci_qp_broker_set_page_store()
2029 qp_notify_peer(true, handle, context_id, entry->create_id); in vmci_qp_broker_set_page_store()
2075 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_detach() local
2081 context_id == VMCI_INVALID_ID) { in vmci_qp_broker_detach()
2089 context_id, handle.context, handle.resource); in vmci_qp_broker_detach()
2097 context_id, handle.context, handle.resource); in vmci_qp_broker_detach()
2102 if (context_id != entry->create_id && context_id != entry->attach_id) { in vmci_qp_broker_detach()
2107 if (context_id == entry->create_id) { in vmci_qp_broker_detach()
2118 if (context_id != VMCI_HOST_CONTEXT_ID) { in vmci_qp_broker_detach()
2178 qp_notify_peer(false, handle, context_id, peer_id); in vmci_qp_broker_detach()
2179 if (context_id == VMCI_HOST_CONTEXT_ID && in vmci_qp_broker_detach()
2207 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_map() local
2211 context_id == VMCI_INVALID_ID) in vmci_qp_broker_map()
2218 context_id, handle.context, handle.resource); in vmci_qp_broker_map()
2226 context_id, handle.context, handle.resource); in vmci_qp_broker_map()
2231 if (context_id != entry->create_id && context_id != entry->attach_id) { in vmci_qp_broker_map()
2238 if (context_id != VMCI_HOST_CONTEXT_ID) { in vmci_qp_broker_map()
2316 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_unmap() local
2320 context_id == VMCI_INVALID_ID) in vmci_qp_broker_unmap()
2327 context_id, handle.context, handle.resource); in vmci_qp_broker_unmap()
2335 context_id, handle.context, handle.resource); in vmci_qp_broker_unmap()
2340 if (context_id != entry->create_id && context_id != entry->attach_id) { in vmci_qp_broker_unmap()
2345 if (context_id != VMCI_HOST_CONTEXT_ID) { in vmci_qp_broker_unmap()