dma_addr_t outdma = 0; int err;  if (mpt_entry) { outdma = pci_map_single(dev->pdev, mpt_entry, MTHCA_MPT_ENTRY_SIZE, PCI_DMA_FROMDEVICE); if (pci_dma_mapping_error(outdma)) return -ENOMEM; }  err = mthca_cmd_box(dev, 0, outdma, mpt_index, !mpt_entry, CMD_HW2SW_MPT, CMD_TIME_CLASS_B, status);  if (mpt_entry) pci_unmap_single(dev->pdev, outdma, MTHCA_MPT_ENTRY_SIZE, PCI_DMA_FROMDEVICE); return err; 
return mthca_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, mpt_index, !mailbox, CMD_HW2SW_MPT, CMD_TIME_CLASS_B, status); 
int mthca_HW2SW_MPT(struct mthca_dev *dev, void *mpt_entry,		    int mpt_index, u8 *status){	dma_addr_t outdma = 0;	int err;	if (mpt_entry) {		outdma = pci_map_single(dev->pdev, mpt_entry,					MTHCA_MPT_ENTRY_SIZE,					PCI_DMA_FROMDEVICE);		if (pci_dma_mapping_error(outdma))			return -ENOMEM;	}	err = mthca_cmd_box(dev, 0, outdma, mpt_index, !mpt_entry,			    CMD_HW2SW_MPT,			    CMD_TIME_CLASS_B, status);	if (mpt_entry)		pci_unmap_single(dev->pdev, outdma,				 MTHCA_MPT_ENTRY_SIZE,				 PCI_DMA_FROMDEVICE);	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/ed878458eeff9754d66f1b0325df6ebbfcdce668/mthca_cmd.c/clean/drivers/infiniband/hw/mthca/mthca_cmd.c