Lines Matching full:access
51 struct rxe_mw *mw, struct rxe_mr *mr, int access) in rxe_check_bind_mw() argument
61 if (unlikely((access & IB_ZERO_BASED))) { in rxe_check_bind_mw()
94 if (unlikely(mr->access & IB_ZERO_BASED)) { in rxe_check_bind_mw()
100 if (unlikely(!(mr->access & IB_ACCESS_MW_BIND))) { in rxe_check_bind_mw()
102 "attempt to bind an MW to an MR without bind access\n"); in rxe_check_bind_mw()
107 if (unlikely((access & in rxe_check_bind_mw()
109 !(mr->access & IB_ACCESS_LOCAL_WRITE))) { in rxe_check_bind_mw()
111 "attempt to bind an Writable MW to an MR without local write access\n"); in rxe_check_bind_mw()
116 if (access & IB_ZERO_BASED) { in rxe_check_bind_mw()
136 struct rxe_mw *mw, struct rxe_mr *mr, int access) in rxe_do_bind_mw() argument
141 mw->access = access; in rxe_do_bind_mw()
172 int access = wqe->wr.wr.mw.access; in rxe_bind_mw() local
200 if (access & ~RXE_ACCESS_SUPPORTED_MW) { in rxe_bind_mw()
201 rxe_err_mw(mw, "access %#x not supported\n", access); in rxe_bind_mw()
208 ret = rxe_check_bind_mw(qp, wqe, mw, mr, access); in rxe_bind_mw()
212 rxe_do_bind_mw(qp, wqe, mw, mr, access); in rxe_bind_mw()
252 mw->access = 0; in rxe_do_invalidate_mw()
290 struct rxe_mw *rxe_lookup_mw(struct rxe_qp *qp, int access, u32 rkey) in rxe_lookup_mw() argument
303 (mw->length == 0) || ((access & mw->access) != access) || in rxe_lookup_mw()
334 mw->access = 0; in rxe_mw_cleanup()