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 | 810 | drivers/scsi/aha152x.c | SCpnt->SCp.phase = not_issued; |
SCp | 813 | drivers/scsi/aha152x.c | SCpnt->SCp.buffer = (struct scatterlist *)SCpnt->request_buffer; |
SCp | 814 | drivers/scsi/aha152x.c | SCpnt->SCp.ptr = SCpnt->SCp.buffer->address; |
SCp | 815 | drivers/scsi/aha152x.c | SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; |
SCp | 816 | drivers/scsi/aha152x.c | SCpnt->SCp.buffers_residual = SCpnt->use_sg - 1; |
SCp | 820 | drivers/scsi/aha152x.c | SCpnt->SCp.ptr = (char *)SCpnt->request_buffer; |
SCp | 821 | drivers/scsi/aha152x.c | SCpnt->SCp.this_residual = SCpnt->request_bufflen; |
SCp | 822 | drivers/scsi/aha152x.c | SCpnt->SCp.buffer = NULL; |
SCp | 823 | drivers/scsi/aha152x.c | SCpnt->SCp.buffers_residual = 0; |
SCp | 826 | drivers/scsi/aha152x.c | SCpnt->SCp.Status = CHECK_CONDITION; |
SCp | 827 | drivers/scsi/aha152x.c | SCpnt->SCp.Message = 0; |
SCp | 828 | drivers/scsi/aha152x.c | SCpnt->SCp.have_data_in = 0; |
SCp | 829 | drivers/scsi/aha152x.c | SCpnt->SCp.sent_command = 0; |
SCp | 953 | drivers/scsi/aha152x.c | ptr->SCp.phase = in_selection|aborted; |
SCp | 1240 | drivers/scsi/aha152x.c | ( !current_SC || ( current_SC->SCp.phase & in_selection ) ) |
SCp | 1334 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~disconnected; |
SCp | 1365 | drivers/scsi/aha152x.c | current_SC->SCp.phase = in_selection; |
SCp | 1403 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & in_selection) |
SCp | 1428 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
SCp | 1446 | drivers/scsi/aha152x.c | if((aha152x_debug & debug_abort) && (current_SC->SCp.phase & aborted)) |
SCp | 1450 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~in_selection; |
SCp | 1451 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= in_other; |
SCp | 1485 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
SCp | 1510 | drivers/scsi/aha152x.c | current_SC->SCp.phase = |
SCp | 1511 | drivers/scsi/aha152x.c | (current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 ); |
SCp | 1525 | drivers/scsi/aha152x.c | if( current_SC->SCp.phase & aborted ) |
SCp | 1537 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.phase & sent_ident)) |
SCp | 1576 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= sent_ident; |
SCp | 1584 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
SCp | 1602 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.sent_command) ) |
SCp | 1700 | drivers/scsi/aha152x.c | current_SC->SCp.Message = GETPORT( SCSIBUS ); |
SCp | 1701 | drivers/scsi/aha152x.c | switch(current_SC->SCp.Message) |
SCp | 1708 | drivers/scsi/aha152x.c | current_SC->SCp.Message = 0; |
SCp | 1709 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= disconnected; |
SCp | 1827 | drivers/scsi/aha152x.c | printk("unsupported inbound message %x, ", current_SC->SCp.Message); |
SCp | 1840 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & disconnected) |
SCp | 1875 | drivers/scsi/aha152x.c | current_SC->SCp.Status = GETPORT( SCSIBUS ); |
SCp | 1883 | drivers/scsi/aha152x.c | print_status( current_SC->SCp.Status ); |
SCp | 1947 | drivers/scsi/aha152x.c | while( fifodata && current_SC->SCp.this_residual ) |
SCp | 1952 | drivers/scsi/aha152x.c | if (data_count > current_SC->SCp.this_residual) |
SCp | 1953 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual; |
SCp | 1966 | drivers/scsi/aha152x.c | *current_SC->SCp.ptr++ = GETPORT( DATAPORT ); |
SCp | 1967 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
SCp | 1973 | drivers/scsi/aha152x.c | insw( DATAPORT, current_SC->SCp.ptr, data_count ); |
SCp | 1984 | drivers/scsi/aha152x.c | data = (unsigned char *) current_SC->SCp.ptr; |
SCp | 1990 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
SCp | 1991 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
SCp | 1995 | drivers/scsi/aha152x.c | if (!current_SC->SCp.this_residual && |
SCp | 1996 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
SCp | 1999 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
SCp | 2000 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
SCp | 2001 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
SCp | 2002 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
SCp | 2003 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
SCp | 2004 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
SCp | 2032 | drivers/scsi/aha152x.c | if((aha152x_debug & debug_datai) && (current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)) |
SCp | 2034 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
SCp | 2035 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual); |
SCp | 2048 | drivers/scsi/aha152x.c | current_SC->SCp.have_data_in++; |
SCp | 2063 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
SCp | 2064 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ); |
SCp | 2085 | drivers/scsi/aha152x.c | (current_SC->SCp.this_residual || |
SCp | 2086 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) ) |
SCp | 2091 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
SCp | 2092 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
SCp | 2095 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual > 128 ? |
SCp | 2096 | drivers/scsi/aha152x.c | 128 : current_SC->SCp.this_residual ; |
SCp | 2107 | drivers/scsi/aha152x.c | SETPORT(DATAPORT, *current_SC->SCp.ptr++); |
SCp | 2108 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
SCp | 2114 | drivers/scsi/aha152x.c | outsw( DATAPORT, current_SC->SCp.ptr, data_count ); |
SCp | 2115 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
SCp | 2116 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
SCp | 2131 | drivers/scsi/aha152x.c | !current_SC->SCp.this_residual && |
SCp | 2132 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
SCp | 2135 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
SCp | 2136 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
SCp | 2137 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
SCp | 2138 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
SCp | 2139 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
SCp | 2140 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
SCp | 2144 | drivers/scsi/aha152x.c | if ( current_SC->SCp.this_residual || |
SCp | 2145 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ) |
SCp | 2154 | drivers/scsi/aha152x.c | current_SC->SCp.ptr -= data_count; |
SCp | 2155 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual += data_count; |
SCp | 2159 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
SCp | 2160 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
SCp | 2179 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
SCp | 2180 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
SCp | 2206 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
SCp | 2218 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
SCp | 2246 | drivers/scsi/aha152x.c | aha152x_done( (current_SC->SCp.Status & 0xff) |
SCp | 2247 | drivers/scsi/aha152x.c | | ( (current_SC->SCp.Message & 0xff) << 8) |
SCp | 2252 | drivers/scsi/aha152x.c | current_SC->SCp.Status, current_SC->SCp.Message); |
SCp | 2258 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= 1<<16 ; |
SCp | 2553 | drivers/scsi/aha152x.c | ptr->SCp.this_residual, ptr->SCp.buffers_residual); |
SCp | 2555 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & not_issued ) printk("not issued|"); |
SCp | 2556 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & in_selection ) printk("in selection|"); |
SCp | 2557 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & disconnected ) printk("disconnected|"); |
SCp | 2558 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & aborted ) printk("aborted|"); |
SCp | 2559 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & sent_ident ) printk("send_ident|"); |
SCp | 2560 | drivers/scsi/aha152x.c | if( ptr->SCp.phase & in_other ) |
SCp | 2563 | drivers/scsi/aha152x.c | switch( (ptr->SCp.phase >> 16) & P_MASK ) |
SCp | 2588 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & (1<<16)) |
SCp | 674 | drivers/scsi/aha1542.c | SCpnt->SCp.Status++; |
SCp | 683 | drivers/scsi/aha1542.c | SCpnt->SCp.Status = 0; |
SCp | 684 | drivers/scsi/aha1542.c | while (!SCpnt->SCp.Status) |
SCp | 693 | drivers/scsi/aic7xxx.c | #define aic7xxx_error(cmd) ((cmd)->SCp.Status) |
SCp | 698 | drivers/scsi/aic7xxx.c | #define aic7xxx_status(cmd) ((cmd)->SCp.sent_command) |
SCp | 703 | 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 | 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 | 374 | drivers/scsi/eata_pio.c | cmd->SCp.buffers_residual=1; |
SCp | 375 | drivers/scsi/eata_pio.c | cmd->SCp.ptr=cmd->request_buffer; |
SCp | 376 | drivers/scsi/eata_pio.c | cmd->SCp.this_residual=cmd->request_bufflen; |
SCp | 377 | drivers/scsi/eata_pio.c | cmd->SCp.buffer=NULL; |
SCp | 381 | drivers/scsi/eata_pio.c | cmd->SCp.buffer=cmd->request_buffer; |
SCp | 382 | drivers/scsi/eata_pio.c | cmd->SCp.buffers_residual=cmd->use_sg; |
SCp | 383 | drivers/scsi/eata_pio.c | cmd->SCp.ptr=cmd->SCp.buffer->address; |
SCp | 384 | drivers/scsi/eata_pio.c | cmd->SCp.this_residual=cmd->SCp.buffer->length; |
SCp | 386 | 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 | 517 | 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 */ |