void  utilUpdateResidual(PSCCB p_SCCB) 
static void  FPT_utilUpdateResidual(PSCCB p_SCCB) 
void  utilUpdateResidual(PSCCB p_SCCB){   ULONG partial_cnt;   UINT  sg_index;#if defined(COMPILER_16_BIT) && !defined(DOS)   ULONG far *sg_ptr;#else   ULONG *sg_ptr;#endif   if (p_SCCB->Sccb_XferState & F_ALL_XFERRED) {	  p_SCCB->DataLength = 0x0000;	  }   else if (p_SCCB->Sccb_XferState & F_SG_XFER) {		 partial_cnt = 0x0000;		 sg_index = p_SCCB->Sccb_sgseg;#if defined(COMPILER_16_BIT) && !defined(DOS)		 sg_ptr = (ULONG far *)p_SCCB->DataPointer;#else		 sg_ptr = (ULONG *)p_SCCB->DataPointer;#endif		 if (p_SCCB->Sccb_SGoffset) {			partial_cnt = p_SCCB->Sccb_SGoffset;			sg_index++;			}		 while ( ((ULONG)sg_index * (ULONG)SG_ELEMENT_SIZE) <			p_SCCB->DataLength ) {			partial_cnt += *(sg_ptr+(sg_index * 2));			sg_index++;			}		 p_SCCB->DataLength = partial_cnt;		 }	  else {		 p_SCCB->DataLength -= p_SCCB->Sccb_ATC;		 }}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/47b5d69c4aa753fcfc9b2b8d28c0660a1e25c129/FlashPoint.c/buggy/drivers/scsi/FlashPoint.c