taglinefilesource code
SCpnt751drivers/scsi/aha152x.cint aha152x_queue( Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
SCpnt767drivers/scsi/aha152x.cprintk( "SCpnt (target = %d lun = %d cmnd = ", SCpnt->target, SCpnt->lun);
SCpnt768drivers/scsi/aha152x.cprint_command(SCpnt->cmnd);
SCpnt770drivers/scsi/aha152x.cSCpnt->cmd_len, SCpnt->use_sg, SCpnt->request_bufflen );
SCpnt775drivers/scsi/aha152x.cSCpnt->scsi_done =       done;
SCpnt783drivers/scsi/aha152x.cSCpnt->SCp.phase = not_issued;
SCpnt784drivers/scsi/aha152x.cif (SCpnt->use_sg)
SCpnt786drivers/scsi/aha152x.cSCpnt->SCp.buffer           = (struct scatterlist *)SCpnt->request_buffer;
SCpnt787drivers/scsi/aha152x.cSCpnt->SCp.ptr              = SCpnt->SCp.buffer->address;
SCpnt788drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->SCp.buffer->length;
SCpnt789drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = SCpnt->use_sg - 1;
SCpnt793drivers/scsi/aha152x.cSCpnt->SCp.ptr              = (char *)SCpnt->request_buffer;
SCpnt794drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->request_bufflen;
SCpnt795drivers/scsi/aha152x.cSCpnt->SCp.buffer           = NULL;
SCpnt796drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = 0;
SCpnt799drivers/scsi/aha152x.cSCpnt->SCp.Status              = CHECK_CONDITION;
SCpnt800drivers/scsi/aha152x.cSCpnt->SCp.Message             = 0;
SCpnt801drivers/scsi/aha152x.cSCpnt->SCp.have_data_in        = 0;
SCpnt802drivers/scsi/aha152x.cSCpnt->SCp.sent_command        = 0;
SCpnt815drivers/scsi/aha152x.cappend_SC( &issue_SC, SCpnt);
SCpnt835drivers/scsi/aha152x.cint aha152x_command( Scsi_Cmnd *SCpnt )
SCpnt845drivers/scsi/aha152x.cint aha152x_abort( Scsi_Cmnd *SCpnt)
SCpnt856drivers/scsi/aha152x.cprintk("aha152x: abort(), SCpnt=0x%08x, ", (unsigned int) SCpnt );
SCpnt864drivers/scsi/aha152x.cptr && ptr!=SCpnt;
SCpnt885drivers/scsi/aha152x.cif ( TESTLO(SSTAT1, BUSFREE) || (current_SC && current_SC!=SCpnt))
SCpnt910drivers/scsi/aha152x.cptr && ptr!=SCpnt;
SCpnt506drivers/scsi/aha1542.cint aha1542_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
SCpnt510drivers/scsi/aha1542.cunchar *cmd = (unchar *) SCpnt->cmnd;
SCpnt511drivers/scsi/aha1542.cunchar target = SCpnt->target;
SCpnt512drivers/scsi/aha1542.cunchar lun = SCpnt->lun;
SCpnt514drivers/scsi/aha1542.cvoid *buff = SCpnt->request_buffer;
SCpnt515drivers/scsi/aha1542.cint bufflen = SCpnt->request_bufflen;
SCpnt522drivers/scsi/aha1542.cmb = HOSTDATA(SCpnt->host)->mb;
SCpnt523drivers/scsi/aha1542.cccb = HOSTDATA(SCpnt->host)->ccb;
SCpnt526drivers/scsi/aha1542.cSCpnt->result = DID_TIME_OUT << 16;
SCpnt527drivers/scsi/aha1542.cdone(SCpnt); return 0;});
SCpnt531drivers/scsi/aha1542.cif (bufflen != sizeof(SCpnt->sense_buffer)) {
SCpnt535drivers/scsi/aha1542.cSCpnt->result = 0;
SCpnt536drivers/scsi/aha1542.cdone(SCpnt); 
SCpnt553drivers/scsi/aha1542.cfor (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]);
SCpnt563drivers/scsi/aha1542.cmbo = HOSTDATA(SCpnt->host)->aha1542_last_mbo_used + 1;
SCpnt567drivers/scsi/aha1542.cif(mb[mbo].status == 0 && HOSTDATA(SCpnt->host)->SCint[mbo] == NULL)
SCpnt571drivers/scsi/aha1542.c} while (mbo != HOSTDATA(SCpnt->host)->aha1542_last_mbo_used);
SCpnt573drivers/scsi/aha1542.cif(mb[mbo].status || HOSTDATA(SCpnt->host)->SCint[mbo])
SCpnt576drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->SCint[mbo] = SCpnt;  /* This will effectively prevent someone else from
SCpnt579drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->aha1542_last_mbo_used = mbo;    
SCpnt590drivers/scsi/aha1542.cccb[mbo].cdblen = SCpnt->cmd_len;
SCpnt600drivers/scsi/aha1542.cif (SCpnt->use_sg) {
SCpnt608drivers/scsi/aha1542.cSCpnt->host_scribble = (unsigned char *) scsi_malloc(512);
SCpnt609drivers/scsi/aha1542.csgpnt = (struct scatterlist *) SCpnt->request_buffer;
SCpnt610drivers/scsi/aha1542.ccptr = (struct chain *) SCpnt->host_scribble; 
SCpnt612drivers/scsi/aha1542.cfor(i=0; i<SCpnt->use_sg; i++) {
SCpnt613drivers/scsi/aha1542.cif(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || 
SCpnt616drivers/scsi/aha1542.cprintk("Bad segment list supplied to aha1542.c (%d, %d)\n",SCpnt->use_sg,i);
SCpnt617drivers/scsi/aha1542.cfor(i=0;i<SCpnt->use_sg;i++){
SCpnt630drivers/scsi/aha1542.cany2scsi(ccb[mbo].datalen, SCpnt->use_sg * sizeof(struct chain));
SCpnt639drivers/scsi/aha1542.cSCpnt->host_scribble = NULL;
SCpnt659drivers/scsi/aha1542.cSCpnt->scsi_done = done;
SCpnt661drivers/scsi/aha1542.caha1542_out(SCpnt->host->io_port, &ahacmd, 1);    /* start scsi command */
SCpnt672drivers/scsi/aha1542.cstatic void internal_done(Scsi_Cmnd * SCpnt)
SCpnt674drivers/scsi/aha1542.cSCpnt->SCp.Status++;
SCpnt677drivers/scsi/aha1542.cint aha1542_command(Scsi_Cmnd * SCpnt)
SCpnt681drivers/scsi/aha1542.caha1542_queuecommand(SCpnt, internal_done);
SCpnt683drivers/scsi/aha1542.cSCpnt->SCp.Status = 0;
SCpnt684drivers/scsi/aha1542.cwhile (!SCpnt->SCp.Status);
SCpnt685drivers/scsi/aha1542.creturn SCpnt->result;
SCpnt1097drivers/scsi/aha1542.cint aha1542_abort(Scsi_Cmnd * SCpnt)
SCpnt1106drivers/scsi/aha1542.cinb(STATUS(SCpnt->host->io_port)),
SCpnt1107drivers/scsi/aha1542.cinb(INTRFLAGS(SCpnt->host->io_port)));
SCpnt1111drivers/scsi/aha1542.cmb = HOSTDATA(SCpnt->host)->mb;
SCpnt1112drivers/scsi/aha1542.cmbi = HOSTDATA(SCpnt->host)->aha1542_last_mbi_used + 1;
SCpnt1119drivers/scsi/aha1542.c} while (mbi != HOSTDATA(SCpnt->host)->aha1542_last_mbi_used);
SCpnt1124drivers/scsi/aha1542.cSCpnt->host->irq);
SCpnt1125drivers/scsi/aha1542.caha1542_intr_handle(SCpnt->host->irq, NULL);
SCpnt1133drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i])
SCpnt1135drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) {
SCpnt1136drivers/scsi/aha1542.cprintk("Timed out command pending for %4.4x\n", SCpnt->request.dev);
SCpnt1137drivers/scsi/aha1542.cif (HOSTDATA(SCpnt->host)->mb[i].status) {
SCpnt1139drivers/scsi/aha1542.caha1542_out(SCpnt->host->io_port, &ahacmd, 1);
SCpnt1142drivers/scsi/aha1542.cprintk("Other pending command %4.4x\n", SCpnt->request.dev);
SCpnt1152drivers/scsi/aha1542.cif (SCpnt == HOSTDATA(SCpnt->host)->SCint[mbo]){
SCpnt1154drivers/scsi/aha1542.caha1542_out(SCpnt->host->io_port, &ahacmd, 1); /* start scsi command */
SCpnt1168drivers/scsi/aha1542.cint aha1542_reset(Scsi_Cmnd * SCpnt)
SCpnt1176drivers/scsi/aha1542.coutb(SCRST, CONTROL(SCpnt->host->io_port));
SCpnt1181drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt)
SCpnt1183drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->ccb[i].op = 0x81;  /* BUS DEVICE RESET */
SCpnt1185drivers/scsi/aha1542.caha1542_out(SCpnt->host->io_port, &ahacmd, 1);
SCpnt1191drivers/scsi/aha1542.cprintk("Sent BUS DEVICE RESET to target %d\n", SCpnt->target);
SCpnt1198drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i] &&
SCpnt1199drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->SCint[i]->target == SCpnt->target)
SCpnt1202drivers/scsi/aha1542.cSCtmp = HOSTDATA(SCpnt->host)->SCint[i];
SCpnt1205drivers/scsi/aha1542.cprintk("Sending DID_RESET for target %d\n", SCpnt->target);
SCpnt1206drivers/scsi/aha1542.cSCtmp->scsi_done(SCpnt);
SCpnt1208drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->SCint[i] = NULL;
SCpnt1209drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->mb[i].status = 0;
SCpnt199drivers/scsi/aha1740.cSCtmp = ecbptr->SCpnt;
SCpnt245drivers/scsi/aha1740.cint aha1740_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
SCpnt248drivers/scsi/aha1740.cunchar *cmd = (unchar *) SCpnt->cmnd;
SCpnt249drivers/scsi/aha1740.cunchar target = SCpnt->target;
SCpnt251drivers/scsi/aha1740.cvoid *buff = SCpnt->request_buffer;
SCpnt252drivers/scsi/aha1740.cint bufflen = SCpnt->request_bufflen;
SCpnt259drivers/scsi/aha1740.cif (bufflen != sizeof(SCpnt->sense_buffer))
SCpnt263drivers/scsi/aha1740.cSCpnt->result = 0;
SCpnt264drivers/scsi/aha1740.cdone(SCpnt); 
SCpnt277drivers/scsi/aha1740.cfor (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]);
SCpnt307drivers/scsi/aha1740.cecb[ecbno].cdblen = SCpnt->cmd_len;  /* SCSI Command Descriptor Block Length */
SCpnt317drivers/scsi/aha1740.cif (SCpnt->use_sg)
SCpnt326drivers/scsi/aha1740.cSCpnt->host_scribble = (unsigned char *) scsi_malloc(512);
SCpnt327drivers/scsi/aha1740.csgpnt = (struct scatterlist *) SCpnt->request_buffer;
SCpnt328drivers/scsi/aha1740.ccptr = (struct aha1740_chain *) SCpnt->host_scribble; 
SCpnt330drivers/scsi/aha1740.cfor(i=0; i<SCpnt->use_sg; i++)
SCpnt335drivers/scsi/aha1740.cecb[ecbno].datalen = SCpnt->use_sg * sizeof(struct aha1740_chain);
SCpnt345drivers/scsi/aha1740.cSCpnt->host_scribble = NULL;
SCpnt349drivers/scsi/aha1740.cecb[ecbno].lun = SCpnt->lun;
SCpnt357drivers/scsi/aha1740.cecb[ecbno].SCpnt = SCpnt;
SCpnt412drivers/scsi/aha1740.cstatic void internal_done(Scsi_Cmnd * SCpnt)
SCpnt414drivers/scsi/aha1740.cinternal_done_errcode = SCpnt->result;
SCpnt418drivers/scsi/aha1740.cint aha1740_command(Scsi_Cmnd * SCpnt)
SCpnt420drivers/scsi/aha1740.caha1740_queuecommand(SCpnt, internal_done);
SCpnt486drivers/scsi/aha1740.cint aha1740_abort(Scsi_Cmnd * SCpnt)
SCpnt496drivers/scsi/aha1740.cint aha1740_reset(Scsi_Cmnd * SCpnt)
SCpnt142drivers/scsi/aha1740.hScsi_Cmnd *SCpnt;    /* Link to the SCSI Command Block */
SCpnt364drivers/scsi/constants.cvoid print_sense(char * devclass, Scsi_Cmnd * SCpnt)
SCpnt368drivers/scsi/constants.cunsigned char * sense_buffer = SCpnt->sense_buffer;
SCpnt370drivers/scsi/constants.cint dev = SCpnt->request.dev;
SCpnt378drivers/scsi/constants.cif(s > sizeof(SCpnt->sense_buffer)) s = sizeof(SCpnt->sense_buffer);
SCpnt238drivers/scsi/eata.cScsi_Cmnd *SCpnt;           /* Address set in cp */
SCpnt265drivers/scsi/eata.cScsi_Cmnd *SCpnt;     /* Address to be returned is sp */
SCpnt551drivers/scsi/eata.cstatic inline void build_sg_list(struct mscp *cpp, Scsi_Cmnd *SCpnt) {
SCpnt555drivers/scsi/eata.csgpnt = (struct scatterlist *) SCpnt->request_buffer;
SCpnt557drivers/scsi/eata.cfor (k = 0; k < SCpnt->use_sg; k++) {
SCpnt563drivers/scsi/eata.ccpp->data_len = htonl((SCpnt->use_sg * sizeof(struct sg_list)));
SCpnt566drivers/scsi/eata.cint eata2x_queuecommand (Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *)) {
SCpnt580drivers/scsi/eata.cj = ((struct hostdata *) SCpnt->host->hostdata)->board_number;
SCpnt582drivers/scsi/eata.cif (!done) panic("%s: qcomm, pid %ld, null done.\n", BN(j), SCpnt->pid);
SCpnt603drivers/scsi/eata.celse if (eata2x_reset(SCpnt) == SCSI_RESET_SUCCESS) 
SCpnt606drivers/scsi/eata.cSCpnt->result = DID_BUS_BUSY << 16; 
SCpnt607drivers/scsi/eata.cSCpnt->host_scribble = NULL;
SCpnt608drivers/scsi/eata.cprintk("%s: qcomm, pid %ld, DID_BUS_BUSY, done.\n", BN(j), SCpnt->pid);
SCpnt610drivers/scsi/eata.cdone(SCpnt);    
SCpnt627drivers/scsi/eata.cSCpnt->scsi_done = done;
SCpnt629drivers/scsi/eata.cSCpnt->host_scribble = (unsigned char *) &cpp->index;
SCpnt632drivers/scsi/eata.cBN(j), i, SCpnt->target, SCpnt->pid);
SCpnt635drivers/scsi/eata.cif (SCpnt->cmnd[0] == data_out_cmds[k]) {
SCpnt644drivers/scsi/eata.ccpp->target = SCpnt->target;
SCpnt645drivers/scsi/eata.ccpp->lun = SCpnt->lun;  
SCpnt646drivers/scsi/eata.ccpp->SCpnt = SCpnt;
SCpnt647drivers/scsi/eata.ccpp->sense_addr = htonl((unsigned int) SCpnt->sense_buffer); 
SCpnt648drivers/scsi/eata.ccpp->sense_len = sizeof SCpnt->sense_buffer;
SCpnt650drivers/scsi/eata.cif (SCpnt->use_sg) {
SCpnt652drivers/scsi/eata.cbuild_sg_list(cpp, SCpnt);
SCpnt655drivers/scsi/eata.ccpp->data_address = htonl((unsigned int) SCpnt->request_buffer);
SCpnt656drivers/scsi/eata.ccpp->data_len = htonl(SCpnt->request_bufflen);
SCpnt659drivers/scsi/eata.cmemcpy(cpp->cdb, SCpnt->cmnd, SCpnt->cmd_len);
SCpnt663drivers/scsi/eata.cSCpnt->result = DID_ERROR << 16; 
SCpnt664drivers/scsi/eata.cSCpnt->host_scribble = NULL;
SCpnt666drivers/scsi/eata.cBN(j), SCpnt->target, SCpnt->pid);
SCpnt668drivers/scsi/eata.cdone(SCpnt);    
SCpnt712drivers/scsi/eata.cif (SCarg != HD(j)->cp[i].SCpnt)
SCpnt714drivers/scsi/eata.cBN(j), i, SCarg, HD(j)->cp[i].SCpnt);
SCpnt738drivers/scsi/eata.cScsi_Cmnd *SCpnt;
SCpnt775drivers/scsi/eata.cSCpnt = HD(j)->cp[i].SCpnt;
SCpnt778drivers/scsi/eata.cBN(j), i, SCpnt->pid);
SCpnt780drivers/scsi/eata.cif (SCpnt == NULL)
SCpnt783drivers/scsi/eata.cif (SCpnt->host_scribble == NULL)
SCpnt786drivers/scsi/eata.cif (*(unsigned int *)SCpnt->host_scribble != i) 
SCpnt789drivers/scsi/eata.cif (SCpnt->scsi_done == NULL) 
SCpnt792drivers/scsi/eata.cif (SCpnt == SCarg) arg_done = TRUE;
SCpnt815drivers/scsi/eata.cSCpnt = HD(j)->cp[i].SCpnt;
SCpnt816drivers/scsi/eata.cSCpnt->result = DID_RESET << 16;
SCpnt817drivers/scsi/eata.cSCpnt->host_scribble = NULL;
SCpnt823drivers/scsi/eata.cBN(j), i, SCpnt->pid);
SCpnt825drivers/scsi/eata.cSCpnt->scsi_done(SCpnt);
SCpnt844drivers/scsi/eata.cScsi_Cmnd *SCpnt;
SCpnt910drivers/scsi/eata.cSCpnt = spp->SCpnt;
SCpnt912drivers/scsi/eata.cif (SCpnt == NULL)
SCpnt915drivers/scsi/eata.cif (SCpnt != cpp->SCpnt)
SCpnt917drivers/scsi/eata.cBN(j), i, SCpnt, cpp->SCpnt);
SCpnt919drivers/scsi/eata.cif (SCpnt->host_scribble == NULL)
SCpnt921drivers/scsi/eata.cBN(j), i, SCpnt->pid, SCpnt);
SCpnt923drivers/scsi/eata.cif (*(unsigned int *)SCpnt->host_scribble != i) 
SCpnt925drivers/scsi/eata.c" irq %d.\n", BN(j), i, SCpnt->pid, 
SCpnt926drivers/scsi/eata.c*(unsigned int *)SCpnt->host_scribble, irq);
SCpnt934drivers/scsi/eata.cif (tstatus == BUSY && SCpnt->device->type != TYPE_TAPE) 
SCpnt939drivers/scsi/eata.c&& SCpnt->device->type == TYPE_DISK
SCpnt940drivers/scsi/eata.c&& HD(j)->target_reset[SCpnt->target])
SCpnt945drivers/scsi/eata.c&& SCpnt->device->type == TYPE_DISK
SCpnt946drivers/scsi/eata.c&& (SCpnt->sense_buffer[2] & 0xf) == RECOVERED_ERROR)
SCpnt950drivers/scsi/eata.c&& SCpnt->device->type == TYPE_DISK
SCpnt951drivers/scsi/eata.c&& (SCpnt->sense_buffer[2] & 0xf) == UNIT_ATTENTION)
SCpnt958drivers/scsi/eata.cHD(j)->target_reset[SCpnt->target] = FALSE;
SCpnt960drivers/scsi/eata.cif (spp->target_status && SCpnt->device->type == TYPE_DISK)
SCpnt963drivers/scsi/eata.cSCpnt->target, SCpnt->lun, SCpnt->pid,
SCpnt964drivers/scsi/eata.cspp->target_status, SCpnt->sense_buffer[2]);
SCpnt966drivers/scsi/eata.cHD(j)->target_time_out[SCpnt->target] = 0;
SCpnt972drivers/scsi/eata.cif (HD(j)->target_time_out[SCpnt->target] > 1)
SCpnt976drivers/scsi/eata.cHD(j)->target_time_out[SCpnt->target]++;
SCpnt983drivers/scsi/eata.cif (SCpnt->device->type != TYPE_TAPE)
SCpnt1005drivers/scsi/eata.cSCpnt->result = status | spp->target_status;
SCpnt1011drivers/scsi/eata.cif (SCpnt->result || do_trace)
SCpnt1021drivers/scsi/eata.cSCpnt->target, SCpnt->lun, SCpnt->pid, HD(j)->iocount);
SCpnt1024drivers/scsi/eata.cSCpnt->host_scribble = NULL;
SCpnt1027drivers/scsi/eata.cSCpnt->scsi_done(SCpnt);
SCpnt94drivers/scsi/eata_dma.cvoid eata_scsi_done (Scsi_Cmnd * SCpnt)
SCpnt1333drivers/scsi/fdomain.cint fdomain_16x0_queue( Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
SCpnt1340drivers/scsi/fdomain.cSCpnt->target,
SCpnt1341drivers/scsi/fdomain.c*(unsigned char *)SCpnt->cmnd,
SCpnt1342drivers/scsi/fdomain.cSCpnt->use_sg,
SCpnt1343drivers/scsi/fdomain.cSCpnt->request_bufflen );
SCpnt1348drivers/scsi/fdomain.ccurrent_SC            = SCpnt; /* Save this for the done function */
SCpnt1391drivers/scsi/fdomain.cstatic void internal_done( Scsi_Cmnd *SCpnt )
SCpnt1393drivers/scsi/fdomain.cinternal_done_errcode = SCpnt->result;
SCpnt1397drivers/scsi/fdomain.cint fdomain_16x0_command( Scsi_Cmnd *SCpnt )
SCpnt1399drivers/scsi/fdomain.cfdomain_16x0_queue( SCpnt, internal_done );
SCpnt1409drivers/scsi/fdomain.cvoid print_info( Scsi_Cmnd *SCpnt )
SCpnt1415drivers/scsi/fdomain.cif (!SCpnt || !SCpnt->host) {
SCpnt1419drivers/scsi/fdomain.cprintk( "%s\n", fdomain_16x0_info( SCpnt->host ) );
SCpnt1420drivers/scsi/fdomain.cprint_banner( SCpnt->host );
SCpnt1421drivers/scsi/fdomain.cswitch (SCpnt->SCp.phase) {
SCpnt1429drivers/scsi/fdomain.cSCpnt->SCp.phase,
SCpnt1430drivers/scsi/fdomain.cSCpnt->target,
SCpnt1431drivers/scsi/fdomain.c*(unsigned char *)SCpnt->cmnd,
SCpnt1432drivers/scsi/fdomain.cSCpnt->use_sg,
SCpnt1433drivers/scsi/fdomain.cSCpnt->request_bufflen );
SCpnt1435drivers/scsi/fdomain.cSCpnt->SCp.sent_command,
SCpnt1436drivers/scsi/fdomain.cSCpnt->SCp.have_data_in,
SCpnt1437drivers/scsi/fdomain.cSCpnt->timeout );
SCpnt1478drivers/scsi/fdomain.cint fdomain_16x0_abort( Scsi_Cmnd *SCpnt)
SCpnt1496drivers/scsi/fdomain.cprint_info( SCpnt );
SCpnt1513drivers/scsi/fdomain.cint fdomain_16x0_reset( Scsi_Cmnd *SCpnt )
SCpnt1520drivers/scsi/fdomain.cif (SCpnt) printk( "fdomain: SCSI Bus Reset\n" );
SCpnt409drivers/scsi/in2000.cint in2000_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
SCpnt412drivers/scsi/in2000.cunchar *cmd = (unchar *) SCpnt->cmnd;
SCpnt413drivers/scsi/in2000.cunchar target = SCpnt->target;
SCpnt414drivers/scsi/in2000.cvoid *buff = SCpnt->request_buffer;
SCpnt416drivers/scsi/in2000.cint bufflen = SCpnt->request_bufflen;
SCpnt443drivers/scsi/in2000.cfor (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]);
SCpnt449drivers/scsi/in2000.csize = SCpnt->cmd_len;  /* CDB length */ 
SCpnt487drivers/scsi/in2000.cSCpnt->result = DID_TIME_OUT << 16;
SCpnt488drivers/scsi/in2000.c(*done)(SCpnt);
SCpnt492drivers/scsi/in2000.cin2000_nsegment = SCpnt->use_sg;
SCpnt494drivers/scsi/in2000.cif(SCpnt->use_sg){
SCpnt504drivers/scsi/in2000.cin2000_SCptr = SCpnt;
SCpnt512drivers/scsi/in2000.coutb(SCpnt->lun & 7,INDATA);
SCpnt513drivers/scsi/in2000.cSCpnt->host_scribble = NULL;
SCpnt557drivers/scsi/in2000.cstatic void internal_done(Scsi_Cmnd * SCpnt)
SCpnt559drivers/scsi/in2000.cinternal_done_errcode = SCpnt->result;
SCpnt563drivers/scsi/in2000.cint in2000_command(Scsi_Cmnd * SCpnt)
SCpnt565drivers/scsi/in2000.cin2000_queuecommand(SCpnt, internal_done);
SCpnt644drivers/scsi/in2000.cint in2000_abort(Scsi_Cmnd * SCpnt)
SCpnt661drivers/scsi/in2000.cint in2000_reset(Scsi_Cmnd * SCpnt)
SCpnt678drivers/scsi/in2000.cif(SCpnt) SCpnt->flags |= NEEDS_JUMPSTART;
SCpnt44drivers/scsi/scsi.cstatic void scsi_done (Scsi_Cmnd *SCpnt);
SCpnt47drivers/scsi/scsi.cstatic void scsi_times_out (Scsi_Cmnd * SCpnt, int pid);
SCpnt267drivers/scsi/scsi.cstatic void scan_scsis_done (Scsi_Cmnd * SCpnt)
SCpnt271drivers/scsi/scsi.cprintk ("scan_scsis_done(%d, %06x)\n", SCpnt->host, SCpnt->result);
SCpnt273drivers/scsi/scsi.cSCpnt->request.dev = 0xfffe;
SCpnt275drivers/scsi/scsi.cif (SCpnt->request.sem != NULL)
SCpnt276drivers/scsi/scsi.cup(SCpnt->request.sem);
SCpnt644drivers/scsi/scsi.cstatic void scsi_times_out (Scsi_Cmnd * SCpnt, int pid)
SCpnt647drivers/scsi/scsi.cswitch (SCpnt->internal_timeout & (IN_ABORT | IN_RESET))
SCpnt656drivers/scsi/scsi.cif (!scsi_abort  (SCpnt, DID_TIME_OUT, pid))
SCpnt660drivers/scsi/scsi.cSCpnt->host->host_no);
SCpnt661drivers/scsi/scsi.cif (!scsi_reset (SCpnt))
SCpnt668drivers/scsi/scsi.cprintk("Unable to reset scsi host %d - ",SCpnt->host->host_no);
SCpnt687drivers/scsi/scsi.cScsi_Cmnd * SCpnt = NULL;
SCpnt697drivers/scsi/scsi.cSCpnt =  device->host->host_queue;
SCpnt698drivers/scsi/scsi.cwhile(SCpnt){
SCpnt699drivers/scsi/scsi.cif(SCpnt->target == device->id &&
SCpnt700drivers/scsi/scsi.cSCpnt->lun == device->lun)
SCpnt701drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
SCpnt702drivers/scsi/scsi.cSCpnt = SCpnt->next;
SCpnt705drivers/scsi/scsi.cif (!SCpnt) return NULL;
SCpnt710drivers/scsi/scsi.cmemcpy(&SCpnt->request, req, sizeof(struct request));
SCpnt725drivers/scsi/scsi.cSCpnt->request.bhtail = bh;
SCpnt731drivers/scsi/scsi.cSCpnt->request.nr_sectors -= req->nr_sectors;
SCpnt734drivers/scsi/scsi.cSCpnt->request.sem = NULL; /* Wait until whole thing done */
SCpnt740drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy, but no request */
SCpnt741drivers/scsi/scsi.cSCpnt->request.sem = NULL;  /* And no one is waiting for the device either */
SCpnt744drivers/scsi/scsi.cSCpnt->use_sg = 0;  /* Reset the scatter-gather flag */
SCpnt745drivers/scsi/scsi.cSCpnt->old_use_sg  = 0;
SCpnt746drivers/scsi/scsi.cSCpnt->transfersize = 0;
SCpnt747drivers/scsi/scsi.cSCpnt->underflow = 0;
SCpnt748drivers/scsi/scsi.cSCpnt->cmd_len = 0;
SCpnt749drivers/scsi/scsi.creturn SCpnt;
SCpnt770drivers/scsi/scsi.cScsi_Cmnd * SCpnt = NULL;
SCpnt786drivers/scsi/scsi.cSCpnt = host->host_queue;
SCpnt787drivers/scsi/scsi.cwhile(SCpnt){
SCpnt788drivers/scsi/scsi.cif(SCpnt->target == device->id &&
SCpnt789drivers/scsi/scsi.cSCpnt->lun == device->lun) {
SCpnt790drivers/scsi/scsi.cSCwait = SCpnt;
SCpnt791drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
SCpnt793drivers/scsi/scsi.cSCpnt = SCpnt->next;
SCpnt802drivers/scsi/scsi.cif (!SCpnt || SCpnt->request.dev >= 0)  /* Might have changed */
SCpnt815drivers/scsi/scsi.cmemcpy(&SCpnt->request, req, sizeof(struct request));
SCpnt830drivers/scsi/scsi.cSCpnt->request.bhtail = bh;
SCpnt835drivers/scsi/scsi.cSCpnt->request.nr_sectors -= req->nr_sectors;
SCpnt838drivers/scsi/scsi.cSCpnt->request.sem = NULL; /* Wait until whole thing done */
SCpnt847drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy */
SCpnt848drivers/scsi/scsi.cSCpnt->request.sem = NULL;  /* And no one is waiting for this to complete */
SCpnt855drivers/scsi/scsi.cSCpnt->use_sg = 0;  /* Reset the scatter-gather flag */
SCpnt856drivers/scsi/scsi.cSCpnt->old_use_sg  = 0;
SCpnt857drivers/scsi/scsi.cSCpnt->transfersize = 0;      /* No default transfer size */
SCpnt858drivers/scsi/scsi.cSCpnt->cmd_len = 0;
SCpnt859drivers/scsi/scsi.cSCpnt->underflow = 0;         /* Do not flag underflow conditions */
SCpnt860drivers/scsi/scsi.creturn SCpnt;
SCpnt867drivers/scsi/scsi.cinline void internal_cmnd (Scsi_Cmnd * SCpnt)
SCpnt876drivers/scsi/scsi.cif ((unsigned long) &SCpnt < current->kernel_stack_page)
SCpnt879drivers/scsi/scsi.chost = SCpnt->host;
SCpnt891drivers/scsi/scsi.cupdate_timeout(SCpnt, SCpnt->timeout_per_command);
SCpnt899drivers/scsi/scsi.c"bufflen = %d, done = %08x)\n", SCpnt->host->host_no, SCpnt->target, SCpnt->cmnd, SCpnt->buffer, SCpnt->bufflen, SCpnt->done);
SCpnt916drivers/scsi/scsi.cif(!intr_count && SCpnt->host->irq)
SCpnt917drivers/scsi/scsi.cdisable_irq(SCpnt->host->irq);
SCpnt919drivers/scsi/scsi.chost->hostt->queuecommand (SCpnt, scsi_done);
SCpnt921drivers/scsi/scsi.cif(!intr_count && SCpnt->host->irq)
SCpnt922drivers/scsi/scsi.cenable_irq(SCpnt->host->irq);
SCpnt930drivers/scsi/scsi.ctemp=host->hostt->command (SCpnt);
SCpnt931drivers/scsi/scsi.cSCpnt->result = temp;
SCpnt937drivers/scsi/scsi.cscsi_done(SCpnt);
SCpnt944drivers/scsi/scsi.cstatic void scsi_request_sense (Scsi_Cmnd * SCpnt)
SCpnt950drivers/scsi/scsi.cSCpnt->flags |= WAS_SENSE | ASKED_FOR_SENSE;
SCpnt951drivers/scsi/scsi.cupdate_timeout(SCpnt, SENSE_TIMEOUT);
SCpnt955drivers/scsi/scsi.cmemcpy ((void *) SCpnt->cmnd , (void *) generic_sense,
SCpnt958drivers/scsi/scsi.cSCpnt->cmnd[1] = SCpnt->lun << 5;
SCpnt959drivers/scsi/scsi.cSCpnt->cmnd[4] = sizeof(SCpnt->sense_buffer);
SCpnt961drivers/scsi/scsi.cSCpnt->request_buffer = &SCpnt->sense_buffer;
SCpnt962drivers/scsi/scsi.cSCpnt->request_bufflen = sizeof(SCpnt->sense_buffer);
SCpnt963drivers/scsi/scsi.cSCpnt->use_sg = 0;
SCpnt964drivers/scsi/scsi.cSCpnt->cmd_len = COMMAND_SIZE(SCpnt->cmnd[0]);
SCpnt965drivers/scsi/scsi.cinternal_cmnd (SCpnt);
SCpnt977drivers/scsi/scsi.cvoid scsi_do_cmd (Scsi_Cmnd * SCpnt, const void *cmnd ,
SCpnt983drivers/scsi/scsi.cstruct Scsi_Host * host = SCpnt->host;
SCpnt988drivers/scsi/scsi.cint target = SCpnt->target;
SCpnt1014drivers/scsi/scsi.cSCpnt->pid = scsi_pid++;
SCpnt1035drivers/scsi/scsi.cmemcpy ((void *) SCpnt->data_cmnd , (void *) cmnd, 12);
SCpnt1037drivers/scsi/scsi.cSCpnt->host = host;
SCpnt1038drivers/scsi/scsi.cSCpnt->target = target;
SCpnt1039drivers/scsi/scsi.cSCpnt->lun = (SCpnt->data_cmnd[1] >> 5);
SCpnt1041drivers/scsi/scsi.cSCpnt->bufflen = bufflen;
SCpnt1042drivers/scsi/scsi.cSCpnt->buffer = buffer;
SCpnt1043drivers/scsi/scsi.cSCpnt->flags=0;
SCpnt1044drivers/scsi/scsi.cSCpnt->retries=0;
SCpnt1045drivers/scsi/scsi.cSCpnt->allowed=retries;
SCpnt1046drivers/scsi/scsi.cSCpnt->done = done;
SCpnt1047drivers/scsi/scsi.cSCpnt->timeout_per_command = timeout;
SCpnt1049drivers/scsi/scsi.cmemcpy ((void *) SCpnt->cmnd , (void *) cmnd, 12);
SCpnt1052drivers/scsi/scsi.cmemset ((void *) SCpnt->sense_buffer, 0, sizeof SCpnt->sense_buffer);
SCpnt1053drivers/scsi/scsi.cSCpnt->request_buffer = buffer;
SCpnt1054drivers/scsi/scsi.cSCpnt->request_bufflen = bufflen;
SCpnt1055drivers/scsi/scsi.cSCpnt->old_use_sg = SCpnt->use_sg;
SCpnt1056drivers/scsi/scsi.cif (SCpnt->cmd_len == 0)
SCpnt1057drivers/scsi/scsi.cSCpnt->cmd_len = COMMAND_SIZE(SCpnt->cmnd[0]);
SCpnt1058drivers/scsi/scsi.cSCpnt->old_cmd_len = SCpnt->cmd_len;
SCpnt1062drivers/scsi/scsi.cSCpnt->internal_timeout = 0;
SCpnt1063drivers/scsi/scsi.cSCpnt->abort_reason = 0;
SCpnt1064drivers/scsi/scsi.cinternal_cmnd (SCpnt);
SCpnt1079drivers/scsi/scsi.cstatic void reset (Scsi_Cmnd * SCpnt)
SCpnt1082drivers/scsi/scsi.cprintk("scsi: reset(%d)\n", SCpnt->host->host_no);
SCpnt1085drivers/scsi/scsi.cSCpnt->flags |= (WAS_RESET | IS_RESETTING);
SCpnt1086drivers/scsi/scsi.cscsi_reset(SCpnt);
SCpnt1093drivers/scsi/scsi.cif(SCpnt->flags & NEEDS_JUMPSTART) {
SCpnt1094drivers/scsi/scsi.cSCpnt->flags &= ~NEEDS_JUMPSTART;
SCpnt1095drivers/scsi/scsi.cscsi_request_sense (SCpnt);
SCpnt1102drivers/scsi/scsi.cstatic int check_sense (Scsi_Cmnd * SCpnt)
SCpnt1107drivers/scsi/scsi.cif (((SCpnt->sense_buffer[0] & 0x70) >> 4) != 7) {
SCpnt1108drivers/scsi/scsi.cif(!(SCpnt->flags & ASKED_FOR_SENSE))
SCpnt1114drivers/scsi/scsi.cSCpnt->flags &= ~ASKED_FOR_SENSE;
SCpnt1117drivers/scsi/scsi.cprintk("scsi%d : ", SCpnt->host->host_no);
SCpnt1118drivers/scsi/scsi.cprint_sense("", SCpnt);
SCpnt1121drivers/scsi/scsi.cif (SCpnt->sense_buffer[2] &0xe0)
SCpnt1124drivers/scsi/scsi.cswitch (SCpnt->sense_buffer[2] & 0xf)
SCpnt1174drivers/scsi/scsi.cstatic void scsi_done (Scsi_Cmnd * SCpnt)
SCpnt1180drivers/scsi/scsi.cstruct Scsi_Host * host = SCpnt->host;
SCpnt1181drivers/scsi/scsi.cint result = SCpnt->result;
SCpnt1182drivers/scsi/scsi.coldto = update_timeout(SCpnt, 0);
SCpnt1186drivers/scsi/scsi.cresult, SCpnt->target, SCpnt->lun);
SCpnt1191drivers/scsi/scsi.cif(host_byte(result) == DID_ABORT && SCpnt->abort_reason)
SCpnt1192drivers/scsi/scsi.cSCpnt->result = result = (result & 0xff00ffff) |
SCpnt1193drivers/scsi/scsi.c(SCpnt->abort_reason << 16);
SCpnt1205drivers/scsi/scsi.cif(SCpnt->flags & WAS_SENSE)
SCpnt1207drivers/scsi/scsi.cSCpnt->use_sg = SCpnt->old_use_sg;
SCpnt1208drivers/scsi/scsi.cSCpnt->cmd_len = SCpnt->old_cmd_len;
SCpnt1214drivers/scsi/scsi.cif (status_byte(result) && (SCpnt->flags & WAS_SENSE))
SCpnt1217drivers/scsi/scsi.cSCpnt->flags &= ~WAS_SENSE;
SCpnt1218drivers/scsi/scsi.cSCpnt->internal_timeout &= ~SENSE_TIMEOUT;
SCpnt1220drivers/scsi/scsi.cif (!(SCpnt->flags & WAS_RESET))
SCpnt1223drivers/scsi/scsi.cSCpnt->host->host_no, SCpnt->target, SCpnt->lun);
SCpnt1224drivers/scsi/scsi.creset(SCpnt);
SCpnt1239drivers/scsi/scsi.cif (SCpnt->flags & WAS_SENSE)
SCpnt1245drivers/scsi/scsi.cSCpnt->flags &= ~WAS_SENSE;
SCpnt1246drivers/scsi/scsi.cSCpnt->internal_timeout &= ~SENSE_TIMEOUT;
SCpnt1248drivers/scsi/scsi.cswitch (checked = check_sense(SCpnt))
SCpnt1256drivers/scsi/scsi.cupdate_timeout(SCpnt, oldto);
SCpnt1295drivers/scsi/scsi.cswitch (check_sense(SCpnt))
SCpnt1298drivers/scsi/scsi.cupdate_timeout(SCpnt, oldto);
SCpnt1311drivers/scsi/scsi.cscsi_request_sense (SCpnt);
SCpnt1323drivers/scsi/scsi.cupdate_timeout(SCpnt, oldto);
SCpnt1329drivers/scsi/scsi.cSCpnt->host->host_no);
SCpnt1330drivers/scsi/scsi.creset(SCpnt);
SCpnt1353drivers/scsi/scsi.cif (SCpnt->flags & WAS_TIMEDOUT)
SCpnt1365drivers/scsi/scsi.cSCpnt->flags  |= WAS_TIMEDOUT;
SCpnt1366drivers/scsi/scsi.cSCpnt->internal_timeout &= ~IN_ABORT;
SCpnt1389drivers/scsi/scsi.cif (SCpnt->flags & IS_RESETTING)
SCpnt1391drivers/scsi/scsi.cSCpnt->flags &= ~IS_RESETTING;
SCpnt1398drivers/scsi/scsi.cswitch (check_sense(SCpnt)) {
SCpnt1400drivers/scsi/scsi.cupdate_timeout(SCpnt, oldto);
SCpnt1413drivers/scsi/scsi.cscsi_request_sense (SCpnt);
SCpnt1435drivers/scsi/scsi.cSCpnt->allowed, SCpnt->retries);
SCpnt1438drivers/scsi/scsi.cif ((++SCpnt->retries) < SCpnt->allowed)
SCpnt1440drivers/scsi/scsi.cif ((SCpnt->retries >= (SCpnt->allowed >> 1))
SCpnt1441drivers/scsi/scsi.c&& !(jiffies < SCpnt->host->last_reset + MIN_RESET_PERIOD)
SCpnt1442drivers/scsi/scsi.c&& !(SCpnt->flags & WAS_RESET))
SCpnt1445drivers/scsi/scsi.cSCpnt->host->host_no);
SCpnt1446drivers/scsi/scsi.creset(SCpnt);
SCpnt1460drivers/scsi/scsi.cif (SCpnt->flags & WAS_SENSE)
SCpnt1461drivers/scsi/scsi.cscsi_request_sense(SCpnt);
SCpnt1464drivers/scsi/scsi.cmemcpy ((void *) SCpnt->cmnd,
SCpnt1465drivers/scsi/scsi.c(void*) SCpnt->data_cmnd,
SCpnt1466drivers/scsi/scsi.csizeof(SCpnt->data_cmnd));
SCpnt1467drivers/scsi/scsi.cSCpnt->request_buffer = SCpnt->buffer;
SCpnt1468drivers/scsi/scsi.cSCpnt->request_bufflen = SCpnt->bufflen;
SCpnt1469drivers/scsi/scsi.cSCpnt->use_sg = SCpnt->old_use_sg;
SCpnt1470drivers/scsi/scsi.cSCpnt->cmd_len = SCpnt->old_cmd_len;
SCpnt1471drivers/scsi/scsi.cinternal_cmnd (SCpnt);
SCpnt1481drivers/scsi/scsi.cprintk("Calling done function - at address %08x\n", SCpnt->done);
SCpnt1489drivers/scsi/scsi.cif (MAJOR(SCpnt->request.dev) != SCSI_DISK_MAJOR &&
SCpnt1490drivers/scsi/scsi.cMAJOR(SCpnt->request.dev) != SCSI_CDROM_MAJOR) {
SCpnt1500drivers/scsi/scsi.cSCpnt->result = result | ((exit & 0xff) << 24);
SCpnt1501drivers/scsi/scsi.cSCpnt->use_sg = SCpnt->old_use_sg;
SCpnt1502drivers/scsi/scsi.cSCpnt->cmd_len = SCpnt->old_cmd_len;
SCpnt1503drivers/scsi/scsi.cSCpnt->done (SCpnt);
SCpnt1528drivers/scsi/scsi.cint scsi_abort (Scsi_Cmnd * SCpnt, int why, int pid)
SCpnt1532drivers/scsi/scsi.cstruct Scsi_Host * host = SCpnt->host;
SCpnt1543drivers/scsi/scsi.cif (SCpnt->request.dev == -1 || pid != SCpnt->pid) {
SCpnt1548drivers/scsi/scsi.cif (SCpnt->internal_timeout & IN_ABORT)
SCpnt1551drivers/scsi/scsi.cwhile (SCpnt->internal_timeout & IN_ABORT);
SCpnt1555drivers/scsi/scsi.cSCpnt->internal_timeout |= IN_ABORT;
SCpnt1556drivers/scsi/scsi.coldto = update_timeout(SCpnt, ABORT_TIMEOUT);
SCpnt1558drivers/scsi/scsi.cif ((SCpnt->flags & IS_RESETTING) &&
SCpnt1559drivers/scsi/scsi.cSCpnt->device->soft_reset) {
SCpnt1563drivers/scsi/scsi.c" the bus was reset\n", SCpnt->target, SCpnt->lun);
SCpnt1568drivers/scsi/scsi.cSCpnt->internal_timeout &= ~IN_ABORT;
SCpnt1569drivers/scsi/scsi.cupdate_timeout(SCpnt, oldto);
SCpnt1573drivers/scsi/scsi.cSCpnt->pid, SCpnt->host->host_no, (int) SCpnt->target, (int)
SCpnt1574drivers/scsi/scsi.cSCpnt->lun);
SCpnt1575drivers/scsi/scsi.cprint_command (SCpnt->cmnd);
SCpnt1576drivers/scsi/scsi.cif (SCpnt->request.dev == -1 || pid != SCpnt->pid)
SCpnt1578drivers/scsi/scsi.cSCpnt->abort_reason = why;
SCpnt1579drivers/scsi/scsi.cswitch(host->hostt->abort(SCpnt)) {
SCpnt1590drivers/scsi/scsi.cSCpnt->internal_timeout &= ~IN_ABORT;
SCpnt1591drivers/scsi/scsi.cif(SCpnt->flags & WAS_TIMEDOUT) {
SCpnt1597drivers/scsi/scsi.cSCpnt->flags |= WAS_TIMEDOUT;
SCpnt1598drivers/scsi/scsi.coldto = SCpnt->timeout_per_command;
SCpnt1599drivers/scsi/scsi.cupdate_timeout(SCpnt, oldto);
SCpnt1608drivers/scsi/scsi.cupdate_timeout(SCpnt, oldto);
SCpnt1616drivers/scsi/scsi.cSCpnt->internal_timeout &= ~IN_ABORT;
SCpnt1617drivers/scsi/scsi.cupdate_timeout(SCpnt, 0);
SCpnt1621drivers/scsi/scsi.cSCpnt->internal_timeout &= ~IN_ABORT;
SCpnt1628drivers/scsi/scsi.cint scsi_reset (Scsi_Cmnd * SCpnt)
SCpnt1633drivers/scsi/scsi.cstruct Scsi_Host * host = SCpnt->host;
SCpnt1641drivers/scsi/scsi.cif (SCpnt->internal_timeout & IN_RESET)
SCpnt1644drivers/scsi/scsi.cwhile (SCpnt->internal_timeout & IN_RESET);
SCpnt1648drivers/scsi/scsi.cSCpnt->internal_timeout |= IN_RESET;
SCpnt1649drivers/scsi/scsi.coldto = update_timeout(SCpnt, RESET_TIMEOUT);
SCpnt1660drivers/scsi/scsi.cscsi_abort(SCpnt1, DID_RESET, SCpnt->pid);
SCpnt1668drivers/scsi/scsi.ctemp = host->hostt->reset(SCpnt);
SCpnt1676drivers/scsi/scsi.ctemp = host->hostt->reset(SCpnt);
SCpnt1688drivers/scsi/scsi.cSCpnt->internal_timeout &= ~IN_RESET;
SCpnt1689drivers/scsi/scsi.cupdate_timeout(SCpnt, oldto);
SCpnt1696drivers/scsi/scsi.cSCpnt->internal_timeout &= ~IN_RESET;
SCpnt1697drivers/scsi/scsi.cscsi_request_sense (SCpnt);
SCpnt1706drivers/scsi/scsi.cSCpnt->internal_timeout &= ~IN_RESET;
SCpnt1707drivers/scsi/scsi.cupdate_timeout(SCpnt, 0);
SCpnt1730drivers/scsi/scsi.cScsi_Cmnd * SCpnt = NULL;
SCpnt1744drivers/scsi/scsi.cfor(SCpnt = host->host_queue; SCpnt; SCpnt = SCpnt->next)
SCpnt1745drivers/scsi/scsi.cif (SCpnt->timeout == -1)
SCpnt1747drivers/scsi/scsi.cSCpnt->timeout = 0;
SCpnt1748drivers/scsi/scsi.cpid = SCpnt->pid;
SCpnt1750drivers/scsi/scsi.cscsi_times_out(SCpnt, pid);
SCpnt1774drivers/scsi/scsi.cScsi_Cmnd * SCpnt = NULL;
SCpnt1801drivers/scsi/scsi.cfor(SCpnt = host->host_queue; SCpnt; SCpnt = SCpnt->next)
SCpnt1802drivers/scsi/scsi.cif (SCpnt->timeout > 0) {
SCpnt1803drivers/scsi/scsi.cSCpnt->timeout -= used;
SCpnt1804drivers/scsi/scsi.cif(SCpnt->timeout <= 0) SCpnt->timeout = -1;
SCpnt1805drivers/scsi/scsi.cif(SCpnt->timeout > 0 && SCpnt->timeout < least)
SCpnt1806drivers/scsi/scsi.cleast = SCpnt->timeout;
SCpnt1960drivers/scsi/scsi.cScsi_Cmnd * SCpnt;
SCpnt2000drivers/scsi/scsi.cSCpnt = (Scsi_Cmnd *) scsi_init_malloc(sizeof(Scsi_Cmnd), GFP_ATOMIC);
SCpnt2001drivers/scsi/scsi.cSCpnt->host = SDpnt->host;
SCpnt2002drivers/scsi/scsi.cSCpnt->device = SDpnt;
SCpnt2003drivers/scsi/scsi.cSCpnt->target = SDpnt->id;
SCpnt2004drivers/scsi/scsi.cSCpnt->lun = SDpnt->lun;
SCpnt2005drivers/scsi/scsi.cSCpnt->request.dev = -1; /* Mark not busy */
SCpnt2006drivers/scsi/scsi.cSCpnt->use_sg = 0;
SCpnt2007drivers/scsi/scsi.cSCpnt->old_use_sg = 0;
SCpnt2008drivers/scsi/scsi.cSCpnt->old_cmd_len = 0;
SCpnt2009drivers/scsi/scsi.cSCpnt->timeout = 0;
SCpnt2010drivers/scsi/scsi.cSCpnt->underflow = 0;
SCpnt2011drivers/scsi/scsi.cSCpnt->transfersize = 0;
SCpnt2012drivers/scsi/scsi.cSCpnt->host_scribble = NULL;
SCpnt2015drivers/scsi/scsi.chost->host_queue->prev = SCpnt;
SCpnt2016drivers/scsi/scsi.cSCpnt->next = host->host_queue;
SCpnt2017drivers/scsi/scsi.cSCpnt->prev = NULL;
SCpnt2018drivers/scsi/scsi.chost->host_queue = SCpnt;
SCpnt2129drivers/scsi/scsi.cScsi_Cmnd * SCpnt;
SCpnt2186drivers/scsi/scsi.cSCpnt = (Scsi_Cmnd *) scsi_init_malloc(sizeof(Scsi_Cmnd), GFP_ATOMIC);
SCpnt2187drivers/scsi/scsi.cSCpnt->host = SDpnt->host;
SCpnt2188drivers/scsi/scsi.cSCpnt->device = SDpnt;
SCpnt2189drivers/scsi/scsi.cSCpnt->target = SDpnt->id;
SCpnt2190drivers/scsi/scsi.cSCpnt->lun = SDpnt->lun;
SCpnt2191drivers/scsi/scsi.cSCpnt->request.dev = -1; /* Mark not busy */
SCpnt2192drivers/scsi/scsi.cSCpnt->request.sem = NULL;
SCpnt2193drivers/scsi/scsi.cSCpnt->use_sg = 0;
SCpnt2194drivers/scsi/scsi.cSCpnt->old_use_sg = 0;
SCpnt2195drivers/scsi/scsi.cSCpnt->underflow = 0;
SCpnt2196drivers/scsi/scsi.cSCpnt->timeout = 0;
SCpnt2197drivers/scsi/scsi.cSCpnt->transfersize = 0;
SCpnt2198drivers/scsi/scsi.cSCpnt->host_scribble = NULL;
SCpnt2200drivers/scsi/scsi.cSCpnt->next = host->host_queue;
SCpnt2201drivers/scsi/scsi.cSCpnt->prev = NULL;
SCpnt2202drivers/scsi/scsi.chost->host_queue = SCpnt;
SCpnt2204drivers/scsi/scsi.chost->host_queue->prev = SCpnt;
SCpnt2285drivers/scsi/scsi.cScsi_Cmnd * SCpnt;
SCpnt2300drivers/scsi/scsi.cfor(SCpnt = shpnt->host_queue; SCpnt; SCpnt = SCpnt->next)
SCpnt2304drivers/scsi/scsi.cif(SCpnt->request.dev != -1) {
SCpnt2306drivers/scsi/scsi.cfor(SCpnt = shpnt->host_queue; SCpnt; SCpnt = SCpnt->next)
SCpnt2307drivers/scsi/scsi.cif(SCpnt->request.dev == 0xffe0) SCpnt->request.dev = -1;
SCpnt2311drivers/scsi/scsi.cSCpnt->request.dev = 0xffe0;  /* Mark as busy */
SCpnt2333drivers/scsi/scsi.cSCpnt = sdpnt->host->host_queue->next;
SCpnt2335drivers/scsi/scsi.csdpnt->host->host_queue = SCpnt;
SCpnt2336drivers/scsi/scsi.cif (SCpnt) SCpnt->prev = NULL;
SCpnt2445drivers/scsi/scsi.cScsi_Cmnd * SCpnt;
SCpnt2449drivers/scsi/scsi.cfor(SCpnt=shpnt->host_queue; SCpnt; SCpnt = SCpnt->next)
SCpnt2453drivers/scsi/scsi.ci++, SCpnt->host->host_no,
SCpnt2454drivers/scsi/scsi.cSCpnt->target,
SCpnt2455drivers/scsi/scsi.cSCpnt->lun,
SCpnt2456drivers/scsi/scsi.cSCpnt->request.dev,
SCpnt2457drivers/scsi/scsi.cSCpnt->request.sector,
SCpnt2458drivers/scsi/scsi.cSCpnt->request.nr_sectors,
SCpnt2459drivers/scsi/scsi.cSCpnt->request.current_nr_sectors,
SCpnt2460drivers/scsi/scsi.cSCpnt->use_sg,
SCpnt2461drivers/scsi/scsi.cSCpnt->retries,
SCpnt2462drivers/scsi/scsi.cSCpnt->allowed,
SCpnt2463drivers/scsi/scsi.cSCpnt->flags,
SCpnt2464drivers/scsi/scsi.cSCpnt->timeout_per_command,
SCpnt2465drivers/scsi/scsi.cSCpnt->timeout,
SCpnt2466drivers/scsi/scsi.cSCpnt->internal_timeout,
SCpnt2467drivers/scsi/scsi.cSCpnt->cmnd[0],
SCpnt2468drivers/scsi/scsi.cSCpnt->sense_buffer[2],
SCpnt2469drivers/scsi/scsi.cSCpnt->result);
SCpnt533drivers/scsi/scsi.hstatic Scsi_Cmnd * end_scsi_request(Scsi_Cmnd * SCpnt, int uptodate, int sectors)
SCpnt538drivers/scsi/scsi.hreq = &SCpnt->request;
SCpnt565drivers/scsi/scsi.hreturn SCpnt;
SCpnt572drivers/scsi/scsi.hif (SCpnt->host->block) {
SCpnt575drivers/scsi/scsi.hfor (next = SCpnt->host->block; next != SCpnt->host;
SCpnt582drivers/scsi/scsi.hwake_up(&SCpnt->device->device_wait);
SCpnt67drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];    \
SCpnt73drivers/scsi/scsi_debug.cif (bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
SCpnt79drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){  \
SCpnt80drivers/scsi/scsi_debug.cprintk("Dev #s %x %x ",SCpnt->request.dev, target);      \
SCpnt86drivers/scsi/scsi_debug.cif (bufflen != 1024 && (!SCpnt->use_sg)) {printk("%x %d\n ",bufflen, SCpnt->use_sg); panic("Bad bufflen");};     \
SCpnt88drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) > npart) panic ("Bad partition");  \
SCpnt89drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];    \
SCpnt90drivers/scsi/scsi_debug.cif (SCpnt->request.cmd != RW) panic ("Wrong  operation");    \
SCpnt91drivers/scsi/scsi_debug.cif (SCpnt->request.sector + start != block) panic("Wrong block.");  \
SCpnt92drivers/scsi/scsi_debug.cif (SCpnt->request.current_nr_sectors != 2 && (!SCpnt->use_sg)) panic ("Wrong # blocks");  \
SCpnt93drivers/scsi/scsi_debug.cif (SCpnt->request.bh){              \
SCpnt94drivers/scsi/scsi_debug.cif (SCpnt->request.bh->b_size != 1024) panic ("Wrong bh size");  \
SCpnt95drivers/scsi/scsi_debug.cif ((SCpnt->request.bh->b_blocknr << 1) + start != block)           \
SCpnt96drivers/scsi/scsi_debug.c{  printk("Wrong bh block# %d %d ",SCpnt->request.bh->b_blocknr, block);  \
SCpnt98drivers/scsi/scsi_debug.cif (SCpnt->request.bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
SCpnt110drivers/scsi/scsi_debug.cstatic void scsi_dump(Scsi_Cmnd * SCpnt, int flag){
SCpnt117drivers/scsi/scsi_debug.cprintk("use_sg: %d",SCpnt->use_sg);
SCpnt118drivers/scsi/scsi_debug.cif (SCpnt->use_sg){
SCpnt119drivers/scsi/scsi_debug.csgpnt = (struct scatterlist *) SCpnt->buffer;
SCpnt120drivers/scsi/scsi_debug.cfor(i=0; i<SCpnt->use_sg; i++) {
SCpnt126drivers/scsi/scsi_debug.cprintk("nosg: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer,
SCpnt127drivers/scsi/scsi_debug.cSCpnt->bufflen);
SCpnt128drivers/scsi/scsi_debug.clpnt = (int *) SCpnt->request.buffer;
SCpnt131drivers/scsi/scsi_debug.clpnt = (unsigned int *) SCpnt;
SCpnt155drivers/scsi/scsi_debug.cint scsi_debug_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
SCpnt157drivers/scsi/scsi_debug.cunchar *cmd = (unchar *) SCpnt->cmnd;
SCpnt165drivers/scsi/scsi_debug.cint target = SCpnt->target;
SCpnt166drivers/scsi/scsi_debug.cint bufflen = SCpnt->request_bufflen;
SCpnt172drivers/scsi/scsi_debug.cDEB(if (target > 1) { SCpnt->result = DID_TIME_OUT << 16;done(SCpnt);return 0;});
SCpnt174drivers/scsi/scsi_debug.cbuff = (unsigned char *) SCpnt->request_buffer;
SCpnt176drivers/scsi/scsi_debug.cif(target>=1 || SCpnt->lun != 0) {
SCpnt177drivers/scsi/scsi_debug.cSCpnt->result =  DID_NO_CONNECT << 16;
SCpnt178drivers/scsi/scsi_debug.cdone(SCpnt);
SCpnt187drivers/scsi/scsi_debug.cprintk("scsi_debug: Requesting sense buffer (%x %x %x %d):", SCpnt, buff, done, bufflen);
SCpnt195drivers/scsi/scsi_debug.cSCpnt->result = 0;
SCpnt196drivers/scsi/scsi_debug.cdone(SCpnt); 
SCpnt223drivers/scsi/scsi_debug.cif(NR_REAL < 0) NR_REAL = (SCpnt->request.dev >> 4) & 0x0f;
SCpnt248drivers/scsi/scsi_debug.cusec = (SCpnt->request.nr_sectors << 9) * 1.0e6 / SCSI_DATARATE;
SCpnt255drivers/scsi/scsi_debug.cprintk("(r%d)",SCpnt->request.nr_sectors);
SCpnt258drivers/scsi/scsi_debug.cif(SCpnt->use_sg){
SCpnt263drivers/scsi/scsi_debug.cbh = SCpnt->request.bh;
SCpnt289drivers/scsi/scsi_debug.cif (SCpnt->use_sg) printk("Block %x (%d %d)\n",block, SCpnt->request.nr_sectors,
SCpnt290drivers/scsi/scsi_debug.cSCpnt->request.current_nr_sectors);
SCpnt318drivers/scsi/scsi_debug.cmemcpy(buff+64, SCpnt, sizeof(Scsi_Cmnd));
SCpnt321drivers/scsi/scsi_debug.cif(SCpnt->use_sg){
SCpnt336drivers/scsi/scsi_debug.cSCpnt->result = 0;
SCpnt337drivers/scsi/scsi_debug.c(done)(SCpnt);
SCpnt340drivers/scsi/scsi_debug.cif (SCpnt->use_sg && !scsi_debug_errsts)
SCpnt341drivers/scsi/scsi_debug.cif(bh) scsi_dump(SCpnt, 0);
SCpnt354drivers/scsi/scsi_debug.cif (SCpnt->use_sg){
SCpnt355drivers/scsi/scsi_debug.cif ((bufflen >> 9) != SCpnt->request.nr_sectors)
SCpnt363drivers/scsi/scsi_debug.cscsi_dump(SCpnt,1);
SCpnt371drivers/scsi/scsi_debug.cSCpnt->result =  DID_NO_CONNECT << 16;
SCpnt372drivers/scsi/scsi_debug.cdone(SCpnt);
SCpnt385drivers/scsi/scsi_debug.cSCint[i] = SCpnt;
SCpnt398drivers/scsi/scsi_debug.cSCpnt->result = scsi_debug_errsts;
SCpnt409drivers/scsi/scsi_debug.cSCpnt->result = scsi_debug_errsts;
SCpnt422drivers/scsi/scsi_debug.cstatic void internal_done(Scsi_Cmnd * SCpnt)
SCpnt424drivers/scsi/scsi_debug.cinternal_done_errcode = SCpnt->result;
SCpnt428drivers/scsi/scsi_debug.cint scsi_debug_command(Scsi_Cmnd * SCpnt)
SCpnt431drivers/scsi/scsi_debug.cscsi_debug_queuecommand(SCpnt, internal_done);
SCpnt528drivers/scsi/scsi_debug.cint scsi_debug_abort(Scsi_Cmnd * SCpnt)
SCpnt535drivers/scsi/scsi_debug.cSCpnt->result = SCpnt->abort_reason << 16;
SCpnt537drivers/scsi/scsi_debug.cif(SCpnt == SCint[j]) {
SCpnt539drivers/scsi/scsi_debug.cmy_done(SCpnt);
SCpnt560drivers/scsi/scsi_debug.cint scsi_debug_reset(Scsi_Cmnd * SCpnt)
SCpnt79drivers/scsi/scsi_ioctl.cstatic void scsi_ioctl_done (Scsi_Cmnd * SCpnt)
SCpnt83drivers/scsi/scsi_ioctl.creq = &SCpnt->request;
SCpnt94drivers/scsi/scsi_ioctl.cScsi_Cmnd * SCpnt;
SCpnt96drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev, 1);
SCpnt97drivers/scsi/scsi_ioctl.cscsi_do_cmd(SCpnt,  cmd, NULL,  0,
SCpnt101drivers/scsi/scsi_ioctl.cif (SCpnt->request.dev != 0xfffe){
SCpnt103drivers/scsi/scsi_ioctl.cSCpnt->request.sem = &sem;
SCpnt106drivers/scsi/scsi_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
SCpnt109drivers/scsi/scsi_ioctl.cif(driver_byte(SCpnt->result) != 0)
SCpnt110drivers/scsi/scsi_ioctl.cswitch(SCpnt->sense_buffer[2] & 0xf) {
SCpnt123drivers/scsi/scsi_ioctl.cSCpnt->result = 0; /* This is no longer considered an error */
SCpnt132drivers/scsi/scsi_ioctl.cSCpnt->result);
SCpnt134drivers/scsi/scsi_ioctl.csense_class(SCpnt->sense_buffer[0]),
SCpnt135drivers/scsi/scsi_ioctl.csense_error(SCpnt->sense_buffer[0]),
SCpnt136drivers/scsi/scsi_ioctl.cSCpnt->sense_buffer[2] & 0xf);
SCpnt140drivers/scsi/scsi_ioctl.cresult = SCpnt->result;
SCpnt141drivers/scsi/scsi_ioctl.cSCpnt->request.dev = -1;
SCpnt142drivers/scsi/scsi_ioctl.cwake_up(&SCpnt->device->device_wait);
SCpnt151drivers/scsi/scsi_ioctl.cScsi_Cmnd * SCpnt;
SCpnt183drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev, 1);
SCpnt185drivers/scsi/scsi_ioctl.cscsi_do_cmd(SCpnt,  cmd,  buf, needed,  scsi_ioctl_done,  MAX_TIMEOUT, 
SCpnt188drivers/scsi/scsi_ioctl.cif (SCpnt->request.dev != 0xfffe){
SCpnt190drivers/scsi/scsi_ioctl.cSCpnt->request.sem = &sem;
SCpnt193drivers/scsi/scsi_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
SCpnt198drivers/scsi/scsi_ioctl.cif(SCpnt->result) {
SCpnt199drivers/scsi/scsi_ioctl.cresult = verify_area(VERIFY_WRITE, cmd_in, sizeof(SCpnt->sense_buffer));
SCpnt202drivers/scsi/scsi_ioctl.cmemcpy_tofs((void *) cmd_in,  SCpnt->sense_buffer, sizeof(SCpnt->sense_buffer));
SCpnt210drivers/scsi/scsi_ioctl.cresult = SCpnt->result;
SCpnt211drivers/scsi/scsi_ioctl.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt214drivers/scsi/scsi_ioctl.cif(SCpnt->device->scsi_request_fn)
SCpnt215drivers/scsi/scsi_ioctl.c(*SCpnt->device->scsi_request_fn)();
SCpnt217drivers/scsi/scsi_ioctl.cwake_up(&SCpnt->device->device_wait);
SCpnt68drivers/scsi/sd.cstatic void requeue_sd_request (Scsi_Cmnd * SCpnt);
SCpnt181drivers/scsi/sd.cstatic void rw_intr (Scsi_Cmnd *SCpnt)
SCpnt183drivers/scsi/sd.cint result = SCpnt->result;
SCpnt184drivers/scsi/sd.cint this_count = SCpnt->bufflen >> 9;
SCpnt187drivers/scsi/sd.cprintk("sd%c : rw_intr(%d, %d)\n", 'a' + MINOR(SCpnt->request.dev), SCpnt->host->host_no, result);
SCpnt199drivers/scsi/sd.cprintk("sd%c : %d sectors remain.\n", 'a' + MINOR(SCpnt->request.dev), SCpnt->request.nr_sectors);
SCpnt200drivers/scsi/sd.cprintk("use_sg is %d\n ",SCpnt->use_sg);
SCpnt202drivers/scsi/sd.cif (SCpnt->use_sg) {
SCpnt205drivers/scsi/sd.csgpnt = (struct scatterlist *) SCpnt->buffer;
SCpnt206drivers/scsi/sd.cfor(i=0; i<SCpnt->use_sg; i++) {
SCpnt211drivers/scsi/sd.cif (SCpnt->request.cmd == READ)
SCpnt216drivers/scsi/sd.cscsi_free(SCpnt->buffer, SCpnt->sglist_len);  /* Free list of scatter-gather pointers */
SCpnt218drivers/scsi/sd.cif (SCpnt->buffer != SCpnt->request.buffer) {
SCpnt220drivers/scsi/sd.cprintk("nosg: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer,
SCpnt221drivers/scsi/sd.cSCpnt->bufflen);
SCpnt223drivers/scsi/sd.cif (SCpnt->request.cmd == READ)
SCpnt224drivers/scsi/sd.cmemcpy(SCpnt->request.buffer, SCpnt->buffer,
SCpnt225drivers/scsi/sd.cSCpnt->bufflen);
SCpnt226drivers/scsi/sd.cscsi_free(SCpnt->buffer, SCpnt->bufflen);
SCpnt234drivers/scsi/sd.cif (SCpnt->request.nr_sectors > this_count)
SCpnt236drivers/scsi/sd.cSCpnt->request.errors = 0;
SCpnt238drivers/scsi/sd.cif (!SCpnt->request.bh)
SCpnt242drivers/scsi/sd.c'a' + MINOR(SCpnt->request.dev));
SCpnt249drivers/scsi/sd.cSCpnt->request.sector, this_count);
SCpnt252drivers/scsi/sd.cSCpnt = end_scsi_request(SCpnt, 1, this_count);
SCpnt253drivers/scsi/sd.crequeue_sd_request(SCpnt);
SCpnt258drivers/scsi/sd.cif (SCpnt->use_sg) {
SCpnt261drivers/scsi/sd.csgpnt = (struct scatterlist *) SCpnt->buffer;
SCpnt262drivers/scsi/sd.cfor(i=0; i<SCpnt->use_sg; i++) {
SCpnt264drivers/scsi/sd.cprintk("err: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer,
SCpnt265drivers/scsi/sd.cSCpnt->bufflen);
SCpnt271drivers/scsi/sd.cscsi_free(SCpnt->buffer, SCpnt->sglist_len);  /* Free list of scatter-gather pointers */
SCpnt274drivers/scsi/sd.cprintk("nosgerr: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer,
SCpnt275drivers/scsi/sd.cSCpnt->bufflen);
SCpnt277drivers/scsi/sd.cif (SCpnt->buffer != SCpnt->request.buffer)
SCpnt278drivers/scsi/sd.cscsi_free(SCpnt->buffer, SCpnt->bufflen);
SCpnt294drivers/scsi/sd.cif rscsi_disks[DEVICE_NR(SCpnt->request.dev)].remap
SCpnt303drivers/scsi/sd.cif ((SCpnt->sense_buffer[0] & 0x7f) == 0x70) {
SCpnt304drivers/scsi/sd.cif ((SCpnt->sense_buffer[2] & 0xf) == UNIT_ATTENTION) {
SCpnt305drivers/scsi/sd.cif(rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->removable) {
SCpnt309drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
SCpnt310drivers/scsi/sd.cSCpnt = end_scsi_request(SCpnt, 0, this_count);
SCpnt311drivers/scsi/sd.crequeue_sd_request(SCpnt);
SCpnt325drivers/scsi/sd.cif (SCpnt->sense_buffer[2] == ILLEGAL_REQUEST) {
SCpnt326drivers/scsi/sd.cif (rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten) {
SCpnt327drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten = 0;
SCpnt328drivers/scsi/sd.crequeue_sd_request(SCpnt);
SCpnt336drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no,
SCpnt337drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->id,
SCpnt338drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->lun, result);
SCpnt341drivers/scsi/sd.cprint_sense("sd", SCpnt);
SCpnt342drivers/scsi/sd.cSCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.current_nr_sectors);
SCpnt343drivers/scsi/sd.crequeue_sd_request(SCpnt);
SCpnt356drivers/scsi/sd.cScsi_Cmnd * SCpnt = NULL;
SCpnt384drivers/scsi/sd.cSCpnt = allocate_device(&CURRENT,
SCpnt386drivers/scsi/sd.celse SCpnt = NULL;
SCpnt396drivers/scsi/sd.cif (!SCpnt && sd_template.nr_dev > 1){
SCpnt403drivers/scsi/sd.cSCpnt = request_queueable(req,
SCpnt405drivers/scsi/sd.cif(SCpnt) break;
SCpnt409drivers/scsi/sd.cif (SCpnt && req->dev == -1) {
SCpnt418drivers/scsi/sd.cif (!SCpnt) return; /* Could not find anything to do */
SCpnt421drivers/scsi/sd.crequeue_sd_request(SCpnt);
SCpnt425drivers/scsi/sd.cstatic void requeue_sd_request (Scsi_Cmnd * SCpnt)
SCpnt436drivers/scsi/sd.cif(!SCpnt || SCpnt->request.dev <= 0) {
SCpnt441drivers/scsi/sd.cdev =  MINOR(SCpnt->request.dev);
SCpnt442drivers/scsi/sd.cblock = SCpnt->request.sector;
SCpnt451drivers/scsi/sd.cblock + SCpnt->request.nr_sectors > sd[dev].nr_sects)
SCpnt453drivers/scsi/sd.cSCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors);
SCpnt466drivers/scsi/sd.cSCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors);
SCpnt471drivers/scsi/sd.cprintk("sd%c : real dev = /dev/sd%c, block = %d\n", 'a' + MINOR(SCpnt->request.dev), dev, block);
SCpnt486drivers/scsi/sd.cif((block & 1) || (SCpnt->request.nr_sectors & 1)) {
SCpnt488drivers/scsi/sd.cSCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors);
SCpnt492drivers/scsi/sd.cswitch (SCpnt->request.cmd)
SCpnt497drivers/scsi/sd.cSCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors);
SCpnt506drivers/scsi/sd.cpanic ("Unknown sd command %d\n", SCpnt->request.cmd);
SCpnt509drivers/scsi/sd.cSCpnt->this_count = 0;
SCpnt513drivers/scsi/sd.ccontiguous = (!CLUSTERABLE_DEVICE(SCpnt) ? 0 :1);
SCpnt515drivers/scsi/sd.cbounce_size = (SCpnt->request.nr_sectors << 9);
SCpnt522drivers/scsi/sd.cif (contiguous && SCpnt->request.bh &&
SCpnt523drivers/scsi/sd.c((long) SCpnt->request.bh->b_data) + (SCpnt->request.nr_sectors << 9) - 1 > 
SCpnt524drivers/scsi/sd.cISA_DMA_THRESHOLD && SCpnt->host->unchecked_isa_dma) {
SCpnt525drivers/scsi/sd.cif(((long) SCpnt->request.bh->b_data) > ISA_DMA_THRESHOLD)
SCpnt530drivers/scsi/sd.cif(contiguous && SCpnt->request.bh && SCpnt->request.bh->b_reqnext)
SCpnt531drivers/scsi/sd.cfor(bh = SCpnt->request.bh, bhp = bh->b_reqnext; bhp; bh = bhp, 
SCpnt539drivers/scsi/sd.cif (!SCpnt->request.bh || contiguous) {
SCpnt542drivers/scsi/sd.cthis_count = SCpnt->request.nr_sectors;
SCpnt543drivers/scsi/sd.cbuff = SCpnt->request.buffer;
SCpnt544drivers/scsi/sd.cSCpnt->use_sg = 0;
SCpnt546drivers/scsi/sd.c} else if (SCpnt->host->sg_tablesize == 0 ||
SCpnt557drivers/scsi/sd.cif (SCpnt->host->sg_tablesize != 0 &&
SCpnt562drivers/scsi/sd.cthis_count = SCpnt->request.current_nr_sectors;
SCpnt563drivers/scsi/sd.cbuff = SCpnt->request.buffer;
SCpnt564drivers/scsi/sd.cSCpnt->use_sg = 0;
SCpnt573drivers/scsi/sd.cbh = SCpnt->request.bh;
SCpnt581drivers/scsi/sd.c!CLUSTERABLE_DEVICE(SCpnt) ||
SCpnt582drivers/scsi/sd.c(SCpnt->host->unchecked_isa_dma &&
SCpnt584drivers/scsi/sd.cif (count < SCpnt->host->sg_tablesize) count++;
SCpnt592drivers/scsi/sd.cif(SCpnt->host->unchecked_isa_dma &&
SCpnt593drivers/scsi/sd.c((unsigned int) SCpnt->request.bh->b_data-1) == ISA_DMA_THRESHOLD) count--;
SCpnt595drivers/scsi/sd.cSCpnt->use_sg = count;  /* Number of chains */
SCpnt597drivers/scsi/sd.cwhile( count < (SCpnt->use_sg * sizeof(struct scatterlist))) 
SCpnt599drivers/scsi/sd.cSCpnt->sglist_len = count;
SCpnt601drivers/scsi/sd.cif(SCpnt->host->sg_tablesize < max_sg) max_sg = SCpnt->host->sg_tablesize;
SCpnt606drivers/scsi/sd.cSCpnt->use_sg = 0;  /* No memory left - bail out */
SCpnt607drivers/scsi/sd.cthis_count = SCpnt->request.current_nr_sectors;
SCpnt608drivers/scsi/sd.cbuff = SCpnt->request.buffer;
SCpnt612drivers/scsi/sd.cfor(count = 0, bh = SCpnt->request.bh, bhp = bh->b_reqnext;
SCpnt613drivers/scsi/sd.ccount < SCpnt->use_sg && bh; 
SCpnt623drivers/scsi/sd.cISA_DMA_THRESHOLD && (SCpnt->host->unchecked_isa_dma) &&
SCpnt646drivers/scsi/sd.cthis_count = SCpnt->request.current_nr_sectors;
SCpnt647drivers/scsi/sd.cbuff = SCpnt->request.buffer;
SCpnt648drivers/scsi/sd.cSCpnt->use_sg = 0;
SCpnt649drivers/scsi/sd.cscsi_free(sgpnt, SCpnt->sglist_len);
SCpnt651drivers/scsi/sd.cSCpnt->use_sg = count;
SCpnt662drivers/scsi/sd.cif(bhp && CONTIGUOUS_BUFFERS(bh,bhp) && CLUSTERABLE_DEVICE(SCpnt)) {
SCpnt667drivers/scsi/sd.c(SCpnt->host->unchecked_isa_dma) &&
SCpnt675drivers/scsi/sd.cmax_sg = SCpnt->use_sg;
SCpnt687drivers/scsi/sd.cif (SCpnt->use_sg < max_sg) SCpnt->use_sg++;
SCpnt693drivers/scsi/sd.cif(count < SCpnt->use_sg || SCpnt->use_sg > SCpnt->host->sg_tablesize){
SCpnt694drivers/scsi/sd.cbh = SCpnt->request.bh;
SCpnt695drivers/scsi/sd.cprintk("Use sg, count %d %x %d\n", SCpnt->use_sg, count, dma_free_sectors);
SCpnt701drivers/scsi/sd.cif(SCpnt->use_sg < 16)
SCpnt702drivers/scsi/sd.cfor(count=0; count<SCpnt->use_sg; count++)
SCpnt710drivers/scsi/sd.cif (SCpnt->request.cmd == WRITE)
SCpnt711drivers/scsi/sd.cfor(count=0; count<SCpnt->use_sg; count++)
SCpnt720drivers/scsi/sd.cif(SCpnt->use_sg == 0){
SCpnt722drivers/scsi/sd.c(SCpnt->host->unchecked_isa_dma)) {
SCpnt728drivers/scsi/sd.cthis_count = SCpnt->request.current_nr_sectors;
SCpnt732drivers/scsi/sd.cif (SCpnt->request.cmd == WRITE)
SCpnt733drivers/scsi/sd.cmemcpy(buff, (char *)SCpnt->request.buffer, this_count << 9);
SCpnt737drivers/scsi/sd.cprintk("sd%c : %s %d/%d 512 byte blocks.\n", 'a' + MINOR(SCpnt->request.dev),
SCpnt738drivers/scsi/sd.c(SCpnt->request.cmd == WRITE) ? "writing" : "reading",
SCpnt739drivers/scsi/sd.cthis_count, SCpnt->request.nr_sectors);
SCpnt742drivers/scsi/sd.ccmd[1] = (SCpnt->lun << 5) & 0xe0;
SCpnt788drivers/scsi/sd.cSCpnt->transfersize = rscsi_disks[dev].sector_size;
SCpnt789drivers/scsi/sd.cSCpnt->underflow = this_count << 9; 
SCpnt790drivers/scsi/sd.cscsi_do_cmd (SCpnt, (void *) cmd, buff, 
SCpnt793drivers/scsi/sd.c(SCpnt->device->type == TYPE_DISK ? 
SCpnt832drivers/scsi/sd.cstatic void sd_init_done (Scsi_Cmnd * SCpnt)
SCpnt836drivers/scsi/sd.creq = &SCpnt->request;
SCpnt850drivers/scsi/sd.cScsi_Cmnd * SCpnt;
SCpnt856drivers/scsi/sd.cSCpnt = allocate_device(NULL, rscsi_disks[i].device, 1);
SCpnt867drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
SCpnt868drivers/scsi/sd.cSCpnt->cmd_len = 0;
SCpnt869drivers/scsi/sd.cSCpnt->sense_buffer[0] = 0;
SCpnt870drivers/scsi/sd.cSCpnt->sense_buffer[2] = 0;
SCpnt872drivers/scsi/sd.cscsi_do_cmd (SCpnt,
SCpnt877drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
SCpnt879drivers/scsi/sd.cthe_result = SCpnt->result;
SCpnt884drivers/scsi/sd.cSCpnt->sense_buffer[2] == NOT_READY) {
SCpnt893drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
SCpnt894drivers/scsi/sd.cSCpnt->cmd_len = 0;
SCpnt895drivers/scsi/sd.cSCpnt->sense_buffer[0] = 0;
SCpnt896drivers/scsi/sd.cSCpnt->sense_buffer[2] = 0;
SCpnt898drivers/scsi/sd.cscsi_do_cmd (SCpnt,
SCpnt903drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
SCpnt928drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
SCpnt929drivers/scsi/sd.cSCpnt->cmd_len = 0;
SCpnt930drivers/scsi/sd.cSCpnt->sense_buffer[0] = 0;
SCpnt931drivers/scsi/sd.cSCpnt->sense_buffer[2] = 0;
SCpnt933drivers/scsi/sd.cscsi_do_cmd (SCpnt,
SCpnt939drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
SCpnt941drivers/scsi/sd.cif (SCpnt->request.dev != 0xfffe){
SCpnt943drivers/scsi/sd.cSCpnt->request.sem = &sem;
SCpnt946drivers/scsi/sd.cwhile (SCpnt->request.dev != 0xfffe) schedule();
SCpnt949drivers/scsi/sd.cthe_result = SCpnt->result;
SCpnt954drivers/scsi/sd.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt956drivers/scsi/sd.cwake_up(&SCpnt->device->device_wait); 
SCpnt984drivers/scsi/sd.cprintk("sd%c : extended sense code = %1x \n", 'a' + i, SCpnt->sense_buffer[2] & 0xf);
SCpnt995drivers/scsi/sd.cSCpnt->sense_buffer[2] == NOT_READY)
SCpnt511drivers/scsi/seagate.cint seagate_st0x_queue_command (Scsi_Cmnd * SCpnt,  void (*done)(Scsi_Cmnd *))
SCpnt517drivers/scsi/seagate.ccurrent_target = SCpnt->target;
SCpnt518drivers/scsi/seagate.ccurrent_lun = SCpnt->lun;
SCpnt519drivers/scsi/seagate.c(const void *) current_cmnd = SCpnt->cmnd;
SCpnt520drivers/scsi/seagate.ccurrent_data = (unsigned char *) SCpnt->request_buffer;
SCpnt521drivers/scsi/seagate.ccurrent_bufflen = SCpnt->request_bufflen;
SCpnt522drivers/scsi/seagate.cSCint = SCpnt;
SCpnt533drivers/scsi/seagate.ccurrent_cmnd[SCpnt->cmd_len] |= 0x01;
SCpnt572drivers/scsi/seagate.cint seagate_st0x_command (Scsi_Cmnd * SCpnt) {
SCpnt573drivers/scsi/seagate.creturn internal_command (SCpnt->target, SCpnt->lun, SCpnt->cmnd, SCpnt->request_buffer,
SCpnt574drivers/scsi/seagate.cSCpnt->request_bufflen, 
SCpnt1548drivers/scsi/seagate.cint seagate_st0x_abort (Scsi_Cmnd * SCpnt)
SCpnt1559drivers/scsi/seagate.cint seagate_st0x_reset (Scsi_Cmnd * SCpnt)
SCpnt206drivers/scsi/sg.cstatic void sg_command_done(Scsi_Cmnd * SCpnt)
SCpnt208drivers/scsi/sg.cint dev=SCpnt->request.dev;
SCpnt213drivers/scsi/sg.cSCpnt->request.dev=-1;
SCpnt216drivers/scsi/sg.cmemcpy(device->header.sense_buffer, SCpnt->sense_buffer, sizeof(SCpnt->sense_buffer));
SCpnt217drivers/scsi/sg.cif (SCpnt->sense_buffer[0])
SCpnt222drivers/scsi/sg.cdevice->header.result=SCpnt->result;
SCpnt224drivers/scsi/sg.cSCpnt->request.dev=-1;
SCpnt231drivers/scsi/sg.cScsi_Cmnd *SCpnt;
SCpnt278drivers/scsi/sg.cif (!(SCpnt=allocate_device(NULL,device->device, !(filp->f_flags & O_NONBLOCK))))
SCpnt290drivers/scsi/sg.cSCpnt->request.dev=dev;
SCpnt291drivers/scsi/sg.cSCpnt->sense_buffer[0]=0;
SCpnt295drivers/scsi/sg.cSCpnt->cmd_len = size;
SCpnt315drivers/scsi/sg.cscsi_do_cmd (SCpnt,(void *) cmnd,
SCpnt61drivers/scsi/sr.cvoid requeue_sr_request (Scsi_Cmnd * SCpnt);
SCpnt140drivers/scsi/sr.cstatic void rw_intr (Scsi_Cmnd * SCpnt)
SCpnt142drivers/scsi/sr.cint result = SCpnt->result;
SCpnt143drivers/scsi/sr.cint this_count = SCpnt->this_count;
SCpnt146drivers/scsi/sr.cprintk("sr.c done: %x %x\n",result, SCpnt->request.bh->b_data);
SCpnt150drivers/scsi/sr.cif (SCpnt->use_sg == 0) {
SCpnt151drivers/scsi/sr.cif (SCpnt->buffer != SCpnt->request.buffer)
SCpnt154drivers/scsi/sr.coffset = (SCpnt->request.sector % 4) << 9;
SCpnt155drivers/scsi/sr.cmemcpy((char *)SCpnt->request.buffer, 
SCpnt156drivers/scsi/sr.c(char *)SCpnt->buffer + offset, 
SCpnt163drivers/scsi/sr.cSCpnt->request.nr_sectors > this_count && 
SCpnt164drivers/scsi/sr.cSCpnt->request.bh &&
SCpnt165drivers/scsi/sr.cSCpnt->request.bh->b_reqnext &&
SCpnt166drivers/scsi/sr.cSCpnt->request.bh->b_reqnext->b_size == 1024) {
SCpnt167drivers/scsi/sr.cmemcpy((char *)SCpnt->request.bh->b_reqnext->b_data, 
SCpnt168drivers/scsi/sr.c(char *)SCpnt->buffer + 1024, 
SCpnt173drivers/scsi/sr.cscsi_free(SCpnt->buffer, 2048);
SCpnt178drivers/scsi/sr.csgpnt = (struct scatterlist *) SCpnt->buffer;
SCpnt179drivers/scsi/sr.cfor(i=0; i<SCpnt->use_sg; i++) {
SCpnt187drivers/scsi/sr.cscsi_free(SCpnt->buffer, SCpnt->sglist_len);  /* Free list of scatter-gather pointers */
SCpnt188drivers/scsi/sr.cif(SCpnt->request.sector % 4) this_count -= 2;
SCpnt190drivers/scsi/sr.cif(this_count > SCpnt->request.nr_sectors)
SCpnt195drivers/scsi/sr.cprintk("(%x %x %x) ",SCpnt->request.bh, SCpnt->request.nr_sectors, 
SCpnt198drivers/scsi/sr.cif (SCpnt->request.nr_sectors > this_count)
SCpnt200drivers/scsi/sr.cSCpnt->request.errors = 0;
SCpnt201drivers/scsi/sr.cif (!SCpnt->request.bh)
SCpnt203drivers/scsi/sr.cSCpnt->request.sector, this_count);
SCpnt206drivers/scsi/sr.cSCpnt = end_scsi_request(SCpnt, 1, this_count);  /* All done */
SCpnt207drivers/scsi/sr.crequeue_sr_request(SCpnt);
SCpnt214drivers/scsi/sr.cif (SCpnt->use_sg) {
SCpnt217drivers/scsi/sr.csgpnt = (struct scatterlist *) SCpnt->buffer;
SCpnt218drivers/scsi/sr.cfor(i=0; i<SCpnt->use_sg; i++) {
SCpnt223drivers/scsi/sr.cscsi_free(SCpnt->buffer, SCpnt->sglist_len);  /* Free list of scatter-gather pointers */
SCpnt225drivers/scsi/sr.cif (SCpnt->buffer != SCpnt->request.buffer)
SCpnt226drivers/scsi/sr.cscsi_free(SCpnt->buffer, SCpnt->bufflen);
SCpnt230drivers/scsi/sr.cif ((SCpnt->sense_buffer[0] & 0x7f) == 0x70) {
SCpnt231drivers/scsi/sr.cif ((SCpnt->sense_buffer[2] & 0xf) == UNIT_ATTENTION) {
SCpnt235drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
SCpnt236drivers/scsi/sr.cSCpnt = end_scsi_request(SCpnt, 0, this_count);
SCpnt237drivers/scsi/sr.crequeue_sr_request(SCpnt);
SCpnt242drivers/scsi/sr.cif (SCpnt->sense_buffer[2] == ILLEGAL_REQUEST) {
SCpnt244drivers/scsi/sr.cprint_sense("sr", SCpnt);
SCpnt246drivers/scsi/sr.cprint_command(SCpnt->cmnd);
SCpnt247drivers/scsi/sr.cif (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) {
SCpnt248drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0;
SCpnt249drivers/scsi/sr.crequeue_sr_request(SCpnt);
SCpnt253drivers/scsi/sr.cSCpnt = end_scsi_request(SCpnt, 0, this_count);
SCpnt254drivers/scsi/sr.crequeue_sr_request(SCpnt); /* Do next request */
SCpnt260drivers/scsi/sr.cif (SCpnt->sense_buffer[2] == NOT_READY) {
SCpnt262drivers/scsi/sr.cSCpnt = end_scsi_request(SCpnt, 0, this_count);
SCpnt263drivers/scsi/sr.crequeue_sr_request(SCpnt); /* Do next request */
SCpnt271drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, 
SCpnt272drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id,
SCpnt273drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->lun,
SCpnt277drivers/scsi/sr.cprint_sense("sr", SCpnt);
SCpnt279drivers/scsi/sr.cSCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.current_nr_sectors);
SCpnt280drivers/scsi/sr.crequeue_sr_request(SCpnt);
SCpnt484drivers/scsi/sr.cScsi_Cmnd * SCpnt = NULL;
SCpnt500drivers/scsi/sr.cSCpnt = allocate_device(&CURRENT,
SCpnt502drivers/scsi/sr.celse SCpnt = NULL;
SCpnt512drivers/scsi/sr.cif (!SCpnt && sr_template.nr_dev > 1){
SCpnt519drivers/scsi/sr.cSCpnt = request_queueable(req,
SCpnt521drivers/scsi/sr.cif(SCpnt) break;
SCpnt525drivers/scsi/sr.cif (SCpnt && req->dev == -1) {
SCpnt534drivers/scsi/sr.cif (!SCpnt)
SCpnt540drivers/scsi/sr.crequeue_sr_request(SCpnt);
SCpnt544drivers/scsi/sr.cvoid requeue_sr_request (Scsi_Cmnd * SCpnt)
SCpnt553drivers/scsi/sr.cif(!SCpnt || SCpnt->request.dev <= 0) {
SCpnt558drivers/scsi/sr.cdev =  MINOR(SCpnt->request.dev);
SCpnt559drivers/scsi/sr.cblock = SCpnt->request.sector;  
SCpnt566drivers/scsi/sr.cSCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors);
SCpnt574drivers/scsi/sr.cSCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors);
SCpnt585drivers/scsi/sr.cSCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors);
SCpnt590drivers/scsi/sr.cswitch (SCpnt->request.cmd)
SCpnt593drivers/scsi/sr.cSCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors);
SCpnt600drivers/scsi/sr.cpanic ("Unknown sr command %d\n", SCpnt->request.cmd);
SCpnt603drivers/scsi/sr.ccmd[1] = (SCpnt->lun << 5) & 0xe0;
SCpnt621drivers/scsi/sr.cSCpnt->use_sg = 0;
SCpnt623drivers/scsi/sr.cif (SCpnt->host->sg_tablesize > 0 &&
SCpnt629drivers/scsi/sr.cbh = SCpnt->request.bh;
SCpnt635drivers/scsi/sr.cthis_count = SCpnt->request.sector % 4;
SCpnt637drivers/scsi/sr.cwhile(bh && count < SCpnt->host->sg_tablesize) {
SCpnt646drivers/scsi/sr.cif (count < SCpnt->host->sg_tablesize) {
SCpnt655drivers/scsi/sr.cSCpnt->use_sg = count;  /* Number of chains */
SCpnt657drivers/scsi/sr.cwhile( count < (SCpnt->use_sg * sizeof(struct scatterlist))) 
SCpnt659drivers/scsi/sr.cSCpnt->sglist_len = count;
SCpnt663drivers/scsi/sr.cSCpnt->use_sg = 0;  /* No memory left - bail out */
SCpnt667drivers/scsi/sr.cbh = SCpnt->request.bh;
SCpnt668drivers/scsi/sr.cif(SCpnt->request.sector % 4) {
SCpnt669drivers/scsi/sr.csgpnt[count].length = (SCpnt->request.sector % 4) << 9;
SCpnt676drivers/scsi/sr.cfor(bh = SCpnt->request.bh; count < SCpnt->use_sg; 
SCpnt687drivers/scsi/sr.cif (count+1 != SCpnt->use_sg) panic("Bad sr request list");
SCpnt691drivers/scsi/sr.cISA_DMA_THRESHOLD & (SCpnt->host->unchecked_isa_dma)) {
SCpnt712drivers/scsi/sr.cSCpnt->use_sg = 0;
SCpnt713drivers/scsi/sr.cscsi_free(buffer, SCpnt->sglist_len);
SCpnt719drivers/scsi/sr.cprintk("SR: %d %d %d %d %d *** ",SCpnt->use_sg, SCpnt->request.sector,
SCpnt721drivers/scsi/sr.cSCpnt->request.current_nr_sectors,
SCpnt722drivers/scsi/sr.cSCpnt->request.nr_sectors);
SCpnt723drivers/scsi/sr.cfor(count=0; count<SCpnt->use_sg; count++)
SCpnt732drivers/scsi/sr.cif (SCpnt->use_sg == 0){
SCpnt734drivers/scsi/sr.cif (!SCpnt->request.bh)    
SCpnt735drivers/scsi/sr.cthis_count = SCpnt->request.nr_sectors;
SCpnt737drivers/scsi/sr.cthis_count = (SCpnt->request.bh->b_size >> 9);
SCpnt753drivers/scsi/sr.cbuffer = (unsigned char *) SCpnt->request.buffer;
SCpnt755drivers/scsi/sr.c(SCpnt->host->unchecked_isa_dma))
SCpnt805drivers/scsi/sr.cprintk("Use sg: %d\n", SCpnt->use_sg);
SCpnt822drivers/scsi/sr.cSCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ?
SCpnt825drivers/scsi/sr.cSCpnt->this_count = this_count;
SCpnt826drivers/scsi/sr.cscsi_do_cmd (SCpnt, (void *) cmd, buffer, 
SCpnt868drivers/scsi/sr.cstatic void sr_init_done (Scsi_Cmnd * SCpnt)
SCpnt872drivers/scsi/sr.creq = &SCpnt->request;
SCpnt884drivers/scsi/sr.cScsi_Cmnd * SCpnt;
SCpnt887drivers/scsi/sr.cSCpnt = allocate_device(NULL, scsi_CDs[i].device, 1);
SCpnt894drivers/scsi/sr.cSCpnt->request.dev = 0xffff;  /* Mark as really busy */
SCpnt895drivers/scsi/sr.cSCpnt->cmd_len = 0;
SCpnt899drivers/scsi/sr.cscsi_do_cmd (SCpnt,
SCpnt905drivers/scsi/sr.cwhile(SCpnt->request.dev != 0xfffe);
SCpnt907drivers/scsi/sr.cif (SCpnt->request.dev != 0xfffe){
SCpnt909drivers/scsi/sr.cSCpnt->request.sem = &sem;
SCpnt912drivers/scsi/sr.cwhile (SCpnt->request.dev != 0xfffe) schedule();
SCpnt915drivers/scsi/sr.cthe_result = SCpnt->result;
SCpnt920drivers/scsi/sr.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt922drivers/scsi/sr.cwake_up(&SCpnt->device->device_wait); 
SCpnt22drivers/scsi/sr_ioctl.cstatic void sr_ioctl_done(Scsi_Cmnd * SCpnt)
SCpnt26drivers/scsi/sr_ioctl.creq = &SCpnt->request;
SCpnt40drivers/scsi/sr_ioctl.cScsi_Cmnd * SCpnt;
SCpnt43drivers/scsi/sr_ioctl.cSCpnt = allocate_device(NULL, scsi_CDs[target].device, 1);
SCpnt44drivers/scsi/sr_ioctl.cscsi_do_cmd(SCpnt,
SCpnt49drivers/scsi/sr_ioctl.cif (SCpnt->request.dev != 0xfffe){
SCpnt51drivers/scsi/sr_ioctl.cSCpnt->request.sem = &sem;
SCpnt54drivers/scsi/sr_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
SCpnt57drivers/scsi/sr_ioctl.cresult = SCpnt->result;
SCpnt61drivers/scsi/sr_ioctl.cswitch(SCpnt->sense_buffer[2] & 0xf) {
SCpnt79drivers/scsi/sr_ioctl.csense_class(SCpnt->sense_buffer[0]), 
SCpnt80drivers/scsi/sr_ioctl.csense_error(SCpnt->sense_buffer[0]),
SCpnt81drivers/scsi/sr_ioctl.cSCpnt->sense_buffer[2] & 0xf);
SCpnt85drivers/scsi/sr_ioctl.cresult = SCpnt->result;
SCpnt86drivers/scsi/sr_ioctl.cSCpnt->request.dev = -1; /* Deallocate */
SCpnt87drivers/scsi/sr_ioctl.cwake_up(&SCpnt->device->device_wait);
SCpnt109drivers/scsi/st.cst_chk_result(Scsi_Cmnd * SCpnt)
SCpnt111drivers/scsi/st.cint dev = SCpnt->request.dev;
SCpnt112drivers/scsi/st.cint result = SCpnt->result;
SCpnt113drivers/scsi/st.cunsigned char * sense = SCpnt->sense_buffer;
SCpnt116drivers/scsi/st.cif (!result && SCpnt->sense_buffer[0] == 0)
SCpnt121drivers/scsi/st.cSCpnt->cmnd[0], SCpnt->cmnd[1], SCpnt->cmnd[2],
SCpnt122drivers/scsi/st.cSCpnt->cmnd[3], SCpnt->cmnd[4], SCpnt->cmnd[5],
SCpnt123drivers/scsi/st.cSCpnt->request_bufflen);
SCpnt125drivers/scsi/st.cprint_sense("st", SCpnt);
SCpnt134drivers/scsi/st.c&& SCpnt->cmnd[0] != WRITE_6
SCpnt135drivers/scsi/st.c&& SCpnt->cmnd[0] != WRITE_FILEMARKS
SCpnt140drivers/scsi/st.cif (SCpnt->cmnd[0] == READ_6)
SCpnt142drivers/scsi/st.celse if (SCpnt->cmnd[0] == WRITE_6)
SCpnt156drivers/scsi/st.cst_sleep_done (Scsi_Cmnd * SCpnt)
SCpnt161drivers/scsi/st.cif ((st_nbr = SCpnt->request.dev) < st_template.nr_dev && st_nbr >= 0) {
SCpnt164drivers/scsi/st.c(SCpnt->sense_buffer[0] & 0x70) == 0x70 &&
SCpnt165drivers/scsi/st.c(SCpnt->sense_buffer[2] & 0x40)) {
SCpnt167drivers/scsi/st.cif ((SCpnt->sense_buffer[0] & 0x80) != 0)
SCpnt168drivers/scsi/st.cremainder = (SCpnt->sense_buffer[3] << 24) |
SCpnt169drivers/scsi/st.c(SCpnt->sense_buffer[4] << 16) |
SCpnt170drivers/scsi/st.c(SCpnt->sense_buffer[5] << 8) | SCpnt->sense_buffer[6];
SCpnt173drivers/scsi/st.cif ((SCpnt->sense_buffer[2] & 0x0f) == VOLUME_OVERFLOW ||
SCpnt175drivers/scsi/st.c(STp->buffer)->last_result = SCpnt->result; /* Error */
SCpnt180drivers/scsi/st.c(STp->buffer)->last_result = SCpnt->result;
SCpnt181drivers/scsi/st.c(STp->buffer)->last_result_fatal = st_chk_result(SCpnt);
SCpnt183drivers/scsi/st.cSCpnt->request.dev = -1;
SCpnt185drivers/scsi/st.cSCpnt->request.dev = 0xffff;
SCpnt238drivers/scsi/st.cScsi_Cmnd *SCpnt;
SCpnt247drivers/scsi/st.cSCpnt = allocate_device(NULL, STp->device, 1);
SCpnt248drivers/scsi/st.cSCpnt->sense_buffer[0] = 0;
SCpnt249drivers/scsi/st.cSCpnt->request.dev = dev;
SCpnt250drivers/scsi/st.cscsi_do_cmd(SCpnt,
SCpnt254drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
SCpnt255drivers/scsi/st.cSCpnt->request.dev = -1;
SCpnt274drivers/scsi/st.cScsi_Cmnd *SCpnt;
SCpnt293drivers/scsi/st.cSCpnt = allocate_device(NULL, STp->device, 1);
SCpnt304drivers/scsi/st.cSCpnt->sense_buffer[0] = 0;
SCpnt312drivers/scsi/st.cSCpnt->request.dev = dev;
SCpnt313drivers/scsi/st.cscsi_do_cmd (SCpnt,
SCpnt317drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
SCpnt321drivers/scsi/st.cif ((SCpnt->sense_buffer[0] & 0x70) == 0x70 &&
SCpnt322drivers/scsi/st.c(SCpnt->sense_buffer[2] & 0x40) &&
SCpnt323drivers/scsi/st.c(SCpnt->sense_buffer[2] & 0x0f) != VOLUME_OVERFLOW) {
SCpnt338drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt398drivers/scsi/st.cScsi_Cmnd * SCpnt;
SCpnt434drivers/scsi/st.cSCpnt = allocate_device(NULL, STp->device, 1);
SCpnt435drivers/scsi/st.cif (!SCpnt) {
SCpnt440drivers/scsi/st.cSCpnt->sense_buffer[0]=0;
SCpnt443drivers/scsi/st.cSCpnt->request.dev = dev;
SCpnt444drivers/scsi/st.cscsi_do_cmd(SCpnt,
SCpnt449drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
SCpnt451drivers/scsi/st.cif ((SCpnt->sense_buffer[0] & 0x70) == 0x70 &&
SCpnt452drivers/scsi/st.c(SCpnt->sense_buffer[2] & 0x0f) == UNIT_ATTENTION) { /* New media? */
SCpnt454drivers/scsi/st.cSCpnt->sense_buffer[0]=0;
SCpnt457drivers/scsi/st.cSCpnt->request.dev = dev;
SCpnt458drivers/scsi/st.cscsi_do_cmd(SCpnt,
SCpnt463drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
SCpnt469drivers/scsi/st.cif ((SCpnt->sense_buffer[0] & 0x70) == 0x70 &&
SCpnt470drivers/scsi/st.c(SCpnt->sense_buffer[2] & 0x0f) == NO_TAPE) {
SCpnt475drivers/scsi/st.cprintk("st%d: Error %x.\n", dev, SCpnt->result);
SCpnt479drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt490drivers/scsi/st.cSCpnt->sense_buffer[0]=0;
SCpnt493drivers/scsi/st.cSCpnt->request.dev = dev;
SCpnt494drivers/scsi/st.cscsi_do_cmd(SCpnt,
SCpnt498drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
SCpnt500drivers/scsi/st.cif (!SCpnt->result && !SCpnt->sense_buffer[0]) {
SCpnt519drivers/scsi/st.cSCpnt->sense_buffer[0]=0;
SCpnt523drivers/scsi/st.cSCpnt->request.dev = dev;
SCpnt524drivers/scsi/st.cscsi_do_cmd(SCpnt,
SCpnt528drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
SCpnt538drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt613drivers/scsi/st.cScsi_Cmnd * SCpnt;
SCpnt631drivers/scsi/st.cSCpnt = allocate_device(NULL, STp->device, 1);
SCpnt633drivers/scsi/st.cSCpnt->sense_buffer[0] = 0;
SCpnt637drivers/scsi/st.cSCpnt->request.dev = dev;
SCpnt638drivers/scsi/st.cscsi_do_cmd( SCpnt,
SCpnt642drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
SCpnt645drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt649drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt697drivers/scsi/st.cScsi_Cmnd * SCpnt;
SCpnt760drivers/scsi/st.cSCpnt = allocate_device(NULL, STp->device, 1);
SCpnt796drivers/scsi/st.cSCpnt->sense_buffer[0] = 0;
SCpnt797drivers/scsi/st.cSCpnt->request.dev = dev;
SCpnt798drivers/scsi/st.cscsi_do_cmd (SCpnt,
SCpnt802drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
SCpnt809drivers/scsi/st.cif ((SCpnt->sense_buffer[0] & 0x70) == 0x70 &&
SCpnt810drivers/scsi/st.c(SCpnt->sense_buffer[2] & 0x40)) {
SCpnt811drivers/scsi/st.cif (STp->block_size != 0 && (SCpnt->sense_buffer[0] & 0x80) != 0)
SCpnt812drivers/scsi/st.ctransfer = (SCpnt->sense_buffer[3] << 24) |
SCpnt813drivers/scsi/st.c(SCpnt->sense_buffer[4] << 16) |
SCpnt814drivers/scsi/st.c(SCpnt->sense_buffer[5] << 8) | SCpnt->sense_buffer[6];
SCpnt816drivers/scsi/st.c(SCpnt->sense_buffer[2] & 0x0f) == VOLUME_OVERFLOW)
SCpnt854drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt884drivers/scsi/st.cSCpnt->request.dev = -1;
SCpnt907drivers/scsi/st.cSCpnt->result = (STp->buffer)->last_result = -1;
SCpnt908drivers/scsi/st.cSCpnt->sense_buffer[0] = 0;
SCpnt909drivers/scsi/st.cSCpnt->request.dev = dev;
SCpnt910drivers/scsi/st.cscsi_do_cmd (SCpnt,
SCpnt916drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt931drivers/scsi/st.cScsi_Cmnd * SCpnt;
SCpnt972drivers/scsi/st.cSCpnt = allocate_device(NULL, STp->device, 1);
SCpnt1001drivers/scsi/st.cSCpnt->sense_buffer[0] = 0;
SCpnt1002drivers/scsi/st.cSCpnt->request.dev = dev;
SCpnt1003drivers/scsi/st.cscsi_do_cmd (SCpnt,
SCpnt1008drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
SCpnt1018drivers/scsi/st.cSCpnt->sense_buffer[0], SCpnt->sense_buffer[1],
SCpnt1019drivers/scsi/st.cSCpnt->sense_buffer[2], SCpnt->sense_buffer[3],
SCpnt1020drivers/scsi/st.cSCpnt->sense_buffer[4], SCpnt->sense_buffer[5],
SCpnt1021drivers/scsi/st.cSCpnt->sense_buffer[6], SCpnt->sense_buffer[7]);
SCpnt1023drivers/scsi/st.cif ((SCpnt->sense_buffer[0] & 0x70) == 0x70) { /* extended sense */
SCpnt1025drivers/scsi/st.cif ((SCpnt->sense_buffer[2] & 0xe0) != 0) { /* EOF, EOM, or ILI */
SCpnt1027drivers/scsi/st.cif ((SCpnt->sense_buffer[0] & 0x80) != 0)
SCpnt1028drivers/scsi/st.ctransfer = (SCpnt->sense_buffer[3] << 24) |
SCpnt1029drivers/scsi/st.c(SCpnt->sense_buffer[4] << 16) |
SCpnt1030drivers/scsi/st.c(SCpnt->sense_buffer[5] << 8) | SCpnt->sense_buffer[6];
SCpnt1034drivers/scsi/st.c(SCpnt->sense_buffer[2] & 0x0f) == MEDIUM_ERROR)
SCpnt1037drivers/scsi/st.cif (SCpnt->sense_buffer[2] & 0x20) {
SCpnt1045drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt1049drivers/scsi/st.celse if (SCpnt->sense_buffer[2] & 0x40) {
SCpnt1062drivers/scsi/st.celse if (SCpnt->sense_buffer[2] & 0x80) {
SCpnt1082drivers/scsi/st.cSCpnt->request.dev = -1;
SCpnt1087drivers/scsi/st.c(SCpnt->sense_buffer[2] & 0x0f) == BLANK_CHECK) {
SCpnt1102drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt1137drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt1156drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt1218drivers/scsi/st.cScsi_Cmnd * SCpnt;
SCpnt1533drivers/scsi/st.cSCpnt = allocate_device(NULL, STp->device, 1);
SCpnt1534drivers/scsi/st.cSCpnt->sense_buffer[0] = 0;
SCpnt1535drivers/scsi/st.cSCpnt->request.dev = dev;
SCpnt1536drivers/scsi/st.cscsi_do_cmd(SCpnt,
SCpnt1540drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
SCpnt1544drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt1592drivers/scsi/st.cif (SCpnt->sense_buffer[2] & 0x40) {
SCpnt1600drivers/scsi/st.c(SCpnt->sense_buffer[3] << 24) +
SCpnt1601drivers/scsi/st.c(SCpnt->sense_buffer[4] << 16) +
SCpnt1602drivers/scsi/st.c(SCpnt->sense_buffer[5] << 8) +
SCpnt1603drivers/scsi/st.cSCpnt->sense_buffer[6] );
SCpnt1616drivers/scsi/st.cif (SCpnt->sense_buffer[2] & 0x80) { /* Hit filemark */
SCpnt1628drivers/scsi/st.cif (SCpnt->sense_buffer[2] & 0x80) { /* Hit filemark */
SCpnt1644drivers/scsi/st.c(SCpnt->sense_buffer[2] & 0x0f) == BLANK_CHECK)
SCpnt1663drivers/scsi/st.cScsi_Cmnd *SCpnt;
SCpnt1774drivers/scsi/st.cSCpnt = allocate_device(NULL, STp->device, 1);
SCpnt1776drivers/scsi/st.cSCpnt->sense_buffer[0]=0;
SCpnt1786drivers/scsi/st.cSCpnt->request.dev = dev;
SCpnt1787drivers/scsi/st.cSCpnt->sense_buffer[0] = 0;
SCpnt1788drivers/scsi/st.cscsi_do_cmd(SCpnt,
SCpnt1792drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
SCpnt1816drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
SCpnt53drivers/scsi/st.hScsi_Cmnd SCpnt;
SCpnt225drivers/scsi/u14-34f.cScsi_Cmnd *SCpnt;
SCpnt504drivers/scsi/u14-34f.cstatic inline void build_sg_list(struct mscp *cpp, Scsi_Cmnd *SCpnt) {
SCpnt508drivers/scsi/u14-34f.csgpnt = (struct scatterlist *) SCpnt->request_buffer;
SCpnt510drivers/scsi/u14-34f.cfor (k = 0; k < SCpnt->use_sg; k++) {
SCpnt516drivers/scsi/u14-34f.ccpp->use_sg = SCpnt->use_sg;
SCpnt521drivers/scsi/u14-34f.cint u14_34f_queuecommand(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *)) {
SCpnt528drivers/scsi/u14-34f.cj = ((struct hostdata *) SCpnt->host->hostdata)->board_number;
SCpnt530drivers/scsi/u14-34f.cif (!done) panic("%s: qcomm, pid %ld, null done.\n", BN(j), SCpnt->pid);
SCpnt551drivers/scsi/u14-34f.celse if (u14_34f_reset(SCpnt) == SCSI_RESET_SUCCESS) 
SCpnt554drivers/scsi/u14-34f.cSCpnt->result = DID_BUS_BUSY << 16; 
SCpnt555drivers/scsi/u14-34f.cSCpnt->host_scribble = NULL;
SCpnt556drivers/scsi/u14-34f.cprintk("%s: qcomm, pid %ld, DID_BUS_BUSY, done.\n", BN(j), SCpnt->pid);
SCpnt558drivers/scsi/u14-34f.cdone(SCpnt);    
SCpnt566drivers/scsi/u14-34f.cSCpnt->scsi_done = done;
SCpnt568drivers/scsi/u14-34f.cSCpnt->host_scribble = (unsigned char *) &cpp->index;
SCpnt571drivers/scsi/u14-34f.cBN(j), i, SCpnt->target, SCpnt->pid);
SCpnt575drivers/scsi/u14-34f.ccpp->target = SCpnt->target;
SCpnt576drivers/scsi/u14-34f.ccpp->lun = SCpnt->lun;
SCpnt577drivers/scsi/u14-34f.ccpp->SCpnt = SCpnt;
SCpnt578drivers/scsi/u14-34f.ccpp->sense_addr = (unsigned int) SCpnt->sense_buffer;
SCpnt579drivers/scsi/u14-34f.ccpp->sense_len = sizeof SCpnt->sense_buffer;
SCpnt581drivers/scsi/u14-34f.cif (SCpnt->use_sg) {
SCpnt583drivers/scsi/u14-34f.cbuild_sg_list(cpp, SCpnt);
SCpnt586drivers/scsi/u14-34f.ccpp->data_address = (unsigned int)SCpnt->request_buffer;
SCpnt587drivers/scsi/u14-34f.ccpp->data_len = SCpnt->request_bufflen;
SCpnt590drivers/scsi/u14-34f.ccpp->scsi_cdbs_len = SCpnt->cmd_len;
SCpnt591drivers/scsi/u14-34f.cmemcpy(cpp->scsi_cdbs, SCpnt->cmnd, cpp->scsi_cdbs_len);
SCpnt594drivers/scsi/u14-34f.cSCpnt->result = DID_ERROR << 16;
SCpnt595drivers/scsi/u14-34f.cSCpnt->host_scribble = NULL;
SCpnt597drivers/scsi/u14-34f.cBN(j), SCpnt->target, SCpnt->pid);
SCpnt599drivers/scsi/u14-34f.cdone(SCpnt);
SCpnt649drivers/scsi/u14-34f.cif (SCarg != HD(j)->cp[i].SCpnt)
SCpnt651drivers/scsi/u14-34f.cBN(j), i, SCarg, HD(j)->cp[i].SCpnt);
SCpnt675drivers/scsi/u14-34f.cScsi_Cmnd *SCpnt;
SCpnt712drivers/scsi/u14-34f.cSCpnt = HD(j)->cp[i].SCpnt;
SCpnt715drivers/scsi/u14-34f.cBN(j), i, SCpnt->pid);
SCpnt717drivers/scsi/u14-34f.cif (SCpnt == NULL)
SCpnt720drivers/scsi/u14-34f.cif (SCpnt->host_scribble == NULL)
SCpnt723drivers/scsi/u14-34f.cif (*(unsigned int *)SCpnt->host_scribble != i) 
SCpnt726drivers/scsi/u14-34f.cif (SCpnt->scsi_done == NULL) 
SCpnt729drivers/scsi/u14-34f.cif (SCpnt == SCarg) arg_done = TRUE;
SCpnt753drivers/scsi/u14-34f.cSCpnt = HD(j)->cp[i].SCpnt;
SCpnt754drivers/scsi/u14-34f.cSCpnt->result = DID_RESET << 16;
SCpnt755drivers/scsi/u14-34f.cSCpnt->host_scribble = NULL;
SCpnt761drivers/scsi/u14-34f.cBN(j), i, SCpnt->pid);
SCpnt763drivers/scsi/u14-34f.cSCpnt->scsi_done(SCpnt);
SCpnt792drivers/scsi/u14-34f.cScsi_Cmnd *SCpnt;
SCpnt854drivers/scsi/u14-34f.cSCpnt = spp->SCpnt;
SCpnt856drivers/scsi/u14-34f.cif (SCpnt == NULL) 
SCpnt859drivers/scsi/u14-34f.cif (SCpnt->host_scribble == NULL) 
SCpnt861drivers/scsi/u14-34f.cBN(j), i, SCpnt->pid, SCpnt);
SCpnt863drivers/scsi/u14-34f.cif (*(unsigned int *)SCpnt->host_scribble != i) 
SCpnt865drivers/scsi/u14-34f.c" irq %d.\n", BN(j), i, SCpnt->pid, 
SCpnt866drivers/scsi/u14-34f.c*(unsigned int *)SCpnt->host_scribble, irq);
SCpnt874drivers/scsi/u14-34f.cif (tstatus == BUSY && SCpnt->device->type != TYPE_TAPE) 
SCpnt879drivers/scsi/u14-34f.c&& SCpnt->device->type == TYPE_DISK
SCpnt880drivers/scsi/u14-34f.c&& HD(j)->target_reset[SCpnt->target])
SCpnt885drivers/scsi/u14-34f.c&& SCpnt->device->type == TYPE_DISK
SCpnt886drivers/scsi/u14-34f.c&& (SCpnt->sense_buffer[2] & 0xf) == RECOVERED_ERROR)
SCpnt890drivers/scsi/u14-34f.c&& SCpnt->device->type == TYPE_DISK
SCpnt891drivers/scsi/u14-34f.c&& (SCpnt->sense_buffer[2] & 0xf) == UNIT_ATTENTION)
SCpnt898drivers/scsi/u14-34f.cHD(j)->target_reset[SCpnt->target] = FALSE;
SCpnt900drivers/scsi/u14-34f.cif (spp->target_status && SCpnt->device->type == TYPE_DISK)
SCpnt903drivers/scsi/u14-34f.cSCpnt->target, SCpnt->lun, SCpnt->pid,
SCpnt904drivers/scsi/u14-34f.cspp->target_status, SCpnt->sense_buffer[2]);
SCpnt906drivers/scsi/u14-34f.cHD(j)->target_time_out[SCpnt->target] = 0;
SCpnt911drivers/scsi/u14-34f.cif (HD(j)->target_time_out[SCpnt->target] > 1)
SCpnt915drivers/scsi/u14-34f.cHD(j)->target_time_out[SCpnt->target]++;
SCpnt925drivers/scsi/u14-34f.cif (SCpnt->device->type != TYPE_TAPE)
SCpnt946drivers/scsi/u14-34f.cSCpnt->result = status | spp->target_status;
SCpnt952drivers/scsi/u14-34f.cif (SCpnt->result || do_trace) 
SCpnt962drivers/scsi/u14-34f.cSCpnt->target, SCpnt->lun, SCpnt->pid, HD(j)->iocount);
SCpnt965drivers/scsi/u14-34f.cSCpnt->host_scribble = NULL;
SCpnt968drivers/scsi/u14-34f.cSCpnt->scsi_done(SCpnt);
SCpnt287drivers/scsi/ultrastor.cstatic inline void build_sg_list(struct mscp *, Scsi_Cmnd *SCpnt);
SCpnt645drivers/scsi/ultrastor.cstatic inline void build_sg_list(register struct mscp *mscp, Scsi_Cmnd *SCpnt)
SCpnt651drivers/scsi/ultrastor.csl = (struct scatterlist *) SCpnt->request_buffer;
SCpnt652drivers/scsi/ultrastor.cmax = SCpnt->use_sg;
SCpnt666drivers/scsi/ultrastor.cint ultrastor_queuecommand(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *))
SCpnt704drivers/scsi/ultrastor.cmy_mscp->ca = SCpnt->device->type != TYPE_TAPE;
SCpnt705drivers/scsi/ultrastor.cmy_mscp->target_id = SCpnt->target;
SCpnt707drivers/scsi/ultrastor.cmy_mscp->lun = SCpnt->lun;
SCpnt708drivers/scsi/ultrastor.cif (SCpnt->use_sg) {
SCpnt711drivers/scsi/ultrastor.cbuild_sg_list(my_mscp, SCpnt);
SCpnt715drivers/scsi/ultrastor.cmy_mscp->transfer_data = (unsigned int)SCpnt->request_buffer;
SCpnt716drivers/scsi/ultrastor.cmy_mscp->transfer_data_length = SCpnt->request_bufflen;
SCpnt720drivers/scsi/ultrastor.cmy_mscp->length_of_sense_byte = sizeof SCpnt->sense_buffer;
SCpnt721drivers/scsi/ultrastor.cmy_mscp->length_of_scsi_cdbs = SCpnt->cmd_len;
SCpnt722drivers/scsi/ultrastor.cmemcpy(my_mscp->scsi_cdbs, SCpnt->cmnd, my_mscp->length_of_scsi_cdbs);
SCpnt725drivers/scsi/ultrastor.cmy_mscp->sense_data = (unsigned int)&SCpnt->sense_buffer;
SCpnt727drivers/scsi/ultrastor.cmy_mscp->SCint = SCpnt;
SCpnt728drivers/scsi/ultrastor.cSCpnt->host_scribble = (unsigned char *)my_mscp;
SCpnt774drivers/scsi/ultrastor.cSCpnt->result = status;
SCpnt775drivers/scsi/ultrastor.cdone(SCpnt);
SCpnt818drivers/scsi/ultrastor.cint ultrastor_abort(Scsi_Cmnd *SCpnt)
SCpnt833drivers/scsi/ultrastor.cif(!SCpnt->host_scribble)
SCpnt836drivers/scsi/ultrastor.cmscp_index = ((struct mscp *)SCpnt->host_scribble) - config.mscp;
SCpnt924drivers/scsi/ultrastor.cif (config.mscp[mscp_index].SCint != SCpnt)
SCpnt926drivers/scsi/ultrastor.cconfig.mscp[mscp_index].SCint, SCpnt);
SCpnt931drivers/scsi/ultrastor.cif (config.mscp[mscp_index].SCint != SCpnt) panic("Bad abort");
SCpnt935drivers/scsi/ultrastor.cSCpnt->result = DID_ABORT << 16;
SCpnt937drivers/scsi/ultrastor.cdone(SCpnt);
SCpnt943drivers/scsi/ultrastor.cint ultrastor_reset(Scsi_Cmnd * SCpnt)
SCpnt340drivers/scsi/wd7000.cScsi_Cmnd *SCpnt;             /* Scsi_Cmnd using this SCB */
SCpnt671drivers/scsi/wd7000.cscbs[i].next = &(scbs[i+1]);  scbs[i].SCpnt = NULL;
SCpnt674drivers/scsi/wd7000.cscbs[MAX_SCBS-1].SCpnt = NULL;
SCpnt789drivers/scsi/wd7000.cstatic void wd7000_scsi_done(Scsi_Cmnd * SCpnt)
SCpnt792drivers/scsi/wd7000.cprintk("wd7000_scsi_done: %06x\n",(unsigned int) SCpnt);
SCpnt794drivers/scsi/wd7000.cSCpnt->SCp.phase = 0;
SCpnt806drivers/scsi/wd7000.cregister Scsi_Cmnd *SCpnt;
SCpnt863drivers/scsi/wd7000.cSCpnt = scb->SCpnt;
SCpnt864drivers/scsi/wd7000.cif (--(SCpnt->SCp.phase) <= 0)  {  /* all scbs are done */
SCpnt868drivers/scsi/wd7000.cSCpnt->result = errstatus;
SCpnt872drivers/scsi/wd7000.cSCpnt->scsi_done(SCpnt);
SCpnt887drivers/scsi/wd7000.cint wd7000_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
SCpnt891drivers/scsi/wd7000.cregister unchar *cdb = (unchar *) SCpnt->cmnd;
SCpnt894drivers/scsi/wd7000.cAdapter *host = (Adapter *) SCpnt->host->hostdata;
SCpnt896drivers/scsi/wd7000.ccdblen = SCpnt->cmd_len;
SCpnt897drivers/scsi/wd7000.cidlun = ((SCpnt->target << 5) & 0xe0) | (SCpnt->lun & 7);
SCpnt898drivers/scsi/wd7000.cSCpnt->scsi_done = done;
SCpnt899drivers/scsi/wd7000.cSCpnt->SCp.phase = 1;
SCpnt905drivers/scsi/wd7000.cscb->SCpnt = SCpnt;         /* so we can find stuff later */
SCpnt906drivers/scsi/wd7000.cSCpnt->host_scribble = (unchar *) scb;
SCpnt909drivers/scsi/wd7000.cif (SCpnt->use_sg)  {
SCpnt910drivers/scsi/wd7000.cstruct scatterlist *sg = (struct scatterlist *) SCpnt->request_buffer;
SCpnt913drivers/scsi/wd7000.cif (SCpnt->host->sg_tablesize == SG_NONE)  {
SCpnt917drivers/scsi/wd7000.cprintk("Using scatter/gather with %d elements.\n",SCpnt->use_sg);
SCpnt923drivers/scsi/wd7000.cany2scsi(scb->maxlen, SCpnt->use_sg * sizeof (Sgb) );
SCpnt925drivers/scsi/wd7000.cfor (i = 0;  i < SCpnt->use_sg;  i++)  {
SCpnt931drivers/scsi/wd7000.cany2scsi(scb->dataptr, (int) SCpnt->request_buffer);
SCpnt932drivers/scsi/wd7000.cany2scsi(scb->maxlen, SCpnt->request_bufflen);
SCpnt940drivers/scsi/wd7000.cint wd7000_command(Scsi_Cmnd *SCpnt)
SCpnt942drivers/scsi/wd7000.cwd7000_queuecommand(SCpnt, wd7000_scsi_done);
SCpnt944drivers/scsi/wd7000.cwhile (SCpnt->SCp.phase > 0);  /* phase counts scbs down to 0 */
SCpnt946drivers/scsi/wd7000.creturn SCpnt->result;
SCpnt1179drivers/scsi/wd7000.cint wd7000_abort(Scsi_Cmnd * SCpnt)
SCpnt1181drivers/scsi/wd7000.cAdapter *host = (Adapter *) SCpnt->host->hostdata;
SCpnt1196drivers/scsi/wd7000.cint wd7000_reset(Scsi_Cmnd * SCpnt)