dma_addr_t indma; int err;  indma = pci_map_single(dev->pdev, mgm, MTHCA_MGM_ENTRY_SIZE, PCI_DMA_TODEVICE); if (pci_dma_mapping_error(indma)) return -ENOMEM;  err = mthca_cmd(dev, indma, index, 0, CMD_WRITE_MGM, CMD_TIME_CLASS_A, status);  pci_unmap_single(dev->pdev, indma, MTHCA_MGM_ENTRY_SIZE, PCI_DMA_TODEVICE); return err; 
return mthca_cmd(dev, mailbox->dma, index, 0, CMD_WRITE_MGM, CMD_TIME_CLASS_A, status); 
int mthca_WRITE_MGM(struct mthca_dev *dev, int index, void *mgm,		    u8 *status){	dma_addr_t indma;	int err;	indma = pci_map_single(dev->pdev, mgm,			       MTHCA_MGM_ENTRY_SIZE,			       PCI_DMA_TODEVICE);	if (pci_dma_mapping_error(indma))		return -ENOMEM;	err = mthca_cmd(dev, indma, index, 0, CMD_WRITE_MGM,			CMD_TIME_CLASS_A, status);	pci_unmap_single(dev->pdev, indma,			 MTHCA_MGM_ENTRY_SIZE, PCI_DMA_TODEVICE);	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