pci_free_consistent(dev->pdev, QUERY_DDR_OUT_SIZE, outbox, outdma); 
mthca_free_mailbox(dev, mailbox); 
int mthca_QUERY_DDR(struct mthca_dev *dev, u8 *status){	u8 info;	u32 *outbox;	dma_addr_t outdma;	int err = 0;#define QUERY_DDR_OUT_SIZE         0x100#define QUERY_DDR_START_OFFSET     0x00#define QUERY_DDR_END_OFFSET       0x08#define QUERY_DDR_INFO_OFFSET      0x13#define QUERY_DDR_INFO_HIDDEN_FLAG (1 << 4)#define QUERY_DDR_INFO_ECC_MASK    0x3	outbox = pci_alloc_consistent(dev->pdev, QUERY_DDR_OUT_SIZE, &outdma);	if (!outbox)		return -ENOMEM;	err = mthca_cmd_box(dev, 0, outdma, 0, 0, CMD_QUERY_DDR,			    CMD_TIME_CLASS_A, status);	if (err)		goto out;	MTHCA_GET(dev->ddr_start, outbox, QUERY_DDR_START_OFFSET);	MTHCA_GET(dev->ddr_end,   outbox, QUERY_DDR_END_OFFSET);	MTHCA_GET(info,           outbox, QUERY_DDR_INFO_OFFSET);	if (!!(info & QUERY_DDR_INFO_HIDDEN_FLAG) !=	    !!(dev->mthca_flags & MTHCA_FLAG_DDR_HIDDEN)) {		mthca_info(dev, "FW reports that HCA-attached memory "			   "is %s hidden; does not match PCI config\n",			   (info & QUERY_DDR_INFO_HIDDEN_FLAG) ?			   "" : "not");	}	if (info & QUERY_DDR_INFO_HIDDEN_FLAG)		mthca_dbg(dev, "HCA-attached memory is hidden.\n");	mthca_dbg(dev, "HCA memory size %d KB (start %llx, end %llx)\n",		  (int) ((dev->ddr_end - dev->ddr_start) >> 10),		  (unsigned long long) dev->ddr_start,		  (unsigned long long) dev->ddr_end);out:	pci_free_consistent(dev->pdev, QUERY_DDR_OUT_SIZE, outbox, outdma);	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