Lines Matching refs:ibmw
16 int rxe_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata)
18 struct rxe_mw *mw = to_rmw(ibmw);
19 struct rxe_pd *pd = to_rpd(ibmw->pd);
20 struct rxe_dev *rxe = to_rdev(ibmw->device);
31 mw->rkey = ibmw->rkey = (mw->elem.index << 8) | rxe_get_next_key(-1);
32 mw->state = (mw->ibmw.type == IB_MW_TYPE_2) ?
41 int rxe_dealloc_mw(struct ib_mw *ibmw)
43 struct rxe_mw *mw = to_rmw(ibmw);
53 if (mw->ibmw.type == IB_MW_TYPE_1) {
67 if (mw->ibmw.type == IB_MW_TYPE_2) {
76 if (unlikely(qp->pd != to_rpd(mw->ibmw.pd))) {
158 if (mw->ibmw.type == IB_MW_TYPE_2) {
230 if (unlikely(mw->ibmw.type == IB_MW_TYPE_1))
302 (mw->ibmw.type == IB_MW_TYPE_2 && mw->qp != qp) ||
315 struct rxe_pd *pd = to_rpd(mw->ibmw.pd);