taglinefilesource code
SCp301drivers/scsi/NCR5380.ccmd->SCp.buffer = (struct scatterlist *) cmd->buffer;
SCp302drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = cmd->use_sg - 1;
SCp303drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->SCp.buffer->address;
SCp304drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->SCp.buffer->length;
SCp306drivers/scsi/NCR5380.ccmd->SCp.buffer = NULL;
SCp307drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = 0;
SCp308drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->request_buffer;
SCp309drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->request_bufflen;
SCp1094drivers/scsi/NCR5380.chostdata->connected->SCp.this_residual -= transferred;
SCp1095drivers/scsi/NCR5380.chostdata->connected->SCp.ptr += transferred;
SCp1958drivers/scsi/NCR5380.cif (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) {
SCp1959drivers/scsi/NCR5380.c++cmd->SCp.buffer;
SCp1960drivers/scsi/NCR5380.c--cmd->SCp.buffers_residual;
SCp1961drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->SCp.buffer->length;
SCp1962drivers/scsi/NCR5380.ccmd->SCp.ptr = cmd->SCp.buffer->address;
SCp1965drivers/scsi/NCR5380.cinstance->host_no, cmd->SCp.this_residual,
SCp1966drivers/scsi/NCR5380.ccmd->SCp.buffers_residual);
SCp1987drivers/scsi/NCR5380.ccmd->SCp.this_residual && !(cmd->SCp.this_residual % 
SCp1992drivers/scsi/NCR5380.c&len, (unsigned char **) &cmd->SCp.ptr)) {
SCp2006drivers/scsi/NCR5380.ccmd->SCp.this_residual -= transfersize - len;
SCp2010drivers/scsi/NCR5380.c(int *) &cmd->SCp.this_residual, (unsigned char **)
SCp2011drivers/scsi/NCR5380.c&cmd->SCp.ptr);
SCp2017drivers/scsi/NCR5380.ccmd->SCp.Message = tmp;
SCp2059drivers/scsi/NCR5380.ccmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 
SCp2096drivers/scsi/NCR5380.ccmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 
SCp2097drivers/scsi/NCR5380.celse if (cmd->SCp.Status != GOOD)
SCp2102drivers/scsi/NCR5380.c(cmd->SCp.Status == CHECK_CONDITION)) {
SCp2114drivers/scsi/NCR5380.ccmd->SCp.buffer = NULL;
SCp2115drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = 0;
SCp2116drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->sense_buffer;
SCp2117drivers/scsi/NCR5380.ccmd->SCp.this_residual = sizeof(cmd->sense_buffer);
SCp2325drivers/scsi/NCR5380.ccmd->SCp.Status = tmp;
SCp2532drivers/scsi/NCR5380.cif (!(hostdata->connected->SCp.phase & SR_CD)) {
SCp2534drivers/scsi/NCR5380.chostdata->connected->SCp.this_residual -= transferred;
SCp2535drivers/scsi/NCR5380.chostdata->connected->SCp.ptr += transferred;
SCp722drivers/scsi/aha152x.cSCpnt->SCp.phase = not_issued;
SCp725drivers/scsi/aha152x.cSCpnt->SCp.buffer           = (struct scatterlist *)SCpnt->request_buffer;
SCp726drivers/scsi/aha152x.cSCpnt->SCp.ptr              = SCpnt->SCp.buffer->address;
SCp727drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->SCp.buffer->length;
SCp728drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = SCpnt->use_sg - 1;
SCp732drivers/scsi/aha152x.cSCpnt->SCp.ptr              = (char *)SCpnt->request_buffer;
SCp733drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->request_bufflen;
SCp734drivers/scsi/aha152x.cSCpnt->SCp.buffer           = NULL;
SCp735drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = 0;
SCp738drivers/scsi/aha152x.cSCpnt->SCp.Status              = CHECK_CONDITION;
SCp739drivers/scsi/aha152x.cSCpnt->SCp.Message             = 0;
SCp740drivers/scsi/aha152x.cSCpnt->SCp.have_data_in        = 0;
SCp741drivers/scsi/aha152x.cSCpnt->SCp.sent_command        = 0;
SCp853drivers/scsi/aha152x.cptr->SCp.phase = in_selection|aborted;
SCp1107drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
SCp1193drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
SCp1221drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
SCp1257drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
SCp1282drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1299drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1303drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
SCp1304drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
SCp1337drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1361drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
SCp1362drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
SCp1375drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
SCp1386drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
SCp1423drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
SCp1431drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp1448drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
SCp1524drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIBUS );
SCp1525drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
SCp1531drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
SCp1532drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
SCp1641drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
SCp1654drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
SCp1686drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIBUS );
SCp1692drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
SCp1751drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
SCp1756drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
SCp1757drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
SCp1769drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
SCp1770drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1776drivers/scsi/aha152x.cinsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp1786drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
SCp1792drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1793drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1797drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
SCp1798drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1801drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1802drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1803drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1804drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1805drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1806drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1833drivers/scsi/aha152x.cif(current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)
SCp1835drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
SCp1836drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
SCp1848drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
SCp1861drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1862drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
SCp1883drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
SCp1884drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
SCp1888drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1889drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp1892drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
SCp1893drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
SCp1903drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
SCp1904drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1910drivers/scsi/aha152x.coutsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp1911drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1912drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1926drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
SCp1927drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1930drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1931drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1932drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1933drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1934drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1935drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1939drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
SCp1940drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
SCp1949drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
SCp1950drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
SCp1953drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1954drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
SCp1975drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1976drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp2000drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp2012drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp2039drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
SCp2040drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
SCp2045drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
SCp2051drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
SCp2337drivers/scsi/aha152x.cptr->SCp.this_residual, ptr->SCp.buffers_residual);
SCp2339drivers/scsi/aha152x.cif( ptr->SCp.phase & not_issued   )  printk("not issued|");
SCp2340drivers/scsi/aha152x.cif( ptr->SCp.phase & in_selection )  printk("in selection|");
SCp2341drivers/scsi/aha152x.cif( ptr->SCp.phase & disconnected )  printk("disconnected|");
SCp2342drivers/scsi/aha152x.cif( ptr->SCp.phase & aborted      )  printk("aborted|");
SCp2343drivers/scsi/aha152x.cif( ptr->SCp.phase & sent_ident   )  printk("send_ident|");
SCp2344drivers/scsi/aha152x.cif( ptr->SCp.phase & in_other )
SCp2347drivers/scsi/aha152x.cswitch( (ptr->SCp.phase >> 16) & P_MASK )
SCp2372drivers/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);
SCp726drivers/scsi/buslogic.cSCpnt->SCp.Status++;
SCp737drivers/scsi/buslogic.cSCpnt->SCp.Status = 0;
SCp738drivers/scsi/buslogic.cwhile (!SCpnt->SCp.Status)
SCp877drivers/scsi/fdomain.cif (current_SC->SCp.phase & aborted) {
SCp889drivers/scsi/fdomain.cif (current_SC->SCp.phase & in_arbitration) {
SCp898drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_selection;
SCp911drivers/scsi/fdomain.c} else if (current_SC->SCp.phase & in_selection) {
SCp929drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_other;
SCp947drivers/scsi/fdomain.coutb( current_SC->cmnd[current_SC->SCp.sent_command++],
SCp951drivers/scsi/fdomain.ccurrent_SC->cmnd[ current_SC->SCp.sent_command - 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.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
SCp962drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp967drivers/scsi/fdomain.ccurrent_SC->SCp.Status = inb( Read_SCSI_Data_port );
SCp969drivers/scsi/fdomain.cprintk( "Status = %x, ", current_SC->SCp.Status );
SCp972drivers/scsi/fdomain.cif (current_SC->SCp.Status && current_SC->SCp.Status != 2) {
SCp976drivers/scsi/fdomain.ccurrent_SC->SCp.Status );
SCp984drivers/scsi/fdomain.ccurrent_SC->SCp.Message = inb( Read_SCSI_Data_port );
SCp986drivers/scsi/fdomain.cprintk( "Message = %x, ", current_SC->SCp.Message );
SCp988drivers/scsi/fdomain.cif (!current_SC->SCp.Message) ++done;
SCp990drivers/scsi/fdomain.cif (current_SC->SCp.Message) {
SCp992drivers/scsi/fdomain.ccurrent_SC->SCp.Message );
SCp1000drivers/scsi/fdomain.c&& !current_SC->SCp.have_data_in
SCp1001drivers/scsi/fdomain.c&& (current_SC->SCp.sent_command
SCp1150drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
SCp1157drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp1163drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
SCp1168drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1169drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1175drivers/scsi/fdomain.coutb( *current_SC->SCp.ptr++, Write_FIFO_port );
SCp1176drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1179drivers/scsi/fdomain.coutsw( Write_FIFO_port, current_SC->SCp.ptr, data_count );
SCp1180drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
SCp1181drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1184drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual) {
SCp1185drivers/scsi/fdomain.cif (current_SC->SCp.buffers_residual) {
SCp1186drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
SCp1187drivers/scsi/fdomain.c++current_SC->SCp.buffer;
SCp1188drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
SCp1189drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
SCp1196drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == 1) { /* DATA IN */
SCp1201drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1202drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1208drivers/scsi/fdomain.c*current_SC->SCp.ptr++ = inb( Read_FIFO_port );
SCp1209drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1212drivers/scsi/fdomain.cinsw( Read_FIFO_port, current_SC->SCp.ptr, data_count );
SCp1213drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
SCp1214drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1217drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual
SCp1218drivers/scsi/fdomain.c&& current_SC->SCp.buffers_residual) {
SCp1219drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
SCp1220drivers/scsi/fdomain.c++current_SC->SCp.buffer;
SCp1221drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
SCp1222drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
SCp1229drivers/scsi/fdomain.cprintk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in );
SCp1233drivers/scsi/fdomain.cif (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) {
SCp1262drivers/scsi/fdomain.cmy_done( (current_SC->SCp.Status & 0xff)
SCp1263drivers/scsi/fdomain.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) );
SCp1269drivers/scsi/fdomain.cif (current_SC->SCp.phase & disconnect) {
SCp1303drivers/scsi/fdomain.ccurrent_SC->SCp.buffer =
SCp1305drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = current_SC->SCp.buffer->address;
SCp1306drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->SCp.buffer->length;
SCp1307drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = current_SC->use_sg - 1;
SCp1309drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = (char *)current_SC->request_buffer;
SCp1310drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->request_bufflen;
SCp1311drivers/scsi/fdomain.ccurrent_SC->SCp.buffer           = NULL;
SCp1312drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = 0;
SCp1316drivers/scsi/fdomain.ccurrent_SC->SCp.Status              = 0;
SCp1317drivers/scsi/fdomain.ccurrent_SC->SCp.Message             = 0;
SCp1318drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in        = 0;
SCp1319drivers/scsi/fdomain.ccurrent_SC->SCp.sent_command        = 0;
SCp1320drivers/scsi/fdomain.ccurrent_SC->SCp.phase               = in_arbitration;
SCp1365drivers/scsi/fdomain.cswitch (SCpnt->SCp.phase) {
SCp1373drivers/scsi/fdomain.cSCpnt->SCp.phase,
SCp1379drivers/scsi/fdomain.cSCpnt->SCp.sent_command,
SCp1380drivers/scsi/fdomain.cSCpnt->SCp.have_data_in,
SCp1443drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
SCp481drivers/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 */