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