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 | 820 | drivers/scsi/aha152x.c | SCpnt->SCp.phase = not_issued; |
SCp | 823 | drivers/scsi/aha152x.c | SCpnt->SCp.buffer = (struct scatterlist *)SCpnt->request_buffer; |
SCp | 824 | drivers/scsi/aha152x.c | SCpnt->SCp.ptr = SCpnt->SCp.buffer->address; |
SCp | 825 | drivers/scsi/aha152x.c | SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; |
SCp | 826 | drivers/scsi/aha152x.c | SCpnt->SCp.buffers_residual = SCpnt->use_sg - 1; |
SCp | 830 | drivers/scsi/aha152x.c | SCpnt->SCp.ptr = (char *)SCpnt->request_buffer; |
SCp | 831 | drivers/scsi/aha152x.c | SCpnt->SCp.this_residual = SCpnt->request_bufflen; |
SCp | 832 | drivers/scsi/aha152x.c | SCpnt->SCp.buffer = NULL; |
SCp | 833 | drivers/scsi/aha152x.c | SCpnt->SCp.buffers_residual = 0; |
SCp | 836 | drivers/scsi/aha152x.c | SCpnt->SCp.Status = CHECK_CONDITION; |
SCp | 837 | drivers/scsi/aha152x.c | SCpnt->SCp.Message = 0; |
SCp | 838 | drivers/scsi/aha152x.c | SCpnt->SCp.have_data_in = 0; |
SCp | 839 | drivers/scsi/aha152x.c | SCpnt->SCp.sent_command = 0; |
SCp | 963 | drivers/scsi/aha152x.c | ptr->SCp.phase = in_selection|aborted; |
SCp | 1251 | drivers/scsi/aha152x.c | ( !current_SC || ( current_SC->SCp.phase & in_selection ) ) |
SCp | 1345 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~disconnected; |
SCp | 1376 | drivers/scsi/aha152x.c | current_SC->SCp.phase = in_selection; |
SCp | 1414 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & in_selection) |
SCp | 1439 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
SCp | 1457 | drivers/scsi/aha152x.c | if((aha152x_debug & debug_abort) && (current_SC->SCp.phase & aborted)) |
SCp | 1461 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~in_selection; |
SCp | 1462 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= in_other; |
SCp | 1496 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
SCp | 1521 | drivers/scsi/aha152x.c | current_SC->SCp.phase = |
SCp | 1522 | drivers/scsi/aha152x.c | (current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 ); |
SCp | 1536 | drivers/scsi/aha152x.c | if( current_SC->SCp.phase & aborted ) |
SCp | 1548 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.phase & sent_ident)) |
SCp | 1587 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= sent_ident; |
SCp | 1595 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
SCp | 1613 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.sent_command) ) |
SCp | 1711 | drivers/scsi/aha152x.c | current_SC->SCp.Message = GETPORT( SCSIBUS ); |
SCp | 1712 | drivers/scsi/aha152x.c | switch(current_SC->SCp.Message) |
SCp | 1719 | drivers/scsi/aha152x.c | current_SC->SCp.Message = 0; |
SCp | 1720 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= disconnected; |
SCp | 1838 | drivers/scsi/aha152x.c | printk("unsupported inbound message %x, ", current_SC->SCp.Message); |
SCp | 1851 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & disconnected) |
SCp | 1886 | drivers/scsi/aha152x.c | current_SC->SCp.Status = GETPORT( SCSIBUS ); |
SCp | 1894 | drivers/scsi/aha152x.c | print_status( current_SC->SCp.Status ); |
SCp | 1958 | drivers/scsi/aha152x.c | while( fifodata && current_SC->SCp.this_residual ) |
SCp | 1963 | drivers/scsi/aha152x.c | if (data_count > current_SC->SCp.this_residual) |
SCp | 1964 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual; |
SCp | 1977 | drivers/scsi/aha152x.c | *current_SC->SCp.ptr++ = GETPORT( DATAPORT ); |
SCp | 1978 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
SCp | 1984 | drivers/scsi/aha152x.c | insw( DATAPORT, current_SC->SCp.ptr, data_count ); |
SCp | 1995 | drivers/scsi/aha152x.c | data = (unsigned char *) current_SC->SCp.ptr; |
SCp | 2001 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
SCp | 2002 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
SCp | 2006 | drivers/scsi/aha152x.c | if (!current_SC->SCp.this_residual && |
SCp | 2007 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
SCp | 2010 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
SCp | 2011 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
SCp | 2012 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
SCp | 2013 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
SCp | 2014 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
SCp | 2015 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
SCp | 2043 | drivers/scsi/aha152x.c | if((aha152x_debug & debug_datai) && (current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)) |
SCp | 2045 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
SCp | 2046 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual); |
SCp | 2059 | drivers/scsi/aha152x.c | current_SC->SCp.have_data_in++; |
SCp | 2074 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
SCp | 2075 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ); |
SCp | 2096 | drivers/scsi/aha152x.c | (current_SC->SCp.this_residual || |
SCp | 2097 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) ) |
SCp | 2102 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
SCp | 2103 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
SCp | 2106 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual > 128 ? |
SCp | 2107 | drivers/scsi/aha152x.c | 128 : current_SC->SCp.this_residual ; |
SCp | 2118 | drivers/scsi/aha152x.c | SETPORT(DATAPORT, *current_SC->SCp.ptr++); |
SCp | 2119 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
SCp | 2125 | drivers/scsi/aha152x.c | outsw( DATAPORT, current_SC->SCp.ptr, data_count ); |
SCp | 2126 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
SCp | 2127 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
SCp | 2142 | drivers/scsi/aha152x.c | !current_SC->SCp.this_residual && |
SCp | 2143 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
SCp | 2146 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
SCp | 2147 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
SCp | 2148 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
SCp | 2149 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
SCp | 2150 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
SCp | 2151 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
SCp | 2155 | drivers/scsi/aha152x.c | if ( current_SC->SCp.this_residual || |
SCp | 2156 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ) |
SCp | 2165 | drivers/scsi/aha152x.c | current_SC->SCp.ptr -= data_count; |
SCp | 2166 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual += data_count; |
SCp | 2170 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
SCp | 2171 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
SCp | 2190 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
SCp | 2191 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
SCp | 2217 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
SCp | 2229 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
SCp | 2257 | drivers/scsi/aha152x.c | aha152x_done( (current_SC->SCp.Status & 0xff) |
SCp | 2258 | drivers/scsi/aha152x.c | | ( (current_SC->SCp.Message & 0xff) << 8) |
SCp | 2263 | drivers/scsi/aha152x.c | current_SC->SCp.Status, current_SC->SCp.Message); |
SCp | 2269 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= 1<<16 ; |
SCp | 2564 | drivers/scsi/aha152x.c | ptr->SCp.this_residual, ptr->SCp.buffers_residual); |
SCp | 2566 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & not_issued ) printk("not issued|"); |
SCp | 2567 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & in_selection ) printk("in selection|"); |
SCp | 2568 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & disconnected ) printk("disconnected|"); |
SCp | 2569 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & aborted ) printk("aborted|"); |
SCp | 2570 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & sent_ident ) printk("send_ident|"); |
SCp | 2571 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & in_other ) |
SCp | 2574 | drivers/scsi/aha152x.c | switch( (ptr->SCp.phase >> 16) & P_MASK ) |
SCp | 2599 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & (1<<16)) |
SCp | 681 | drivers/scsi/aha1542.c | SCpnt->SCp.Status++; |
SCp | 690 | drivers/scsi/aha1542.c | SCpnt->SCp.Status = 0; |
SCp | 691 | drivers/scsi/aha1542.c | while (!SCpnt->SCp.Status) |
SCp | 719 | drivers/scsi/aic7xxx.c | #define aic7xxx_error(cmd) ((cmd)->SCp.Status) |
SCp | 724 | drivers/scsi/aic7xxx.c | #define aic7xxx_status(cmd) ((cmd)->SCp.sent_command) |
SCp | 729 | drivers/scsi/aic7xxx.c | #define aic7xxx_position(cmd) ((cmd)->SCp.have_data_in) |
SCp | 785 | drivers/scsi/buslogic.c | scpnt->SCp.Status++; |
SCp | 796 | drivers/scsi/buslogic.c | scpnt->SCp.Status = 0; |
SCp | 797 | drivers/scsi/buslogic.c | while (!scpnt->SCp.Status) |
SCp | 113 | drivers/scsi/eata_pio.c | void IncStat(Scsi_Pointer *SCp, uint Increment) |
SCp | 115 | drivers/scsi/eata_pio.c | SCp->ptr+=Increment; |
SCp | 116 | drivers/scsi/eata_pio.c | if ((SCp->this_residual-=Increment)==0) |
SCp | 118 | drivers/scsi/eata_pio.c | if ((--SCp->buffers_residual)==0) SCp->Status=FALSE; |
SCp | 121 | drivers/scsi/eata_pio.c | SCp->buffer++; |
SCp | 122 | drivers/scsi/eata_pio.c | SCp->ptr=SCp->buffer->address; |
SCp | 123 | drivers/scsi/eata_pio.c | SCp->this_residual=SCp->buffer->length; |
SCp | 165 | drivers/scsi/eata_pio.c | while ((cmd->SCp.Status)&&((z>0)||(odd))) |
SCp | 169 | drivers/scsi/eata_pio.c | *(cmd->SCp.ptr)=zwickel>>8; |
SCp | 170 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
SCp | 173 | drivers/scsi/eata_pio.c | x=min(z,cmd->SCp.this_residual/2); |
SCp | 174 | drivers/scsi/eata_pio.c | insw(base+HA_RDATA,cmd->SCp.ptr,x); |
SCp | 176 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,2*x); |
SCp | 177 | drivers/scsi/eata_pio.c | if ((z>0)&&(cmd->SCp.this_residual==1)) |
SCp | 180 | drivers/scsi/eata_pio.c | *(cmd->SCp.ptr)=zwickel&0xff; |
SCp | 181 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); z--; |
SCp | 193 | drivers/scsi/eata_pio.c | while ((cmd->SCp.Status)&&((z>0)||(odd))) |
SCp | 197 | drivers/scsi/eata_pio.c | zwickel+=*(cmd->SCp.ptr)<<8; |
SCp | 198 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
SCp | 203 | drivers/scsi/eata_pio.c | x=min(z,cmd->SCp.this_residual/2); |
SCp | 204 | drivers/scsi/eata_pio.c | outsw(base+HA_RDATA,cmd->SCp.ptr,x); |
SCp | 206 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,2*x); |
SCp | 207 | drivers/scsi/eata_pio.c | if ((z>0)&&(cmd->SCp.this_residual==1)) |
SCp | 209 | drivers/scsi/eata_pio.c | zwickel=*(cmd->SCp.ptr); |
SCp | 211 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
SCp | 366 | drivers/scsi/eata_pio.c | cmd->SCp.buffers_residual=1; |
SCp | 367 | drivers/scsi/eata_pio.c | cmd->SCp.ptr = cmd->request_buffer; |
SCp | 368 | drivers/scsi/eata_pio.c | cmd->SCp.this_residual = cmd->request_bufflen; |
SCp | 369 | drivers/scsi/eata_pio.c | cmd->SCp.buffer = NULL; |
SCp | 371 | drivers/scsi/eata_pio.c | cmd->SCp.buffer = cmd->request_buffer; |
SCp | 372 | drivers/scsi/eata_pio.c | cmd->SCp.buffers_residual = cmd->use_sg; |
SCp | 373 | drivers/scsi/eata_pio.c | cmd->SCp.ptr = cmd->SCp.buffer->address; |
SCp | 374 | drivers/scsi/eata_pio.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
SCp | 376 | drivers/scsi/eata_pio.c | cmd->SCp.Status = (cmd->SCp.this_residual != 0); /* TRUE as long as bytes |
SCp | 1225 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & aborted) { |
SCp | 1237 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & in_arbitration) { |
SCp | 1246 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_selection; |
SCp | 1259 | drivers/scsi/fdomain.c | } else if (current_SC->SCp.phase & in_selection) { |
SCp | 1277 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_other; |
SCp | 1295 | drivers/scsi/fdomain.c | outb( current_SC->cmnd[current_SC->SCp.sent_command++], |
SCp | 1299 | drivers/scsi/fdomain.c | current_SC->cmnd[ current_SC->SCp.sent_command - 1] ); |
SCp | 1303 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
SCp | 1304 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
SCp | 1309 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
SCp | 1310 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
SCp | 1315 | drivers/scsi/fdomain.c | current_SC->SCp.Status = inb( Read_SCSI_Data_port ); |
SCp | 1317 | drivers/scsi/fdomain.c | printk( "Status = %x, ", current_SC->SCp.Status ); |
SCp | 1320 | drivers/scsi/fdomain.c | if (current_SC->SCp.Status && current_SC->SCp.Status != 2) { |
SCp | 1324 | drivers/scsi/fdomain.c | current_SC->SCp.Status ); |
SCp | 1332 | drivers/scsi/fdomain.c | current_SC->SCp.Message = inb( Read_SCSI_Data_port ); |
SCp | 1334 | drivers/scsi/fdomain.c | printk( "Message = %x, ", current_SC->SCp.Message ); |
SCp | 1336 | drivers/scsi/fdomain.c | if (!current_SC->SCp.Message) ++done; |
SCp | 1338 | drivers/scsi/fdomain.c | if (current_SC->SCp.Message) { |
SCp | 1339 | drivers/scsi/fdomain.c | printk( "fdomain: message = %x\n", current_SC->SCp.Message ); |
SCp | 1347 | drivers/scsi/fdomain.c | && !current_SC->SCp.have_data_in |
SCp | 1348 | drivers/scsi/fdomain.c | && (current_SC->SCp.sent_command |
SCp | 1497 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
SCp | 1504 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
SCp | 1510 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == -1) { /* DATA OUT */ |
SCp | 1515 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
SCp | 1516 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
SCp | 1522 | drivers/scsi/fdomain.c | outb( *current_SC->SCp.ptr++, Write_FIFO_port ); |
SCp | 1523 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
SCp | 1526 | drivers/scsi/fdomain.c | outsw( Write_FIFO_port, current_SC->SCp.ptr, data_count ); |
SCp | 1527 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
SCp | 1528 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
SCp | 1531 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual) { |
SCp | 1532 | drivers/scsi/fdomain.c | if (current_SC->SCp.buffers_residual) { |
SCp | 1533 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
SCp | 1534 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
SCp | 1535 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
SCp | 1536 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
SCp | 1543 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == 1) { /* DATA IN */ |
SCp | 1548 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
SCp | 1549 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
SCp | 1555 | drivers/scsi/fdomain.c | *current_SC->SCp.ptr++ = inb( Read_FIFO_port ); |
SCp | 1556 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
SCp | 1559 | drivers/scsi/fdomain.c | insw( Read_FIFO_port, current_SC->SCp.ptr, data_count ); |
SCp | 1560 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
SCp | 1561 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
SCp | 1564 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual |
SCp | 1565 | drivers/scsi/fdomain.c | && current_SC->SCp.buffers_residual) { |
SCp | 1566 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
SCp | 1567 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
SCp | 1568 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
SCp | 1569 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
SCp | 1576 | drivers/scsi/fdomain.c | printk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in ); |
SCp | 1580 | drivers/scsi/fdomain.c | if (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) { |
SCp | 1609 | drivers/scsi/fdomain.c | my_done( (current_SC->SCp.Status & 0xff) |
SCp | 1610 | drivers/scsi/fdomain.c | | ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) ); |
SCp | 1616 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & disconnect) { |
SCp | 1650 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = |
SCp | 1652 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
SCp | 1653 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
SCp | 1654 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = current_SC->use_sg - 1; |
SCp | 1656 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = (char *)current_SC->request_buffer; |
SCp | 1657 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->request_bufflen; |
SCp | 1658 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = NULL; |
SCp | 1659 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = 0; |
SCp | 1663 | drivers/scsi/fdomain.c | current_SC->SCp.Status = 0; |
SCp | 1664 | drivers/scsi/fdomain.c | current_SC->SCp.Message = 0; |
SCp | 1665 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 0; |
SCp | 1666 | drivers/scsi/fdomain.c | current_SC->SCp.sent_command = 0; |
SCp | 1667 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_arbitration; |
SCp | 1717 | drivers/scsi/fdomain.c | switch (SCpnt->SCp.phase) { |
SCp | 1725 | drivers/scsi/fdomain.c | SCpnt->SCp.phase, |
SCp | 1731 | drivers/scsi/fdomain.c | SCpnt->SCp.sent_command, |
SCp | 1732 | drivers/scsi/fdomain.c | SCpnt->SCp.have_data_in, |
SCp | 1797 | drivers/scsi/fdomain.c | current_SC->SCp.phase |= aborted; |
SCp | 409 | drivers/scsi/scsi.h | Scsi_Pointer SCp; /* Scratchpad used by some host adapters */ |
SCp | 805 | drivers/scsi/wd7000.c | SCpnt->SCp.phase = 0; |
SCp | 875 | drivers/scsi/wd7000.c | if (--(SCpnt->SCp.phase) <= 0) { /* all scbs are done */ |
SCp | 910 | drivers/scsi/wd7000.c | SCpnt->SCp.phase = 1; |
SCp | 955 | drivers/scsi/wd7000.c | while (SCpnt->SCp.phase > 0) barrier(); /* phase counts scbs down to 0 */ |