taglinefilesource code
current_SC330drivers/scsi/aha152x.cstatic Scsi_Cmnd            *current_SC      = NULL;
current_SC844drivers/scsi/aha152x.cif(!current_SC)
current_SC911drivers/scsi/aha152x.cif ( TESTLO(SSTAT1, BUSFREE) || (current_SC && current_SC!=SCpnt))
current_SC915drivers/scsi/aha152x.cif(!current_SC)
current_SC924drivers/scsi/aha152x.cif(current_SC)
current_SC928drivers/scsi/aha152x.ccurrent_SC->result = DID_ERROR << 16;
current_SC929drivers/scsi/aha152x.ccurrent_SC->done(current_SC);
current_SC930drivers/scsi/aha152x.ccurrent_SC = (Scsi_Cmnd *) NULL;
current_SC951drivers/scsi/aha152x.ccurrent_SC     = ptr;
current_SC953drivers/scsi/aha152x.cSETPORT( SCSIID, (this_host << OID_) | current_SC->target );
current_SC1046drivers/scsi/aha152x.cif(current_SC && !current_SC->device->soft_reset)
current_SC1048drivers/scsi/aha152x.ccurrent_SC->host_scribble = NULL;
current_SC1049drivers/scsi/aha152x.ccurrent_SC->result = DID_RESET << 16;
current_SC1050drivers/scsi/aha152x.ccurrent_SC->done(current_SC);
current_SC1051drivers/scsi/aha152x.ccurrent_SC=NULL;
current_SC1151drivers/scsi/aha152x.cif (current_SC)
current_SC1161drivers/scsi/aha152x.cdone_SC = current_SC;
current_SC1162drivers/scsi/aha152x.ccurrent_SC = NULL;
current_SC1239drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
current_SC1246drivers/scsi/aha152x.cif(current_SC)
current_SC1254drivers/scsi/aha152x.cappend_SC( &issue_SC, current_SC);
current_SC1255drivers/scsi/aha152x.ccurrent_SC=NULL;
current_SC1323drivers/scsi/aha152x.ccurrent_SC = remove_SC( &disconnected_SC,
current_SC1327drivers/scsi/aha152x.cif(!current_SC)
current_SC1333drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
current_SC1346drivers/scsi/aha152x.cif(!current_SC)
current_SC1357drivers/scsi/aha152x.ccurrent_SC = remove_first_SC( &issue_SC );
current_SC1364drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
current_SC1368drivers/scsi/aha152x.cprintk("selecting %d, ", current_SC->target); 
current_SC1370drivers/scsi/aha152x.cSETPORT( SCSIID, (this_host << OID_) | current_SC->target );
current_SC1402drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
current_SC1427drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1445drivers/scsi/aha152x.cif((aha152x_debug & debug_abort) && (current_SC->SCp.phase & aborted))
current_SC1449drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
current_SC1450drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
current_SC1484drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1509drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
current_SC1510drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
current_SC1524drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
current_SC1536drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
current_SC1538drivers/scsi/aha152x.cmessage=IDENTIFY(can_disconnect,current_SC->lun);
current_SC1542drivers/scsi/aha152x.ccan_disconnect ? "enabled" : "disabled", current_SC->lun);
current_SC1574drivers/scsi/aha152x.cif(message==IDENTIFY(can_disconnect,current_SC->lun))
current_SC1575drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
current_SC1583drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC1601drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
current_SC1634drivers/scsi/aha152x.ccurrent_SC->cmd_len, current_SC->cmd_len >> 1 );
current_SC1639drivers/scsi/aha152x.coutsw( DATAPORT, &current_SC->cmnd, current_SC->cmd_len >> 1 );
current_SC1679drivers/scsi/aha152x.ccurrent_SC->cmd_len);
current_SC1699drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIBUS );
current_SC1700drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
current_SC1707drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
current_SC1708drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
current_SC1826drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
current_SC1839drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
current_SC1847drivers/scsi/aha152x.cappend_SC( &disconnected_SC, current_SC);
current_SC1848drivers/scsi/aha152x.ccurrent_SC = NULL;
current_SC1874drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIBUS );
current_SC1882drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
current_SC1946drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
current_SC1951drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
current_SC1952drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
current_SC1965drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
current_SC1966drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
current_SC1972drivers/scsi/aha152x.cinsw( DATAPORT, current_SC->SCp.ptr, data_count );
current_SC1983drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
current_SC1989drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
current_SC1990drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1994drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
current_SC1995drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
current_SC1998drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
current_SC1999drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
current_SC2000drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
current_SC2001drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
current_SC2002drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
current_SC2003drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
current_SC2031drivers/scsi/aha152x.cif((aha152x_debug & debug_datai) && (current_SC->SCp.buffers_residual || current_SC->SCp.this_residual))
current_SC2033drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
current_SC2034drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
current_SC2047drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
current_SC2062drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC2063drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
current_SC2084drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
current_SC2085drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
current_SC2090drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC2091drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
current_SC2094drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
current_SC2095drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
current_SC2106drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
current_SC2107drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
current_SC2113drivers/scsi/aha152x.coutsw( DATAPORT, current_SC->SCp.ptr, data_count );
current_SC2114drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
current_SC2115drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC2130drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
current_SC2131drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
current_SC2134drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
current_SC2135drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
current_SC2136drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
current_SC2137drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
current_SC2138drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
current_SC2139drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
current_SC2143drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
current_SC2144drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
current_SC2153drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
current_SC2154drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
current_SC2158drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC2159drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
current_SC2178drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC2179drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
current_SC2205drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC2217drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC2245drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
current_SC2246drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
current_SC2251drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
current_SC2256drivers/scsi/aha152x.cif(current_SC)
current_SC2257drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
current_SC2296drivers/scsi/aha152x.cprintk("\n%s: ", current_SC ? "on bus" : "waiting");
current_SC2608drivers/scsi/aha152x.cif(current_SC)
current_SC2609drivers/scsi/aha152x.cshow_command(current_SC);
current_SC287drivers/scsi/fdomain.cstatic Scsi_Cmnd         *current_SC       = NULL;
current_SC891drivers/scsi/fdomain.ccurrent_SC->result = error;
current_SC892drivers/scsi/fdomain.cif (current_SC->scsi_done)
current_SC893drivers/scsi/fdomain.ccurrent_SC->scsi_done( current_SC );
current_SC920drivers/scsi/fdomain.cif (!in_command || !current_SC) {  /* Spurious interrupt */
current_SC923drivers/scsi/fdomain.cin_command, current_SC );
current_SC929drivers/scsi/fdomain.cif (current_SC->SCp.phase & aborted) {
current_SC941drivers/scsi/fdomain.cif (current_SC->SCp.phase & in_arbitration) {
current_SC950drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_selection;
current_SC955drivers/scsi/fdomain.coutb( adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port );
current_SC963drivers/scsi/fdomain.c} else if (current_SC->SCp.phase & in_selection) {
current_SC967drivers/scsi/fdomain.cif (fdomain_select( current_SC->target )) {
current_SC981drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_other;
current_SC999drivers/scsi/fdomain.coutb( current_SC->cmnd[current_SC->SCp.sent_command++],
current_SC1003drivers/scsi/fdomain.ccurrent_SC->cmnd[ current_SC->SCp.sent_command - 1] );
current_SC1007drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
current_SC1008drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
current_SC1013drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
current_SC1014drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
current_SC1019drivers/scsi/fdomain.ccurrent_SC->SCp.Status = inb( Read_SCSI_Data_port );
current_SC1021drivers/scsi/fdomain.cprintk( "Status = %x, ", current_SC->SCp.Status );
current_SC1024drivers/scsi/fdomain.cif (current_SC->SCp.Status && current_SC->SCp.Status != 2) {
current_SC1026drivers/scsi/fdomain.ccurrent_SC->target,
current_SC1027drivers/scsi/fdomain.ccurrent_SC->cmnd[0],
current_SC1028drivers/scsi/fdomain.ccurrent_SC->SCp.Status );
current_SC1036drivers/scsi/fdomain.ccurrent_SC->SCp.Message = inb( Read_SCSI_Data_port );
current_SC1038drivers/scsi/fdomain.cprintk( "Message = %x, ", current_SC->SCp.Message );
current_SC1040drivers/scsi/fdomain.cif (!current_SC->SCp.Message) ++done;
current_SC1042drivers/scsi/fdomain.cif (current_SC->SCp.Message) {
current_SC1043drivers/scsi/fdomain.cprintk( "fdomain: message = %x\n", current_SC->SCp.Message );
current_SC1051drivers/scsi/fdomain.c&& !current_SC->SCp.have_data_in
current_SC1052drivers/scsi/fdomain.c&& (current_SC->SCp.sent_command
current_SC1053drivers/scsi/fdomain.c>= current_SC->cmd_len)) {
current_SC1180drivers/scsi/fdomain.cswitch (current_SC->cmnd[0]) {
current_SC1201drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
current_SC1208drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
current_SC1214drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
current_SC1219drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
current_SC1220drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
current_SC1226drivers/scsi/fdomain.coutb( *current_SC->SCp.ptr++, Write_FIFO_port );
current_SC1227drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
current_SC1230drivers/scsi/fdomain.coutsw( Write_FIFO_port, current_SC->SCp.ptr, data_count );
current_SC1231drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
current_SC1232drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1235drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual) {
current_SC1236drivers/scsi/fdomain.cif (current_SC->SCp.buffers_residual) {
current_SC1237drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
current_SC1238drivers/scsi/fdomain.c++current_SC->SCp.buffer;
current_SC1239drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
current_SC1240drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
current_SC1247drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == 1) { /* DATA IN */
current_SC1252drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
current_SC1253drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
current_SC1259drivers/scsi/fdomain.c*current_SC->SCp.ptr++ = inb( Read_FIFO_port );
current_SC1260drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
current_SC1263drivers/scsi/fdomain.cinsw( Read_FIFO_port, current_SC->SCp.ptr, data_count );
current_SC1264drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
current_SC1265drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1268drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual
current_SC1269drivers/scsi/fdomain.c&& current_SC->SCp.buffers_residual) {
current_SC1270drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
current_SC1271drivers/scsi/fdomain.c++current_SC->SCp.buffer;
current_SC1272drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
current_SC1273drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
current_SC1280drivers/scsi/fdomain.cprintk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in );
current_SC1284drivers/scsi/fdomain.cif (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) {
current_SC1285drivers/scsi/fdomain.cif ((unsigned char)(*((char *)current_SC->request_buffer+2)) & 0x0f) {
current_SC1290drivers/scsi/fdomain.ckey = (unsigned char)(*((char *)current_SC->request_buffer + 2))
current_SC1292drivers/scsi/fdomain.ccode = (unsigned char)(*((char *)current_SC->request_buffer + 12));
current_SC1293drivers/scsi/fdomain.cqualifier = (unsigned char)(*((char *)current_SC->request_buffer
current_SC1313drivers/scsi/fdomain.cmy_done( (current_SC->SCp.Status & 0xff)
current_SC1314drivers/scsi/fdomain.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) );
current_SC1320drivers/scsi/fdomain.cif (current_SC->SCp.phase & disconnect) {
current_SC1348drivers/scsi/fdomain.ccurrent_SC            = SCpnt; /* Save this for the done function */
current_SC1349drivers/scsi/fdomain.ccurrent_SC->scsi_done = done;
current_SC1353drivers/scsi/fdomain.cif (current_SC->use_sg) {
current_SC1354drivers/scsi/fdomain.ccurrent_SC->SCp.buffer =
current_SC1355drivers/scsi/fdomain.c(struct scatterlist *)current_SC->request_buffer;
current_SC1356drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = current_SC->SCp.buffer->address;
current_SC1357drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->SCp.buffer->length;
current_SC1358drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = current_SC->use_sg - 1;
current_SC1360drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = (char *)current_SC->request_buffer;
current_SC1361drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->request_bufflen;
current_SC1362drivers/scsi/fdomain.ccurrent_SC->SCp.buffer           = NULL;
current_SC1363drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = 0;
current_SC1367drivers/scsi/fdomain.ccurrent_SC->SCp.Status              = 0;
current_SC1368drivers/scsi/fdomain.ccurrent_SC->SCp.Message             = 0;
current_SC1369drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in        = 0;
current_SC1370drivers/scsi/fdomain.ccurrent_SC->SCp.sent_command        = 0;
current_SC1371drivers/scsi/fdomain.ccurrent_SC->SCp.phase               = in_arbitration;
current_SC1501drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
current_SC1503drivers/scsi/fdomain.ccurrent_SC->result = DID_ABORT << 16;
current_SC1524drivers/scsi/fdomain.cif (called_once) print_info( current_SC );