Lines Matching refs:context_id

860 	u32 context_id = vmci_get_context_id();  in qp_notify_peer_local()  local
863 ev.msg.hdr.dst = vmci_make_handle(context_id, VMCI_EVENT_HANDLER); in qp_notify_peer_local()
869 ev.payload.peer_id = context_id; in qp_notify_peer_local()
898 u32 context_id = vmci_get_context_id(); in qp_guest_endpoint_create() local
900 handle = vmci_make_handle(context_id, VMCI_INVALID_ID); in qp_guest_endpoint_create()
1194 u32 context_id = vmci_get_context_id(); in qp_alloc_guest_work() local
1205 if (queue_pair_entry->qp.handle.context != context_id || in qp_alloc_guest_work()
1207 queue_pair_entry->qp.peer != context_id)) { in qp_alloc_guest_work()
1297 const u32 context_id = vmci_ctx_get_id(context); in qp_broker_create() local
1311 if (handle.context != context_id && handle.context != peer) in qp_broker_create()
1314 if (VMCI_CONTEXT_IS_VM(context_id) && VMCI_CONTEXT_IS_VM(peer)) in qp_broker_create()
1321 if (is_local && peer != VMCI_INVALID_ID && context_id != peer) in qp_broker_create()
1350 entry->create_id = context_id; in qp_broker_create()
1525 const u32 context_id = vmci_ctx_get_id(context); in qp_broker_attach() local
1535 context_id != entry->create_id) { in qp_broker_attach()
1538 } else if (context_id == entry->create_id || in qp_broker_attach()
1539 context_id == entry->attach_id) { in qp_broker_attach()
1543 if (VMCI_CONTEXT_IS_VM(context_id) && in qp_broker_attach()
1567 if (entry->qp.peer != VMCI_INVALID_ID && entry->qp.peer != context_id) in qp_broker_attach()
1579 } else if (context_id == VMCI_HOST_CONTEXT_ID) { in qp_broker_attach()
1599 if (context_id != VMCI_HOST_CONTEXT_ID) { in qp_broker_attach()
1615 if (context_id != VMCI_HOST_CONTEXT_ID) { in qp_broker_attach()
1666 qp_notify_peer(true, entry->qp.handle, context_id, in qp_broker_attach()
1674 entry->attach_id = context_id; in qp_broker_attach()
1711 const u32 context_id = vmci_ctx_get_id(context); in qp_broker_alloc() local
1720 !context || context_id == VMCI_INVALID_ID || in qp_broker_alloc()
1737 context_id, handle.context, handle.resource); in qp_broker_alloc()
1762 *swap = (context_id == VMCI_HOST_CONTEXT_ID) && in qp_broker_alloc()
1969 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_set_page_store() local
1972 context_id == VMCI_INVALID_ID) in vmci_qp_broker_set_page_store()
1987 context_id, handle.context, handle.resource); in vmci_qp_broker_set_page_store()
2004 if (entry->create_id != context_id && in vmci_qp_broker_set_page_store()
2006 entry->attach_id != context_id)) { in vmci_qp_broker_set_page_store()
2038 qp_notify_peer(true, handle, context_id, entry->create_id); in vmci_qp_broker_set_page_store()
2084 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_detach() local
2090 context_id == VMCI_INVALID_ID) { in vmci_qp_broker_detach()
2098 context_id, handle.context, handle.resource); in vmci_qp_broker_detach()
2106 context_id, handle.context, handle.resource); in vmci_qp_broker_detach()
2111 if (context_id != entry->create_id && context_id != entry->attach_id) { in vmci_qp_broker_detach()
2116 if (context_id == entry->create_id) { in vmci_qp_broker_detach()
2127 if (context_id != VMCI_HOST_CONTEXT_ID) { in vmci_qp_broker_detach()
2187 qp_notify_peer(false, handle, context_id, peer_id); in vmci_qp_broker_detach()
2188 if (context_id == VMCI_HOST_CONTEXT_ID && in vmci_qp_broker_detach()
2216 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_map() local
2220 context_id == VMCI_INVALID_ID) in vmci_qp_broker_map()
2227 context_id, handle.context, handle.resource); in vmci_qp_broker_map()
2235 context_id, handle.context, handle.resource); in vmci_qp_broker_map()
2240 if (context_id != entry->create_id && context_id != entry->attach_id) { in vmci_qp_broker_map()
2247 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()