tag | line | file | source code |
current_SC | 295 | drivers/scsi/aha152x.c | static Scsi_Cmnd *current_SC = NULL; |
current_SC | 779 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 841 | drivers/scsi/aha152x.c | if (!current_SC && TESTLO(SSTAT1, BUSFREE)) |
current_SC | 844 | drivers/scsi/aha152x.c | if (current_SC==SCpnt) |
current_SC | 854 | drivers/scsi/aha152x.c | current_SC->result = DID_ERROR << 16; |
current_SC | 855 | drivers/scsi/aha152x.c | current_SC->done(current_SC); |
current_SC | 856 | drivers/scsi/aha152x.c | current_SC = (Scsi_Cmnd *) NULL; |
current_SC | 877 | drivers/scsi/aha152x.c | current_SC = ptr; |
current_SC | 879 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | current_SC->target ); |
current_SC | 965 | drivers/scsi/aha152x.c | if(current_SC && !current_SC->device->soft_reset) |
current_SC | 967 | drivers/scsi/aha152x.c | current_SC->host_scribble = NULL; |
current_SC | 968 | drivers/scsi/aha152x.c | current_SC->result = DID_RESET << 16; |
current_SC | 969 | drivers/scsi/aha152x.c | current_SC->done(current_SC); |
current_SC | 970 | drivers/scsi/aha152x.c | current_SC=NULL; |
current_SC | 1057 | drivers/scsi/aha152x.c | if (current_SC) |
current_SC | 1065 | drivers/scsi/aha152x.c | done_SC = current_SC; |
current_SC | 1066 | drivers/scsi/aha152x.c | current_SC = NULL; |
current_SC | 1136 | drivers/scsi/aha152x.c | ( !current_SC || ( current_SC->SCp.phase & in_selection ) ) |
current_SC | 1143 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 1149 | drivers/scsi/aha152x.c | append_SC( &issue_SC, current_SC); |
current_SC | 1150 | drivers/scsi/aha152x.c | current_SC=NULL; |
current_SC | 1212 | drivers/scsi/aha152x.c | current_SC = remove_SC( &disconnected_SC, |
current_SC | 1216 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 1222 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~disconnected; |
current_SC | 1235 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 1244 | drivers/scsi/aha152x.c | current_SC = remove_first_SC( &issue_SC ); |
current_SC | 1250 | drivers/scsi/aha152x.c | current_SC->SCp.phase = in_selection; |
current_SC | 1253 | drivers/scsi/aha152x.c | printk("selecting %d, ", current_SC->target); |
current_SC | 1255 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | current_SC->target ); |
current_SC | 1286 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & in_selection) |
current_SC | 1311 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
current_SC | 1328 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
current_SC | 1332 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~in_selection; |
current_SC | 1333 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= in_other; |
current_SC | 1366 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
current_SC | 1390 | drivers/scsi/aha152x.c | current_SC->SCp.phase = |
current_SC | 1391 | drivers/scsi/aha152x.c | (current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 ); |
current_SC | 1404 | drivers/scsi/aha152x.c | if( current_SC->SCp.phase & aborted ) |
current_SC | 1415 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.phase & sent_ident)) |
current_SC | 1417 | drivers/scsi/aha152x.c | message=IDENTIFY(can_disconnect,current_SC->lun); |
current_SC | 1420 | drivers/scsi/aha152x.c | can_disconnect ? "enabled" : "disabled", current_SC->lun); |
current_SC | 1451 | drivers/scsi/aha152x.c | if(message==IDENTIFY(can_disconnect,current_SC->lun)) |
current_SC | 1452 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= sent_ident; |
current_SC | 1460 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 1477 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.sent_command) ) |
current_SC | 1507 | drivers/scsi/aha152x.c | COMMAND_SIZE(current_SC->cmnd[0])>>1); |
current_SC | 1512 | drivers/scsi/aha152x.c | ¤t_SC->cmnd, |
current_SC | 1513 | drivers/scsi/aha152x.c | COMMAND_SIZE(current_SC->cmnd[0])>>1 ); |
current_SC | 1534 | drivers/scsi/aha152x.c | COMMAND_SIZE(current_SC->cmnd[0])); |
current_SC | 1553 | drivers/scsi/aha152x.c | current_SC->SCp.Message = GETPORT( SCSIBUS ); |
current_SC | 1554 | drivers/scsi/aha152x.c | switch(current_SC->SCp.Message) |
current_SC | 1560 | drivers/scsi/aha152x.c | current_SC->SCp.Message = 0; |
current_SC | 1561 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= disconnected; |
current_SC | 1670 | drivers/scsi/aha152x.c | printk("unsupported inbound message %x, ", current_SC->SCp.Message); |
current_SC | 1683 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & disconnected) |
current_SC | 1689 | drivers/scsi/aha152x.c | append_SC( &disconnected_SC, current_SC); |
current_SC | 1690 | drivers/scsi/aha152x.c | current_SC = NULL; |
current_SC | 1715 | drivers/scsi/aha152x.c | current_SC->SCp.Status = GETPORT( SCSIBUS ); |
current_SC | 1721 | drivers/scsi/aha152x.c | print_status( current_SC->SCp.Status ); |
current_SC | 1780 | drivers/scsi/aha152x.c | while( fifodata && current_SC->SCp.this_residual ) |
current_SC | 1785 | drivers/scsi/aha152x.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1786 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1798 | drivers/scsi/aha152x.c | *current_SC->SCp.ptr++ = GETPORT( DATAPORT ); |
current_SC | 1799 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
current_SC | 1805 | drivers/scsi/aha152x.c | insw( DATAPORT, current_SC->SCp.ptr, data_count ); |
current_SC | 1815 | drivers/scsi/aha152x.c | data = (unsigned char *) current_SC->SCp.ptr; |
current_SC | 1821 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1822 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1826 | drivers/scsi/aha152x.c | if (!current_SC->SCp.this_residual && |
current_SC | 1827 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
current_SC | 1830 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
current_SC | 1831 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
current_SC | 1832 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
current_SC | 1833 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
current_SC | 1834 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
current_SC | 1835 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
current_SC | 1862 | drivers/scsi/aha152x.c | if(current_SC->SCp.buffers_residual || current_SC->SCp.this_residual) |
current_SC | 1864 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
current_SC | 1865 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual); |
current_SC | 1877 | drivers/scsi/aha152x.c | current_SC->SCp.have_data_in++; |
current_SC | 1890 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 1891 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ); |
current_SC | 1912 | drivers/scsi/aha152x.c | (current_SC->SCp.this_residual || |
current_SC | 1913 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) ) |
current_SC | 1917 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 1918 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
current_SC | 1921 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual > 128 ? |
current_SC | 1922 | drivers/scsi/aha152x.c | 128 : current_SC->SCp.this_residual ; |
current_SC | 1932 | drivers/scsi/aha152x.c | SETPORT(DATAPORT, *current_SC->SCp.ptr++); |
current_SC | 1933 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
current_SC | 1939 | drivers/scsi/aha152x.c | outsw( DATAPORT, current_SC->SCp.ptr, data_count ); |
current_SC | 1940 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1941 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1955 | drivers/scsi/aha152x.c | !current_SC->SCp.this_residual && |
current_SC | 1956 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
current_SC | 1959 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
current_SC | 1960 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
current_SC | 1961 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
current_SC | 1962 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
current_SC | 1963 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
current_SC | 1964 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
current_SC | 1968 | drivers/scsi/aha152x.c | if ( current_SC->SCp.this_residual || |
current_SC | 1969 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ) |
current_SC | 1978 | drivers/scsi/aha152x.c | current_SC->SCp.ptr -= data_count; |
current_SC | 1979 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual += data_count; |
current_SC | 1982 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 1983 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
current_SC | 2004 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 2005 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
current_SC | 2029 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 2041 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 2068 | drivers/scsi/aha152x.c | aha152x_done( (current_SC->SCp.Status & 0xff) |
current_SC | 2069 | drivers/scsi/aha152x.c | | ( (current_SC->SCp.Message & 0xff) << 8) |
current_SC | 2074 | drivers/scsi/aha152x.c | current_SC->SCp.Status, current_SC->SCp.Message); |
current_SC | 2079 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 2080 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= 1<<16 ; |
current_SC | 2113 | drivers/scsi/aha152x.c | printk("\n%s: ", current_SC ? "on bus" : "waiting"); |
current_SC | 2420 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 2421 | drivers/scsi/aha152x.c | show_command(current_SC); |
current_SC | 265 | drivers/scsi/fdomain.c | static Scsi_Cmnd *current_SC = NULL; |
current_SC | 839 | drivers/scsi/fdomain.c | current_SC->result = error; |
current_SC | 840 | drivers/scsi/fdomain.c | if (current_SC->scsi_done) |
current_SC | 841 | drivers/scsi/fdomain.c | current_SC->scsi_done( current_SC ); |
current_SC | 862 | drivers/scsi/fdomain.c | if (!in_command || !current_SC) { /* Spurious interrupt */ |
current_SC | 865 | drivers/scsi/fdomain.c | in_command, current_SC ); |
current_SC | 871 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & aborted) { |
current_SC | 883 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & in_arbitration) { |
current_SC | 892 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_selection; |
current_SC | 897 | drivers/scsi/fdomain.c | outb( adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port ); |
current_SC | 905 | drivers/scsi/fdomain.c | } else if (current_SC->SCp.phase & in_selection) { |
current_SC | 909 | drivers/scsi/fdomain.c | if (fdomain_select( current_SC->target )) { |
current_SC | 923 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_other; |
current_SC | 941 | drivers/scsi/fdomain.c | outb( current_SC->cmnd[current_SC->SCp.sent_command++], |
current_SC | 945 | drivers/scsi/fdomain.c | current_SC->cmnd[ current_SC->SCp.sent_command - 1] ); |
current_SC | 949 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
current_SC | 950 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
current_SC | 955 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
current_SC | 956 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
current_SC | 961 | drivers/scsi/fdomain.c | current_SC->SCp.Status = inb( Read_SCSI_Data_port ); |
current_SC | 963 | drivers/scsi/fdomain.c | printk( "Status = %x, ", current_SC->SCp.Status ); |
current_SC | 966 | drivers/scsi/fdomain.c | if (current_SC->SCp.Status && current_SC->SCp.Status != 2) { |
current_SC | 969 | drivers/scsi/fdomain.c | current_SC->target, current_SC->cmnd[0], |
current_SC | 970 | drivers/scsi/fdomain.c | current_SC->SCp.Status ); |
current_SC | 978 | drivers/scsi/fdomain.c | current_SC->SCp.Message = inb( Read_SCSI_Data_port ); |
current_SC | 980 | drivers/scsi/fdomain.c | printk( "Message = %x, ", current_SC->SCp.Message ); |
current_SC | 982 | drivers/scsi/fdomain.c | if (!current_SC->SCp.Message) ++done; |
current_SC | 984 | drivers/scsi/fdomain.c | if (current_SC->SCp.Message) { |
current_SC | 986 | drivers/scsi/fdomain.c | current_SC->SCp.Message ); |
current_SC | 994 | drivers/scsi/fdomain.c | && !current_SC->SCp.have_data_in |
current_SC | 995 | drivers/scsi/fdomain.c | && (current_SC->SCp.sent_command |
current_SC | 996 | drivers/scsi/fdomain.c | >= COMMAND_SIZE( current_SC->cmnd[ 0 ] ))) { |
current_SC | 1123 | drivers/scsi/fdomain.c | switch (current_SC->cmnd[0]) { |
current_SC | 1144 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
current_SC | 1151 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
current_SC | 1157 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == -1) { /* DATA OUT */ |
current_SC | 1162 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1163 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1169 | drivers/scsi/fdomain.c | outb( *current_SC->SCp.ptr++, Write_FIFO_port ); |
current_SC | 1170 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
current_SC | 1173 | drivers/scsi/fdomain.c | outsw( Write_FIFO_port, current_SC->SCp.ptr, data_count ); |
current_SC | 1174 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1175 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1178 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual) { |
current_SC | 1179 | drivers/scsi/fdomain.c | if (current_SC->SCp.buffers_residual) { |
current_SC | 1180 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
current_SC | 1181 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
current_SC | 1182 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1183 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1190 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == 1) { /* DATA IN */ |
current_SC | 1195 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1196 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1202 | drivers/scsi/fdomain.c | *current_SC->SCp.ptr++ = inb( Read_FIFO_port ); |
current_SC | 1203 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
current_SC | 1206 | drivers/scsi/fdomain.c | insw( Read_FIFO_port, current_SC->SCp.ptr, data_count ); |
current_SC | 1207 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1208 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1211 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual |
current_SC | 1212 | drivers/scsi/fdomain.c | && current_SC->SCp.buffers_residual) { |
current_SC | 1213 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
current_SC | 1214 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
current_SC | 1215 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1216 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1223 | drivers/scsi/fdomain.c | printk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in ); |
current_SC | 1227 | drivers/scsi/fdomain.c | if (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) { |
current_SC | 1228 | drivers/scsi/fdomain.c | if ((unsigned char)(*((char *)current_SC->request_buffer+2)) & 0x0f) { |
current_SC | 1233 | drivers/scsi/fdomain.c | key = (unsigned char)(*((char *)current_SC->request_buffer + 2)) |
current_SC | 1235 | drivers/scsi/fdomain.c | code = (unsigned char)(*((char *)current_SC->request_buffer + 12)); |
current_SC | 1236 | drivers/scsi/fdomain.c | qualifier = (unsigned char)(*((char *)current_SC->request_buffer |
current_SC | 1256 | drivers/scsi/fdomain.c | my_done( (current_SC->SCp.Status & 0xff) |
current_SC | 1257 | drivers/scsi/fdomain.c | | ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) ); |
current_SC | 1263 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & disconnect) { |
current_SC | 1291 | drivers/scsi/fdomain.c | current_SC = SCpnt; /* Save this for the done function */ |
current_SC | 1292 | drivers/scsi/fdomain.c | current_SC->scsi_done = done; |
current_SC | 1296 | drivers/scsi/fdomain.c | if (current_SC->use_sg) { |
current_SC | 1297 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = |
current_SC | 1298 | drivers/scsi/fdomain.c | (struct scatterlist *)current_SC->request_buffer; |
current_SC | 1299 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1300 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1301 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = current_SC->use_sg - 1; |
current_SC | 1303 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = (char *)current_SC->request_buffer; |
current_SC | 1304 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->request_bufflen; |
current_SC | 1305 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = NULL; |
current_SC | 1306 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = 0; |
current_SC | 1310 | drivers/scsi/fdomain.c | current_SC->SCp.Status = 0; |
current_SC | 1311 | drivers/scsi/fdomain.c | current_SC->SCp.Message = 0; |
current_SC | 1312 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 0; |
current_SC | 1313 | drivers/scsi/fdomain.c | current_SC->SCp.sent_command = 0; |
current_SC | 1314 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_arbitration; |
current_SC | 1437 | drivers/scsi/fdomain.c | current_SC->SCp.phase |= aborted; |
current_SC | 1439 | drivers/scsi/fdomain.c | current_SC->result = DID_ABORT << 16; |
current_SC | 1460 | drivers/scsi/fdomain.c | if (called_once) print_info( current_SC ); |