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;
SCp1964drivers/scsi/NCR5380.cif (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) {
SCp1965drivers/scsi/NCR5380.c++cmd->SCp.buffer;
SCp1966drivers/scsi/NCR5380.c--cmd->SCp.buffers_residual;
SCp1967drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->SCp.buffer->length;
SCp1968drivers/scsi/NCR5380.ccmd->SCp.ptr = cmd->SCp.buffer->address;
SCp1971drivers/scsi/NCR5380.cinstance->host_no, cmd->SCp.this_residual,
SCp1972drivers/scsi/NCR5380.ccmd->SCp.buffers_residual);
SCp1999drivers/scsi/NCR5380.ccmd->SCp.this_residual && !(cmd->SCp.this_residual % 
SCp2004drivers/scsi/NCR5380.c&len, (unsigned char **) &cmd->SCp.ptr)) {
SCp2018drivers/scsi/NCR5380.ccmd->SCp.this_residual -= transfersize - len;
SCp2022drivers/scsi/NCR5380.c(int *) &cmd->SCp.this_residual, (unsigned char **)
SCp2023drivers/scsi/NCR5380.c&cmd->SCp.ptr);
SCp2029drivers/scsi/NCR5380.ccmd->SCp.Message = tmp;
SCp2071drivers/scsi/NCR5380.ccmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 
SCp2108drivers/scsi/NCR5380.ccmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 
SCp2109drivers/scsi/NCR5380.celse if (cmd->SCp.Status != GOOD)
SCp2114drivers/scsi/NCR5380.c(cmd->SCp.Status == CHECK_CONDITION)) {
SCp2126drivers/scsi/NCR5380.ccmd->SCp.buffer = NULL;
SCp2127drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = 0;
SCp2128drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->sense_buffer;
SCp2129drivers/scsi/NCR5380.ccmd->SCp.this_residual = sizeof(cmd->sense_buffer);
SCp2337drivers/scsi/NCR5380.ccmd->SCp.Status = tmp;
SCp2544drivers/scsi/NCR5380.cif (!(hostdata->connected->SCp.phase & SR_CD)) {
SCp2546drivers/scsi/NCR5380.chostdata->connected->SCp.this_residual -= transferred;
SCp2547drivers/scsi/NCR5380.chostdata->connected->SCp.ptr += transferred;
SCp809drivers/scsi/aha152x.cSCpnt->SCp.phase = not_issued;
SCp812drivers/scsi/aha152x.cSCpnt->SCp.buffer           = (struct scatterlist *)SCpnt->request_buffer;
SCp813drivers/scsi/aha152x.cSCpnt->SCp.ptr              = SCpnt->SCp.buffer->address;
SCp814drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->SCp.buffer->length;
SCp815drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = SCpnt->use_sg - 1;
SCp819drivers/scsi/aha152x.cSCpnt->SCp.ptr              = (char *)SCpnt->request_buffer;
SCp820drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->request_bufflen;
SCp821drivers/scsi/aha152x.cSCpnt->SCp.buffer           = NULL;
SCp822drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = 0;
SCp825drivers/scsi/aha152x.cSCpnt->SCp.Status              = CHECK_CONDITION;
SCp826drivers/scsi/aha152x.cSCpnt->SCp.Message             = 0;
SCp827drivers/scsi/aha152x.cSCpnt->SCp.have_data_in        = 0;
SCp828drivers/scsi/aha152x.cSCpnt->SCp.sent_command        = 0;
SCp952drivers/scsi/aha152x.cptr->SCp.phase = in_selection|aborted;
SCp1239drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
SCp1333drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
SCp1364drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
SCp1402drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
SCp1427drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1445drivers/scsi/aha152x.cif((aha152x_debug & debug_abort) && (current_SC->SCp.phase & aborted))
SCp1449drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
SCp1450drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
SCp1484drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1509drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
SCp1510drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
SCp1524drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
SCp1536drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
SCp1575drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
SCp1583drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp1601drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
SCp1699drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIBUS );
SCp1700drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
SCp1707drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
SCp1708drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
SCp1826drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
SCp1839drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
SCp1874drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIBUS );
SCp1882drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
SCp1946drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
SCp1951drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
SCp1952drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
SCp1965drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
SCp1966drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1972drivers/scsi/aha152x.cinsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp1983drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
SCp1989drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1990drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1994drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
SCp1995drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1998drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1999drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp2000drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp2001drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp2002drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp2003drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp2031drivers/scsi/aha152x.cif((aha152x_debug & debug_datai) && (current_SC->SCp.buffers_residual || current_SC->SCp.this_residual))
SCp2033drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
SCp2034drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
SCp2047drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
SCp2062drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp2063drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
SCp2084drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
SCp2085drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
SCp2090drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp2091drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp2094drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
SCp2095drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
SCp2106drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
SCp2107drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp2113drivers/scsi/aha152x.coutsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp2114drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp2115drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp2130drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
SCp2131drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp2134drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp2135drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp2136drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp2137drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp2138drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp2139drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp2143drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
SCp2144drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
SCp2153drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
SCp2154drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
SCp2158drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp2159drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
SCp2178drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp2179drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp2205drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp2217drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp2245drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
SCp2246drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
SCp2251drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
SCp2257drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
SCp2552drivers/scsi/aha152x.cptr->SCp.this_residual, ptr->SCp.buffers_residual);
SCp2554drivers/scsi/aha152x.cif( ptr->SCp.phase & not_issued   )  printk("not issued|");
SCp2555drivers/scsi/aha152x.cif( ptr->SCp.phase & in_selection )  printk("in selection|");
SCp2556drivers/scsi/aha152x.cif( ptr->SCp.phase & disconnected )  printk("disconnected|");
SCp2557drivers/scsi/aha152x.cif( ptr->SCp.phase & aborted      )  printk("aborted|");
SCp2558drivers/scsi/aha152x.cif( ptr->SCp.phase & sent_ident   )  printk("send_ident|");
SCp2559drivers/scsi/aha152x.cif( ptr->SCp.phase & in_other )
SCp2562drivers/scsi/aha152x.cswitch( (ptr->SCp.phase >> 16) & P_MASK )
SCp2587drivers/scsi/aha152x.cif(ptr->SCp.phase & (1<<16))
SCp674drivers/scsi/aha1542.cSCpnt->SCp.Status++;
SCp683drivers/scsi/aha1542.cSCpnt->SCp.Status = 0;
SCp684drivers/scsi/aha1542.cwhile (!SCpnt->SCp.Status);
SCp129drivers/scsi/aha274x.c#define aha274x_parity(cmd)  ((cmd)->SCp.Status)
SCp778drivers/scsi/buslogic.cscpnt->SCp.Status++;
SCp789drivers/scsi/buslogic.cscpnt->SCp.Status = 0;
SCp790drivers/scsi/buslogic.cwhile (!scpnt->SCp.Status)
SCp929drivers/scsi/fdomain.cif (current_SC->SCp.phase & aborted) {
SCp941drivers/scsi/fdomain.cif (current_SC->SCp.phase & in_arbitration) {
SCp950drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_selection;
SCp963drivers/scsi/fdomain.c} else if (current_SC->SCp.phase & in_selection) {
SCp981drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_other;
SCp999drivers/scsi/fdomain.coutb( current_SC->cmnd[current_SC->SCp.sent_command++],
SCp1003drivers/scsi/fdomain.ccurrent_SC->cmnd[ current_SC->SCp.sent_command - 1] );
SCp1007drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
SCp1008drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
SCp1013drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
SCp1014drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp1019drivers/scsi/fdomain.ccurrent_SC->SCp.Status = inb( Read_SCSI_Data_port );
SCp1021drivers/scsi/fdomain.cprintk( "Status = %x, ", current_SC->SCp.Status );
SCp1024drivers/scsi/fdomain.cif (current_SC->SCp.Status && current_SC->SCp.Status != 2) {
SCp1028drivers/scsi/fdomain.ccurrent_SC->SCp.Status );
SCp1036drivers/scsi/fdomain.ccurrent_SC->SCp.Message = inb( Read_SCSI_Data_port );
SCp1038drivers/scsi/fdomain.cprintk( "Message = %x, ", current_SC->SCp.Message );
SCp1040drivers/scsi/fdomain.cif (!current_SC->SCp.Message) ++done;
SCp1042drivers/scsi/fdomain.cif (current_SC->SCp.Message) {
SCp1043drivers/scsi/fdomain.cprintk( "fdomain: message = %x\n", current_SC->SCp.Message );
SCp1051drivers/scsi/fdomain.c&& !current_SC->SCp.have_data_in
SCp1052drivers/scsi/fdomain.c&& (current_SC->SCp.sent_command
SCp1201drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
SCp1208drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp1214drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
SCp1219drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1220drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1226drivers/scsi/fdomain.coutb( *current_SC->SCp.ptr++, Write_FIFO_port );
SCp1227drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1230drivers/scsi/fdomain.coutsw( Write_FIFO_port, current_SC->SCp.ptr, data_count );
SCp1231drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
SCp1232drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1235drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual) {
SCp1236drivers/scsi/fdomain.cif (current_SC->SCp.buffers_residual) {
SCp1237drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
SCp1238drivers/scsi/fdomain.c++current_SC->SCp.buffer;
SCp1239drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
SCp1240drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
SCp1247drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == 1) { /* DATA IN */
SCp1252drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1253drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1259drivers/scsi/fdomain.c*current_SC->SCp.ptr++ = inb( Read_FIFO_port );
SCp1260drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1263drivers/scsi/fdomain.cinsw( Read_FIFO_port, current_SC->SCp.ptr, data_count );
SCp1264drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
SCp1265drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1268drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual
SCp1269drivers/scsi/fdomain.c&& current_SC->SCp.buffers_residual) {
SCp1270drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
SCp1271drivers/scsi/fdomain.c++current_SC->SCp.buffer;
SCp1272drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
SCp1273drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
SCp1280drivers/scsi/fdomain.cprintk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in );
SCp1284drivers/scsi/fdomain.cif (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) {
SCp1313drivers/scsi/fdomain.cmy_done( (current_SC->SCp.Status & 0xff)
SCp1314drivers/scsi/fdomain.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) );
SCp1320drivers/scsi/fdomain.cif (current_SC->SCp.phase & disconnect) {
SCp1354drivers/scsi/fdomain.ccurrent_SC->SCp.buffer =
SCp1356drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = current_SC->SCp.buffer->address;
SCp1357drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->SCp.buffer->length;
SCp1358drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = current_SC->use_sg - 1;
SCp1360drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = (char *)current_SC->request_buffer;
SCp1361drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->request_bufflen;
SCp1362drivers/scsi/fdomain.ccurrent_SC->SCp.buffer           = NULL;
SCp1363drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = 0;
SCp1367drivers/scsi/fdomain.ccurrent_SC->SCp.Status              = 0;
SCp1368drivers/scsi/fdomain.ccurrent_SC->SCp.Message             = 0;
SCp1369drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in        = 0;
SCp1370drivers/scsi/fdomain.ccurrent_SC->SCp.sent_command        = 0;
SCp1371drivers/scsi/fdomain.ccurrent_SC->SCp.phase               = in_arbitration;
SCp1421drivers/scsi/fdomain.cswitch (SCpnt->SCp.phase) {
SCp1429drivers/scsi/fdomain.cSCpnt->SCp.phase,
SCp1435drivers/scsi/fdomain.cSCpnt->SCp.sent_command,
SCp1436drivers/scsi/fdomain.cSCpnt->SCp.have_data_in,
SCp1501drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
SCp507drivers/scsi/scsi.hScsi_Pointer SCp;   /* Scratchpad used by some host adapters */
SCp794drivers/scsi/wd7000.cSCpnt->SCp.phase = 0;
SCp864drivers/scsi/wd7000.cif (--(SCpnt->SCp.phase) <= 0)  {  /* all scbs are done */
SCp899drivers/scsi/wd7000.cSCpnt->SCp.phase = 1;
SCp944drivers/scsi/wd7000.cwhile (SCpnt->SCp.phase > 0);  /* phase counts scbs down to 0 */