Lines Matching full:mw
434 struct rxe_mw *mw = NULL; in check_rkey() local
486 mw = rxe_lookup_mw(qp, access, rkey); in check_rkey()
487 if (!mw) { in check_rkey()
488 rxe_dbg_qp(qp, "no MW matches rkey %#x\n", rkey); in check_rkey()
493 mr = mw->mr; in check_rkey()
495 rxe_dbg_qp(qp, "MW doesn't have an MR\n"); in check_rkey()
500 if (mw->access & IB_ZERO_BASED) in check_rkey()
501 qp->resp.offset = mw->addr; in check_rkey()
504 rxe_put(mw); in check_rkey()
505 mw = NULL; in check_rkey()
559 if (mw) in check_rkey()
560 rxe_put(mw); in check_rkey()
818 * the MW if one was used to be invalidated or deallocated.
833 struct rxe_mw *mw; in rxe_recheck_mr() local
836 mw = rxe_pool_get_index(&rxe->mw_pool, rkey >> 8); in rxe_recheck_mr()
837 if (!mw) in rxe_recheck_mr()
840 mr = mw->mr; in rxe_recheck_mr()
841 if (mw->rkey != rkey || mw->state != RXE_MW_STATE_VALID || in rxe_recheck_mr()
843 rxe_put(mw); in rxe_recheck_mr()
848 rxe_put(mw); in rxe_recheck_mr()