taglinefilesource code
current_SC295drivers/scsi/aha152x.cstatic Scsi_Cmnd            *current_SC      = NULL;
current_SC779drivers/scsi/aha152x.cif(!current_SC)
current_SC841drivers/scsi/aha152x.cif (!current_SC && TESTLO(SSTAT1, BUSFREE))
current_SC844drivers/scsi/aha152x.cif (current_SC==SCpnt)
current_SC854drivers/scsi/aha152x.ccurrent_SC->result = DID_ERROR << 16;
current_SC855drivers/scsi/aha152x.ccurrent_SC->done(current_SC);
current_SC856drivers/scsi/aha152x.ccurrent_SC = (Scsi_Cmnd *) NULL;
current_SC877drivers/scsi/aha152x.ccurrent_SC     = ptr;
current_SC879drivers/scsi/aha152x.cSETPORT( SCSIID, (this_host << OID_) | current_SC->target );
current_SC965drivers/scsi/aha152x.cif(current_SC && !current_SC->device->soft_reset)
current_SC967drivers/scsi/aha152x.ccurrent_SC->host_scribble = NULL;
current_SC968drivers/scsi/aha152x.ccurrent_SC->result = DID_RESET << 16;
current_SC969drivers/scsi/aha152x.ccurrent_SC->done(current_SC);
current_SC970drivers/scsi/aha152x.ccurrent_SC=NULL;
current_SC1057drivers/scsi/aha152x.cif (current_SC)
current_SC1065drivers/scsi/aha152x.cdone_SC = current_SC;
current_SC1066drivers/scsi/aha152x.ccurrent_SC = NULL;
current_SC1136drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
current_SC1143drivers/scsi/aha152x.cif(current_SC)
current_SC1149drivers/scsi/aha152x.cappend_SC( &issue_SC, current_SC);
current_SC1150drivers/scsi/aha152x.ccurrent_SC=NULL;
current_SC1212drivers/scsi/aha152x.ccurrent_SC = remove_SC( &disconnected_SC,
current_SC1216drivers/scsi/aha152x.cif(!current_SC)
current_SC1222drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
current_SC1235drivers/scsi/aha152x.cif(!current_SC)
current_SC1244drivers/scsi/aha152x.ccurrent_SC = remove_first_SC( &issue_SC );
current_SC1250drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
current_SC1253drivers/scsi/aha152x.cprintk("selecting %d, ", current_SC->target); 
current_SC1255drivers/scsi/aha152x.cSETPORT( SCSIID, (this_host << OID_) | current_SC->target );
current_SC1286drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
current_SC1311drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1328drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1332drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
current_SC1333drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
current_SC1366drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1390drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
current_SC1391drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
current_SC1404drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
current_SC1415drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
current_SC1417drivers/scsi/aha152x.cmessage=IDENTIFY(can_disconnect,current_SC->lun);
current_SC1420drivers/scsi/aha152x.ccan_disconnect ? "enabled" : "disabled", current_SC->lun);
current_SC1451drivers/scsi/aha152x.cif(message==IDENTIFY(can_disconnect,current_SC->lun))
current_SC1452drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
current_SC1460drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC1477drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
current_SC1507drivers/scsi/aha152x.cCOMMAND_SIZE(current_SC->cmnd[0])>>1);
current_SC1512drivers/scsi/aha152x.c&current_SC->cmnd,
current_SC1513drivers/scsi/aha152x.cCOMMAND_SIZE(current_SC->cmnd[0])>>1 );
current_SC1534drivers/scsi/aha152x.cCOMMAND_SIZE(current_SC->cmnd[0]));
current_SC1553drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIBUS );
current_SC1554drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
current_SC1560drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
current_SC1561drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
current_SC1670drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
current_SC1683drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
current_SC1689drivers/scsi/aha152x.cappend_SC( &disconnected_SC, current_SC);
current_SC1690drivers/scsi/aha152x.ccurrent_SC = NULL;
current_SC1715drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIBUS );
current_SC1721drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
current_SC1780drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
current_SC1785drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
current_SC1786drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
current_SC1798drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
current_SC1799drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
current_SC1805drivers/scsi/aha152x.cinsw( DATAPORT, current_SC->SCp.ptr, data_count );
current_SC1815drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
current_SC1821drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
current_SC1822drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1826drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
current_SC1827drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
current_SC1830drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
current_SC1831drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
current_SC1832drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
current_SC1833drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
current_SC1834drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
current_SC1835drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
current_SC1862drivers/scsi/aha152x.cif(current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)
current_SC1864drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
current_SC1865drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
current_SC1877drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
current_SC1890drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1891drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
current_SC1912drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
current_SC1913drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
current_SC1917drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1918drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
current_SC1921drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
current_SC1922drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
current_SC1932drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
current_SC1933drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
current_SC1939drivers/scsi/aha152x.coutsw( DATAPORT, current_SC->SCp.ptr, data_count );
current_SC1940drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
current_SC1941drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1955drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
current_SC1956drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
current_SC1959drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
current_SC1960drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
current_SC1961drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
current_SC1962drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
current_SC1963drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
current_SC1964drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
current_SC1968drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
current_SC1969drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
current_SC1978drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
current_SC1979drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
current_SC1982drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1983drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
current_SC2004drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC2005drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
current_SC2029drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC2041drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC2068drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
current_SC2069drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
current_SC2074drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
current_SC2079drivers/scsi/aha152x.cif(current_SC)
current_SC2080drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
current_SC2113drivers/scsi/aha152x.cprintk("\n%s: ", current_SC ? "on bus" : "waiting");
current_SC2420drivers/scsi/aha152x.cif(current_SC)
current_SC2421drivers/scsi/aha152x.cshow_command(current_SC);
current_SC265drivers/scsi/fdomain.cstatic Scsi_Cmnd         *current_SC       = NULL;
current_SC839drivers/scsi/fdomain.ccurrent_SC->result = error;
current_SC840drivers/scsi/fdomain.cif (current_SC->scsi_done)
current_SC841drivers/scsi/fdomain.ccurrent_SC->scsi_done( current_SC );
current_SC862drivers/scsi/fdomain.cif (!in_command || !current_SC) {  /* Spurious interrupt */
current_SC865drivers/scsi/fdomain.cin_command, current_SC );
current_SC871drivers/scsi/fdomain.cif (current_SC->SCp.phase & aborted) {
current_SC883drivers/scsi/fdomain.cif (current_SC->SCp.phase & in_arbitration) {
current_SC892drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_selection;
current_SC897drivers/scsi/fdomain.coutb( adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port );
current_SC905drivers/scsi/fdomain.c} else if (current_SC->SCp.phase & in_selection) {
current_SC909drivers/scsi/fdomain.cif (fdomain_select( current_SC->target )) {
current_SC923drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_other;
current_SC941drivers/scsi/fdomain.coutb( current_SC->cmnd[current_SC->SCp.sent_command++],
current_SC945drivers/scsi/fdomain.ccurrent_SC->cmnd[ current_SC->SCp.sent_command - 1] );
current_SC949drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
current_SC950drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
current_SC955drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
current_SC956drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
current_SC961drivers/scsi/fdomain.ccurrent_SC->SCp.Status = inb( Read_SCSI_Data_port );
current_SC963drivers/scsi/fdomain.cprintk( "Status = %x, ", current_SC->SCp.Status );
current_SC966drivers/scsi/fdomain.cif (current_SC->SCp.Status && current_SC->SCp.Status != 2) {
current_SC969drivers/scsi/fdomain.ccurrent_SC->target, current_SC->cmnd[0],
current_SC970drivers/scsi/fdomain.ccurrent_SC->SCp.Status );
current_SC978drivers/scsi/fdomain.ccurrent_SC->SCp.Message = inb( Read_SCSI_Data_port );
current_SC980drivers/scsi/fdomain.cprintk( "Message = %x, ", current_SC->SCp.Message );
current_SC982drivers/scsi/fdomain.cif (!current_SC->SCp.Message) ++done;
current_SC984drivers/scsi/fdomain.cif (current_SC->SCp.Message) {
current_SC986drivers/scsi/fdomain.ccurrent_SC->SCp.Message );
current_SC994drivers/scsi/fdomain.c&& !current_SC->SCp.have_data_in
current_SC995drivers/scsi/fdomain.c&& (current_SC->SCp.sent_command
current_SC996drivers/scsi/fdomain.c>= COMMAND_SIZE( current_SC->cmnd[ 0 ] ))) {
current_SC1123drivers/scsi/fdomain.cswitch (current_SC->cmnd[0]) {
current_SC1144drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
current_SC1151drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
current_SC1157drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
current_SC1162drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
current_SC1163drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
current_SC1169drivers/scsi/fdomain.coutb( *current_SC->SCp.ptr++, Write_FIFO_port );
current_SC1170drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
current_SC1173drivers/scsi/fdomain.coutsw( Write_FIFO_port, current_SC->SCp.ptr, data_count );
current_SC1174drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
current_SC1175drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1178drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual) {
current_SC1179drivers/scsi/fdomain.cif (current_SC->SCp.buffers_residual) {
current_SC1180drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
current_SC1181drivers/scsi/fdomain.c++current_SC->SCp.buffer;
current_SC1182drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
current_SC1183drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
current_SC1190drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == 1) { /* DATA IN */
current_SC1195drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
current_SC1196drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
current_SC1202drivers/scsi/fdomain.c*current_SC->SCp.ptr++ = inb( Read_FIFO_port );
current_SC1203drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
current_SC1206drivers/scsi/fdomain.cinsw( Read_FIFO_port, current_SC->SCp.ptr, data_count );
current_SC1207drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
current_SC1208drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1211drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual
current_SC1212drivers/scsi/fdomain.c&& current_SC->SCp.buffers_residual) {
current_SC1213drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
current_SC1214drivers/scsi/fdomain.c++current_SC->SCp.buffer;
current_SC1215drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
current_SC1216drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
current_SC1223drivers/scsi/fdomain.cprintk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in );
current_SC1227drivers/scsi/fdomain.cif (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) {
current_SC1228drivers/scsi/fdomain.cif ((unsigned char)(*((char *)current_SC->request_buffer+2)) & 0x0f) {
current_SC1233drivers/scsi/fdomain.ckey = (unsigned char)(*((char *)current_SC->request_buffer + 2))
current_SC1235drivers/scsi/fdomain.ccode = (unsigned char)(*((char *)current_SC->request_buffer + 12));
current_SC1236drivers/scsi/fdomain.cqualifier = (unsigned char)(*((char *)current_SC->request_buffer
current_SC1256drivers/scsi/fdomain.cmy_done( (current_SC->SCp.Status & 0xff)
current_SC1257drivers/scsi/fdomain.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) );
current_SC1263drivers/scsi/fdomain.cif (current_SC->SCp.phase & disconnect) {
current_SC1291drivers/scsi/fdomain.ccurrent_SC            = SCpnt; /* Save this for the done function */
current_SC1292drivers/scsi/fdomain.ccurrent_SC->scsi_done = done;
current_SC1296drivers/scsi/fdomain.cif (current_SC->use_sg) {
current_SC1297drivers/scsi/fdomain.ccurrent_SC->SCp.buffer =
current_SC1298drivers/scsi/fdomain.c(struct scatterlist *)current_SC->request_buffer;
current_SC1299drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = current_SC->SCp.buffer->address;
current_SC1300drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->SCp.buffer->length;
current_SC1301drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = current_SC->use_sg - 1;
current_SC1303drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = (char *)current_SC->request_buffer;
current_SC1304drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->request_bufflen;
current_SC1305drivers/scsi/fdomain.ccurrent_SC->SCp.buffer           = NULL;
current_SC1306drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = 0;
current_SC1310drivers/scsi/fdomain.ccurrent_SC->SCp.Status              = 0;
current_SC1311drivers/scsi/fdomain.ccurrent_SC->SCp.Message             = 0;
current_SC1312drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in        = 0;
current_SC1313drivers/scsi/fdomain.ccurrent_SC->SCp.sent_command        = 0;
current_SC1314drivers/scsi/fdomain.ccurrent_SC->SCp.phase               = in_arbitration;
current_SC1437drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
current_SC1439drivers/scsi/fdomain.ccurrent_SC->result = DID_ABORT << 16;
current_SC1460drivers/scsi/fdomain.cif (called_once) print_info( current_SC );