taglinefilesource code
SCp300drivers/scsi/NCR5380.ccmd->SCp.buffer = (struct scatterlist *) cmd->buffer;
SCp301drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = cmd->use_sg - 1;
SCp302drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->SCp.buffer->address;
SCp303drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->SCp.buffer->length;
SCp305drivers/scsi/NCR5380.ccmd->SCp.buffer = NULL;
SCp306drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = 0;
SCp307drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->request_buffer;
SCp308drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->request_bufflen;
SCp1021drivers/scsi/NCR5380.chostdata->connected->SCp.this_residual -= transferred;
SCp1022drivers/scsi/NCR5380.chostdata->connected->SCp.ptr += transferred;
SCp1773drivers/scsi/NCR5380.cif (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) {
SCp1774drivers/scsi/NCR5380.c++cmd->SCp.buffer;
SCp1775drivers/scsi/NCR5380.c--cmd->SCp.buffers_residual;
SCp1776drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->SCp.buffer->length;
SCp1777drivers/scsi/NCR5380.ccmd->SCp.ptr = cmd->SCp.buffer->address;
SCp1780drivers/scsi/NCR5380.cinstance->host_no, cmd->SCp.this_residual,
SCp1781drivers/scsi/NCR5380.ccmd->SCp.buffers_residual);
SCp1802drivers/scsi/NCR5380.ccmd->SCp.this_residual && !(cmd->SCp.this_residual % 
SCp1807drivers/scsi/NCR5380.c&len, (unsigned char **) &cmd->SCp.ptr)) {
SCp1819drivers/scsi/NCR5380.ccmd->SCp.this_residual -= transfersize - len;
SCp1823drivers/scsi/NCR5380.c(int *) &cmd->SCp.this_residual, (unsigned char **)
SCp1824drivers/scsi/NCR5380.c&cmd->SCp.ptr);
SCp1836drivers/scsi/NCR5380.ccmd->SCp.Message = tmp;
SCp1874drivers/scsi/NCR5380.ccmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 
SCp1909drivers/scsi/NCR5380.ccmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 
SCp1910drivers/scsi/NCR5380.celse if (cmd->SCp.Status != GOOD)
SCp1915drivers/scsi/NCR5380.c(cmd->SCp.Status == CHECK_CONDITION)) {
SCp1927drivers/scsi/NCR5380.ccmd->SCp.buffer = NULL;
SCp1928drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = 0;
SCp1929drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->sense_buffer;
SCp1930drivers/scsi/NCR5380.ccmd->SCp.this_residual = sizeof(cmd->sense_buffer);
SCp2054drivers/scsi/NCR5380.ccmd->SCp.Status = tmp;
SCp2260drivers/scsi/NCR5380.cif (!(hostdata->connected->SCp.phase & SR_CD)) {
SCp2262drivers/scsi/NCR5380.chostdata->connected->SCp.this_residual -= transferred;
SCp2263drivers/scsi/NCR5380.chostdata->connected->SCp.ptr += transferred;
SCp728drivers/scsi/aha152x.cSCpnt->SCp.phase = not_issued;
SCp731drivers/scsi/aha152x.cSCpnt->SCp.buffer           = (struct scatterlist *)SCpnt->request_buffer;
SCp732drivers/scsi/aha152x.cSCpnt->SCp.ptr              = SCpnt->SCp.buffer->address;
SCp733drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->SCp.buffer->length;
SCp734drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = SCpnt->use_sg - 1;
SCp738drivers/scsi/aha152x.cSCpnt->SCp.ptr              = (char *)SCpnt->request_buffer;
SCp739drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->request_bufflen;
SCp740drivers/scsi/aha152x.cSCpnt->SCp.buffer           = NULL;
SCp741drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = 0;
SCp744drivers/scsi/aha152x.cSCpnt->SCp.Status              = CHECK_CONDITION;
SCp745drivers/scsi/aha152x.cSCpnt->SCp.Message             = 0;
SCp746drivers/scsi/aha152x.cSCpnt->SCp.have_data_in        = 0;
SCp747drivers/scsi/aha152x.cSCpnt->SCp.sent_command        = 0;
SCp844drivers/scsi/aha152x.cptr->SCp.phase = in_selection|aborted;
SCp1072drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
SCp1158drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
SCp1186drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
SCp1222drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
SCp1247drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1264drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1268drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
SCp1269drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
SCp1302drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1326drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
SCp1327drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
SCp1340drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
SCp1351drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
SCp1388drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
SCp1396drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp1413drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
SCp1489drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIBUS );
SCp1490drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
SCp1496drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
SCp1497drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
SCp1606drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
SCp1619drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
SCp1651drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIBUS );
SCp1657drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
SCp1716drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
SCp1721drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
SCp1722drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
SCp1734drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
SCp1735drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1741drivers/scsi/aha152x.cinsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp1751drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
SCp1757drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1758drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1762drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
SCp1763drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1766drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1767drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1768drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1769drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1770drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1771drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1798drivers/scsi/aha152x.cif(current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)
SCp1800drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
SCp1801drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
SCp1813drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
SCp1826drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1827drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
SCp1848drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
SCp1849drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
SCp1853drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1854drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp1857drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
SCp1858drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
SCp1868drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
SCp1869drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1875drivers/scsi/aha152x.coutsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp1876drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1877drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1891drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
SCp1892drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1895drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1896drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1897drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1898drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1899drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1900drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1904drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
SCp1905drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
SCp1914drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
SCp1915drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
SCp1918drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1919drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
SCp1940drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1941drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp1965drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp1977drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp2004drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
SCp2005drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
SCp2010drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
SCp2016drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
SCp2302drivers/scsi/aha152x.cptr->SCp.this_residual, ptr->SCp.buffers_residual);
SCp2304drivers/scsi/aha152x.cif( ptr->SCp.phase & not_issued   )  printk("not issued|");
SCp2305drivers/scsi/aha152x.cif( ptr->SCp.phase & in_selection )  printk("in selection|");
SCp2306drivers/scsi/aha152x.cif( ptr->SCp.phase & disconnected )  printk("disconnected|");
SCp2307drivers/scsi/aha152x.cif( ptr->SCp.phase & aborted      )  printk("aborted|");
SCp2308drivers/scsi/aha152x.cif( ptr->SCp.phase & sent_ident   )  printk("send_ident|");
SCp2309drivers/scsi/aha152x.cif( ptr->SCp.phase & in_other )
SCp2312drivers/scsi/aha152x.cswitch( (ptr->SCp.phase >> 16) & P_MASK )
SCp2337drivers/scsi/aha152x.cif(ptr->SCp.phase & (1<<16))
SCp578drivers/scsi/aha1542.cSCpnt->SCp.Status++;
SCp587drivers/scsi/aha1542.cSCpnt->SCp.Status = 0;
SCp588drivers/scsi/aha1542.cwhile (!SCpnt->SCp.Status);
SCp852drivers/scsi/fdomain.cif (current_SC->SCp.phase & aborted) {
SCp864drivers/scsi/fdomain.cif (current_SC->SCp.phase & in_arbitration) {
SCp873drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_selection;
SCp886drivers/scsi/fdomain.c} else if (current_SC->SCp.phase & in_selection) {
SCp904drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_other;
SCp922drivers/scsi/fdomain.coutb( current_SC->cmnd[current_SC->SCp.sent_command++],
SCp926drivers/scsi/fdomain.ccurrent_SC->cmnd[ current_SC->SCp.sent_command - 1] );
SCp930drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
SCp931drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
SCp936drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
SCp937drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp942drivers/scsi/fdomain.ccurrent_SC->SCp.Status = inb( Read_SCSI_Data_port );
SCp944drivers/scsi/fdomain.cprintk( "Status = %x, ", current_SC->SCp.Status );
SCp947drivers/scsi/fdomain.cif (current_SC->SCp.Status && current_SC->SCp.Status != 2) {
SCp951drivers/scsi/fdomain.ccurrent_SC->SCp.Status );
SCp959drivers/scsi/fdomain.ccurrent_SC->SCp.Message = inb( Read_SCSI_Data_port );
SCp961drivers/scsi/fdomain.cprintk( "Message = %x, ", current_SC->SCp.Message );
SCp963drivers/scsi/fdomain.cif (!current_SC->SCp.Message) ++done;
SCp965drivers/scsi/fdomain.cif (current_SC->SCp.Message) {
SCp967drivers/scsi/fdomain.ccurrent_SC->SCp.Message );
SCp975drivers/scsi/fdomain.c&& !current_SC->SCp.have_data_in
SCp976drivers/scsi/fdomain.c&& (current_SC->SCp.sent_command
SCp1125drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
SCp1132drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp1138drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
SCp1143drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1144drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1150drivers/scsi/fdomain.coutb( *current_SC->SCp.ptr++, Write_FIFO_port );
SCp1151drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1154drivers/scsi/fdomain.coutsw( Write_FIFO_port, current_SC->SCp.ptr, data_count );
SCp1155drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
SCp1156drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1159drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual) {
SCp1160drivers/scsi/fdomain.cif (current_SC->SCp.buffers_residual) {
SCp1161drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
SCp1162drivers/scsi/fdomain.c++current_SC->SCp.buffer;
SCp1163drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
SCp1164drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
SCp1171drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == 1) { /* DATA IN */
SCp1176drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1177drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1183drivers/scsi/fdomain.c*current_SC->SCp.ptr++ = inb( Read_FIFO_port );
SCp1184drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1187drivers/scsi/fdomain.cinsw( Read_FIFO_port, current_SC->SCp.ptr, data_count );
SCp1188drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
SCp1189drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1192drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual
SCp1193drivers/scsi/fdomain.c&& current_SC->SCp.buffers_residual) {
SCp1194drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
SCp1195drivers/scsi/fdomain.c++current_SC->SCp.buffer;
SCp1196drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
SCp1197drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
SCp1204drivers/scsi/fdomain.cprintk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in );
SCp1208drivers/scsi/fdomain.cif (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) {
SCp1237drivers/scsi/fdomain.cmy_done( (current_SC->SCp.Status & 0xff)
SCp1238drivers/scsi/fdomain.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) );
SCp1244drivers/scsi/fdomain.cif (current_SC->SCp.phase & disconnect) {
SCp1278drivers/scsi/fdomain.ccurrent_SC->SCp.buffer =
SCp1280drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = current_SC->SCp.buffer->address;
SCp1281drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->SCp.buffer->length;
SCp1282drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = current_SC->use_sg - 1;
SCp1284drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = (char *)current_SC->request_buffer;
SCp1285drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->request_bufflen;
SCp1286drivers/scsi/fdomain.ccurrent_SC->SCp.buffer           = NULL;
SCp1287drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = 0;
SCp1291drivers/scsi/fdomain.ccurrent_SC->SCp.Status              = 0;
SCp1292drivers/scsi/fdomain.ccurrent_SC->SCp.Message             = 0;
SCp1293drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in        = 0;
SCp1294drivers/scsi/fdomain.ccurrent_SC->SCp.sent_command        = 0;
SCp1295drivers/scsi/fdomain.ccurrent_SC->SCp.phase               = in_arbitration;
SCp1340drivers/scsi/fdomain.cswitch (SCpnt->SCp.phase) {
SCp1348drivers/scsi/fdomain.cSCpnt->SCp.phase,
SCp1354drivers/scsi/fdomain.cSCpnt->SCp.sent_command,
SCp1355drivers/scsi/fdomain.cSCpnt->SCp.have_data_in,
SCp1423drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
SCp400drivers/scsi/scsi.hScsi_Pointer SCp;   /* Scratchpad used by some host adapters */
SCp304drivers/scsi/wd7000.cSCpnt->SCp.phase = 0;
SCp345drivers/scsi/wd7000.cif (--(SCpnt->SCp.phase) <= 0)  {  /* all scbs for SCpnt are done */
SCp381drivers/scsi/wd7000.cSCpnt->SCp.phase = 1;
SCp439drivers/scsi/wd7000.cwhile (SCpnt->SCp.phase > 0);  /* phase counts scbs down to 0 */