for (i = 0, fibptr = &dev->fibs[i]; i < AAC_NUM_FIB; i++, fibptr++) 
for (i = 0, fibptr = &dev->fibs[i]; i < (dev->scsi_host_ptr->can_queue + AAC_NUM_MGT_FIB); i++, fibptr++) 
int fib_setup(struct aac_dev * dev){	struct fib *fibptr;	struct hw_fib *hw_fib_va;	dma_addr_t hw_fib_pa;	int i;		if(fib_map_alloc(dev)<0)		return -ENOMEM;			hw_fib_va = dev->hw_fib_va;	hw_fib_pa = dev->hw_fib_pa;	memset(hw_fib_va, 0, sizeof(struct hw_fib) * AAC_NUM_FIB);	/*	 *	Initialise the fibs	 */	for (i = 0, fibptr = &dev->fibs[i]; i < AAC_NUM_FIB; i++, fibptr++) 	{		fibptr->dev = dev;		fibptr->hw_fib = hw_fib_va;		fibptr->data = (void *) fibptr->hw_fib->data;		fibptr->next = fibptr+1;	/* Forward chain the fibs */		init_MUTEX_LOCKED(&fibptr->event_wait);		spin_lock_init(&fibptr->event_lock);		hw_fib_va->header.XferState = cpu_to_le32(0xffffffff);		hw_fib_va->header.SenderSize = cpu_to_le16(sizeof(struct hw_fib));		fibptr->hw_fib_pa = hw_fib_pa;		hw_fib_va = (struct hw_fib *)((unsigned char *)hw_fib_va + sizeof(struct hw_fib));		hw_fib_pa = hw_fib_pa + sizeof(struct hw_fib); 	}	/*	 *	Add the fib chain to the free list	 */	dev->fibs[AAC_NUM_FIB-1].next = NULL;	/*	 *	Enable this to debug out of queue space	 */	dev->free_fib = &dev->fibs[0];	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/7c00ffa314bf0fb0e23858bbebad33b48b6abbb9/commsup.c/clean/drivers/scsi/aacraid/commsup.c