taglinefilesource code
SCp259drivers/scsi/NCR5380.ccmd->SCp.buffer = (struct scatterlist *) cmd->buffer;
SCp260drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = cmd->use_sg - 1;
SCp261drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->SCp.buffer->address;
SCp262drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->SCp.buffer->length;
SCp264drivers/scsi/NCR5380.ccmd->SCp.buffer = NULL;
SCp265drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = 0;
SCp266drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->request_buffer;
SCp267drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->request_bufflen;
SCp1496drivers/scsi/NCR5380.cif (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) {
SCp1497drivers/scsi/NCR5380.c++cmd->SCp.buffer;
SCp1498drivers/scsi/NCR5380.c--cmd->SCp.buffers_residual;
SCp1499drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->SCp.buffer->length;
SCp1500drivers/scsi/NCR5380.ccmd->SCp.ptr = cmd->SCp.buffer->address;
SCp1503drivers/scsi/NCR5380.cinstance->host_no, cmd->SCp.this_residual,
SCp1504drivers/scsi/NCR5380.ccmd->SCp.buffers_residual);
SCp1520drivers/scsi/NCR5380.ccmd->SCp.this_residual && !(cmd->SCp.this_residual % 
SCp1524drivers/scsi/NCR5380.c&len, (unsigned char **) &cmd->SCp.ptr)) {
SCp1536drivers/scsi/NCR5380.ccmd->SCp.this_residual -= cmd->transfersize;
SCp1540drivers/scsi/NCR5380.c(int *) &cmd->SCp.this_residual, (unsigned char **)
SCp1541drivers/scsi/NCR5380.c&cmd->SCp.ptr);
SCp1554drivers/scsi/NCR5380.ccmd->SCp.Message = tmp;
SCp1592drivers/scsi/NCR5380.ccmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 
SCp1616drivers/scsi/NCR5380.ccmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 
SCp1617drivers/scsi/NCR5380.celse if (cmd->SCp.Status != GOOD)
SCp1621drivers/scsi/NCR5380.c(cmd->SCp.Status == CHECK_CONDITION)) {
SCp1633drivers/scsi/NCR5380.ccmd->SCp.buffer = NULL;
SCp1634drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = 0;
SCp1635drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->sense_buffer;
SCp1636drivers/scsi/NCR5380.ccmd->SCp.this_residual = sizeof(cmd->sense_buffer);
SCp1752drivers/scsi/NCR5380.ccmd->SCp.Status = tmp;
SCp1957drivers/scsi/NCR5380.cif (!(hostdata->connected->SCp.phase & SR_CD)) {
SCp1959drivers/scsi/NCR5380.chostdata->connected->SCp.this_residual -= transferred;
SCp1960drivers/scsi/NCR5380.chostdata->connected->SCp.ptr += transferred;
SCp742drivers/scsi/aha152x.cSCpnt->SCp.phase = not_issued;
SCp745drivers/scsi/aha152x.cSCpnt->SCp.buffer           = (struct scatterlist *)SCpnt->request_buffer;
SCp746drivers/scsi/aha152x.cSCpnt->SCp.ptr              = SCpnt->SCp.buffer->address;
SCp747drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->SCp.buffer->length;
SCp748drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = SCpnt->use_sg - 1;
SCp752drivers/scsi/aha152x.cSCpnt->SCp.ptr              = (char *)SCpnt->request_buffer;
SCp753drivers/scsi/aha152x.cSCpnt->SCp.this_residual    = SCpnt->request_bufflen;
SCp754drivers/scsi/aha152x.cSCpnt->SCp.buffer           = NULL;
SCp755drivers/scsi/aha152x.cSCpnt->SCp.buffers_residual = 0;
SCp758drivers/scsi/aha152x.cSCpnt->SCp.Status              = CHECK_CONDITION;
SCp759drivers/scsi/aha152x.cSCpnt->SCp.Message             = 0;
SCp760drivers/scsi/aha152x.cSCpnt->SCp.have_data_in        = 0;
SCp761drivers/scsi/aha152x.cSCpnt->SCp.sent_command        = 0;
SCp858drivers/scsi/aha152x.cptr->SCp.phase = in_selection|aborted;
SCp1097drivers/scsi/aha152x.c( !current_SC || ( current_SC->SCp.phase & in_selection ) )
SCp1183drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~disconnected;
SCp1211drivers/scsi/aha152x.ccurrent_SC->SCp.phase = in_selection;
SCp1247drivers/scsi/aha152x.cif(current_SC->SCp.phase & in_selection)
SCp1272drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1289drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1293drivers/scsi/aha152x.ccurrent_SC->SCp.phase &= ~in_selection;
SCp1294drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= in_other;
SCp1327drivers/scsi/aha152x.cif(current_SC->SCp.phase & aborted)
SCp1351drivers/scsi/aha152x.ccurrent_SC->SCp.phase =
SCp1352drivers/scsi/aha152x.c(current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );
SCp1365drivers/scsi/aha152x.cif( current_SC->SCp.phase & aborted )
SCp1376drivers/scsi/aha152x.cif( !(current_SC->SCp.phase & sent_ident))
SCp1413drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= sent_ident;
SCp1421drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp1438drivers/scsi/aha152x.cif( !(current_SC->SCp.sent_command) )
SCp1514drivers/scsi/aha152x.ccurrent_SC->SCp.Message = GETPORT( SCSIBUS );
SCp1515drivers/scsi/aha152x.cswitch(current_SC->SCp.Message)
SCp1521drivers/scsi/aha152x.ccurrent_SC->SCp.Message = 0;
SCp1522drivers/scsi/aha152x.ccurrent_SC->SCp.phase   |= disconnected;
SCp1631drivers/scsi/aha152x.cprintk("unsupported inbound message %x, ", current_SC->SCp.Message);
SCp1644drivers/scsi/aha152x.cif(current_SC->SCp.phase & disconnected)
SCp1676drivers/scsi/aha152x.ccurrent_SC->SCp.Status = GETPORT( SCSIBUS );
SCp1682drivers/scsi/aha152x.cprint_status( current_SC->SCp.Status );
SCp1741drivers/scsi/aha152x.cwhile( fifodata && current_SC->SCp.this_residual )
SCp1746drivers/scsi/aha152x.cif (data_count > current_SC->SCp.this_residual)
SCp1747drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual;
SCp1759drivers/scsi/aha152x.c*current_SC->SCp.ptr++ = GETPORT( DATAPORT );
SCp1760drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1766drivers/scsi/aha152x.cinsw( current_SC->SCp.ptr, data_count, DATAPORT );
SCp1776drivers/scsi/aha152x.cdata = (unsigned char *) current_SC->SCp.ptr;
SCp1782drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1783drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1787drivers/scsi/aha152x.cif (!current_SC->SCp.this_residual &&
SCp1788drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1791drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1792drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1793drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1794drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1795drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1796drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1818drivers/scsi/aha152x.cif(current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)
SCp1820drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual, 
SCp1821drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual);
SCp1833drivers/scsi/aha152x.ccurrent_SC->SCp.have_data_in++;
SCp1846drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1847drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual );
SCp1868drivers/scsi/aha152x.c(current_SC->SCp.this_residual ||
SCp1869drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual) )
SCp1873drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1874drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp1877drivers/scsi/aha152x.cdata_count = current_SC->SCp.this_residual > 128 ?
SCp1878drivers/scsi/aha152x.c128 : current_SC->SCp.this_residual ;
SCp1888drivers/scsi/aha152x.cSETPORT(DATAPORT, *current_SC->SCp.ptr++);
SCp1889drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual--;
SCp1895drivers/scsi/aha152x.coutsw( current_SC->SCp.ptr, data_count, DATAPORT );
SCp1896drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           += 2 * data_count;
SCp1897drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1911drivers/scsi/aha152x.c!current_SC->SCp.this_residual &&
SCp1912drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual)
SCp1915drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual--;
SCp1916drivers/scsi/aha152x.ccurrent_SC->SCp.buffer++;
SCp1917drivers/scsi/aha152x.ccurrent_SC->SCp.ptr =
SCp1918drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->address;
SCp1919drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual =
SCp1920drivers/scsi/aha152x.ccurrent_SC->SCp.buffer->length;
SCp1924drivers/scsi/aha152x.cif ( current_SC->SCp.this_residual ||
SCp1925drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual )
SCp1934drivers/scsi/aha152x.ccurrent_SC->SCp.ptr           -= data_count;
SCp1935drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual += data_count;
SCp1938drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1939drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual,
SCp1960drivers/scsi/aha152x.ccurrent_SC->SCp.this_residual,
SCp1961drivers/scsi/aha152x.ccurrent_SC->SCp.buffers_residual);
SCp1985drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp1997drivers/scsi/aha152x.ccurrent_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));
SCp2024drivers/scsi/aha152x.caha152x_done(   (current_SC->SCp.Status  & 0xff)
SCp2025drivers/scsi/aha152x.c| ( (current_SC->SCp.Message & 0xff) << 8)
SCp2030drivers/scsi/aha152x.ccurrent_SC->SCp.Status, current_SC->SCp.Message);
SCp2036drivers/scsi/aha152x.ccurrent_SC->SCp.phase |= 1<<16 ;
SCp2322drivers/scsi/aha152x.cptr->SCp.this_residual, ptr->SCp.buffers_residual);
SCp2324drivers/scsi/aha152x.cif( ptr->SCp.phase & not_issued   )  printk("not issued|");
SCp2325drivers/scsi/aha152x.cif( ptr->SCp.phase & in_selection )  printk("in selection|");
SCp2326drivers/scsi/aha152x.cif( ptr->SCp.phase & disconnected )  printk("disconnected|");
SCp2327drivers/scsi/aha152x.cif( ptr->SCp.phase & aborted      )  printk("aborted|");
SCp2328drivers/scsi/aha152x.cif( ptr->SCp.phase & sent_ident   )  printk("send_ident|");
SCp2329drivers/scsi/aha152x.cif( ptr->SCp.phase & in_other )
SCp2332drivers/scsi/aha152x.cswitch( (ptr->SCp.phase >> 16) & P_MASK )
SCp2357drivers/scsi/aha152x.cif(ptr->SCp.phase & (1<<16))
SCp553drivers/scsi/aha1542.cSCpnt->SCp.Status++;
SCp562drivers/scsi/aha1542.cSCpnt->SCp.Status = 0;
SCp563drivers/scsi/aha1542.cwhile (!SCpnt->SCp.Status);
SCp814drivers/scsi/fdomain.cif (current_SC->SCp.phase & aborted) {
SCp826drivers/scsi/fdomain.cif (current_SC->SCp.phase & in_arbitration) {
SCp835drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_selection;
SCp848drivers/scsi/fdomain.c} else if (current_SC->SCp.phase & in_selection) {
SCp866drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_other;
SCp884drivers/scsi/fdomain.coutb( current_SC->cmnd[current_SC->SCp.sent_command++],
SCp888drivers/scsi/fdomain.ccurrent_SC->cmnd[ current_SC->SCp.sent_command - 1] );
SCp892drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
SCp893drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
SCp898drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
SCp899drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp904drivers/scsi/fdomain.ccurrent_SC->SCp.Status = inb( Read_SCSI_Data_port );
SCp906drivers/scsi/fdomain.cprintk( "Status = %x, ", current_SC->SCp.Status );
SCp909drivers/scsi/fdomain.cif (current_SC->SCp.Status && current_SC->SCp.Status != 2) {
SCp913drivers/scsi/fdomain.ccurrent_SC->SCp.Status );
SCp921drivers/scsi/fdomain.ccurrent_SC->SCp.Message = inb( Read_SCSI_Data_port );
SCp923drivers/scsi/fdomain.cprintk( "Message = %x, ", current_SC->SCp.Message );
SCp925drivers/scsi/fdomain.cif (!current_SC->SCp.Message) ++done;
SCp927drivers/scsi/fdomain.cif (current_SC->SCp.Message) {
SCp929drivers/scsi/fdomain.ccurrent_SC->SCp.Message );
SCp937drivers/scsi/fdomain.c&& !current_SC->SCp.have_data_in
SCp938drivers/scsi/fdomain.c&& (current_SC->SCp.sent_command
SCp1087drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
SCp1094drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
SCp1100drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
SCp1105drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1106drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1112drivers/scsi/fdomain.coutb( *current_SC->SCp.ptr++, Write_FIFO_port );
SCp1113drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1116drivers/scsi/fdomain.coutsw( current_SC->SCp.ptr, data_count, Write_FIFO_port );
SCp1117drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
SCp1118drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1121drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual) {
SCp1122drivers/scsi/fdomain.cif (current_SC->SCp.buffers_residual) {
SCp1123drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
SCp1124drivers/scsi/fdomain.c++current_SC->SCp.buffer;
SCp1125drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
SCp1126drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
SCp1133drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == 1) { /* DATA IN */
SCp1138drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
SCp1139drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
SCp1145drivers/scsi/fdomain.c*current_SC->SCp.ptr++ = inb( Read_FIFO_port );
SCp1146drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
SCp1149drivers/scsi/fdomain.cinsw( current_SC->SCp.ptr, data_count, Read_FIFO_port );
SCp1150drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
SCp1151drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
SCp1154drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual
SCp1155drivers/scsi/fdomain.c&& current_SC->SCp.buffers_residual) {
SCp1156drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
SCp1157drivers/scsi/fdomain.c++current_SC->SCp.buffer;
SCp1158drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
SCp1159drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
SCp1166drivers/scsi/fdomain.cprintk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in );
SCp1170drivers/scsi/fdomain.cif (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) {
SCp1199drivers/scsi/fdomain.cmy_done( (current_SC->SCp.Status & 0xff)
SCp1200drivers/scsi/fdomain.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) );
SCp1206drivers/scsi/fdomain.cif (current_SC->SCp.phase & disconnect) {
SCp1240drivers/scsi/fdomain.ccurrent_SC->SCp.buffer =
SCp1242drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = current_SC->SCp.buffer->address;
SCp1243drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->SCp.buffer->length;
SCp1244drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = current_SC->use_sg - 1;
SCp1246drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = (char *)current_SC->request_buffer;
SCp1247drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->request_bufflen;
SCp1248drivers/scsi/fdomain.ccurrent_SC->SCp.buffer           = NULL;
SCp1249drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = 0;
SCp1253drivers/scsi/fdomain.ccurrent_SC->SCp.Status              = 0;
SCp1254drivers/scsi/fdomain.ccurrent_SC->SCp.Message             = 0;
SCp1255drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in        = 0;
SCp1256drivers/scsi/fdomain.ccurrent_SC->SCp.sent_command        = 0;
SCp1257drivers/scsi/fdomain.ccurrent_SC->SCp.phase               = in_arbitration;
SCp1302drivers/scsi/fdomain.cswitch (SCpnt->SCp.phase) {
SCp1310drivers/scsi/fdomain.cSCpnt->SCp.phase,
SCp1316drivers/scsi/fdomain.cSCpnt->SCp.sent_command,
SCp1317drivers/scsi/fdomain.cSCpnt->SCp.have_data_in,
SCp1385drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
SCp397drivers/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 */