if (scamInfo[match].state == ID_UNASSIGNED) 
if (FPT_scamInfo[match].state == ID_UNASSIGNED) 
UCHAR scmachid(UCHAR p_card, UCHAR p_id_string[]){   UCHAR i,k,match;   for (i=0; i < MAX_SCSI_TAR; i++) {#if !defined(SCAM_LEV_2)      if (scamInfo[i].state == ID_UNASSIGNED)         {#endif         match = TRUE;         for (k=0; k < ID_STRING_LENGTH; k++)            {            if (p_id_string[k] != scamInfo[i].id_string[k])               match = FALSE;            }         if (match)            {            scamInfo[i].state = ID_ASSIGNED;            return(i);            }#if !defined(SCAM_LEV_2)         }#endif      }   if (p_id_string[0] & BIT(5))      i = 8;   else      i = MAX_SCSI_TAR;   if (((p_id_string[0] & 0x06) == 0x02) || ((p_id_string[0] & 0x06) == 0x04))      match = p_id_string[1] & (UCHAR) 0x1F;   else      match = 7;   while (i > 0)      {      i--;      if (scamInfo[match].state == ID_UNUSED)         {         for (k=0; k < ID_STRING_LENGTH; k++)            {            scamInfo[match].id_string[k] = p_id_string[k];            }         scamInfo[match].state = ID_ASSIGNED;			if(BL_Card[p_card].pNvRamInfo == NULL)	         BL_Card[p_card].globalFlags |= F_UPDATE_EEPROM;         return(match);         }      match--;      if (match == 0xFF)	{         if (p_id_string[0] & BIT(5))            match = 7;         else            match = MAX_SCSI_TAR-1;	}      }   if (p_id_string[0] & BIT(7))      {      return(CLR_PRIORITY);      }   if (p_id_string[0] & BIT(5))      i = 8;   else      i = MAX_SCSI_TAR;   if (((p_id_string[0] & 0x06) == 0x02) || ((p_id_string[0] & 0x06) == 0x04))      match = p_id_string[1] & (UCHAR) 0x1F;   else      match = 7;   while (i > 0)      {      i--;      if (scamInfo[match].state == ID_UNASSIGNED)         {         for (k=0; k < ID_STRING_LENGTH; k++)            {            scamInfo[match].id_string[k] = p_id_string[k];            }         scamInfo[match].id_string[0] |= BIT(7);         scamInfo[match].state = ID_ASSIGNED;			if(BL_Card[p_card].pNvRamInfo == NULL)	         BL_Card[p_card].globalFlags |= F_UPDATE_EEPROM;         return(match);         }      match--;      if (match == 0xFF)	{         if (p_id_string[0] & BIT(5))            match = 7;         else            match = MAX_SCSI_TAR-1;	}      }   return(NO_ID_AVAIL);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/47b5d69c4aa753fcfc9b2b8d28c0660a1e25c129/FlashPoint.c/buggy/drivers/scsi/FlashPoint.c