Lines Matching refs:qp
195 struct ib_qp *qp = container_of(res, struct ib_qp, res);
197 WARN_ONCE(qp->qp_num >> 24 || qp->port >> 8,
198 "QP number 0x%0X and port 0x%0X", qp->qp_num,
199 qp->port);
200 res->id = qp->qp_num;
201 if (qp->qp_type == IB_QPT_SMI || qp->qp_type == IB_QPT_GSI)
202 res->id |= qp->port << 24;
207 if (qp->qp_type >= IB_QPT_DRIVER)