Lines Matching refs:real_qp
1126 static struct ib_qp *__ib_open_qp(struct ib_qp *real_qp, in __ib_open_qp() argument
1138 qp->real_qp = real_qp; in __ib_open_qp()
1139 err = ib_open_shared_qp_security(qp, real_qp->device); in __ib_open_qp()
1145 qp->real_qp = real_qp; in __ib_open_qp()
1146 atomic_inc(&real_qp->usecnt); in __ib_open_qp()
1147 qp->device = real_qp->device; in __ib_open_qp()
1150 qp->qp_num = real_qp->qp_num; in __ib_open_qp()
1151 qp->qp_type = real_qp->qp_type; in __ib_open_qp()
1153 spin_lock_irqsave(&real_qp->device->qp_open_list_lock, flags); in __ib_open_qp()
1154 list_add(&qp->open_list, &real_qp->open_list); in __ib_open_qp()
1155 spin_unlock_irqrestore(&real_qp->device->qp_open_list_lock, flags); in __ib_open_qp()
1163 struct ib_qp *qp, *real_qp; in ib_open_qp() local
1169 real_qp = xa_load(&xrcd->tgt_qps, qp_open_attr->qp_num); in ib_open_qp()
1170 if (!real_qp) { in ib_open_qp()
1174 qp = __ib_open_qp(real_qp, qp_open_attr->event_handler, in ib_open_qp()
1184 struct ib_qp *real_qp = qp; in create_xrc_qp_user() local
1196 qp = __ib_open_qp(real_qp, qp_init_attr->event_handler, in create_xrc_qp_user()
1201 err = xa_err(xa_store(&qp_init_attr->xrcd->tgt_qps, real_qp->qp_num, in create_xrc_qp_user()
1202 real_qp, GFP_KERNEL)); in create_xrc_qp_user()
1229 qp->real_qp = qp; in create_qp()
1894 return _ib_modify_qp(ib_qp->real_qp, attr, attr_mask, udata); in ib_modify_qp_with_udata()
2021 return _ib_modify_qp(qp->real_qp, qp_attr, qp_attr_mask, NULL); in ib_modify_qp()
2034 qp->device->ops.query_qp(qp->real_qp, qp_attr, qp_attr_mask, in ib_query_qp()
2041 struct ib_qp *real_qp; in ib_close_qp() local
2044 real_qp = qp->real_qp; in ib_close_qp()
2045 if (real_qp == qp) in ib_close_qp()
2048 spin_lock_irqsave(&real_qp->device->qp_open_list_lock, flags); in ib_close_qp()
2050 spin_unlock_irqrestore(&real_qp->device->qp_open_list_lock, flags); in ib_close_qp()
2052 atomic_dec(&real_qp->usecnt); in ib_close_qp()
2064 struct ib_qp *real_qp; in __ib_destroy_shared_qp() local
2067 real_qp = qp->real_qp; in __ib_destroy_shared_qp()
2068 xrcd = real_qp->xrcd; in __ib_destroy_shared_qp()
2071 if (atomic_read(&real_qp->usecnt) == 0) in __ib_destroy_shared_qp()
2072 xa_erase(&xrcd->tgt_qps, real_qp->qp_num); in __ib_destroy_shared_qp()
2074 real_qp = NULL; in __ib_destroy_shared_qp()
2077 if (real_qp) { in __ib_destroy_shared_qp()
2078 ret = ib_destroy_qp(real_qp); in __ib_destroy_shared_qp()
2098 if (qp->real_qp != qp) in ib_destroy_qp_user()