Lines Matching refs:queue_pair_entry
1109 struct qp_guest_endpoint *queue_pair_entry = NULL; in qp_alloc_guest_work() local
1116 queue_pair_entry = qp_guest_handle_to_entry(*handle); in qp_alloc_guest_work()
1117 if (queue_pair_entry) { in qp_alloc_guest_work()
1118 if (queue_pair_entry->qp.flags & VMCI_QPFLAG_LOCAL) { in qp_alloc_guest_work()
1120 if (queue_pair_entry->qp.ref_count > 1) { in qp_alloc_guest_work()
1126 if (queue_pair_entry->qp.produce_size != consume_size || in qp_alloc_guest_work()
1127 queue_pair_entry->qp.consume_size != in qp_alloc_guest_work()
1129 queue_pair_entry->qp.flags != in qp_alloc_guest_work()
1145 my_produce_q = queue_pair_entry->consume_q; in qp_alloc_guest_work()
1146 my_consume_q = queue_pair_entry->produce_q; in qp_alloc_guest_work()
1168 queue_pair_entry = qp_guest_endpoint_create(*handle, peer, flags, in qp_alloc_guest_work()
1171 if (!queue_pair_entry) { in qp_alloc_guest_work()
1179 &queue_pair_entry->ppn_set); in qp_alloc_guest_work()
1189 if (queue_pair_entry->qp.flags & VMCI_QPFLAG_LOCAL) { in qp_alloc_guest_work()
1202 if (queue_pair_entry->qp.handle.context != context_id || in qp_alloc_guest_work()
1203 (queue_pair_entry->qp.peer != VMCI_INVALID_ID && in qp_alloc_guest_work()
1204 queue_pair_entry->qp.peer != context_id)) { in qp_alloc_guest_work()
1209 if (queue_pair_entry->qp.flags & VMCI_QPFLAG_ATTACH_ONLY) { in qp_alloc_guest_work()
1214 result = qp_alloc_hypercall(queue_pair_entry); in qp_alloc_guest_work()
1224 qp_list_add_entry(&qp_guest_endpoints, &queue_pair_entry->qp); in qp_alloc_guest_work()
1227 queue_pair_entry->qp.ref_count++; in qp_alloc_guest_work()
1228 *handle = queue_pair_entry->qp.handle; in qp_alloc_guest_work()
1237 if ((queue_pair_entry->qp.flags & VMCI_QPFLAG_LOCAL) && in qp_alloc_guest_work()
1238 queue_pair_entry->qp.ref_count == 1) { in qp_alloc_guest_work()
1249 if (queue_pair_entry) { in qp_alloc_guest_work()
1251 qp_guest_endpoint_destroy(queue_pair_entry); in qp_alloc_guest_work()