inbox = pci_alloc_consistent(dev->pdev, SET_IB_IN_SIZE, &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_SET_IB(struct mthca_dev *dev, struct mthca_set_ib_param *param,		 int port, u8 *status){	u32 *inbox;	dma_addr_t indma;	int err;	u32 flags = 0;#define SET_IB_IN_SIZE         0x40#define SET_IB_FLAGS_OFFSET    0x00#define SET_IB_FLAG_SIG        (1 << 18)#define SET_IB_FLAG_RQK        (1 <<  0)#define SET_IB_CAP_MASK_OFFSET 0x04#define SET_IB_SI_GUID_OFFSET  0x08	inbox = pci_alloc_consistent(dev->pdev, SET_IB_IN_SIZE, &indma);	if (!inbox)		return -ENOMEM;	memset(inbox, 0, SET_IB_IN_SIZE);	flags |= param->set_si_guid     ? SET_IB_FLAG_SIG : 0;	flags |= param->reset_qkey_viol ? SET_IB_FLAG_RQK : 0;	MTHCA_PUT(inbox, flags, SET_IB_FLAGS_OFFSET);	MTHCA_PUT(inbox, param->cap_mask, SET_IB_CAP_MASK_OFFSET);	MTHCA_PUT(inbox, param->si_guid,  SET_IB_SI_GUID_OFFSET);	err = mthca_cmd(dev, indma, port, 0, CMD_SET_IB,			CMD_TIME_CLASS_B, status);	pci_free_consistent(dev->pdev, INIT_HCA_IN_SIZE, inbox, indma);	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