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;
SCp731drivers/scsi/aha152x.cSCpnt->SCp.phase = not_issued;
SCp734drivers/scsi/aha152x.cSCpnt->SCp.buffer           = (struct scatterlist *)SCpnt->request_buffer;
SCp735drivers/scsi/aha152x.cSCpnt->SCp.ptr              = SCpnt->SCp.buffer->address;
SCp736drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->SCp.buffer->length;
SCp737drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = SCpnt->use_sg - 1;
SCp741drivers/scsi/aha152x.cSCpnt->SCp.ptr              = (char *)SCpnt->request_buffer;
SCp742drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->request_bufflen;
SCp743drivers/scsi/aha152x.cSCpnt->SCp.buffer           = NULL;
SCp744drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = 0;
SCp747drivers/scsi/aha152x.cSCpnt->SCp.Status              = CHECK_CONDITION;
SCp748drivers/scsi/aha152x.cSCpnt->SCp.Message             = 0;
SCp749drivers/scsi/aha152x.cSCpnt->SCp.have_data_in        = 0;
SCp750drivers/scsi/aha152x.cSCpnt->SCp.sent_command        = 0;
SCp847drivers/scsi/aha152x.cptr->SCp.phase = in_selection|aborted;
SCp1086drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
SCp1172drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
SCp1200drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
SCp1236drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
SCp1261drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1278drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1282drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
SCp1283drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
SCp1316drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1340drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
SCp1341drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
SCp1354drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
SCp1365drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
SCp1402drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
SCp1410drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp1427drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
SCp1503drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIBUS );
SCp1504drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
SCp1510drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
SCp1511drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
SCp1620drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
SCp1633drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
SCp1665drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIBUS );
SCp1671drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
SCp1730drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
SCp1735drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
SCp1736drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
SCp1748drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
SCp1749drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1755drivers/scsi/aha152x.cinsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp1765drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
SCp1771drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1772drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1776drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
SCp1777drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1780drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1781drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1782drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1783drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1784drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1785drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1807drivers/scsi/aha152x.cif(current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)
SCp1809drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
SCp1810drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
SCp1822drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
SCp1835drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1836drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
SCp1857drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
SCp1858drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
SCp1862drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1863drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp1866drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
SCp1867drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
SCp1877drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
SCp1878drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1884drivers/scsi/aha152x.coutsw( DATAPORT, current_SC->SCp.ptr, data_count );
SCp1885drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1886drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1900drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
SCp1901drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1904drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1905drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1906drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1907drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1908drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1909drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1913drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
SCp1914drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
SCp1923drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
SCp1924drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
SCp1927drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1928drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
SCp1949drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1950drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp1974drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp1986drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp2013drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
SCp2014drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
SCp2019drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
SCp2025drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
SCp2311drivers/scsi/aha152x.cptr->SCp.this_residual, ptr->SCp.buffers_residual);
SCp2313drivers/scsi/aha152x.cif( ptr->SCp.phase & not_issued   )  printk("not issued|");
SCp2314drivers/scsi/aha152x.cif( ptr->SCp.phase & in_selection )  printk("in selection|");
SCp2315drivers/scsi/aha152x.cif( ptr->SCp.phase & disconnected )  printk("disconnected|");
SCp2316drivers/scsi/aha152x.cif( ptr->SCp.phase & aborted      )  printk("aborted|");
SCp2317drivers/scsi/aha152x.cif( ptr->SCp.phase & sent_ident   )  printk("send_ident|");
SCp2318drivers/scsi/aha152x.cif( ptr->SCp.phase & in_other )
SCp2321drivers/scsi/aha152x.cswitch( (ptr->SCp.phase >> 16) & P_MASK )
SCp2346drivers/scsi/aha152x.cif(ptr->SCp.phase & (1<<16))
SCp555drivers/scsi/aha1542.cSCpnt->SCp.Status++;
SCp564drivers/scsi/aha1542.cSCpnt->SCp.Status = 0;
SCp565drivers/scsi/aha1542.cwhile (!SCpnt->SCp.Status);
SCp784drivers/scsi/fdomain.cif (current_SC->SCp.phase & aborted) {
SCp796drivers/scsi/fdomain.cif (current_SC->SCp.phase & in_arbitration) {
SCp805drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_selection;
SCp818drivers/scsi/fdomain.c} else if (current_SC->SCp.phase & in_selection) {
SCp836drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_other;
SCp854drivers/scsi/fdomain.coutb( current_SC->cmnd[current_SC->SCp.sent_command++],
SCp858drivers/scsi/fdomain.ccurrent_SC->cmnd[ current_SC->SCp.sent_command - 1] );
SCp862drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
SCp863drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
SCp868drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
SCp869drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp874drivers/scsi/fdomain.ccurrent_SC->SCp.Status = inb( Read_SCSI_Data_port );
SCp876drivers/scsi/fdomain.cprintk( "Status = %x, ", current_SC->SCp.Status );
SCp879drivers/scsi/fdomain.cif (current_SC->SCp.Status && current_SC->SCp.Status != 2) {
SCp883drivers/scsi/fdomain.ccurrent_SC->SCp.Status );
SCp891drivers/scsi/fdomain.ccurrent_SC->SCp.Message = inb( Read_SCSI_Data_port );
SCp893drivers/scsi/fdomain.cprintk( "Message = %x, ", current_SC->SCp.Message );
SCp895drivers/scsi/fdomain.cif (!current_SC->SCp.Message) ++done;
SCp897drivers/scsi/fdomain.cif (current_SC->SCp.Message) {
SCp899drivers/scsi/fdomain.ccurrent_SC->SCp.Message );
SCp907drivers/scsi/fdomain.c&& !current_SC->SCp.have_data_in
SCp908drivers/scsi/fdomain.c&& (current_SC->SCp.sent_command
SCp1057drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
SCp1064drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp1070drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
SCp1075drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1076drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1082drivers/scsi/fdomain.coutb( *current_SC->SCp.ptr++, Write_FIFO_port );
SCp1083drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1086drivers/scsi/fdomain.coutsw( Write_FIFO_port, current_SC->SCp.ptr, data_count );
SCp1087drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
SCp1088drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1091drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual) {
SCp1092drivers/scsi/fdomain.cif (current_SC->SCp.buffers_residual) {
SCp1093drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
SCp1094drivers/scsi/fdomain.c++current_SC->SCp.buffer;
SCp1095drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
SCp1096drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
SCp1103drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == 1) { /* DATA IN */
SCp1108drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1109drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1115drivers/scsi/fdomain.c*current_SC->SCp.ptr++ = inb( Read_FIFO_port );
SCp1116drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1119drivers/scsi/fdomain.cinsw( Read_FIFO_port, current_SC->SCp.ptr, data_count );
SCp1120drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
SCp1121drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1124drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual
SCp1125drivers/scsi/fdomain.c&& current_SC->SCp.buffers_residual) {
SCp1126drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
SCp1127drivers/scsi/fdomain.c++current_SC->SCp.buffer;
SCp1128drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
SCp1129drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
SCp1136drivers/scsi/fdomain.cprintk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in );
SCp1140drivers/scsi/fdomain.cif (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) {
SCp1169drivers/scsi/fdomain.cmy_done( (current_SC->SCp.Status & 0xff)
SCp1170drivers/scsi/fdomain.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) );
SCp1176drivers/scsi/fdomain.cif (current_SC->SCp.phase & disconnect) {
SCp1210drivers/scsi/fdomain.ccurrent_SC->SCp.buffer =
SCp1212drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = current_SC->SCp.buffer->address;
SCp1213drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->SCp.buffer->length;
SCp1214drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = current_SC->use_sg - 1;
SCp1216drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = (char *)current_SC->request_buffer;
SCp1217drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->request_bufflen;
SCp1218drivers/scsi/fdomain.ccurrent_SC->SCp.buffer           = NULL;
SCp1219drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = 0;
SCp1223drivers/scsi/fdomain.ccurrent_SC->SCp.Status              = 0;
SCp1224drivers/scsi/fdomain.ccurrent_SC->SCp.Message             = 0;
SCp1225drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in        = 0;
SCp1226drivers/scsi/fdomain.ccurrent_SC->SCp.sent_command        = 0;
SCp1227drivers/scsi/fdomain.ccurrent_SC->SCp.phase               = in_arbitration;
SCp1272drivers/scsi/fdomain.cswitch (SCpnt->SCp.phase) {
SCp1280drivers/scsi/fdomain.cSCpnt->SCp.phase,
SCp1286drivers/scsi/fdomain.cSCpnt->SCp.sent_command,
SCp1287drivers/scsi/fdomain.cSCpnt->SCp.have_data_in,
SCp1355drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
SCp398drivers/scsi/scsi.hScsi_Pointer SCp;   /* Scratchpad used by some host adapters */
SCp288drivers/scsi/wd7000.cSCpnt->SCp.phase = 0;
SCp329drivers/scsi/wd7000.cif (--(SCpnt->SCp.phase) <= 0)  {  /* all scbs for SCpnt are done */
SCp365drivers/scsi/wd7000.cSCpnt->SCp.phase = 1;
SCp423drivers/scsi/wd7000.cwhile (SCpnt->SCp.phase > 0);  /* phase counts scbs down to 0 */