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;
SCp717drivers/scsi/aha152x.cSCpnt->SCp.phase = not_issued;
SCp720drivers/scsi/aha152x.cSCpnt->SCp.buffer           = (struct scatterlist *)SCpnt->request_buffer;
SCp721drivers/scsi/aha152x.cSCpnt->SCp.ptr              = SCpnt->SCp.buffer->address;
SCp722drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->SCp.buffer->length;
SCp723drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = SCpnt->use_sg - 1;
SCp727drivers/scsi/aha152x.cSCpnt->SCp.ptr              = (char *)SCpnt->request_buffer;
SCp728drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->request_bufflen;
SCp729drivers/scsi/aha152x.cSCpnt->SCp.buffer           = NULL;
SCp730drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = 0;
SCp733drivers/scsi/aha152x.cSCpnt->SCp.Status              = CHECK_CONDITION;
SCp734drivers/scsi/aha152x.cSCpnt->SCp.Message             = 0;
SCp735drivers/scsi/aha152x.cSCpnt->SCp.have_data_in        = 0;
SCp736drivers/scsi/aha152x.cSCpnt->SCp.sent_command        = 0;
SCp848drivers/scsi/aha152x.cptr->SCp.phase = in_selection|aborted;
SCp1102drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
SCp1188drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
SCp1216drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
SCp1252drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
SCp1277drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1294drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1298drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
SCp1299drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
SCp1332drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1356drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
SCp1357drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
SCp1370drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
SCp1381drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
SCp1418drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
SCp1426drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp1443drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
SCp1519drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIBUS );
SCp1520drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
SCp1526drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
SCp1527drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
SCp1636drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
SCp1649drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
SCp1681drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIBUS );
SCp1687drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
SCp1746drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
SCp1751drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
SCp1752drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
SCp1764drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
SCp1765drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1771drivers/scsi/aha152x.cinsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp1781drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
SCp1787drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1788drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1792drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
SCp1793drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1796drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1797drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1798drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1799drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1800drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1801drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1828drivers/scsi/aha152x.cif(current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)
SCp1830drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
SCp1831drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
SCp1843drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
SCp1856drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1857drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
SCp1878drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
SCp1879drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
SCp1883drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1884drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp1887drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
SCp1888drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
SCp1898drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
SCp1899drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1905drivers/scsi/aha152x.coutsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp1906drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1907drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1921drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
SCp1922drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1925drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1926drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1927drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1928drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1929drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1930drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1934drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
SCp1935drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
SCp1944drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
SCp1945drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
SCp1948drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1949drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
SCp1970drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1971drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp1995drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp2007drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp2034drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
SCp2035drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
SCp2040drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
SCp2046drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
SCp2332drivers/scsi/aha152x.cptr->SCp.this_residual, ptr->SCp.buffers_residual);
SCp2334drivers/scsi/aha152x.cif( ptr->SCp.phase & not_issued   )  printk("not issued|");
SCp2335drivers/scsi/aha152x.cif( ptr->SCp.phase & in_selection )  printk("in selection|");
SCp2336drivers/scsi/aha152x.cif( ptr->SCp.phase & disconnected )  printk("disconnected|");
SCp2337drivers/scsi/aha152x.cif( ptr->SCp.phase & aborted      )  printk("aborted|");
SCp2338drivers/scsi/aha152x.cif( ptr->SCp.phase & sent_ident   )  printk("send_ident|");
SCp2339drivers/scsi/aha152x.cif( ptr->SCp.phase & in_other )
SCp2342drivers/scsi/aha152x.cswitch( (ptr->SCp.phase >> 16) & P_MASK )
SCp2367drivers/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);
SCp791drivers/scsi/buslogic.cscpnt->SCp.Status++;
SCp802drivers/scsi/buslogic.cscpnt->SCp.Status = 0;
SCp803drivers/scsi/buslogic.cwhile (!scpnt->SCp.Status)
SCp871drivers/scsi/fdomain.cif (current_SC->SCp.phase & aborted) {
SCp883drivers/scsi/fdomain.cif (current_SC->SCp.phase & in_arbitration) {
SCp892drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_selection;
SCp905drivers/scsi/fdomain.c} else if (current_SC->SCp.phase & in_selection) {
SCp923drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_other;
SCp941drivers/scsi/fdomain.coutb( current_SC->cmnd[current_SC->SCp.sent_command++],
SCp945drivers/scsi/fdomain.ccurrent_SC->cmnd[ current_SC->SCp.sent_command - 1] );
SCp949drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
SCp950drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -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.ccurrent_SC->SCp.Status = inb( Read_SCSI_Data_port );
SCp963drivers/scsi/fdomain.cprintk( "Status = %x, ", current_SC->SCp.Status );
SCp966drivers/scsi/fdomain.cif (current_SC->SCp.Status && current_SC->SCp.Status != 2) {
SCp970drivers/scsi/fdomain.ccurrent_SC->SCp.Status );
SCp978drivers/scsi/fdomain.ccurrent_SC->SCp.Message = inb( Read_SCSI_Data_port );
SCp980drivers/scsi/fdomain.cprintk( "Message = %x, ", current_SC->SCp.Message );
SCp982drivers/scsi/fdomain.cif (!current_SC->SCp.Message) ++done;
SCp984drivers/scsi/fdomain.cif (current_SC->SCp.Message) {
SCp986drivers/scsi/fdomain.ccurrent_SC->SCp.Message );
SCp994drivers/scsi/fdomain.c&& !current_SC->SCp.have_data_in
SCp995drivers/scsi/fdomain.c&& (current_SC->SCp.sent_command
SCp1144drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
SCp1151drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp1157drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
SCp1162drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1163drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1169drivers/scsi/fdomain.coutb( *current_SC->SCp.ptr++, Write_FIFO_port );
SCp1170drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1173drivers/scsi/fdomain.coutsw( Write_FIFO_port, current_SC->SCp.ptr, data_count );
SCp1174drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
SCp1175drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1178drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual) {
SCp1179drivers/scsi/fdomain.cif (current_SC->SCp.buffers_residual) {
SCp1180drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
SCp1181drivers/scsi/fdomain.c++current_SC->SCp.buffer;
SCp1182drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
SCp1183drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
SCp1190drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == 1) { /* DATA IN */
SCp1195drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1196drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1202drivers/scsi/fdomain.c*current_SC->SCp.ptr++ = inb( Read_FIFO_port );
SCp1203drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1206drivers/scsi/fdomain.cinsw( Read_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.c&& 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.cprintk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in );
SCp1227drivers/scsi/fdomain.cif (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) {
SCp1256drivers/scsi/fdomain.cmy_done( (current_SC->SCp.Status & 0xff)
SCp1257drivers/scsi/fdomain.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) );
SCp1263drivers/scsi/fdomain.cif (current_SC->SCp.phase & disconnect) {
SCp1297drivers/scsi/fdomain.ccurrent_SC->SCp.buffer =
SCp1299drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = current_SC->SCp.buffer->address;
SCp1300drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->SCp.buffer->length;
SCp1301drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = current_SC->use_sg - 1;
SCp1303drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = (char *)current_SC->request_buffer;
SCp1304drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->request_bufflen;
SCp1305drivers/scsi/fdomain.ccurrent_SC->SCp.buffer           = NULL;
SCp1306drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = 0;
SCp1310drivers/scsi/fdomain.ccurrent_SC->SCp.Status              = 0;
SCp1311drivers/scsi/fdomain.ccurrent_SC->SCp.Message             = 0;
SCp1312drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in        = 0;
SCp1313drivers/scsi/fdomain.ccurrent_SC->SCp.sent_command        = 0;
SCp1314drivers/scsi/fdomain.ccurrent_SC->SCp.phase               = in_arbitration;
SCp1359drivers/scsi/fdomain.cswitch (SCpnt->SCp.phase) {
SCp1367drivers/scsi/fdomain.cSCpnt->SCp.phase,
SCp1373drivers/scsi/fdomain.cSCpnt->SCp.sent_command,
SCp1374drivers/scsi/fdomain.cSCpnt->SCp.have_data_in,
SCp1437drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
SCp481drivers/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 */