Lines Matching refs:context_id
854 u32 context_id = vmci_get_context_id(); in qp_notify_peer_local() local
857 ev.msg.hdr.dst = vmci_make_handle(context_id, VMCI_EVENT_HANDLER); in qp_notify_peer_local()
863 ev.payload.peer_id = context_id; in qp_notify_peer_local()
892 u32 context_id = vmci_get_context_id(); in qp_guest_endpoint_create() local
894 handle = vmci_make_handle(context_id, VMCI_INVALID_ID); in qp_guest_endpoint_create()
1190 u32 context_id = vmci_get_context_id(); in qp_alloc_guest_work() local
1201 if (queue_pair_entry->qp.handle.context != context_id || in qp_alloc_guest_work()
1203 queue_pair_entry->qp.peer != context_id)) { in qp_alloc_guest_work()
1293 const u32 context_id = vmci_ctx_get_id(context); in qp_broker_create() local
1307 if (handle.context != context_id && handle.context != peer) in qp_broker_create()
1310 if (VMCI_CONTEXT_IS_VM(context_id) && VMCI_CONTEXT_IS_VM(peer)) in qp_broker_create()
1317 if (is_local && peer != VMCI_INVALID_ID && context_id != peer) in qp_broker_create()
1346 entry->create_id = context_id; in qp_broker_create()
1521 const u32 context_id = vmci_ctx_get_id(context); in qp_broker_attach() local
1531 context_id != entry->create_id) { in qp_broker_attach()
1534 } else if (context_id == entry->create_id || in qp_broker_attach()
1535 context_id == entry->attach_id) { in qp_broker_attach()
1539 if (VMCI_CONTEXT_IS_VM(context_id) && in qp_broker_attach()
1563 if (entry->qp.peer != VMCI_INVALID_ID && entry->qp.peer != context_id) in qp_broker_attach()
1575 } else if (context_id == VMCI_HOST_CONTEXT_ID) { in qp_broker_attach()
1595 if (context_id != VMCI_HOST_CONTEXT_ID) { in qp_broker_attach()
1611 if (context_id != VMCI_HOST_CONTEXT_ID) { in qp_broker_attach()
1662 qp_notify_peer(true, entry->qp.handle, context_id, in qp_broker_attach()
1670 entry->attach_id = context_id; in qp_broker_attach()
1707 const u32 context_id = vmci_ctx_get_id(context); in qp_broker_alloc() local
1716 !context || context_id == VMCI_INVALID_ID || in qp_broker_alloc()
1733 context_id, handle.context, handle.resource); in qp_broker_alloc()
1758 *swap = (context_id == VMCI_HOST_CONTEXT_ID) && in qp_broker_alloc()
1968 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_set_page_store() local
1971 context_id == VMCI_INVALID_ID) in vmci_qp_broker_set_page_store()
1986 context_id, handle.context, handle.resource); in vmci_qp_broker_set_page_store()
2003 if (entry->create_id != context_id && in vmci_qp_broker_set_page_store()
2005 entry->attach_id != context_id)) { in vmci_qp_broker_set_page_store()
2037 qp_notify_peer(true, handle, context_id, entry->create_id); in vmci_qp_broker_set_page_store()
2083 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_detach() local
2089 context_id == VMCI_INVALID_ID) { in vmci_qp_broker_detach()
2097 context_id, handle.context, handle.resource); in vmci_qp_broker_detach()
2105 context_id, handle.context, handle.resource); in vmci_qp_broker_detach()
2110 if (context_id != entry->create_id && context_id != entry->attach_id) { in vmci_qp_broker_detach()
2115 if (context_id == entry->create_id) { in vmci_qp_broker_detach()
2126 if (context_id != VMCI_HOST_CONTEXT_ID) { in vmci_qp_broker_detach()
2186 qp_notify_peer(false, handle, context_id, peer_id); in vmci_qp_broker_detach()
2187 if (context_id == VMCI_HOST_CONTEXT_ID && in vmci_qp_broker_detach()
2215 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_map() local
2219 context_id == VMCI_INVALID_ID) in vmci_qp_broker_map()
2226 context_id, handle.context, handle.resource); in vmci_qp_broker_map()
2234 context_id, handle.context, handle.resource); in vmci_qp_broker_map()
2239 if (context_id != entry->create_id && context_id != entry->attach_id) { in vmci_qp_broker_map()
2246 if (context_id != VMCI_HOST_CONTEXT_ID && in vmci_qp_broker_map()
2325 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_unmap() local
2329 context_id == VMCI_INVALID_ID) in vmci_qp_broker_unmap()
2336 context_id, handle.context, handle.resource); in vmci_qp_broker_unmap()
2344 context_id, handle.context, handle.resource); in vmci_qp_broker_unmap()
2349 if (context_id != entry->create_id && context_id != entry->attach_id) { in vmci_qp_broker_unmap()
2354 if (context_id != VMCI_HOST_CONTEXT_ID && in vmci_qp_broker_unmap()