int chan; int maxchan; int targ; int maxtarg; int clun; int maxlun; int count;  if (tag != SCB_LIST_NULL) return (0);  chan = 0; if (channel != ALL_CHANNELS) { chan = channel - 'A'; maxchan = chan + 1; } else { maxchan = (ahc->features & AHC_TWIN) ? 2 : 1; } targ = 0; if (target != CAM_TARGET_WILDCARD) { targ = target; maxtarg = targ + 1; } else { maxtarg = (ahc->features & AHC_WIDE) ? 16 : 8; } clun = 0; if (lun != CAM_LUN_WILDCARD) { clun = lun; maxlun = clun + 1; } else { maxlun = AHC_NUM_LUNS; }  count = 0; for (; chan < maxchan; chan++) {  for (; targ < maxtarg; targ++) {  for (; clun < maxlun; clun++) { struct ahc_linux_device *dev; struct ahc_busyq *busyq; struct ahc_cmd *acmd;  dev = ahc_linux_get_device(ahc, chan, targ, clun, /*alloc*/FALSE); if (dev == NULL) continue;  busyq = &dev->busyq; while ((acmd = TAILQ_FIRST(busyq)) != NULL) { Scsi_Cmnd *cmd;  cmd = &acmd_scsi_cmd(acmd); TAILQ_REMOVE(busyq, acmd, acmd_links.tqe); count++; cmd->result = status << 16; ahc_linux_queue_cmd_complete(ahc, cmd); } } } }  return (count); 
return 0; 
ahc_platform_abort_scbs(struct ahc_softc *ahc, int target, char channel,			int lun, u_int tag, role_t role, uint32_t status){	int chan;	int maxchan;	int targ;	int maxtarg;	int clun;	int maxlun;	int count;	if (tag != SCB_LIST_NULL)		return (0);	chan = 0;	if (channel != ALL_CHANNELS) {		chan = channel - 'A';		maxchan = chan + 1;	} else {		maxchan = (ahc->features & AHC_TWIN) ? 2 : 1;	}	targ = 0;	if (target != CAM_TARGET_WILDCARD) {		targ = target;		maxtarg = targ + 1;	} else {		maxtarg = (ahc->features & AHC_WIDE) ? 16 : 8;	}	clun = 0;	if (lun != CAM_LUN_WILDCARD) {		clun = lun;		maxlun = clun + 1;	} else {		maxlun = AHC_NUM_LUNS;	}	count = 0;	for (; chan < maxchan; chan++) {		for (; targ < maxtarg; targ++) {			for (; clun < maxlun; clun++) {				struct ahc_linux_device *dev;				struct ahc_busyq *busyq;				struct ahc_cmd *acmd;				dev = ahc_linux_get_device(ahc, chan,							   targ, clun,							   /*alloc*/FALSE);				if (dev == NULL)					continue;				busyq = &dev->busyq;				while ((acmd = TAILQ_FIRST(busyq)) != NULL) {					Scsi_Cmnd *cmd;					cmd = &acmd_scsi_cmd(acmd);					TAILQ_REMOVE(busyq, acmd,						     acmd_links.tqe);					count++;					cmd->result = status << 16;					ahc_linux_queue_cmd_complete(ahc, cmd);				}			}		}	}	return (count);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/e4e360c325c90f7830baaa2a27cd7a1f2bdeb6b0/aic7xxx_osm.c/clean/drivers/scsi/aic7xxx/aic7xxx_osm.c