inbox = pci_alloc_consistent(dev->pdev, 16, &indma); if (!inbox) return -ENOMEM; 
mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); if (IS_ERR(mailbox)) return PTR_ERR(mailbox); inbox = mailbox->buf; 
int mthca_MAP_ICM_page(struct mthca_dev *dev, u64 dma_addr, u64 virt, u8 *status){	u64 *inbox;	dma_addr_t indma;	int err;	inbox = pci_alloc_consistent(dev->pdev, 16, &indma);	if (!inbox)		return -ENOMEM;	inbox[0] = cpu_to_be64(virt);	inbox[1] = cpu_to_be64(dma_addr);	err = mthca_cmd(dev, indma, 1, 0, CMD_MAP_ICM, CMD_TIME_CLASS_B, status);	pci_free_consistent(dev->pdev, 16, inbox, indma);	if (!err)		mthca_dbg(dev, "Mapped page at %llx to %llx for ICM.\n",			  (unsigned long long) dma_addr, (unsigned long long) virt);	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