Lines Matching refs:real_qp
375 struct ib_qp *real_qp = qp->real_qp; in ib_open_shared_qp_security() local
386 mutex_lock(&real_qp->qp_sec->mutex); in ib_open_shared_qp_security()
387 ret = check_qp_port_pkey_settings(real_qp->qp_sec->ports_pkeys, in ib_open_shared_qp_security()
393 if (qp != real_qp) in ib_open_shared_qp_security()
395 &real_qp->qp_sec->shared_qp_list); in ib_open_shared_qp_security()
397 mutex_unlock(&real_qp->qp_sec->mutex); in ib_open_shared_qp_security()
406 struct ib_qp *real_qp = sec->qp->real_qp; in ib_close_shared_qp_security() local
408 mutex_lock(&real_qp->qp_sec->mutex); in ib_close_shared_qp_security()
410 mutex_unlock(&real_qp->qp_sec->mutex); in ib_close_shared_qp_security()
579 struct ib_qp *real_qp = qp->real_qp; in ib_security_modify_qp() local
580 bool special_qp = (real_qp->qp_type == IB_QPT_SMI || in ib_security_modify_qp()
581 real_qp->qp_type == IB_QPT_GSI || in ib_security_modify_qp()
582 real_qp->qp_type >= IB_QPT_RESERVED1); in ib_security_modify_qp()
587 rdma_protocol_ib(real_qp->device, qp_attr->port_num) && in ib_security_modify_qp()
588 !real_qp->qp_sec), in ib_security_modify_qp()
590 __func__, real_qp->qp_num); in ib_security_modify_qp()
598 if (pps_change && !special_qp && real_qp->qp_sec) { in ib_security_modify_qp()
599 mutex_lock(&real_qp->qp_sec->mutex); in ib_security_modify_qp()
600 new_pps = get_new_pps(real_qp, in ib_security_modify_qp()
604 mutex_unlock(&real_qp->qp_sec->mutex); in ib_security_modify_qp()
621 real_qp->qp_sec); in ib_security_modify_qp()
625 ret = real_qp->device->ops.modify_qp(real_qp, in ib_security_modify_qp()
637 tmp_pps = real_qp->qp_sec->ports_pkeys; in ib_security_modify_qp()
638 real_qp->qp_sec->ports_pkeys = new_pps; in ib_security_modify_qp()
646 mutex_unlock(&real_qp->qp_sec->mutex); in ib_security_modify_qp()