taglinefilesource code
current_SC263drivers/scsi/aha152x.cstatic Scsi_Cmnd            *current_SC      = NULL;
current_SC775drivers/scsi/aha152x.cif(!current_SC)
current_SC832drivers/scsi/aha152x.cif (current_SC)
current_SC857drivers/scsi/aha152x.ccurrent_SC     = ptr;
current_SC859drivers/scsi/aha152x.cSETPORT( SCSIID, (this_host << OID_) | current_SC->target );
current_SC939drivers/scsi/aha152x.cif(current_SC)
current_SC941drivers/scsi/aha152x.ccurrent_SC->host_scribble = NULL;
current_SC942drivers/scsi/aha152x.ccurrent_SC->result = DID_RESET << 16;
current_SC943drivers/scsi/aha152x.ccurrent_SC->done(current_SC);
current_SC944drivers/scsi/aha152x.ccurrent_SC=NULL;
current_SC1018drivers/scsi/aha152x.cif (current_SC)
current_SC1026drivers/scsi/aha152x.cdone_SC = current_SC;
current_SC1027drivers/scsi/aha152x.ccurrent_SC = NULL;
current_SC1097drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
current_SC1104drivers/scsi/aha152x.cif(current_SC)
current_SC1110drivers/scsi/aha152x.cappend_SC( &issue_SC, current_SC);
current_SC1111drivers/scsi/aha152x.ccurrent_SC=NULL;
current_SC1173drivers/scsi/aha152x.ccurrent_SC = remove_SC( &disconnected_SC,
current_SC1177drivers/scsi/aha152x.cif(!current_SC)
current_SC1183drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
current_SC1196drivers/scsi/aha152x.cif(!current_SC)
current_SC1205drivers/scsi/aha152x.ccurrent_SC = remove_first_SC( &issue_SC );
current_SC1211drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
current_SC1214drivers/scsi/aha152x.cprintk("selecting %d, ", current_SC->target); 
current_SC1216drivers/scsi/aha152x.cSETPORT( SCSIID, (this_host << OID_) | current_SC->target );
current_SC1247drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
current_SC1272drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1289drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1293drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
current_SC1294drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
current_SC1327drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1351drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
current_SC1352drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
current_SC1365drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
current_SC1376drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
current_SC1378drivers/scsi/aha152x.cmessage=IDENTIFY(can_disconnect,current_SC->lun);
current_SC1381drivers/scsi/aha152x.ccan_disconnect ? "enabled" : "disabled", current_SC->lun);
current_SC1412drivers/scsi/aha152x.cif(message==IDENTIFY(can_disconnect,current_SC->lun))
current_SC1413drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
current_SC1421drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC1438drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
current_SC1468drivers/scsi/aha152x.cCOMMAND_SIZE(current_SC->cmnd[0])>>1);
current_SC1472drivers/scsi/aha152x.coutsw( &current_SC->cmnd,
current_SC1473drivers/scsi/aha152x.cCOMMAND_SIZE(current_SC->cmnd[0])>>1,
current_SC1495drivers/scsi/aha152x.cCOMMAND_SIZE(current_SC->cmnd[0]));
current_SC1514drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIBUS );
current_SC1515drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
current_SC1521drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
current_SC1522drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
current_SC1631drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
current_SC1644drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
current_SC1650drivers/scsi/aha152x.cappend_SC( &disconnected_SC, current_SC);
current_SC1651drivers/scsi/aha152x.ccurrent_SC = NULL;
current_SC1676drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIBUS );
current_SC1682drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
current_SC1741drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
current_SC1746drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
current_SC1747drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
current_SC1759drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
current_SC1760drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
current_SC1766drivers/scsi/aha152x.cinsw( current_SC->SCp.ptr, data_count, DATAPORT );
current_SC1776drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
current_SC1782drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
current_SC1783drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1787drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
current_SC1788drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
current_SC1791drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
current_SC1792drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
current_SC1793drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
current_SC1794drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
current_SC1795drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
current_SC1796drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
current_SC1818drivers/scsi/aha152x.cif(current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)
current_SC1820drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
current_SC1821drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
current_SC1833drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
current_SC1846drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1847drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
current_SC1868drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
current_SC1869drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
current_SC1873drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1874drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
current_SC1877drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
current_SC1878drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
current_SC1888drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
current_SC1889drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
current_SC1895drivers/scsi/aha152x.coutsw( current_SC->SCp.ptr, data_count, DATAPORT );
current_SC1896drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
current_SC1897drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1911drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
current_SC1912drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
current_SC1915drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
current_SC1916drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
current_SC1917drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
current_SC1918drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
current_SC1919drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
current_SC1920drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
current_SC1924drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
current_SC1925drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
current_SC1934drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
current_SC1935drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
current_SC1938drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1939drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
current_SC1960drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1961drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
current_SC1985drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC1997drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC2024drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
current_SC2025drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
current_SC2030drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
current_SC2035drivers/scsi/aha152x.cif(current_SC)
current_SC2036drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
current_SC2069drivers/scsi/aha152x.cprintk("\n%s: ", current_SC ? "on bus" : "waiting");
current_SC2376drivers/scsi/aha152x.cif(current_SC)
current_SC2377drivers/scsi/aha152x.cshow_command(current_SC);
current_SC238drivers/scsi/fdomain.cstatic Scsi_Cmnd         *current_SC       = NULL;
current_SC782drivers/scsi/fdomain.ccurrent_SC->result = error;
current_SC783drivers/scsi/fdomain.cif (current_SC->scsi_done)
current_SC784drivers/scsi/fdomain.ccurrent_SC->scsi_done( current_SC );
current_SC805drivers/scsi/fdomain.cif (!in_command || !current_SC) {  /* Spurious interrupt */
current_SC808drivers/scsi/fdomain.cin_command, current_SC );
current_SC814drivers/scsi/fdomain.cif (current_SC->SCp.phase & aborted) {
current_SC826drivers/scsi/fdomain.cif (current_SC->SCp.phase & in_arbitration) {
current_SC835drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_selection;
current_SC840drivers/scsi/fdomain.coutb( adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port );
current_SC848drivers/scsi/fdomain.c} else if (current_SC->SCp.phase & in_selection) {
current_SC852drivers/scsi/fdomain.cif (fdomain_select( current_SC->target )) {
current_SC866drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_other;
current_SC884drivers/scsi/fdomain.coutb( current_SC->cmnd[current_SC->SCp.sent_command++],
current_SC888drivers/scsi/fdomain.ccurrent_SC->cmnd[ current_SC->SCp.sent_command - 1] );
current_SC892drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
current_SC893drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
current_SC898drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
current_SC899drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
current_SC904drivers/scsi/fdomain.ccurrent_SC->SCp.Status = inb( Read_SCSI_Data_port );
current_SC906drivers/scsi/fdomain.cprintk( "Status = %x, ", current_SC->SCp.Status );
current_SC909drivers/scsi/fdomain.cif (current_SC->SCp.Status && current_SC->SCp.Status != 2) {
current_SC912drivers/scsi/fdomain.ccurrent_SC->target, current_SC->cmnd[0],
current_SC913drivers/scsi/fdomain.ccurrent_SC->SCp.Status );
current_SC921drivers/scsi/fdomain.ccurrent_SC->SCp.Message = inb( Read_SCSI_Data_port );
current_SC923drivers/scsi/fdomain.cprintk( "Message = %x, ", current_SC->SCp.Message );
current_SC925drivers/scsi/fdomain.cif (!current_SC->SCp.Message) ++done;
current_SC927drivers/scsi/fdomain.cif (current_SC->SCp.Message) {
current_SC929drivers/scsi/fdomain.ccurrent_SC->SCp.Message );
current_SC937drivers/scsi/fdomain.c&& !current_SC->SCp.have_data_in
current_SC938drivers/scsi/fdomain.c&& (current_SC->SCp.sent_command
current_SC939drivers/scsi/fdomain.c>= COMMAND_SIZE( current_SC->cmnd[ 0 ] ))) {
current_SC1066drivers/scsi/fdomain.cswitch (current_SC->cmnd[0]) {
current_SC1087drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
current_SC1094drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
current_SC1100drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
current_SC1105drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
current_SC1106drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
current_SC1112drivers/scsi/fdomain.coutb( *current_SC->SCp.ptr++, Write_FIFO_port );
current_SC1113drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
current_SC1116drivers/scsi/fdomain.coutsw( current_SC->SCp.ptr, data_count, Write_FIFO_port );
current_SC1117drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
current_SC1118drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1121drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual) {
current_SC1122drivers/scsi/fdomain.cif (current_SC->SCp.buffers_residual) {
current_SC1123drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
current_SC1124drivers/scsi/fdomain.c++current_SC->SCp.buffer;
current_SC1125drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
current_SC1126drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
current_SC1133drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == 1) { /* DATA IN */
current_SC1138drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
current_SC1139drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
current_SC1145drivers/scsi/fdomain.c*current_SC->SCp.ptr++ = inb( Read_FIFO_port );
current_SC1146drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
current_SC1149drivers/scsi/fdomain.cinsw( current_SC->SCp.ptr, data_count, Read_FIFO_port );
current_SC1150drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
current_SC1151drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1154drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual
current_SC1155drivers/scsi/fdomain.c&& current_SC->SCp.buffers_residual) {
current_SC1156drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
current_SC1157drivers/scsi/fdomain.c++current_SC->SCp.buffer;
current_SC1158drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
current_SC1159drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
current_SC1166drivers/scsi/fdomain.cprintk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in );
current_SC1170drivers/scsi/fdomain.cif (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) {
current_SC1171drivers/scsi/fdomain.cif ((unsigned char)(*((char *)current_SC->request_buffer+2)) & 0x0f) {
current_SC1176drivers/scsi/fdomain.ckey = (unsigned char)(*((char *)current_SC->request_buffer + 2))
current_SC1178drivers/scsi/fdomain.ccode = (unsigned char)(*((char *)current_SC->request_buffer + 12));
current_SC1179drivers/scsi/fdomain.cqualifier = (unsigned char)(*((char *)current_SC->request_buffer
current_SC1199drivers/scsi/fdomain.cmy_done( (current_SC->SCp.Status & 0xff)
current_SC1200drivers/scsi/fdomain.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) );
current_SC1206drivers/scsi/fdomain.cif (current_SC->SCp.phase & disconnect) {
current_SC1234drivers/scsi/fdomain.ccurrent_SC            = SCpnt; /* Save this for the done function */
current_SC1235drivers/scsi/fdomain.ccurrent_SC->scsi_done = done;
current_SC1239drivers/scsi/fdomain.cif (current_SC->use_sg) {
current_SC1240drivers/scsi/fdomain.ccurrent_SC->SCp.buffer =
current_SC1241drivers/scsi/fdomain.c(struct scatterlist *)current_SC->request_buffer;
current_SC1242drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = current_SC->SCp.buffer->address;
current_SC1243drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->SCp.buffer->length;
current_SC1244drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = current_SC->use_sg - 1;
current_SC1246drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = (char *)current_SC->request_buffer;
current_SC1247drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->request_bufflen;
current_SC1248drivers/scsi/fdomain.ccurrent_SC->SCp.buffer           = NULL;
current_SC1249drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = 0;
current_SC1253drivers/scsi/fdomain.ccurrent_SC->SCp.Status              = 0;
current_SC1254drivers/scsi/fdomain.ccurrent_SC->SCp.Message             = 0;
current_SC1255drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in        = 0;
current_SC1256drivers/scsi/fdomain.ccurrent_SC->SCp.sent_command        = 0;
current_SC1257drivers/scsi/fdomain.ccurrent_SC->SCp.phase               = in_arbitration;
current_SC1385drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
current_SC1387drivers/scsi/fdomain.ccurrent_SC->result = code ? code : DID_ABORT;
current_SC1408drivers/scsi/fdomain.cif (called_once) print_info( current_SC );