Lines Matching refs:context_id
941 u32 context_id = vmci_get_context_id(); in qp_notify_peer_local() local
944 ev.msg.hdr.dst = vmci_make_handle(context_id, VMCI_EVENT_HANDLER); in qp_notify_peer_local()
950 ev.payload.peer_id = context_id; in qp_notify_peer_local()
979 u32 context_id = vmci_get_context_id(); in qp_guest_endpoint_create() local
981 handle = vmci_make_handle(context_id, VMCI_INVALID_ID); in qp_guest_endpoint_create()
1275 u32 context_id = vmci_get_context_id(); in qp_alloc_guest_work() local
1286 if (queue_pair_entry->qp.handle.context != context_id || in qp_alloc_guest_work()
1288 queue_pair_entry->qp.peer != context_id)) { in qp_alloc_guest_work()
1378 const u32 context_id = vmci_ctx_get_id(context); in qp_broker_create() local
1392 if (handle.context != context_id && handle.context != peer) in qp_broker_create()
1395 if (VMCI_CONTEXT_IS_VM(context_id) && VMCI_CONTEXT_IS_VM(peer)) in qp_broker_create()
1402 if (is_local && peer != VMCI_INVALID_ID && context_id != peer) in qp_broker_create()
1431 entry->create_id = context_id; in qp_broker_create()
1606 const u32 context_id = vmci_ctx_get_id(context); in qp_broker_attach() local
1616 context_id != entry->create_id) { in qp_broker_attach()
1619 } else if (context_id == entry->create_id || in qp_broker_attach()
1620 context_id == entry->attach_id) { in qp_broker_attach()
1624 if (VMCI_CONTEXT_IS_VM(context_id) && in qp_broker_attach()
1648 if (entry->qp.peer != VMCI_INVALID_ID && entry->qp.peer != context_id) in qp_broker_attach()
1660 } else if (context_id == VMCI_HOST_CONTEXT_ID) { in qp_broker_attach()
1680 if (context_id != VMCI_HOST_CONTEXT_ID) { in qp_broker_attach()
1696 if (context_id != VMCI_HOST_CONTEXT_ID) { in qp_broker_attach()
1747 qp_notify_peer(true, entry->qp.handle, context_id, in qp_broker_attach()
1755 entry->attach_id = context_id; in qp_broker_attach()
1792 const u32 context_id = vmci_ctx_get_id(context); in qp_broker_alloc() local
1801 !context || context_id == VMCI_INVALID_ID || in qp_broker_alloc()
1818 context_id, handle.context, handle.resource); in qp_broker_alloc()
1843 *swap = (context_id == VMCI_HOST_CONTEXT_ID) && in qp_broker_alloc()
2050 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_set_page_store() local
2053 context_id == VMCI_INVALID_ID) in vmci_qp_broker_set_page_store()
2068 context_id, handle.context, handle.resource); in vmci_qp_broker_set_page_store()
2085 if (entry->create_id != context_id && in vmci_qp_broker_set_page_store()
2087 entry->attach_id != context_id)) { in vmci_qp_broker_set_page_store()
2119 qp_notify_peer(true, handle, context_id, entry->create_id); in vmci_qp_broker_set_page_store()
2165 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_detach() local
2171 context_id == VMCI_INVALID_ID) { in vmci_qp_broker_detach()
2179 context_id, handle.context, handle.resource); in vmci_qp_broker_detach()
2187 context_id, handle.context, handle.resource); in vmci_qp_broker_detach()
2192 if (context_id != entry->create_id && context_id != entry->attach_id) { in vmci_qp_broker_detach()
2197 if (context_id == entry->create_id) { in vmci_qp_broker_detach()
2208 if (context_id != VMCI_HOST_CONTEXT_ID) { in vmci_qp_broker_detach()
2274 qp_notify_peer(false, handle, context_id, peer_id); in vmci_qp_broker_detach()
2275 if (context_id == VMCI_HOST_CONTEXT_ID && in vmci_qp_broker_detach()
2303 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_map() local
2308 context_id == VMCI_INVALID_ID) in vmci_qp_broker_map()
2315 context_id, handle.context, handle.resource); in vmci_qp_broker_map()
2323 context_id, handle.context, handle.resource); in vmci_qp_broker_map()
2328 if (context_id != entry->create_id && context_id != entry->attach_id) { in vmci_qp_broker_map()
2336 if (context_id != VMCI_HOST_CONTEXT_ID) { in vmci_qp_broker_map()
2414 const u32 context_id = vmci_ctx_get_id(context); in vmci_qp_broker_unmap() local
2419 context_id == VMCI_INVALID_ID) in vmci_qp_broker_unmap()
2426 context_id, handle.context, handle.resource); in vmci_qp_broker_unmap()
2434 context_id, handle.context, handle.resource); in vmci_qp_broker_unmap()
2439 if (context_id != entry->create_id && context_id != entry->attach_id) { in vmci_qp_broker_unmap()
2446 if (context_id != VMCI_HOST_CONTEXT_ID) { in vmci_qp_broker_unmap()