dsgprintk((MYIOC_s_INFO_FMT "getFreeChainBuffer (index %d), got buf=%p\n", ioc->name, *retIndex, chainBuf)); 
dsgprintk((MYIOC_s_ERR_FMT "getFreeChainBuffer chainBuf=%p ChainBuffer=%p offset=%d chain_idx=%d\n", ioc->name, chainBuf, ioc->ChainBuffer, offset, chain_idx)); 
mptscsih_getFreeChainBuffer(MPT_ADAPTER *ioc, int *retIndex){	MPT_FRAME_HDR *chainBuf;	unsigned long flags;	int rc;	int chain_idx;	dsgprintk((MYIOC_s_INFO_FMT "getFreeChainBuffer called\n",			ioc->name));	spin_lock_irqsave(&ioc->FreeQlock, flags);	if (!list_empty(&ioc->FreeChainQ)) {		int offset;		chainBuf = list_entry(ioc->FreeChainQ.next, MPT_FRAME_HDR,				u.frame.linkage.list);		list_del(&chainBuf->u.frame.linkage.list);		offset = (u8 *)chainBuf - (u8 *)ioc->ChainBuffer;		chain_idx = offset / ioc->req_sz;		rc = SUCCESS;		dsgprintk((MYIOC_s_INFO_FMT "getFreeChainBuffer (index %d), got buf=%p\n",			ioc->name, *retIndex, chainBuf));	} else {		rc = FAILED;		chain_idx = MPT_HOST_NO_CHAIN;		dfailprintk((MYIOC_s_ERR_FMT "getFreeChainBuffer failed\n",			ioc->name));	}	spin_unlock_irqrestore(&ioc->FreeQlock, flags);	*retIndex = chain_idx;	return rc;} /* mptscsih_getFreeChainBuffer() */
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c6678e0cfb41b029c3600c54b5bb65954de1230a/mptscsih.c/buggy/drivers/message/fusion/mptscsih.c