struct ahc_linux_device *dev; int channel; int maxchannel; int target; int maxtarget; int lun; int i;  maxchannel = (ahc->features & AHC_TWIN) ? 1 : 0; maxtarget = (ahc->features & AHC_WIDE) ? 15 : 7; for (channel = 0; channel <= maxchannel; channel++) {  for (target = 0; target <=maxtarget; target++) {  for (lun = 0; lun < AHC_NUM_LUNS; lun++) { struct ahc_cmd *acmd;  dev = ahc_linux_get_device(ahc, channel, target, lun, /*alloc*/FALSE); if (dev == NULL) continue;  printf("DevQ(%d:%d:%d): ", channel, target, lun); i = 0; TAILQ_FOREACH(acmd, &dev->busyq, acmd_links.tqe) { if (i++ > AHC_SCB_MAX) break; } printf("%d waiting\n", i); } } } 
ahc_platform_dump_card_state(struct ahc_softc *ahc){	struct ahc_linux_device *dev;	int channel;	int maxchannel;	int target;	int maxtarget;	int lun;	int i;	maxchannel = (ahc->features & AHC_TWIN) ? 1 : 0;	maxtarget = (ahc->features & AHC_WIDE) ? 15 : 7;	for (channel = 0; channel <= maxchannel; channel++) {		for (target = 0; target <=maxtarget; target++) {			for (lun = 0; lun < AHC_NUM_LUNS; lun++) {				struct ahc_cmd *acmd;				dev = ahc_linux_get_device(ahc, channel, target,							   lun, /*alloc*/FALSE);				if (dev == NULL)					continue;				printf("DevQ(%d:%d:%d): ",				       channel, target, lun);				i = 0;				TAILQ_FOREACH(acmd, &dev->busyq,					      acmd_links.tqe) {					if (i++ > AHC_SCB_MAX)						break;				}				printf("%d waiting\n", i);			}		}	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/e4e360c325c90f7830baaa2a27cd7a1f2bdeb6b0/aic7xxx_osm.c/clean/drivers/scsi/aic7xxx/aic7xxx_osm.c