taglinefilesource code
current_SC280drivers/scsi/aha152x.cstatic Scsi_Cmnd            *current_SC      = NULL;
current_SC755drivers/scsi/aha152x.cif(!current_SC)
current_SC817drivers/scsi/aha152x.cif (current_SC)
current_SC827drivers/scsi/aha152x.ccurrent_SC->result = DID_ERROR << 16;
current_SC828drivers/scsi/aha152x.ccurrent_SC->done(current_SC);
current_SC829drivers/scsi/aha152x.ccurrent_SC = (Scsi_Cmnd *) NULL;
current_SC852drivers/scsi/aha152x.ccurrent_SC     = ptr;
current_SC854drivers/scsi/aha152x.cSETPORT( SCSIID, (this_host << OID_) | current_SC->target );
current_SC936drivers/scsi/aha152x.cif(current_SC && !current_SC->device->soft_reset)
current_SC938drivers/scsi/aha152x.ccurrent_SC->host_scribble = NULL;
current_SC939drivers/scsi/aha152x.ccurrent_SC->result = DID_RESET << 16;
current_SC940drivers/scsi/aha152x.ccurrent_SC->done(current_SC);
current_SC941drivers/scsi/aha152x.ccurrent_SC=NULL;
current_SC1028drivers/scsi/aha152x.cif (current_SC)
current_SC1036drivers/scsi/aha152x.cdone_SC = current_SC;
current_SC1037drivers/scsi/aha152x.ccurrent_SC = NULL;
current_SC1107drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
current_SC1114drivers/scsi/aha152x.cif(current_SC)
current_SC1120drivers/scsi/aha152x.cappend_SC( &issue_SC, current_SC);
current_SC1121drivers/scsi/aha152x.ccurrent_SC=NULL;
current_SC1183drivers/scsi/aha152x.ccurrent_SC = remove_SC( &disconnected_SC,
current_SC1187drivers/scsi/aha152x.cif(!current_SC)
current_SC1193drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
current_SC1206drivers/scsi/aha152x.cif(!current_SC)
current_SC1215drivers/scsi/aha152x.ccurrent_SC = remove_first_SC( &issue_SC );
current_SC1221drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
current_SC1224drivers/scsi/aha152x.cprintk("selecting %d, ", current_SC->target); 
current_SC1226drivers/scsi/aha152x.cSETPORT( SCSIID, (this_host << OID_) | current_SC->target );
current_SC1257drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
current_SC1282drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1299drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1303drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
current_SC1304drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
current_SC1337drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
current_SC1361drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
current_SC1362drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
current_SC1375drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
current_SC1386drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
current_SC1388drivers/scsi/aha152x.cmessage=IDENTIFY(can_disconnect,current_SC->lun);
current_SC1391drivers/scsi/aha152x.ccan_disconnect ? "enabled" : "disabled", current_SC->lun);
current_SC1422drivers/scsi/aha152x.cif(message==IDENTIFY(can_disconnect,current_SC->lun))
current_SC1423drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
current_SC1431drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC1448drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
current_SC1478drivers/scsi/aha152x.cCOMMAND_SIZE(current_SC->cmnd[0])>>1);
current_SC1483drivers/scsi/aha152x.c&current_SC->cmnd,
current_SC1484drivers/scsi/aha152x.cCOMMAND_SIZE(current_SC->cmnd[0])>>1 );
current_SC1505drivers/scsi/aha152x.cCOMMAND_SIZE(current_SC->cmnd[0]));
current_SC1524drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIBUS );
current_SC1525drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
current_SC1531drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
current_SC1532drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
current_SC1641drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
current_SC1654drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
current_SC1660drivers/scsi/aha152x.cappend_SC( &disconnected_SC, current_SC);
current_SC1661drivers/scsi/aha152x.ccurrent_SC = NULL;
current_SC1686drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIBUS );
current_SC1692drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
current_SC1751drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
current_SC1756drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
current_SC1757drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
current_SC1769drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
current_SC1770drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
current_SC1776drivers/scsi/aha152x.cinsw( DATAPORT, current_SC->SCp.ptr, data_count );
current_SC1786drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
current_SC1792drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
current_SC1793drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1797drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
current_SC1798drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
current_SC1801drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
current_SC1802drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
current_SC1803drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
current_SC1804drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
current_SC1805drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
current_SC1806drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
current_SC1833drivers/scsi/aha152x.cif(current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)
current_SC1835drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
current_SC1836drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
current_SC1848drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
current_SC1861drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1862drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
current_SC1883drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
current_SC1884drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
current_SC1888drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1889drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
current_SC1892drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
current_SC1893drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
current_SC1903drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
current_SC1904drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
current_SC1910drivers/scsi/aha152x.coutsw( DATAPORT, current_SC->SCp.ptr, data_count );
current_SC1911drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
current_SC1912drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1926drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
current_SC1927drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
current_SC1930drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
current_SC1931drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
current_SC1932drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
current_SC1933drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
current_SC1934drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
current_SC1935drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
current_SC1939drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
current_SC1940drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
current_SC1949drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
current_SC1950drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
current_SC1953drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1954drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
current_SC1975drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
current_SC1976drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
current_SC2000drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC2012drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
current_SC2039drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
current_SC2040drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
current_SC2045drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
current_SC2050drivers/scsi/aha152x.cif(current_SC)
current_SC2051drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
current_SC2084drivers/scsi/aha152x.cprintk("\n%s: ", current_SC ? "on bus" : "waiting");
current_SC2391drivers/scsi/aha152x.cif(current_SC)
current_SC2392drivers/scsi/aha152x.cshow_command(current_SC);
current_SC262drivers/scsi/fdomain.cstatic Scsi_Cmnd         *current_SC       = NULL;
current_SC814drivers/scsi/fdomain.ccurrent_SC->result = error;
current_SC815drivers/scsi/fdomain.cif (current_SC->scsi_done)
current_SC816drivers/scsi/fdomain.ccurrent_SC->scsi_done( current_SC );
current_SC837drivers/scsi/fdomain.cif (!in_command || !current_SC) {  /* Spurious interrupt */
current_SC840drivers/scsi/fdomain.cin_command, current_SC );
current_SC846drivers/scsi/fdomain.cif (current_SC->SCp.phase & aborted) {
current_SC858drivers/scsi/fdomain.cif (current_SC->SCp.phase & in_arbitration) {
current_SC867drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_selection;
current_SC872drivers/scsi/fdomain.coutb( adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port );
current_SC880drivers/scsi/fdomain.c} else if (current_SC->SCp.phase & in_selection) {
current_SC884drivers/scsi/fdomain.cif (fdomain_select( current_SC->target )) {
current_SC898drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_other;
current_SC916drivers/scsi/fdomain.coutb( current_SC->cmnd[current_SC->SCp.sent_command++],
current_SC920drivers/scsi/fdomain.ccurrent_SC->cmnd[ current_SC->SCp.sent_command - 1] );
current_SC924drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
current_SC925drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
current_SC930drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
current_SC931drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
current_SC936drivers/scsi/fdomain.ccurrent_SC->SCp.Status = inb( Read_SCSI_Data_port );
current_SC938drivers/scsi/fdomain.cprintk( "Status = %x, ", current_SC->SCp.Status );
current_SC941drivers/scsi/fdomain.cif (current_SC->SCp.Status && current_SC->SCp.Status != 2) {
current_SC944drivers/scsi/fdomain.ccurrent_SC->target, current_SC->cmnd[0],
current_SC945drivers/scsi/fdomain.ccurrent_SC->SCp.Status );
current_SC953drivers/scsi/fdomain.ccurrent_SC->SCp.Message = inb( Read_SCSI_Data_port );
current_SC955drivers/scsi/fdomain.cprintk( "Message = %x, ", current_SC->SCp.Message );
current_SC957drivers/scsi/fdomain.cif (!current_SC->SCp.Message) ++done;
current_SC959drivers/scsi/fdomain.cif (current_SC->SCp.Message) {
current_SC961drivers/scsi/fdomain.ccurrent_SC->SCp.Message );
current_SC969drivers/scsi/fdomain.c&& !current_SC->SCp.have_data_in
current_SC970drivers/scsi/fdomain.c&& (current_SC->SCp.sent_command
current_SC971drivers/scsi/fdomain.c>= COMMAND_SIZE( current_SC->cmnd[ 0 ] ))) {
current_SC1098drivers/scsi/fdomain.cswitch (current_SC->cmnd[0]) {
current_SC1119drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
current_SC1126drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
current_SC1132drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
current_SC1137drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
current_SC1138drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
current_SC1144drivers/scsi/fdomain.coutb( *current_SC->SCp.ptr++, Write_FIFO_port );
current_SC1145drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
current_SC1148drivers/scsi/fdomain.coutsw( Write_FIFO_port, current_SC->SCp.ptr, data_count );
current_SC1149drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
current_SC1150drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1153drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual) {
current_SC1154drivers/scsi/fdomain.cif (current_SC->SCp.buffers_residual) {
current_SC1155drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
current_SC1156drivers/scsi/fdomain.c++current_SC->SCp.buffer;
current_SC1157drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
current_SC1158drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
current_SC1165drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == 1) { /* DATA IN */
current_SC1170drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
current_SC1171drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
current_SC1177drivers/scsi/fdomain.c*current_SC->SCp.ptr++ = inb( Read_FIFO_port );
current_SC1178drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
current_SC1181drivers/scsi/fdomain.cinsw( Read_FIFO_port, current_SC->SCp.ptr, data_count );
current_SC1182drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
current_SC1183drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1186drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual
current_SC1187drivers/scsi/fdomain.c&& current_SC->SCp.buffers_residual) {
current_SC1188drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
current_SC1189drivers/scsi/fdomain.c++current_SC->SCp.buffer;
current_SC1190drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
current_SC1191drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
current_SC1198drivers/scsi/fdomain.cprintk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in );
current_SC1202drivers/scsi/fdomain.cif (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) {
current_SC1203drivers/scsi/fdomain.cif ((unsigned char)(*((char *)current_SC->request_buffer+2)) & 0x0f) {
current_SC1208drivers/scsi/fdomain.ckey = (unsigned char)(*((char *)current_SC->request_buffer + 2))
current_SC1210drivers/scsi/fdomain.ccode = (unsigned char)(*((char *)current_SC->request_buffer + 12));
current_SC1211drivers/scsi/fdomain.cqualifier = (unsigned char)(*((char *)current_SC->request_buffer
current_SC1231drivers/scsi/fdomain.cmy_done( (current_SC->SCp.Status & 0xff)
current_SC1232drivers/scsi/fdomain.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) );
current_SC1238drivers/scsi/fdomain.cif (current_SC->SCp.phase & disconnect) {
current_SC1266drivers/scsi/fdomain.ccurrent_SC            = SCpnt; /* Save this for the done function */
current_SC1267drivers/scsi/fdomain.ccurrent_SC->scsi_done = done;
current_SC1271drivers/scsi/fdomain.cif (current_SC->use_sg) {
current_SC1272drivers/scsi/fdomain.ccurrent_SC->SCp.buffer =
current_SC1273drivers/scsi/fdomain.c(struct scatterlist *)current_SC->request_buffer;
current_SC1274drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = current_SC->SCp.buffer->address;
current_SC1275drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->SCp.buffer->length;
current_SC1276drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = current_SC->use_sg - 1;
current_SC1278drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = (char *)current_SC->request_buffer;
current_SC1279drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->request_bufflen;
current_SC1280drivers/scsi/fdomain.ccurrent_SC->SCp.buffer           = NULL;
current_SC1281drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = 0;
current_SC1285drivers/scsi/fdomain.ccurrent_SC->SCp.Status              = 0;
current_SC1286drivers/scsi/fdomain.ccurrent_SC->SCp.Message             = 0;
current_SC1287drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in        = 0;
current_SC1288drivers/scsi/fdomain.ccurrent_SC->SCp.sent_command        = 0;
current_SC1289drivers/scsi/fdomain.ccurrent_SC->SCp.phase               = in_arbitration;
current_SC1412drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
current_SC1414drivers/scsi/fdomain.ccurrent_SC->result = DID_ABORT << 16;
current_SC1435drivers/scsi/fdomain.cif (called_once) print_info( current_SC );