taglinefilesource code
current_SC311drivers/scsi/aha152x.cstatic Scsi_Cmnd            *current_SC      = NULL;
current_SC805drivers/scsi/aha152x.cif(!current_SC)
current_SC870drivers/scsi/aha152x.cif ( TESTLO(SSTAT1, BUSFREE) || (current_SC && current_SC!=SCpnt))
current_SC874drivers/scsi/aha152x.cif(!current_SC)
current_SC883drivers/scsi/aha152x.cif(current_SC)
current_SC887drivers/scsi/aha152x.ccurrent_SC->result = DID_ERROR << 16;
current_SC888drivers/scsi/aha152x.ccurrent_SC->done(current_SC);
current_SC889drivers/scsi/aha152x.ccurrent_SC = (Scsi_Cmnd *) NULL;
current_SC910drivers/scsi/aha152x.ccurrent_SC     = ptr;
current_SC912drivers/scsi/aha152x.cSETPORT( SCSIID, (this_host << OID_) | current_SC->target );
current_SC1003drivers/scsi/aha152x.cif(current_SC && !current_SC->device->soft_reset)
current_SC1005drivers/scsi/aha152x.ccurrent_SC->host_scribble = NULL;
current_SC1006drivers/scsi/aha152x.ccurrent_SC->result = DID_RESET << 16;
current_SC1007drivers/scsi/aha152x.ccurrent_SC->done(current_SC);
current_SC1008drivers/scsi/aha152x.ccurrent_SC=NULL;
current_SC1106drivers/scsi/aha152x.cif (current_SC)
current_SC1115drivers/scsi/aha152x.cdone_SC = current_SC;
current_SC1116drivers/scsi/aha152x.ccurrent_SC = NULL;
current_SC1192drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
current_SC1199drivers/scsi/aha152x.cif(current_SC)
current_SC1206drivers/scsi/aha152x.cappend_SC( &issue_SC, current_SC);
current_SC1207drivers/scsi/aha152x.ccurrent_SC=NULL;
current_SC1273drivers/scsi/aha152x.ccurrent_SC = remove_SC( &disconnected_SC,
current_SC1277drivers/scsi/aha152x.cif(!current_SC)
current_SC1283drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
current_SC1296drivers/scsi/aha152x.cif(!current_SC)
current_SC1306drivers/scsi/aha152x.ccurrent_SC = remove_first_SC( &issue_SC );
current_SC1313drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
current_SC1317drivers/scsi/aha152x.cprintk("selecting %d, ", current_SC->target); 
current_SC1319drivers/scsi/aha152x.cSETPORT( SCSIID, (this_host << OID_) | current_SC->target );
current_SC1351drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
current_SC1376drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1394drivers/scsi/aha152x.cif((aha152x_debug & debug_abort) && (current_SC->SCp.phase & aborted))
current_SC1398drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
current_SC1399drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
current_SC1433drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1458drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
current_SC1459drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
current_SC1473drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
current_SC1485drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
current_SC1487drivers/scsi/aha152x.cmessage=IDENTIFY(can_disconnect,current_SC->lun);
current_SC1491drivers/scsi/aha152x.ccan_disconnect ? "enabled" : "disabled", current_SC->lun);
current_SC1523drivers/scsi/aha152x.cif(message==IDENTIFY(can_disconnect,current_SC->lun))
current_SC1524drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
current_SC1532drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC1550drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
current_SC1583drivers/scsi/aha152x.ccurrent_SC->cmd_len >>1 );
current_SC1589drivers/scsi/aha152x.c&current_SC->cmnd,
current_SC1590drivers/scsi/aha152x.ccurrent_SC->cmd_len >>1 );
current_SC1615drivers/scsi/aha152x.ccurrent_SC->cmd_len);
current_SC1635drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIBUS );
current_SC1636drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
current_SC1643drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
current_SC1644drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
current_SC1762drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
current_SC1775drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
current_SC1782drivers/scsi/aha152x.cappend_SC( &disconnected_SC, current_SC);
current_SC1783drivers/scsi/aha152x.ccurrent_SC = NULL;
current_SC1809drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIBUS );
current_SC1817drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
current_SC1881drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
current_SC1886drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
current_SC1887drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
current_SC1900drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
current_SC1901drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
current_SC1907drivers/scsi/aha152x.cinsw( DATAPORT, current_SC->SCp.ptr, data_count );
current_SC1918drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
current_SC1924drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
current_SC1925drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1929drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
current_SC1930drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
current_SC1933drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
current_SC1934drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
current_SC1935drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
current_SC1936drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
current_SC1937drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
current_SC1938drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
current_SC1966drivers/scsi/aha152x.cif((aha152x_debug & debug_datai) && (current_SC->SCp.buffers_residual || current_SC->SCp.this_residual))
current_SC1968drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
current_SC1969drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
current_SC1982drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
current_SC1997drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1998drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
current_SC2019drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
current_SC2020drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
current_SC2025drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC2026drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
current_SC2029drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
current_SC2030drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
current_SC2041drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
current_SC2042drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
current_SC2048drivers/scsi/aha152x.coutsw( DATAPORT, current_SC->SCp.ptr, data_count );
current_SC2049drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
current_SC2050drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC2065drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
current_SC2066drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
current_SC2069drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
current_SC2070drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
current_SC2071drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
current_SC2072drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
current_SC2073drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
current_SC2074drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
current_SC2078drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
current_SC2079drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
current_SC2088drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
current_SC2089drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
current_SC2093drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC2094drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
current_SC2113drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC2114drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
current_SC2140drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC2152drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC2180drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
current_SC2181drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
current_SC2186drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
current_SC2191drivers/scsi/aha152x.cif(current_SC)
current_SC2192drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
current_SC2229drivers/scsi/aha152x.cprintk("\n%s: ", current_SC ? "on bus" : "waiting");
current_SC2533drivers/scsi/aha152x.cif(current_SC)
current_SC2534drivers/scsi/aha152x.cshow_command(current_SC);
current_SC283drivers/scsi/fdomain.cstatic Scsi_Cmnd         *current_SC       = NULL;
current_SC872drivers/scsi/fdomain.ccurrent_SC->result = error;
current_SC873drivers/scsi/fdomain.cif (current_SC->scsi_done)
current_SC874drivers/scsi/fdomain.ccurrent_SC->scsi_done( current_SC );
current_SC895drivers/scsi/fdomain.cif (!in_command || !current_SC) {  /* Spurious interrupt */
current_SC898drivers/scsi/fdomain.cin_command, current_SC );
current_SC904drivers/scsi/fdomain.cif (current_SC->SCp.phase & aborted) {
current_SC916drivers/scsi/fdomain.cif (current_SC->SCp.phase & in_arbitration) {
current_SC925drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_selection;
current_SC930drivers/scsi/fdomain.coutb( adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port );
current_SC938drivers/scsi/fdomain.c} else if (current_SC->SCp.phase & in_selection) {
current_SC942drivers/scsi/fdomain.cif (fdomain_select( current_SC->target )) {
current_SC956drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_other;
current_SC974drivers/scsi/fdomain.coutb( current_SC->cmnd[current_SC->SCp.sent_command++],
current_SC978drivers/scsi/fdomain.ccurrent_SC->cmnd[ current_SC->SCp.sent_command - 1] );
current_SC982drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
current_SC983drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
current_SC988drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
current_SC989drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
current_SC994drivers/scsi/fdomain.ccurrent_SC->SCp.Status = inb( Read_SCSI_Data_port );
current_SC996drivers/scsi/fdomain.cprintk( "Status = %x, ", current_SC->SCp.Status );
current_SC999drivers/scsi/fdomain.cif (current_SC->SCp.Status && current_SC->SCp.Status != 2) {
current_SC1002drivers/scsi/fdomain.ccurrent_SC->target, current_SC->cmnd[0],
current_SC1003drivers/scsi/fdomain.ccurrent_SC->SCp.Status );
current_SC1011drivers/scsi/fdomain.ccurrent_SC->SCp.Message = inb( Read_SCSI_Data_port );
current_SC1013drivers/scsi/fdomain.cprintk( "Message = %x, ", current_SC->SCp.Message );
current_SC1015drivers/scsi/fdomain.cif (!current_SC->SCp.Message) ++done;
current_SC1017drivers/scsi/fdomain.cif (current_SC->SCp.Message) {
current_SC1019drivers/scsi/fdomain.ccurrent_SC->SCp.Message );
current_SC1027drivers/scsi/fdomain.c&& !current_SC->SCp.have_data_in
current_SC1028drivers/scsi/fdomain.c&& (current_SC->SCp.sent_command
current_SC1029drivers/scsi/fdomain.c>= current_SC->cmd_len)) {
current_SC1156drivers/scsi/fdomain.cswitch (current_SC->cmnd[0]) {
current_SC1177drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
current_SC1184drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
current_SC1190drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
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.coutb( *current_SC->SCp.ptr++, Write_FIFO_port );
current_SC1203drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
current_SC1206drivers/scsi/fdomain.coutsw( Write_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.cif (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.cif (current_SC->SCp.have_data_in == 1) { /* DATA IN */
current_SC1228drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
current_SC1229drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
current_SC1235drivers/scsi/fdomain.c*current_SC->SCp.ptr++ = inb( Read_FIFO_port );
current_SC1236drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
current_SC1239drivers/scsi/fdomain.cinsw( Read_FIFO_port, current_SC->SCp.ptr, data_count );
current_SC1240drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
current_SC1241drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1244drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual
current_SC1245drivers/scsi/fdomain.c&& current_SC->SCp.buffers_residual) {
current_SC1246drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
current_SC1247drivers/scsi/fdomain.c++current_SC->SCp.buffer;
current_SC1248drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
current_SC1249drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
current_SC1256drivers/scsi/fdomain.cprintk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in );
current_SC1260drivers/scsi/fdomain.cif (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) {
current_SC1261drivers/scsi/fdomain.cif ((unsigned char)(*((char *)current_SC->request_buffer+2)) & 0x0f) {
current_SC1266drivers/scsi/fdomain.ckey = (unsigned char)(*((char *)current_SC->request_buffer + 2))
current_SC1268drivers/scsi/fdomain.ccode = (unsigned char)(*((char *)current_SC->request_buffer + 12));
current_SC1269drivers/scsi/fdomain.cqualifier = (unsigned char)(*((char *)current_SC->request_buffer
current_SC1289drivers/scsi/fdomain.cmy_done( (current_SC->SCp.Status & 0xff)
current_SC1290drivers/scsi/fdomain.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) );
current_SC1296drivers/scsi/fdomain.cif (current_SC->SCp.phase & disconnect) {
current_SC1324drivers/scsi/fdomain.ccurrent_SC            = SCpnt; /* Save this for the done function */
current_SC1325drivers/scsi/fdomain.ccurrent_SC->scsi_done = done;
current_SC1329drivers/scsi/fdomain.cif (current_SC->use_sg) {
current_SC1330drivers/scsi/fdomain.ccurrent_SC->SCp.buffer =
current_SC1331drivers/scsi/fdomain.c(struct scatterlist *)current_SC->request_buffer;
current_SC1332drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = current_SC->SCp.buffer->address;
current_SC1333drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->SCp.buffer->length;
current_SC1334drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = current_SC->use_sg - 1;
current_SC1336drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = (char *)current_SC->request_buffer;
current_SC1337drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->request_bufflen;
current_SC1338drivers/scsi/fdomain.ccurrent_SC->SCp.buffer           = NULL;
current_SC1339drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = 0;
current_SC1343drivers/scsi/fdomain.ccurrent_SC->SCp.Status              = 0;
current_SC1344drivers/scsi/fdomain.ccurrent_SC->SCp.Message             = 0;
current_SC1345drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in        = 0;
current_SC1346drivers/scsi/fdomain.ccurrent_SC->SCp.sent_command        = 0;
current_SC1347drivers/scsi/fdomain.ccurrent_SC->SCp.phase               = in_arbitration;
current_SC1470drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
current_SC1472drivers/scsi/fdomain.ccurrent_SC->result = DID_ABORT << 16;
current_SC1493drivers/scsi/fdomain.cif (called_once) print_info( current_SC );