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;
SCp1076drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
SCp1162drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
SCp1190drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
SCp1226drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
SCp1251drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1268drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1272drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
SCp1273drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
SCp1306drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1330drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
SCp1331drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
SCp1344drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
SCp1355drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
SCp1392drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
SCp1400drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp1417drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
SCp1493drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIBUS );
SCp1494drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
SCp1500drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
SCp1501drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
SCp1610drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
SCp1623drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
SCp1655drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIBUS );
SCp1661drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
SCp1720drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
SCp1725drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
SCp1726drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
SCp1738drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
SCp1739drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1745drivers/scsi/aha152x.cinsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp1755drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
SCp1761drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1762drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1766drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
SCp1767drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1770drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1771drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1772drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1773drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1774drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1775drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1802drivers/scsi/aha152x.cif(current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)
SCp1804drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
SCp1805drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
SCp1817drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
SCp1830drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1831drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
SCp1852drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
SCp1853drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
SCp1857drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1858drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp1861drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
SCp1862drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
SCp1872drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
SCp1873drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1879drivers/scsi/aha152x.coutsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp1880drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1881drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1895drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
SCp1896drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1899drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1900drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1901drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1902drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1903drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1904drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1908drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
SCp1909drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
SCp1918drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
SCp1919drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
SCp1922drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1923drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
SCp1944drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1945drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp1969drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp1981drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp2008drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
SCp2009drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
SCp2014drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
SCp2020drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
SCp2306drivers/scsi/aha152x.cptr->SCp.this_residual, ptr->SCp.buffers_residual);
SCp2308drivers/scsi/aha152x.cif( ptr->SCp.phase & not_issued   )  printk("not issued|");
SCp2309drivers/scsi/aha152x.cif( ptr->SCp.phase & in_selection )  printk("in selection|");
SCp2310drivers/scsi/aha152x.cif( ptr->SCp.phase & disconnected )  printk("disconnected|");
SCp2311drivers/scsi/aha152x.cif( ptr->SCp.phase & aborted      )  printk("aborted|");
SCp2312drivers/scsi/aha152x.cif( ptr->SCp.phase & sent_ident   )  printk("send_ident|");
SCp2313drivers/scsi/aha152x.cif( ptr->SCp.phase & in_other )
SCp2316drivers/scsi/aha152x.cswitch( (ptr->SCp.phase >> 16) & P_MASK )
SCp2341drivers/scsi/aha152x.cif(ptr->SCp.phase & (1<<16))
SCp604drivers/scsi/aha1542.cSCpnt->SCp.Status++;
SCp613drivers/scsi/aha1542.cSCpnt->SCp.Status = 0;
SCp614drivers/scsi/aha1542.cwhile (!SCpnt->SCp.Status);
SCp729drivers/scsi/buslogic.cSCpnt->SCp.Status++;
SCp740drivers/scsi/buslogic.cSCpnt->SCp.Status = 0;
SCp741drivers/scsi/buslogic.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,
SCp1418drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
SCp461drivers/scsi/scsi.hScsi_Pointer SCp;   /* Scratchpad used by some host adapters */
SCp795drivers/scsi/wd7000.cSCpnt->SCp.phase = 0;
SCp872drivers/scsi/wd7000.cif (--(SCpnt->SCp.phase) <= 0)  {  /* all scbs are done */
SCp907drivers/scsi/wd7000.cSCpnt->SCp.phase = 1;
SCp952drivers/scsi/wd7000.cwhile (SCpnt->SCp.phase > 0);  /* phase counts scbs down to 0 */