mthca_free_region(dev, mr->ibmr.lkey, mr->order, mr->first_seg, &dev->mr_table.mtt_buddy);
mthca_free_region(dev, mr->ibmr.lkey); mthca_free_mtt(dev, mr->mtt);
void mthca_free_mr(struct mthca_dev *dev, struct mthca_mr *mr){	int err;	u8 status;	might_sleep();	err = mthca_HW2SW_MPT(dev, NULL,			      key_to_hw_index(dev, mr->ibmr.lkey) &			      (dev->limits.num_mpts - 1),			      &status);	if (err)		mthca_warn(dev, "HW2SW_MPT failed (%d)\n", err);	else if (status)		mthca_warn(dev, "HW2SW_MPT returned status 0x%02x\n",			   status);	mthca_free_region(dev, mr->ibmr.lkey, mr->order, mr->first_seg,			  &dev->mr_table.mtt_buddy);}