taglinefilesource code
current_SC255drivers/scsi/aha152x.cstatic Scsi_Cmnd            *current_SC      = NULL;
current_SC766drivers/scsi/aha152x.cif(!current_SC)
current_SC823drivers/scsi/aha152x.cif (current_SC)
current_SC848drivers/scsi/aha152x.ccurrent_SC     = ptr;
current_SC850drivers/scsi/aha152x.cSETPORT( SCSIID, (this_host << OID_) | current_SC->target );
current_SC930drivers/scsi/aha152x.cif(current_SC)
current_SC932drivers/scsi/aha152x.ccurrent_SC->host_scribble = NULL;
current_SC933drivers/scsi/aha152x.ccurrent_SC->result = DID_RESET << 16;
current_SC934drivers/scsi/aha152x.ccurrent_SC->done(current_SC);
current_SC935drivers/scsi/aha152x.ccurrent_SC=NULL;
current_SC1008drivers/scsi/aha152x.cif (current_SC)
current_SC1016drivers/scsi/aha152x.cdone_SC = current_SC;
current_SC1017drivers/scsi/aha152x.ccurrent_SC = NULL;
current_SC1087drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
current_SC1094drivers/scsi/aha152x.cif(current_SC)
current_SC1100drivers/scsi/aha152x.cappend_SC( &issue_SC, current_SC);
current_SC1101drivers/scsi/aha152x.ccurrent_SC=NULL;
current_SC1163drivers/scsi/aha152x.ccurrent_SC = remove_SC( &disconnected_SC,
current_SC1167drivers/scsi/aha152x.cif(!current_SC)
current_SC1173drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
current_SC1186drivers/scsi/aha152x.cif(!current_SC)
current_SC1195drivers/scsi/aha152x.ccurrent_SC = remove_first_SC( &issue_SC );
current_SC1201drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
current_SC1204drivers/scsi/aha152x.cprintk("selecting %d, ", current_SC->target); 
current_SC1206drivers/scsi/aha152x.cSETPORT( SCSIID, (this_host << OID_) | current_SC->target );
current_SC1237drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
current_SC1262drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1279drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1283drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
current_SC1284drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
current_SC1314drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1338drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
current_SC1339drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
current_SC1352drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
current_SC1363drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
current_SC1365drivers/scsi/aha152x.cmessage=IDENTIFY(can_disconnect,current_SC->lun);
current_SC1368drivers/scsi/aha152x.ccan_disconnect ? "enabled" : "disabled", current_SC->lun);
current_SC1399drivers/scsi/aha152x.cif(message==IDENTIFY(can_disconnect,current_SC->lun))
current_SC1400drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
current_SC1408drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC1425drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
current_SC1455drivers/scsi/aha152x.cCOMMAND_SIZE(current_SC->cmnd[0])>>1);
current_SC1459drivers/scsi/aha152x.coutsw( &current_SC->cmnd,
current_SC1460drivers/scsi/aha152x.cCOMMAND_SIZE(current_SC->cmnd[0])>>1,
current_SC1482drivers/scsi/aha152x.cCOMMAND_SIZE(current_SC->cmnd[0]));
current_SC1501drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIDAT );
current_SC1502drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
current_SC1508drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
current_SC1509drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
current_SC1618drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
current_SC1631drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
current_SC1637drivers/scsi/aha152x.cappend_SC( &disconnected_SC, current_SC);
current_SC1638drivers/scsi/aha152x.ccurrent_SC = NULL;
current_SC1675drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIDAT );
current_SC1681drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
current_SC1747drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
current_SC1752drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
current_SC1753drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
current_SC1765drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
current_SC1766drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
current_SC1772drivers/scsi/aha152x.cinsw( current_SC->SCp.ptr, data_count, DATAPORT );
current_SC1782drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
current_SC1788drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
current_SC1789drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1793drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
current_SC1794drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
current_SC1797drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
current_SC1798drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
current_SC1799drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
current_SC1800drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
current_SC1801drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
current_SC1802drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
current_SC1824drivers/scsi/aha152x.cif(current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)
current_SC1826drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
current_SC1827drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
current_SC1839drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
current_SC1852drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1853drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
current_SC1874drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
current_SC1875drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
current_SC1879drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1880drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
current_SC1883drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
current_SC1884drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
current_SC1894drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
current_SC1895drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
current_SC1901drivers/scsi/aha152x.coutsw( current_SC->SCp.ptr, data_count, DATAPORT );
current_SC1902drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
current_SC1903drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1917drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
current_SC1918drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
current_SC1921drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
current_SC1922drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
current_SC1923drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
current_SC1924drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
current_SC1925drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
current_SC1926drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
current_SC1930drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
current_SC1931drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
current_SC1940drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
current_SC1941drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
current_SC1944drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1945drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
current_SC1966drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1967drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
current_SC1991drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC2003drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC2030drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
current_SC2031drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
current_SC2036drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
current_SC2041drivers/scsi/aha152x.cif(current_SC)
current_SC2042drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
current_SC2075drivers/scsi/aha152x.cprintk("\n%s: ", current_SC ? "on bus" : "waiting");
current_SC2382drivers/scsi/aha152x.cif(current_SC)
current_SC2383drivers/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 );