dev->cmd.pool = pci_pool_create("mthca_cmd", dev->pdev, MTHCA_MAILBOX_SIZE, MTHCA_MAILBOX_SIZE, 0); if (!dev->cmd.pool) { iounmap(dev->hcr); return -ENOMEM; }  
int mthca_cmd_init(struct mthca_dev *dev){	sema_init(&dev->cmd.hcr_sem, 1);	sema_init(&dev->cmd.poll_sem, 1);	dev->cmd.use_events = 0;	dev->hcr = ioremap(pci_resource_start(dev->pdev, 0) + MTHCA_HCR_BASE,			   MTHCA_HCR_SIZE);	if (!dev->hcr) {		mthca_err(dev, "Couldn't map command register.");		return -ENOMEM;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/ed878458eeff9754d66f1b0325df6ebbfcdce668/mthca_cmd.c/clean/drivers/infiniband/hw/mthca/mthca_cmd.c