Lines Matching refs:mw
1197 struct ib_mw *mw; in ib_uverbs_alloc_mw() local
1219 mw = pd->device->alloc_mw(pd, cmd.mw_type); in ib_uverbs_alloc_mw()
1220 if (IS_ERR(mw)) { in ib_uverbs_alloc_mw()
1221 ret = PTR_ERR(mw); in ib_uverbs_alloc_mw()
1225 mw->device = pd->device; in ib_uverbs_alloc_mw()
1226 mw->pd = pd; in ib_uverbs_alloc_mw()
1227 mw->uobject = uobj; in ib_uverbs_alloc_mw()
1230 uobj->object = mw; in ib_uverbs_alloc_mw()
1236 resp.rkey = mw->rkey; in ib_uverbs_alloc_mw()
1261 ib_dealloc_mw(mw); in ib_uverbs_alloc_mw()
1277 struct ib_mw *mw; in ib_uverbs_dealloc_mw() local
1288 mw = uobj->object; in ib_uverbs_dealloc_mw()
1290 ret = ib_dealloc_mw(mw); in ib_uverbs_dealloc_mw()