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;
SCp771drivers/scsi/aha152x.cSCpnt->SCp.phase = not_issued;
SCp774drivers/scsi/aha152x.cSCpnt->SCp.buffer           = (struct scatterlist *)SCpnt->request_buffer;
SCp775drivers/scsi/aha152x.cSCpnt->SCp.ptr              = SCpnt->SCp.buffer->address;
SCp776drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->SCp.buffer->length;
SCp777drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = SCpnt->use_sg - 1;
SCp781drivers/scsi/aha152x.cSCpnt->SCp.ptr              = (char *)SCpnt->request_buffer;
SCp782drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->request_bufflen;
SCp783drivers/scsi/aha152x.cSCpnt->SCp.buffer           = NULL;
SCp784drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = 0;
SCp787drivers/scsi/aha152x.cSCpnt->SCp.Status              = CHECK_CONDITION;
SCp788drivers/scsi/aha152x.cSCpnt->SCp.Message             = 0;
SCp789drivers/scsi/aha152x.cSCpnt->SCp.have_data_in        = 0;
SCp790drivers/scsi/aha152x.cSCpnt->SCp.sent_command        = 0;
SCp911drivers/scsi/aha152x.cptr->SCp.phase = in_selection|aborted;
SCp1192drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
SCp1283drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
SCp1313drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
SCp1351drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
SCp1376drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1394drivers/scsi/aha152x.cif((aha152x_debug & debug_abort) && (current_SC->SCp.phase & aborted))
SCp1398drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
SCp1399drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
SCp1433drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1458drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
SCp1459drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
SCp1473drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
SCp1485drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
SCp1524drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
SCp1532drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp1550drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
SCp1635drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIBUS );
SCp1636drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
SCp1643drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
SCp1644drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
SCp1762drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
SCp1775drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
SCp1809drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIBUS );
SCp1817drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
SCp1881drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
SCp1886drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
SCp1887drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
SCp1900drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
SCp1901drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1907drivers/scsi/aha152x.cinsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp1918drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
SCp1924drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1925drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1929drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
SCp1930drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1933drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1934drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1935drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1936drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1937drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1938drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1966drivers/scsi/aha152x.cif((aha152x_debug & debug_datai) && (current_SC->SCp.buffers_residual || current_SC->SCp.this_residual))
SCp1968drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
SCp1969drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
SCp1982drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
SCp1997drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1998drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
SCp2019drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
SCp2020drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
SCp2025drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp2026drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp2029drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
SCp2030drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
SCp2041drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
SCp2042drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp2048drivers/scsi/aha152x.coutsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp2049drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp2050drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp2065drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
SCp2066drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp2069drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp2070drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp2071drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp2072drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp2073drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp2074drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp2078drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
SCp2079drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
SCp2088drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
SCp2089drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
SCp2093drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp2094drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
SCp2113drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp2114drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp2140drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp2152drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp2180drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
SCp2181drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
SCp2186drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
SCp2192drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
SCp2479drivers/scsi/aha152x.cptr->SCp.this_residual, ptr->SCp.buffers_residual);
SCp2481drivers/scsi/aha152x.cif( ptr->SCp.phase & not_issued   )  printk("not issued|");
SCp2482drivers/scsi/aha152x.cif( ptr->SCp.phase & in_selection )  printk("in selection|");
SCp2483drivers/scsi/aha152x.cif( ptr->SCp.phase & disconnected )  printk("disconnected|");
SCp2484drivers/scsi/aha152x.cif( ptr->SCp.phase & aborted      )  printk("aborted|");
SCp2485drivers/scsi/aha152x.cif( ptr->SCp.phase & sent_ident   )  printk("send_ident|");
SCp2486drivers/scsi/aha152x.cif( ptr->SCp.phase & in_other )
SCp2489drivers/scsi/aha152x.cswitch( (ptr->SCp.phase >> 16) & P_MASK )
SCp2514drivers/scsi/aha152x.cif(ptr->SCp.phase & (1<<16))
SCp660drivers/scsi/aha1542.cSCpnt->SCp.Status++;
SCp669drivers/scsi/aha1542.cSCpnt->SCp.Status = 0;
SCp670drivers/scsi/aha1542.cwhile (!SCpnt->SCp.Status);
SCp129drivers/scsi/aha274x.c#define aha274x_parity(cmd)  ((cmd)->SCp.Status)
SCp795drivers/scsi/buslogic.cscpnt->SCp.Status++;
SCp806drivers/scsi/buslogic.cscpnt->SCp.Status = 0;
SCp807drivers/scsi/buslogic.cwhile (!scpnt->SCp.Status)
SCp904drivers/scsi/fdomain.cif (current_SC->SCp.phase & aborted) {
SCp916drivers/scsi/fdomain.cif (current_SC->SCp.phase & in_arbitration) {
SCp925drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_selection;
SCp938drivers/scsi/fdomain.c} else if (current_SC->SCp.phase & in_selection) {
SCp956drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_other;
SCp974drivers/scsi/fdomain.coutb( current_SC->cmnd[current_SC->SCp.sent_command++],
SCp978drivers/scsi/fdomain.ccurrent_SC->cmnd[ current_SC->SCp.sent_command - 1] );
SCp982drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
SCp983drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
SCp988drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
SCp989drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp994drivers/scsi/fdomain.ccurrent_SC->SCp.Status = inb( Read_SCSI_Data_port );
SCp996drivers/scsi/fdomain.cprintk( "Status = %x, ", current_SC->SCp.Status );
SCp999drivers/scsi/fdomain.cif (current_SC->SCp.Status && current_SC->SCp.Status != 2) {
SCp1003drivers/scsi/fdomain.ccurrent_SC->SCp.Status );
SCp1011drivers/scsi/fdomain.ccurrent_SC->SCp.Message = inb( Read_SCSI_Data_port );
SCp1013drivers/scsi/fdomain.cprintk( "Message = %x, ", current_SC->SCp.Message );
SCp1015drivers/scsi/fdomain.cif (!current_SC->SCp.Message) ++done;
SCp1017drivers/scsi/fdomain.cif (current_SC->SCp.Message) {
SCp1019drivers/scsi/fdomain.ccurrent_SC->SCp.Message );
SCp1027drivers/scsi/fdomain.c&& !current_SC->SCp.have_data_in
SCp1028drivers/scsi/fdomain.c&& (current_SC->SCp.sent_command
SCp1177drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
SCp1184drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp1190drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
SCp1195drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1196drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1202drivers/scsi/fdomain.coutb( *current_SC->SCp.ptr++, Write_FIFO_port );
SCp1203drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1206drivers/scsi/fdomain.coutsw( Write_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.cif (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.cif (current_SC->SCp.have_data_in == 1) { /* DATA IN */
SCp1228drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1229drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1235drivers/scsi/fdomain.c*current_SC->SCp.ptr++ = inb( Read_FIFO_port );
SCp1236drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1239drivers/scsi/fdomain.cinsw( Read_FIFO_port, current_SC->SCp.ptr, data_count );
SCp1240drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
SCp1241drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1244drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual
SCp1245drivers/scsi/fdomain.c&& current_SC->SCp.buffers_residual) {
SCp1246drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
SCp1247drivers/scsi/fdomain.c++current_SC->SCp.buffer;
SCp1248drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
SCp1249drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
SCp1256drivers/scsi/fdomain.cprintk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in );
SCp1260drivers/scsi/fdomain.cif (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) {
SCp1289drivers/scsi/fdomain.cmy_done( (current_SC->SCp.Status & 0xff)
SCp1290drivers/scsi/fdomain.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) );
SCp1296drivers/scsi/fdomain.cif (current_SC->SCp.phase & disconnect) {
SCp1330drivers/scsi/fdomain.ccurrent_SC->SCp.buffer =
SCp1332drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = current_SC->SCp.buffer->address;
SCp1333drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->SCp.buffer->length;
SCp1334drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = current_SC->use_sg - 1;
SCp1336drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = (char *)current_SC->request_buffer;
SCp1337drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->request_bufflen;
SCp1338drivers/scsi/fdomain.ccurrent_SC->SCp.buffer           = NULL;
SCp1339drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = 0;
SCp1343drivers/scsi/fdomain.ccurrent_SC->SCp.Status              = 0;
SCp1344drivers/scsi/fdomain.ccurrent_SC->SCp.Message             = 0;
SCp1345drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in        = 0;
SCp1346drivers/scsi/fdomain.ccurrent_SC->SCp.sent_command        = 0;
SCp1347drivers/scsi/fdomain.ccurrent_SC->SCp.phase               = in_arbitration;
SCp1392drivers/scsi/fdomain.cswitch (SCpnt->SCp.phase) {
SCp1400drivers/scsi/fdomain.cSCpnt->SCp.phase,
SCp1406drivers/scsi/fdomain.cSCpnt->SCp.sent_command,
SCp1407drivers/scsi/fdomain.cSCpnt->SCp.have_data_in,
SCp1470drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
SCp493drivers/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 */