print_command(SCpnt->cmnd); 
__scsi_print_command(SCpnt->cmnd); 
static int aha152x_internal_queue(Scsi_Cmnd *SCpnt, struct semaphore *sem, int phase, void (*done)(Scsi_Cmnd *)){	struct Scsi_Host *shpnt = SCpnt->device->host;	unsigned long flags;#if defined(AHA152X_DEBUG)	if (HOSTDATA(shpnt)->debug & debug_queue) {		printk(INFO_LEAD "queue: %p; cmd_len=%d pieces=%d size=%u cmnd=",		       CMDINFO(SCpnt), SCpnt, SCpnt->cmd_len, SCpnt->use_sg, SCpnt->request_bufflen);		print_command(SCpnt->cmnd);	}#endif	SCpnt->scsi_done	= done;	SCpnt->resid 		= SCpnt->request_bufflen;	SCpnt->SCp.phase	= not_issued | phase;	SCpnt->SCp.Status	= CHECK_CONDITION;	SCpnt->SCp.Message	= 0;	SCpnt->SCp.have_data_in	= 0;	SCpnt->SCp.sent_command	= 0;	if(SCpnt->SCp.phase & (resetting|check_condition)) {		if(SCpnt->host_scribble==0 || SCSEM(SCpnt) || SCNEXT(SCpnt)) {			printk(ERR_LEAD "cannot reuse command\n", CMDINFO(SCpnt));			return FAILED;		}	} else {		SCpnt->host_scribble = kmalloc(sizeof(struct aha152x_scdata), GFP_ATOMIC);		if(SCpnt->host_scribble==0) {			printk(ERR_LEAD "allocation failed\n", CMDINFO(SCpnt));			return FAILED;		}	}	SCNEXT(SCpnt)		= NULL;	SCSEM(SCpnt)		= sem;	/* setup scratch area	   SCp.ptr              : buffer pointer	   SCp.this_residual    : buffer length	   SCp.buffer           : next buffer	   SCp.buffers_residual : left buffers in list	   SCp.phase            : current state of the command */	if (SCpnt->use_sg) {		SCpnt->SCp.buffer           = (struct scatterlist *) SCpnt->request_buffer;		SCpnt->SCp.ptr              = SG_ADDRESS(SCpnt->SCp.buffer);		SCpnt->SCp.this_residual    = SCpnt->SCp.buffer->length;		SCpnt->SCp.buffers_residual = SCpnt->use_sg - 1;	} else {		SCpnt->SCp.ptr              = (char *) SCpnt->request_buffer;		SCpnt->SCp.this_residual    = SCpnt->request_bufflen;		SCpnt->SCp.buffer           = NULL;		SCpnt->SCp.buffers_residual = 0;	}	DO_LOCK(flags);#if defined(AHA152X_STAT)	HOSTDATA(shpnt)->total_commands++;#endif	/* Turn led on, when this is the first command. */	HOSTDATA(shpnt)->commands++;	if (HOSTDATA(shpnt)->commands==1)		SETPORT(PORTA, 1);	append_SC(&ISSUE_SC, SCpnt);	if(!HOSTDATA(shpnt)->in_intr)		setup_expected_interrupts(shpnt);	DO_UNLOCK(flags);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/1409277c4aad2e87ad27b2b8a6901ce78eaf8081/aha152x.c/clean/drivers/scsi/aha152x.c