tag | line | file | source code |
current_SC | 280 | drivers/scsi/aha152x.c | static Scsi_Cmnd *current_SC = NULL; |
current_SC | 755 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 817 | drivers/scsi/aha152x.c | if (current_SC) |
current_SC | 827 | drivers/scsi/aha152x.c | current_SC->result = DID_ERROR << 16; |
current_SC | 828 | drivers/scsi/aha152x.c | current_SC->done(current_SC); |
current_SC | 829 | drivers/scsi/aha152x.c | current_SC = (Scsi_Cmnd *) NULL; |
current_SC | 852 | drivers/scsi/aha152x.c | current_SC = ptr; |
current_SC | 854 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | current_SC->target ); |
current_SC | 936 | drivers/scsi/aha152x.c | if(current_SC && !current_SC->device->soft_reset) |
current_SC | 938 | drivers/scsi/aha152x.c | current_SC->host_scribble = NULL; |
current_SC | 939 | drivers/scsi/aha152x.c | current_SC->result = DID_RESET << 16; |
current_SC | 940 | drivers/scsi/aha152x.c | current_SC->done(current_SC); |
current_SC | 941 | drivers/scsi/aha152x.c | current_SC=NULL; |
current_SC | 1028 | drivers/scsi/aha152x.c | if (current_SC) |
current_SC | 1036 | drivers/scsi/aha152x.c | done_SC = current_SC; |
current_SC | 1037 | drivers/scsi/aha152x.c | current_SC = NULL; |
current_SC | 1107 | drivers/scsi/aha152x.c | ( !current_SC || ( current_SC->SCp.phase & in_selection ) ) |
current_SC | 1114 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 1120 | drivers/scsi/aha152x.c | append_SC( &issue_SC, current_SC); |
current_SC | 1121 | drivers/scsi/aha152x.c | current_SC=NULL; |
current_SC | 1183 | drivers/scsi/aha152x.c | current_SC = remove_SC( &disconnected_SC, |
current_SC | 1187 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 1193 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~disconnected; |
current_SC | 1206 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 1215 | drivers/scsi/aha152x.c | current_SC = remove_first_SC( &issue_SC ); |
current_SC | 1221 | drivers/scsi/aha152x.c | current_SC->SCp.phase = in_selection; |
current_SC | 1224 | drivers/scsi/aha152x.c | printk("selecting %d, ", current_SC->target); |
current_SC | 1226 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | current_SC->target ); |
current_SC | 1257 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & in_selection) |
current_SC | 1282 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
current_SC | 1299 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
current_SC | 1303 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~in_selection; |
current_SC | 1304 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= in_other; |
current_SC | 1337 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
current_SC | 1361 | drivers/scsi/aha152x.c | current_SC->SCp.phase = |
current_SC | 1362 | drivers/scsi/aha152x.c | (current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 ); |
current_SC | 1375 | drivers/scsi/aha152x.c | if( current_SC->SCp.phase & aborted ) |
current_SC | 1386 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.phase & sent_ident)) |
current_SC | 1388 | drivers/scsi/aha152x.c | message=IDENTIFY(can_disconnect,current_SC->lun); |
current_SC | 1391 | drivers/scsi/aha152x.c | can_disconnect ? "enabled" : "disabled", current_SC->lun); |
current_SC | 1422 | drivers/scsi/aha152x.c | if(message==IDENTIFY(can_disconnect,current_SC->lun)) |
current_SC | 1423 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= sent_ident; |
current_SC | 1431 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 1448 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.sent_command) ) |
current_SC | 1478 | drivers/scsi/aha152x.c | COMMAND_SIZE(current_SC->cmnd[0])>>1); |
current_SC | 1483 | drivers/scsi/aha152x.c | ¤t_SC->cmnd, |
current_SC | 1484 | drivers/scsi/aha152x.c | COMMAND_SIZE(current_SC->cmnd[0])>>1 ); |
current_SC | 1505 | drivers/scsi/aha152x.c | COMMAND_SIZE(current_SC->cmnd[0])); |
current_SC | 1524 | drivers/scsi/aha152x.c | current_SC->SCp.Message = GETPORT( SCSIBUS ); |
current_SC | 1525 | drivers/scsi/aha152x.c | switch(current_SC->SCp.Message) |
current_SC | 1531 | drivers/scsi/aha152x.c | current_SC->SCp.Message = 0; |
current_SC | 1532 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= disconnected; |
current_SC | 1641 | drivers/scsi/aha152x.c | printk("unsupported inbound message %x, ", current_SC->SCp.Message); |
current_SC | 1654 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & disconnected) |
current_SC | 1660 | drivers/scsi/aha152x.c | append_SC( &disconnected_SC, current_SC); |
current_SC | 1661 | drivers/scsi/aha152x.c | current_SC = NULL; |
current_SC | 1686 | drivers/scsi/aha152x.c | current_SC->SCp.Status = GETPORT( SCSIBUS ); |
current_SC | 1692 | drivers/scsi/aha152x.c | print_status( current_SC->SCp.Status ); |
current_SC | 1751 | drivers/scsi/aha152x.c | while( fifodata && current_SC->SCp.this_residual ) |
current_SC | 1756 | drivers/scsi/aha152x.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1757 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1769 | drivers/scsi/aha152x.c | *current_SC->SCp.ptr++ = GETPORT( DATAPORT ); |
current_SC | 1770 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
current_SC | 1776 | drivers/scsi/aha152x.c | insw( DATAPORT, current_SC->SCp.ptr, data_count ); |
current_SC | 1786 | drivers/scsi/aha152x.c | data = (unsigned char *) current_SC->SCp.ptr; |
current_SC | 1792 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1793 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1797 | drivers/scsi/aha152x.c | if (!current_SC->SCp.this_residual && |
current_SC | 1798 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
current_SC | 1801 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
current_SC | 1802 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
current_SC | 1803 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
current_SC | 1804 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
current_SC | 1805 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
current_SC | 1806 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
current_SC | 1833 | drivers/scsi/aha152x.c | if(current_SC->SCp.buffers_residual || current_SC->SCp.this_residual) |
current_SC | 1835 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
current_SC | 1836 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual); |
current_SC | 1848 | drivers/scsi/aha152x.c | current_SC->SCp.have_data_in++; |
current_SC | 1861 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 1862 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ); |
current_SC | 1883 | drivers/scsi/aha152x.c | (current_SC->SCp.this_residual || |
current_SC | 1884 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) ) |
current_SC | 1888 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 1889 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
current_SC | 1892 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual > 128 ? |
current_SC | 1893 | drivers/scsi/aha152x.c | 128 : current_SC->SCp.this_residual ; |
current_SC | 1903 | drivers/scsi/aha152x.c | SETPORT(DATAPORT, *current_SC->SCp.ptr++); |
current_SC | 1904 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
current_SC | 1910 | drivers/scsi/aha152x.c | outsw( DATAPORT, current_SC->SCp.ptr, data_count ); |
current_SC | 1911 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1912 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1926 | drivers/scsi/aha152x.c | !current_SC->SCp.this_residual && |
current_SC | 1927 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
current_SC | 1930 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
current_SC | 1931 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
current_SC | 1932 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
current_SC | 1933 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
current_SC | 1934 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
current_SC | 1935 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
current_SC | 1939 | drivers/scsi/aha152x.c | if ( current_SC->SCp.this_residual || |
current_SC | 1940 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ) |
current_SC | 1949 | drivers/scsi/aha152x.c | current_SC->SCp.ptr -= data_count; |
current_SC | 1950 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual += data_count; |
current_SC | 1953 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 1954 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
current_SC | 1975 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 1976 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
current_SC | 2000 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 2012 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 2039 | drivers/scsi/aha152x.c | aha152x_done( (current_SC->SCp.Status & 0xff) |
current_SC | 2040 | drivers/scsi/aha152x.c | | ( (current_SC->SCp.Message & 0xff) << 8) |
current_SC | 2045 | drivers/scsi/aha152x.c | current_SC->SCp.Status, current_SC->SCp.Message); |
current_SC | 2050 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 2051 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= 1<<16 ; |
current_SC | 2084 | drivers/scsi/aha152x.c | printk("\n%s: ", current_SC ? "on bus" : "waiting"); |
current_SC | 2391 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 2392 | drivers/scsi/aha152x.c | show_command(current_SC); |
current_SC | 262 | drivers/scsi/fdomain.c | static Scsi_Cmnd *current_SC = NULL; |
current_SC | 814 | drivers/scsi/fdomain.c | current_SC->result = error; |
current_SC | 815 | drivers/scsi/fdomain.c | if (current_SC->scsi_done) |
current_SC | 816 | drivers/scsi/fdomain.c | current_SC->scsi_done( current_SC ); |
current_SC | 837 | drivers/scsi/fdomain.c | if (!in_command || !current_SC) { /* Spurious interrupt */ |
current_SC | 840 | drivers/scsi/fdomain.c | in_command, current_SC ); |
current_SC | 846 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & aborted) { |
current_SC | 858 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & in_arbitration) { |
current_SC | 867 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_selection; |
current_SC | 872 | drivers/scsi/fdomain.c | outb( adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port ); |
current_SC | 880 | drivers/scsi/fdomain.c | } else if (current_SC->SCp.phase & in_selection) { |
current_SC | 884 | drivers/scsi/fdomain.c | if (fdomain_select( current_SC->target )) { |
current_SC | 898 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_other; |
current_SC | 916 | drivers/scsi/fdomain.c | outb( current_SC->cmnd[current_SC->SCp.sent_command++], |
current_SC | 920 | drivers/scsi/fdomain.c | current_SC->cmnd[ current_SC->SCp.sent_command - 1] ); |
current_SC | 924 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
current_SC | 925 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
current_SC | 930 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
current_SC | 931 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
current_SC | 936 | drivers/scsi/fdomain.c | current_SC->SCp.Status = inb( Read_SCSI_Data_port ); |
current_SC | 938 | drivers/scsi/fdomain.c | printk( "Status = %x, ", current_SC->SCp.Status ); |
current_SC | 941 | drivers/scsi/fdomain.c | if (current_SC->SCp.Status && current_SC->SCp.Status != 2) { |
current_SC | 944 | drivers/scsi/fdomain.c | current_SC->target, current_SC->cmnd[0], |
current_SC | 945 | drivers/scsi/fdomain.c | current_SC->SCp.Status ); |
current_SC | 953 | drivers/scsi/fdomain.c | current_SC->SCp.Message = inb( Read_SCSI_Data_port ); |
current_SC | 955 | drivers/scsi/fdomain.c | printk( "Message = %x, ", current_SC->SCp.Message ); |
current_SC | 957 | drivers/scsi/fdomain.c | if (!current_SC->SCp.Message) ++done; |
current_SC | 959 | drivers/scsi/fdomain.c | if (current_SC->SCp.Message) { |
current_SC | 961 | drivers/scsi/fdomain.c | current_SC->SCp.Message ); |
current_SC | 969 | drivers/scsi/fdomain.c | && !current_SC->SCp.have_data_in |
current_SC | 970 | drivers/scsi/fdomain.c | && (current_SC->SCp.sent_command |
current_SC | 971 | drivers/scsi/fdomain.c | >= COMMAND_SIZE( current_SC->cmnd[ 0 ] ))) { |
current_SC | 1098 | drivers/scsi/fdomain.c | switch (current_SC->cmnd[0]) { |
current_SC | 1119 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
current_SC | 1126 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
current_SC | 1132 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == -1) { /* DATA OUT */ |
current_SC | 1137 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1138 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1144 | drivers/scsi/fdomain.c | outb( *current_SC->SCp.ptr++, Write_FIFO_port ); |
current_SC | 1145 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
current_SC | 1148 | drivers/scsi/fdomain.c | outsw( Write_FIFO_port, current_SC->SCp.ptr, data_count ); |
current_SC | 1149 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1150 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1153 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual) { |
current_SC | 1154 | drivers/scsi/fdomain.c | if (current_SC->SCp.buffers_residual) { |
current_SC | 1155 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
current_SC | 1156 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
current_SC | 1157 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1158 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1165 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == 1) { /* DATA IN */ |
current_SC | 1170 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1171 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1177 | drivers/scsi/fdomain.c | *current_SC->SCp.ptr++ = inb( Read_FIFO_port ); |
current_SC | 1178 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
current_SC | 1181 | drivers/scsi/fdomain.c | insw( Read_FIFO_port, current_SC->SCp.ptr, data_count ); |
current_SC | 1182 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1183 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1186 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual |
current_SC | 1187 | drivers/scsi/fdomain.c | && current_SC->SCp.buffers_residual) { |
current_SC | 1188 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
current_SC | 1189 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
current_SC | 1190 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1191 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1198 | drivers/scsi/fdomain.c | printk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in ); |
current_SC | 1202 | drivers/scsi/fdomain.c | if (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) { |
current_SC | 1203 | drivers/scsi/fdomain.c | if ((unsigned char)(*((char *)current_SC->request_buffer+2)) & 0x0f) { |
current_SC | 1208 | drivers/scsi/fdomain.c | key = (unsigned char)(*((char *)current_SC->request_buffer + 2)) |
current_SC | 1210 | drivers/scsi/fdomain.c | code = (unsigned char)(*((char *)current_SC->request_buffer + 12)); |
current_SC | 1211 | drivers/scsi/fdomain.c | qualifier = (unsigned char)(*((char *)current_SC->request_buffer |
current_SC | 1231 | drivers/scsi/fdomain.c | my_done( (current_SC->SCp.Status & 0xff) |
current_SC | 1232 | drivers/scsi/fdomain.c | | ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) ); |
current_SC | 1238 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & disconnect) { |
current_SC | 1266 | drivers/scsi/fdomain.c | current_SC = SCpnt; /* Save this for the done function */ |
current_SC | 1267 | drivers/scsi/fdomain.c | current_SC->scsi_done = done; |
current_SC | 1271 | drivers/scsi/fdomain.c | if (current_SC->use_sg) { |
current_SC | 1272 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = |
current_SC | 1273 | drivers/scsi/fdomain.c | (struct scatterlist *)current_SC->request_buffer; |
current_SC | 1274 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1275 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1276 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = current_SC->use_sg - 1; |
current_SC | 1278 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = (char *)current_SC->request_buffer; |
current_SC | 1279 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->request_bufflen; |
current_SC | 1280 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = NULL; |
current_SC | 1281 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = 0; |
current_SC | 1285 | drivers/scsi/fdomain.c | current_SC->SCp.Status = 0; |
current_SC | 1286 | drivers/scsi/fdomain.c | current_SC->SCp.Message = 0; |
current_SC | 1287 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 0; |
current_SC | 1288 | drivers/scsi/fdomain.c | current_SC->SCp.sent_command = 0; |
current_SC | 1289 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_arbitration; |
current_SC | 1412 | drivers/scsi/fdomain.c | current_SC->SCp.phase |= aborted; |
current_SC | 1414 | drivers/scsi/fdomain.c | current_SC->result = DID_ABORT << 16; |
current_SC | 1435 | drivers/scsi/fdomain.c | if (called_once) print_info( current_SC ); |