tag | line | file | source code |
SCp | 306 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; |
SCp | 307 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = cmd->use_sg - 1; |
SCp | 308 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->SCp.buffer->address; |
SCp | 309 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
SCp | 311 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
SCp | 312 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = 0; |
SCp | 313 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->request_buffer; |
SCp | 314 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->request_bufflen; |
SCp | 1098 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.this_residual -= transferred; |
SCp | 1099 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.ptr += transferred; |
SCp | 1965 | drivers/scsi/NCR5380.c | if (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) { |
SCp | 1966 | drivers/scsi/NCR5380.c | ++cmd->SCp.buffer; |
SCp | 1967 | drivers/scsi/NCR5380.c | --cmd->SCp.buffers_residual; |
SCp | 1968 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
SCp | 1969 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = cmd->SCp.buffer->address; |
SCp | 1972 | drivers/scsi/NCR5380.c | instance->host_no, cmd->SCp.this_residual, |
SCp | 1973 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual); |
SCp | 2000 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual && !(cmd->SCp.this_residual % |
SCp | 2005 | drivers/scsi/NCR5380.c | &len, (unsigned char **) &cmd->SCp.ptr)) { |
SCp | 2019 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual -= transfersize - len; |
SCp | 2023 | drivers/scsi/NCR5380.c | (int *) &cmd->SCp.this_residual, (unsigned char **) |
SCp | 2024 | drivers/scsi/NCR5380.c | &cmd->SCp.ptr); |
SCp | 2030 | drivers/scsi/NCR5380.c | cmd->SCp.Message = tmp; |
SCp | 2072 | drivers/scsi/NCR5380.c | cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); |
SCp | 2109 | drivers/scsi/NCR5380.c | cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); |
SCp | 2110 | drivers/scsi/NCR5380.c | else if (cmd->SCp.Status != GOOD) |
SCp | 2115 | drivers/scsi/NCR5380.c | (cmd->SCp.Status == CHECK_CONDITION)) { |
SCp | 2127 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
SCp | 2128 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = 0; |
SCp | 2129 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->sense_buffer; |
SCp | 2130 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = sizeof(cmd->sense_buffer); |
SCp | 2338 | drivers/scsi/NCR5380.c | cmd->SCp.Status = tmp; |
SCp | 2545 | drivers/scsi/NCR5380.c | if (!(hostdata->connected->SCp.phase & SR_CD)) { |
SCp | 2547 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.this_residual -= transferred; |
SCp | 2548 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.ptr += transferred; |
SCp | 812 | drivers/scsi/aha152x.c | SCpnt->SCp.phase = not_issued; |
SCp | 815 | drivers/scsi/aha152x.c | SCpnt->SCp.buffer = (struct scatterlist *)SCpnt->request_buffer; |
SCp | 816 | drivers/scsi/aha152x.c | SCpnt->SCp.ptr = SCpnt->SCp.buffer->address; |
SCp | 817 | drivers/scsi/aha152x.c | SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; |
SCp | 818 | drivers/scsi/aha152x.c | SCpnt->SCp.buffers_residual = SCpnt->use_sg - 1; |
SCp | 822 | drivers/scsi/aha152x.c | SCpnt->SCp.ptr = (char *)SCpnt->request_buffer; |
SCp | 823 | drivers/scsi/aha152x.c | SCpnt->SCp.this_residual = SCpnt->request_bufflen; |
SCp | 824 | drivers/scsi/aha152x.c | SCpnt->SCp.buffer = NULL; |
SCp | 825 | drivers/scsi/aha152x.c | SCpnt->SCp.buffers_residual = 0; |
SCp | 828 | drivers/scsi/aha152x.c | SCpnt->SCp.Status = CHECK_CONDITION; |
SCp | 829 | drivers/scsi/aha152x.c | SCpnt->SCp.Message = 0; |
SCp | 830 | drivers/scsi/aha152x.c | SCpnt->SCp.have_data_in = 0; |
SCp | 831 | drivers/scsi/aha152x.c | SCpnt->SCp.sent_command = 0; |
SCp | 955 | drivers/scsi/aha152x.c | ptr->SCp.phase = in_selection|aborted; |
SCp | 1242 | drivers/scsi/aha152x.c | ( !current_SC || ( current_SC->SCp.phase & in_selection ) ) |
SCp | 1336 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~disconnected; |
SCp | 1367 | drivers/scsi/aha152x.c | current_SC->SCp.phase = in_selection; |
SCp | 1405 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & in_selection) |
SCp | 1430 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
SCp | 1448 | drivers/scsi/aha152x.c | if((aha152x_debug & debug_abort) && (current_SC->SCp.phase & aborted)) |
SCp | 1452 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~in_selection; |
SCp | 1453 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= in_other; |
SCp | 1487 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
SCp | 1512 | drivers/scsi/aha152x.c | current_SC->SCp.phase = |
SCp | 1513 | drivers/scsi/aha152x.c | (current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 ); |
SCp | 1527 | drivers/scsi/aha152x.c | if( current_SC->SCp.phase & aborted ) |
SCp | 1539 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.phase & sent_ident)) |
SCp | 1578 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= sent_ident; |
SCp | 1586 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
SCp | 1604 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.sent_command) ) |
SCp | 1702 | drivers/scsi/aha152x.c | current_SC->SCp.Message = GETPORT( SCSIBUS ); |
SCp | 1703 | drivers/scsi/aha152x.c | switch(current_SC->SCp.Message) |
SCp | 1710 | drivers/scsi/aha152x.c | current_SC->SCp.Message = 0; |
SCp | 1711 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= disconnected; |
SCp | 1829 | drivers/scsi/aha152x.c | printk("unsupported inbound message %x, ", current_SC->SCp.Message); |
SCp | 1842 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & disconnected) |
SCp | 1877 | drivers/scsi/aha152x.c | current_SC->SCp.Status = GETPORT( SCSIBUS ); |
SCp | 1885 | drivers/scsi/aha152x.c | print_status( current_SC->SCp.Status ); |
SCp | 1949 | drivers/scsi/aha152x.c | while( fifodata && current_SC->SCp.this_residual ) |
SCp | 1954 | drivers/scsi/aha152x.c | if (data_count > current_SC->SCp.this_residual) |
SCp | 1955 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual; |
SCp | 1968 | drivers/scsi/aha152x.c | *current_SC->SCp.ptr++ = GETPORT( DATAPORT ); |
SCp | 1969 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
SCp | 1975 | drivers/scsi/aha152x.c | insw( DATAPORT, current_SC->SCp.ptr, data_count ); |
SCp | 1986 | drivers/scsi/aha152x.c | data = (unsigned char *) current_SC->SCp.ptr; |
SCp | 1992 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
SCp | 1993 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
SCp | 1997 | drivers/scsi/aha152x.c | if (!current_SC->SCp.this_residual && |
SCp | 1998 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
SCp | 2001 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
SCp | 2002 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
SCp | 2003 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
SCp | 2004 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
SCp | 2005 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
SCp | 2006 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
SCp | 2034 | drivers/scsi/aha152x.c | if((aha152x_debug & debug_datai) && (current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)) |
SCp | 2036 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
SCp | 2037 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual); |
SCp | 2050 | drivers/scsi/aha152x.c | current_SC->SCp.have_data_in++; |
SCp | 2065 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
SCp | 2066 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ); |
SCp | 2087 | drivers/scsi/aha152x.c | (current_SC->SCp.this_residual || |
SCp | 2088 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) ) |
SCp | 2093 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
SCp | 2094 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
SCp | 2097 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual > 128 ? |
SCp | 2098 | drivers/scsi/aha152x.c | 128 : current_SC->SCp.this_residual ; |
SCp | 2109 | drivers/scsi/aha152x.c | SETPORT(DATAPORT, *current_SC->SCp.ptr++); |
SCp | 2110 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
SCp | 2116 | drivers/scsi/aha152x.c | outsw( DATAPORT, current_SC->SCp.ptr, data_count ); |
SCp | 2117 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
SCp | 2118 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
SCp | 2133 | drivers/scsi/aha152x.c | !current_SC->SCp.this_residual && |
SCp | 2134 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
SCp | 2137 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
SCp | 2138 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
SCp | 2139 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
SCp | 2140 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
SCp | 2141 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
SCp | 2142 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
SCp | 2146 | drivers/scsi/aha152x.c | if ( current_SC->SCp.this_residual || |
SCp | 2147 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ) |
SCp | 2156 | drivers/scsi/aha152x.c | current_SC->SCp.ptr -= data_count; |
SCp | 2157 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual += data_count; |
SCp | 2161 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
SCp | 2162 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
SCp | 2181 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
SCp | 2182 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
SCp | 2208 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
SCp | 2220 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
SCp | 2248 | drivers/scsi/aha152x.c | aha152x_done( (current_SC->SCp.Status & 0xff) |
SCp | 2249 | drivers/scsi/aha152x.c | | ( (current_SC->SCp.Message & 0xff) << 8) |
SCp | 2254 | drivers/scsi/aha152x.c | current_SC->SCp.Status, current_SC->SCp.Message); |
SCp | 2260 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= 1<<16 ; |
SCp | 2555 | drivers/scsi/aha152x.c | ptr->SCp.this_residual, ptr->SCp.buffers_residual); |
SCp | 2557 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & not_issued ) printk("not issued|"); |
SCp | 2558 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & in_selection ) printk("in selection|"); |
SCp | 2559 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & disconnected ) printk("disconnected|"); |
SCp | 2560 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & aborted ) printk("aborted|"); |
SCp | 2561 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & sent_ident ) printk("send_ident|"); |
SCp | 2562 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & in_other ) |
SCp | 2565 | drivers/scsi/aha152x.c | switch( (ptr->SCp.phase >> 16) & P_MASK ) |
SCp | 2590 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & (1<<16)) |
SCp | 673 | drivers/scsi/aha1542.c | SCpnt->SCp.Status++; |
SCp | 682 | drivers/scsi/aha1542.c | SCpnt->SCp.Status = 0; |
SCp | 683 | drivers/scsi/aha1542.c | while (!SCpnt->SCp.Status) |
SCp | 713 | drivers/scsi/aic7xxx.c | #define aic7xxx_error(cmd) ((cmd)->SCp.Status) |
SCp | 718 | drivers/scsi/aic7xxx.c | #define aic7xxx_status(cmd) ((cmd)->SCp.sent_command) |
SCp | 723 | drivers/scsi/aic7xxx.c | #define aic7xxx_position(cmd) ((cmd)->SCp.have_data_in) |
SCp | 778 | drivers/scsi/buslogic.c | scpnt->SCp.Status++; |
SCp | 789 | drivers/scsi/buslogic.c | scpnt->SCp.Status = 0; |
SCp | 790 | drivers/scsi/buslogic.c | while (!scpnt->SCp.Status) |
SCp | 107 | drivers/scsi/eata_pio.c | void IncStat(Scsi_Pointer *SCp, uint Increment) |
SCp | 109 | drivers/scsi/eata_pio.c | SCp->ptr+=Increment; |
SCp | 110 | drivers/scsi/eata_pio.c | if ((SCp->this_residual-=Increment)==0) |
SCp | 112 | drivers/scsi/eata_pio.c | if ((--SCp->buffers_residual)==0) SCp->Status=FALSE; |
SCp | 115 | drivers/scsi/eata_pio.c | SCp->buffer++; |
SCp | 116 | drivers/scsi/eata_pio.c | SCp->ptr=SCp->buffer->address; |
SCp | 117 | drivers/scsi/eata_pio.c | SCp->this_residual=SCp->buffer->length; |
SCp | 159 | drivers/scsi/eata_pio.c | while ((cmd->SCp.Status)&&((z>0)||(odd))) |
SCp | 163 | drivers/scsi/eata_pio.c | *(cmd->SCp.ptr)=zwickel>>8; |
SCp | 164 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
SCp | 167 | drivers/scsi/eata_pio.c | x=min(z,cmd->SCp.this_residual/2); |
SCp | 168 | drivers/scsi/eata_pio.c | insw(base+HA_RDATA,cmd->SCp.ptr,x); |
SCp | 170 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,2*x); |
SCp | 171 | drivers/scsi/eata_pio.c | if ((z>0)&&(cmd->SCp.this_residual==1)) |
SCp | 174 | drivers/scsi/eata_pio.c | *(cmd->SCp.ptr)=zwickel&0xff; |
SCp | 175 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); z--; |
SCp | 187 | drivers/scsi/eata_pio.c | while ((cmd->SCp.Status)&&((z>0)||(odd))) |
SCp | 191 | drivers/scsi/eata_pio.c | zwickel+=*(cmd->SCp.ptr)<<8; |
SCp | 192 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
SCp | 197 | drivers/scsi/eata_pio.c | x=min(z,cmd->SCp.this_residual/2); |
SCp | 198 | drivers/scsi/eata_pio.c | outsw(base+HA_RDATA,cmd->SCp.ptr,x); |
SCp | 200 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,2*x); |
SCp | 201 | drivers/scsi/eata_pio.c | if ((z>0)&&(cmd->SCp.this_residual==1)) |
SCp | 203 | drivers/scsi/eata_pio.c | zwickel=*(cmd->SCp.ptr); |
SCp | 205 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
SCp | 360 | drivers/scsi/eata_pio.c | cmd->SCp.buffers_residual=1; |
SCp | 361 | drivers/scsi/eata_pio.c | cmd->SCp.ptr = cmd->request_buffer; |
SCp | 362 | drivers/scsi/eata_pio.c | cmd->SCp.this_residual = cmd->request_bufflen; |
SCp | 363 | drivers/scsi/eata_pio.c | cmd->SCp.buffer = NULL; |
SCp | 365 | drivers/scsi/eata_pio.c | cmd->SCp.buffer = cmd->request_buffer; |
SCp | 366 | drivers/scsi/eata_pio.c | cmd->SCp.buffers_residual = cmd->use_sg; |
SCp | 367 | drivers/scsi/eata_pio.c | cmd->SCp.ptr = cmd->SCp.buffer->address; |
SCp | 368 | drivers/scsi/eata_pio.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
SCp | 370 | drivers/scsi/eata_pio.c | cmd->SCp.Status = (cmd->SCp.this_residual != 0); /* TRUE as long as bytes |
SCp | 1136 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & aborted) { |
SCp | 1148 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & in_arbitration) { |
SCp | 1157 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_selection; |
SCp | 1170 | drivers/scsi/fdomain.c | } else if (current_SC->SCp.phase & in_selection) { |
SCp | 1188 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_other; |
SCp | 1206 | drivers/scsi/fdomain.c | outb( current_SC->cmnd[current_SC->SCp.sent_command++], |
SCp | 1210 | drivers/scsi/fdomain.c | current_SC->cmnd[ current_SC->SCp.sent_command - 1] ); |
SCp | 1214 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
SCp | 1215 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
SCp | 1220 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
SCp | 1221 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
SCp | 1226 | drivers/scsi/fdomain.c | current_SC->SCp.Status = inb( Read_SCSI_Data_port ); |
SCp | 1228 | drivers/scsi/fdomain.c | printk( "Status = %x, ", current_SC->SCp.Status ); |
SCp | 1231 | drivers/scsi/fdomain.c | if (current_SC->SCp.Status && current_SC->SCp.Status != 2) { |
SCp | 1235 | drivers/scsi/fdomain.c | current_SC->SCp.Status ); |
SCp | 1243 | drivers/scsi/fdomain.c | current_SC->SCp.Message = inb( Read_SCSI_Data_port ); |
SCp | 1245 | drivers/scsi/fdomain.c | printk( "Message = %x, ", current_SC->SCp.Message ); |
SCp | 1247 | drivers/scsi/fdomain.c | if (!current_SC->SCp.Message) ++done; |
SCp | 1249 | drivers/scsi/fdomain.c | if (current_SC->SCp.Message) { |
SCp | 1250 | drivers/scsi/fdomain.c | printk( "fdomain: message = %x\n", current_SC->SCp.Message ); |
SCp | 1258 | drivers/scsi/fdomain.c | && !current_SC->SCp.have_data_in |
SCp | 1259 | drivers/scsi/fdomain.c | && (current_SC->SCp.sent_command |
SCp | 1408 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
SCp | 1415 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
SCp | 1421 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == -1) { /* DATA OUT */ |
SCp | 1426 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
SCp | 1427 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
SCp | 1433 | drivers/scsi/fdomain.c | outb( *current_SC->SCp.ptr++, Write_FIFO_port ); |
SCp | 1434 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
SCp | 1437 | drivers/scsi/fdomain.c | outsw( Write_FIFO_port, current_SC->SCp.ptr, data_count ); |
SCp | 1438 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
SCp | 1439 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
SCp | 1442 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual) { |
SCp | 1443 | drivers/scsi/fdomain.c | if (current_SC->SCp.buffers_residual) { |
SCp | 1444 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
SCp | 1445 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
SCp | 1446 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
SCp | 1447 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
SCp | 1454 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == 1) { /* DATA IN */ |
SCp | 1459 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
SCp | 1460 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
SCp | 1466 | drivers/scsi/fdomain.c | *current_SC->SCp.ptr++ = inb( Read_FIFO_port ); |
SCp | 1467 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
SCp | 1470 | drivers/scsi/fdomain.c | insw( Read_FIFO_port, current_SC->SCp.ptr, data_count ); |
SCp | 1471 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
SCp | 1472 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
SCp | 1475 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual |
SCp | 1476 | drivers/scsi/fdomain.c | && current_SC->SCp.buffers_residual) { |
SCp | 1477 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
SCp | 1478 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
SCp | 1479 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
SCp | 1480 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
SCp | 1487 | drivers/scsi/fdomain.c | printk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in ); |
SCp | 1491 | drivers/scsi/fdomain.c | if (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) { |
SCp | 1520 | drivers/scsi/fdomain.c | my_done( (current_SC->SCp.Status & 0xff) |
SCp | 1521 | drivers/scsi/fdomain.c | | ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) ); |
SCp | 1527 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & disconnect) { |
SCp | 1561 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = |
SCp | 1563 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
SCp | 1564 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
SCp | 1565 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = current_SC->use_sg - 1; |
SCp | 1567 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = (char *)current_SC->request_buffer; |
SCp | 1568 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->request_bufflen; |
SCp | 1569 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = NULL; |
SCp | 1570 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = 0; |
SCp | 1574 | drivers/scsi/fdomain.c | current_SC->SCp.Status = 0; |
SCp | 1575 | drivers/scsi/fdomain.c | current_SC->SCp.Message = 0; |
SCp | 1576 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 0; |
SCp | 1577 | drivers/scsi/fdomain.c | current_SC->SCp.sent_command = 0; |
SCp | 1578 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_arbitration; |
SCp | 1628 | drivers/scsi/fdomain.c | switch (SCpnt->SCp.phase) { |
SCp | 1636 | drivers/scsi/fdomain.c | SCpnt->SCp.phase, |
SCp | 1642 | drivers/scsi/fdomain.c | SCpnt->SCp.sent_command, |
SCp | 1643 | drivers/scsi/fdomain.c | SCpnt->SCp.have_data_in, |
SCp | 1708 | drivers/scsi/fdomain.c | current_SC->SCp.phase |= aborted; |
SCp | 406 | drivers/scsi/scsi.h | Scsi_Pointer SCp; /* Scratchpad used by some host adapters */ |
SCp | 798 | drivers/scsi/wd7000.c | SCpnt->SCp.phase = 0; |
SCp | 868 | drivers/scsi/wd7000.c | if (--(SCpnt->SCp.phase) <= 0) { /* all scbs are done */ |
SCp | 903 | drivers/scsi/wd7000.c | SCpnt->SCp.phase = 1; |
SCp | 948 | drivers/scsi/wd7000.c | while (SCpnt->SCp.phase > 0) barrier(); /* phase counts scbs down to 0 */ |