taglinefilesource code
SCp306drivers/scsi/NCR5380.ccmd->SCp.buffer = (struct scatterlist *) cmd->buffer;
SCp307drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = cmd->use_sg - 1;
SCp308drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->SCp.buffer->address;
SCp309drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->SCp.buffer->length;
SCp311drivers/scsi/NCR5380.ccmd->SCp.buffer = NULL;
SCp312drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = 0;
SCp313drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->request_buffer;
SCp314drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->request_bufflen;
SCp1097drivers/scsi/NCR5380.chostdata->connected->SCp.this_residual -= transferred;
SCp1098drivers/scsi/NCR5380.chostdata->connected->SCp.ptr += transferred;
SCp1961drivers/scsi/NCR5380.cif (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) {
SCp1962drivers/scsi/NCR5380.c++cmd->SCp.buffer;
SCp1963drivers/scsi/NCR5380.c--cmd->SCp.buffers_residual;
SCp1964drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->SCp.buffer->length;
SCp1965drivers/scsi/NCR5380.ccmd->SCp.ptr = cmd->SCp.buffer->address;
SCp1968drivers/scsi/NCR5380.cinstance->host_no, cmd->SCp.this_residual,
SCp1969drivers/scsi/NCR5380.ccmd->SCp.buffers_residual);
SCp1996drivers/scsi/NCR5380.ccmd->SCp.this_residual && !(cmd->SCp.this_residual % 
SCp2001drivers/scsi/NCR5380.c&len, (unsigned char **) &cmd->SCp.ptr)) {
SCp2015drivers/scsi/NCR5380.ccmd->SCp.this_residual -= transfersize - len;
SCp2019drivers/scsi/NCR5380.c(int *) &cmd->SCp.this_residual, (unsigned char **)
SCp2020drivers/scsi/NCR5380.c&cmd->SCp.ptr);
SCp2026drivers/scsi/NCR5380.ccmd->SCp.Message = tmp;
SCp2068drivers/scsi/NCR5380.ccmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 
SCp2105drivers/scsi/NCR5380.ccmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 
SCp2106drivers/scsi/NCR5380.celse if (cmd->SCp.Status != GOOD)
SCp2111drivers/scsi/NCR5380.c(cmd->SCp.Status == CHECK_CONDITION)) {
SCp2123drivers/scsi/NCR5380.ccmd->SCp.buffer = NULL;
SCp2124drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = 0;
SCp2125drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->sense_buffer;
SCp2126drivers/scsi/NCR5380.ccmd->SCp.this_residual = sizeof(cmd->sense_buffer);
SCp2334drivers/scsi/NCR5380.ccmd->SCp.Status = tmp;
SCp2541drivers/scsi/NCR5380.cif (!(hostdata->connected->SCp.phase & SR_CD)) {
SCp2543drivers/scsi/NCR5380.chostdata->connected->SCp.this_residual -= transferred;
SCp2544drivers/scsi/NCR5380.chostdata->connected->SCp.ptr += transferred;
SCp746drivers/scsi/aha152x.cSCpnt->SCp.phase = not_issued;
SCp749drivers/scsi/aha152x.cSCpnt->SCp.buffer           = (struct scatterlist *)SCpnt->request_buffer;
SCp750drivers/scsi/aha152x.cSCpnt->SCp.ptr              = SCpnt->SCp.buffer->address;
SCp751drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->SCp.buffer->length;
SCp752drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = SCpnt->use_sg - 1;
SCp756drivers/scsi/aha152x.cSCpnt->SCp.ptr              = (char *)SCpnt->request_buffer;
SCp757drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->request_bufflen;
SCp758drivers/scsi/aha152x.cSCpnt->SCp.buffer           = NULL;
SCp759drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = 0;
SCp762drivers/scsi/aha152x.cSCpnt->SCp.Status              = CHECK_CONDITION;
SCp763drivers/scsi/aha152x.cSCpnt->SCp.Message             = 0;
SCp764drivers/scsi/aha152x.cSCpnt->SCp.have_data_in        = 0;
SCp765drivers/scsi/aha152x.cSCpnt->SCp.sent_command        = 0;
SCp878drivers/scsi/aha152x.cptr->SCp.phase = in_selection|aborted;
SCp1136drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
SCp1222drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
SCp1250drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
SCp1286drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
SCp1311drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1328drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1332drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
SCp1333drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
SCp1366drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1390drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
SCp1391drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
SCp1404drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
SCp1415drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
SCp1452drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
SCp1460drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp1477drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
SCp1553drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIBUS );
SCp1554drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
SCp1560drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
SCp1561drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
SCp1670drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
SCp1683drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
SCp1715drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIBUS );
SCp1721drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
SCp1780drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
SCp1785drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
SCp1786drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
SCp1798drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
SCp1799drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1805drivers/scsi/aha152x.cinsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp1815drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
SCp1821drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1822drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1826drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
SCp1827drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1830drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1831drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1832drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1833drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1834drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1835drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1862drivers/scsi/aha152x.cif(current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)
SCp1864drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
SCp1865drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
SCp1877drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
SCp1890drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1891drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
SCp1912drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
SCp1913drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
SCp1917drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1918drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp1921drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
SCp1922drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
SCp1932drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
SCp1933drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1939drivers/scsi/aha152x.coutsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp1940drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1941drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1955drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
SCp1956drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1959drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1960drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1961drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1962drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1963drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1964drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1968drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
SCp1969drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
SCp1978drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
SCp1979drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
SCp1982drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1983drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
SCp2004drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp2005drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp2029drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp2041drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp2068drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
SCp2069drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
SCp2074drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
SCp2080drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
SCp2366drivers/scsi/aha152x.cptr->SCp.this_residual, ptr->SCp.buffers_residual);
SCp2368drivers/scsi/aha152x.cif( ptr->SCp.phase & not_issued   )  printk("not issued|");
SCp2369drivers/scsi/aha152x.cif( ptr->SCp.phase & in_selection )  printk("in selection|");
SCp2370drivers/scsi/aha152x.cif( ptr->SCp.phase & disconnected )  printk("disconnected|");
SCp2371drivers/scsi/aha152x.cif( ptr->SCp.phase & aborted      )  printk("aborted|");
SCp2372drivers/scsi/aha152x.cif( ptr->SCp.phase & sent_ident   )  printk("send_ident|");
SCp2373drivers/scsi/aha152x.cif( ptr->SCp.phase & in_other )
SCp2376drivers/scsi/aha152x.cswitch( (ptr->SCp.phase >> 16) & P_MASK )
SCp2401drivers/scsi/aha152x.cif(ptr->SCp.phase & (1<<16))
SCp636drivers/scsi/aha1542.cSCpnt->SCp.Status++;
SCp645drivers/scsi/aha1542.cSCpnt->SCp.Status = 0;
SCp646drivers/scsi/aha1542.cwhile (!SCpnt->SCp.Status);
SCp791drivers/scsi/buslogic.cscpnt->SCp.Status++;
SCp802drivers/scsi/buslogic.cscpnt->SCp.Status = 0;
SCp803drivers/scsi/buslogic.cwhile (!scpnt->SCp.Status)
SCp871drivers/scsi/fdomain.cif (current_SC->SCp.phase & aborted) {
SCp883drivers/scsi/fdomain.cif (current_SC->SCp.phase & in_arbitration) {
SCp892drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_selection;
SCp905drivers/scsi/fdomain.c} else if (current_SC->SCp.phase & in_selection) {
SCp923drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_other;
SCp941drivers/scsi/fdomain.coutb( current_SC->cmnd[current_SC->SCp.sent_command++],
SCp945drivers/scsi/fdomain.ccurrent_SC->cmnd[ current_SC->SCp.sent_command - 1] );
SCp949drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
SCp950drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
SCp955drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
SCp956drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp961drivers/scsi/fdomain.ccurrent_SC->SCp.Status = inb( Read_SCSI_Data_port );
SCp963drivers/scsi/fdomain.cprintk( "Status = %x, ", current_SC->SCp.Status );
SCp966drivers/scsi/fdomain.cif (current_SC->SCp.Status && current_SC->SCp.Status != 2) {
SCp970drivers/scsi/fdomain.ccurrent_SC->SCp.Status );
SCp978drivers/scsi/fdomain.ccurrent_SC->SCp.Message = inb( Read_SCSI_Data_port );
SCp980drivers/scsi/fdomain.cprintk( "Message = %x, ", current_SC->SCp.Message );
SCp982drivers/scsi/fdomain.cif (!current_SC->SCp.Message) ++done;
SCp984drivers/scsi/fdomain.cif (current_SC->SCp.Message) {
SCp986drivers/scsi/fdomain.ccurrent_SC->SCp.Message );
SCp994drivers/scsi/fdomain.c&& !current_SC->SCp.have_data_in
SCp995drivers/scsi/fdomain.c&& (current_SC->SCp.sent_command
SCp1144drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
SCp1151drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp1157drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
SCp1162drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1163drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1169drivers/scsi/fdomain.coutb( *current_SC->SCp.ptr++, Write_FIFO_port );
SCp1170drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1173drivers/scsi/fdomain.coutsw( Write_FIFO_port, current_SC->SCp.ptr, data_count );
SCp1174drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
SCp1175drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1178drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual) {
SCp1179drivers/scsi/fdomain.cif (current_SC->SCp.buffers_residual) {
SCp1180drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
SCp1181drivers/scsi/fdomain.c++current_SC->SCp.buffer;
SCp1182drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
SCp1183drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
SCp1190drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == 1) { /* DATA IN */
SCp1195drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1196drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1202drivers/scsi/fdomain.c*current_SC->SCp.ptr++ = inb( Read_FIFO_port );
SCp1203drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1206drivers/scsi/fdomain.cinsw( Read_FIFO_port, current_SC->SCp.ptr, data_count );
SCp1207drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
SCp1208drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1211drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual
SCp1212drivers/scsi/fdomain.c&& current_SC->SCp.buffers_residual) {
SCp1213drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
SCp1214drivers/scsi/fdomain.c++current_SC->SCp.buffer;
SCp1215drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
SCp1216drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
SCp1223drivers/scsi/fdomain.cprintk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in );
SCp1227drivers/scsi/fdomain.cif (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) {
SCp1256drivers/scsi/fdomain.cmy_done( (current_SC->SCp.Status & 0xff)
SCp1257drivers/scsi/fdomain.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) );
SCp1263drivers/scsi/fdomain.cif (current_SC->SCp.phase & disconnect) {
SCp1297drivers/scsi/fdomain.ccurrent_SC->SCp.buffer =
SCp1299drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = current_SC->SCp.buffer->address;
SCp1300drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->SCp.buffer->length;
SCp1301drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = current_SC->use_sg - 1;
SCp1303drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = (char *)current_SC->request_buffer;
SCp1304drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->request_bufflen;
SCp1305drivers/scsi/fdomain.ccurrent_SC->SCp.buffer           = NULL;
SCp1306drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = 0;
SCp1310drivers/scsi/fdomain.ccurrent_SC->SCp.Status              = 0;
SCp1311drivers/scsi/fdomain.ccurrent_SC->SCp.Message             = 0;
SCp1312drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in        = 0;
SCp1313drivers/scsi/fdomain.ccurrent_SC->SCp.sent_command        = 0;
SCp1314drivers/scsi/fdomain.ccurrent_SC->SCp.phase               = in_arbitration;
SCp1359drivers/scsi/fdomain.cswitch (SCpnt->SCp.phase) {
SCp1367drivers/scsi/fdomain.cSCpnt->SCp.phase,
SCp1373drivers/scsi/fdomain.cSCpnt->SCp.sent_command,
SCp1374drivers/scsi/fdomain.cSCpnt->SCp.have_data_in,
SCp1437drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
SCp481drivers/scsi/scsi.hScsi_Pointer SCp;   /* Scratchpad used by some host adapters */
SCp794drivers/scsi/wd7000.cSCpnt->SCp.phase = 0;
SCp871drivers/scsi/wd7000.cif (--(SCpnt->SCp.phase) <= 0)  {  /* all scbs are done */
SCp906drivers/scsi/wd7000.cSCpnt->SCp.phase = 1;
SCp951drivers/scsi/wd7000.cwhile (SCpnt->SCp.phase > 0);  /* phase counts scbs down to 0 */