mw->device = pd->device; mw->pd     = pd;
mw->device  = pd->device; mw->pd      = pd; mw->uobject = NULL;
struct ib_mw *ib_alloc_mw(struct ib_pd *pd){	struct ib_mw *mw;	if (!pd->device->alloc_mw)		return ERR_PTR(-ENOSYS);	mw = pd->device->alloc_mw(pd);	if (!IS_ERR(mw)) {		mw->device = pd->device;		mw->pd     = pd;		atomic_inc(&pd->usecnt);	}	return mw;}