tag | line | file | source code |
current_SC | 255 | drivers/scsi/aha152x.c | static Scsi_Cmnd *current_SC = NULL; |
current_SC | 766 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 823 | drivers/scsi/aha152x.c | if (current_SC) |
current_SC | 848 | drivers/scsi/aha152x.c | current_SC = ptr; |
current_SC | 850 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | current_SC->target ); |
current_SC | 930 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 932 | drivers/scsi/aha152x.c | current_SC->host_scribble = NULL; |
current_SC | 933 | drivers/scsi/aha152x.c | current_SC->result = DID_RESET << 16; |
current_SC | 934 | drivers/scsi/aha152x.c | current_SC->done(current_SC); |
current_SC | 935 | drivers/scsi/aha152x.c | current_SC=NULL; |
current_SC | 1008 | drivers/scsi/aha152x.c | if (current_SC) |
current_SC | 1016 | drivers/scsi/aha152x.c | done_SC = current_SC; |
current_SC | 1017 | drivers/scsi/aha152x.c | current_SC = NULL; |
current_SC | 1087 | drivers/scsi/aha152x.c | ( !current_SC || ( current_SC->SCp.phase & in_selection ) ) |
current_SC | 1094 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 1100 | drivers/scsi/aha152x.c | append_SC( &issue_SC, current_SC); |
current_SC | 1101 | drivers/scsi/aha152x.c | current_SC=NULL; |
current_SC | 1163 | drivers/scsi/aha152x.c | current_SC = remove_SC( &disconnected_SC, |
current_SC | 1167 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 1173 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~disconnected; |
current_SC | 1186 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 1195 | drivers/scsi/aha152x.c | current_SC = remove_first_SC( &issue_SC ); |
current_SC | 1201 | drivers/scsi/aha152x.c | current_SC->SCp.phase = in_selection; |
current_SC | 1204 | drivers/scsi/aha152x.c | printk("selecting %d, ", current_SC->target); |
current_SC | 1206 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | current_SC->target ); |
current_SC | 1237 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & in_selection) |
current_SC | 1262 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
current_SC | 1279 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
current_SC | 1283 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~in_selection; |
current_SC | 1284 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= in_other; |
current_SC | 1314 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
current_SC | 1338 | drivers/scsi/aha152x.c | current_SC->SCp.phase = |
current_SC | 1339 | drivers/scsi/aha152x.c | (current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 ); |
current_SC | 1352 | drivers/scsi/aha152x.c | if( current_SC->SCp.phase & aborted ) |
current_SC | 1363 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.phase & sent_ident)) |
current_SC | 1365 | drivers/scsi/aha152x.c | message=IDENTIFY(can_disconnect,current_SC->lun); |
current_SC | 1368 | drivers/scsi/aha152x.c | can_disconnect ? "enabled" : "disabled", current_SC->lun); |
current_SC | 1399 | drivers/scsi/aha152x.c | if(message==IDENTIFY(can_disconnect,current_SC->lun)) |
current_SC | 1400 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= sent_ident; |
current_SC | 1408 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 1425 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.sent_command) ) |
current_SC | 1455 | drivers/scsi/aha152x.c | COMMAND_SIZE(current_SC->cmnd[0])>>1); |
current_SC | 1459 | drivers/scsi/aha152x.c | outsw( ¤t_SC->cmnd, |
current_SC | 1460 | drivers/scsi/aha152x.c | COMMAND_SIZE(current_SC->cmnd[0])>>1, |
current_SC | 1482 | drivers/scsi/aha152x.c | COMMAND_SIZE(current_SC->cmnd[0])); |
current_SC | 1501 | drivers/scsi/aha152x.c | current_SC->SCp.Message = GETPORT( SCSIDAT ); |
current_SC | 1502 | drivers/scsi/aha152x.c | switch(current_SC->SCp.Message) |
current_SC | 1508 | drivers/scsi/aha152x.c | current_SC->SCp.Message = 0; |
current_SC | 1509 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= disconnected; |
current_SC | 1618 | drivers/scsi/aha152x.c | printk("unsupported inbound message %x, ", current_SC->SCp.Message); |
current_SC | 1631 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & disconnected) |
current_SC | 1637 | drivers/scsi/aha152x.c | append_SC( &disconnected_SC, current_SC); |
current_SC | 1638 | drivers/scsi/aha152x.c | current_SC = NULL; |
current_SC | 1675 | drivers/scsi/aha152x.c | current_SC->SCp.Status = GETPORT( SCSIDAT ); |
current_SC | 1681 | drivers/scsi/aha152x.c | print_status( current_SC->SCp.Status ); |
current_SC | 1747 | drivers/scsi/aha152x.c | while( fifodata && current_SC->SCp.this_residual ) |
current_SC | 1752 | drivers/scsi/aha152x.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1753 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1765 | drivers/scsi/aha152x.c | *current_SC->SCp.ptr++ = GETPORT( DATAPORT ); |
current_SC | 1766 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
current_SC | 1772 | drivers/scsi/aha152x.c | insw( current_SC->SCp.ptr, data_count, DATAPORT ); |
current_SC | 1782 | drivers/scsi/aha152x.c | data = (unsigned char *) current_SC->SCp.ptr; |
current_SC | 1788 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1789 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1793 | drivers/scsi/aha152x.c | if (!current_SC->SCp.this_residual && |
current_SC | 1794 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
current_SC | 1797 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
current_SC | 1798 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
current_SC | 1799 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
current_SC | 1800 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
current_SC | 1801 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
current_SC | 1802 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
current_SC | 1824 | drivers/scsi/aha152x.c | if(current_SC->SCp.buffers_residual || current_SC->SCp.this_residual) |
current_SC | 1826 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
current_SC | 1827 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual); |
current_SC | 1839 | drivers/scsi/aha152x.c | current_SC->SCp.have_data_in++; |
current_SC | 1852 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 1853 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ); |
current_SC | 1874 | drivers/scsi/aha152x.c | (current_SC->SCp.this_residual || |
current_SC | 1875 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) ) |
current_SC | 1879 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 1880 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
current_SC | 1883 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual > 128 ? |
current_SC | 1884 | drivers/scsi/aha152x.c | 128 : current_SC->SCp.this_residual ; |
current_SC | 1894 | drivers/scsi/aha152x.c | SETPORT(DATAPORT, *current_SC->SCp.ptr++); |
current_SC | 1895 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
current_SC | 1901 | drivers/scsi/aha152x.c | outsw( current_SC->SCp.ptr, data_count, DATAPORT ); |
current_SC | 1902 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1903 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
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 | current_SC->SCp.buffers_residual--; |
current_SC | 1922 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
current_SC | 1923 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
current_SC | 1924 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
current_SC | 1925 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
current_SC | 1926 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
current_SC | 1930 | drivers/scsi/aha152x.c | if ( current_SC->SCp.this_residual || |
current_SC | 1931 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ) |
current_SC | 1940 | drivers/scsi/aha152x.c | current_SC->SCp.ptr -= data_count; |
current_SC | 1941 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual += data_count; |
current_SC | 1944 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 1945 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
current_SC | 1966 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 1967 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
current_SC | 1991 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 2003 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 2030 | drivers/scsi/aha152x.c | aha152x_done( (current_SC->SCp.Status & 0xff) |
current_SC | 2031 | drivers/scsi/aha152x.c | | ( (current_SC->SCp.Message & 0xff) << 8) |
current_SC | 2036 | drivers/scsi/aha152x.c | current_SC->SCp.Status, current_SC->SCp.Message); |
current_SC | 2041 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 2042 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= 1<<16 ; |
current_SC | 2075 | drivers/scsi/aha152x.c | printk("\n%s: ", current_SC ? "on bus" : "waiting"); |
current_SC | 2382 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 2383 | drivers/scsi/aha152x.c | show_command(current_SC); |
current_SC | 238 | drivers/scsi/fdomain.c | static Scsi_Cmnd *current_SC = NULL; |
current_SC | 782 | drivers/scsi/fdomain.c | current_SC->result = error; |
current_SC | 783 | drivers/scsi/fdomain.c | if (current_SC->scsi_done) |
current_SC | 784 | drivers/scsi/fdomain.c | current_SC->scsi_done( current_SC ); |
current_SC | 805 | drivers/scsi/fdomain.c | if (!in_command || !current_SC) { /* Spurious interrupt */ |
current_SC | 808 | drivers/scsi/fdomain.c | in_command, current_SC ); |
current_SC | 814 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & aborted) { |
current_SC | 826 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & in_arbitration) { |
current_SC | 835 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_selection; |
current_SC | 840 | drivers/scsi/fdomain.c | outb( adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port ); |
current_SC | 848 | drivers/scsi/fdomain.c | } else if (current_SC->SCp.phase & in_selection) { |
current_SC | 852 | drivers/scsi/fdomain.c | if (fdomain_select( current_SC->target )) { |
current_SC | 866 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_other; |
current_SC | 884 | drivers/scsi/fdomain.c | outb( current_SC->cmnd[current_SC->SCp.sent_command++], |
current_SC | 888 | drivers/scsi/fdomain.c | current_SC->cmnd[ current_SC->SCp.sent_command - 1] ); |
current_SC | 892 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
current_SC | 893 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
current_SC | 898 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
current_SC | 899 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
current_SC | 904 | drivers/scsi/fdomain.c | current_SC->SCp.Status = inb( Read_SCSI_Data_port ); |
current_SC | 906 | drivers/scsi/fdomain.c | printk( "Status = %x, ", current_SC->SCp.Status ); |
current_SC | 909 | drivers/scsi/fdomain.c | if (current_SC->SCp.Status && current_SC->SCp.Status != 2) { |
current_SC | 912 | drivers/scsi/fdomain.c | current_SC->target, current_SC->cmnd[0], |
current_SC | 913 | drivers/scsi/fdomain.c | current_SC->SCp.Status ); |
current_SC | 921 | drivers/scsi/fdomain.c | current_SC->SCp.Message = inb( Read_SCSI_Data_port ); |
current_SC | 923 | drivers/scsi/fdomain.c | printk( "Message = %x, ", current_SC->SCp.Message ); |
current_SC | 925 | drivers/scsi/fdomain.c | if (!current_SC->SCp.Message) ++done; |
current_SC | 927 | drivers/scsi/fdomain.c | if (current_SC->SCp.Message) { |
current_SC | 929 | drivers/scsi/fdomain.c | current_SC->SCp.Message ); |
current_SC | 937 | drivers/scsi/fdomain.c | && !current_SC->SCp.have_data_in |
current_SC | 938 | drivers/scsi/fdomain.c | && (current_SC->SCp.sent_command |
current_SC | 939 | drivers/scsi/fdomain.c | >= COMMAND_SIZE( current_SC->cmnd[ 0 ] ))) { |
current_SC | 1066 | drivers/scsi/fdomain.c | switch (current_SC->cmnd[0]) { |
current_SC | 1087 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
current_SC | 1094 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
current_SC | 1100 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == -1) { /* DATA OUT */ |
current_SC | 1105 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1106 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1112 | drivers/scsi/fdomain.c | outb( *current_SC->SCp.ptr++, Write_FIFO_port ); |
current_SC | 1113 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
current_SC | 1116 | drivers/scsi/fdomain.c | outsw( current_SC->SCp.ptr, data_count, Write_FIFO_port ); |
current_SC | 1117 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1118 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1121 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual) { |
current_SC | 1122 | drivers/scsi/fdomain.c | if (current_SC->SCp.buffers_residual) { |
current_SC | 1123 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
current_SC | 1124 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
current_SC | 1125 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1126 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1133 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == 1) { /* DATA IN */ |
current_SC | 1138 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1139 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1145 | drivers/scsi/fdomain.c | *current_SC->SCp.ptr++ = inb( Read_FIFO_port ); |
current_SC | 1146 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
current_SC | 1149 | drivers/scsi/fdomain.c | insw( current_SC->SCp.ptr, data_count, Read_FIFO_port ); |
current_SC | 1150 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1151 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1154 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual |
current_SC | 1155 | drivers/scsi/fdomain.c | && current_SC->SCp.buffers_residual) { |
current_SC | 1156 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
current_SC | 1157 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
current_SC | 1158 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1159 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1166 | drivers/scsi/fdomain.c | printk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in ); |
current_SC | 1170 | drivers/scsi/fdomain.c | if (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) { |
current_SC | 1171 | drivers/scsi/fdomain.c | if ((unsigned char)(*((char *)current_SC->request_buffer+2)) & 0x0f) { |
current_SC | 1176 | drivers/scsi/fdomain.c | key = (unsigned char)(*((char *)current_SC->request_buffer + 2)) |
current_SC | 1178 | drivers/scsi/fdomain.c | code = (unsigned char)(*((char *)current_SC->request_buffer + 12)); |
current_SC | 1179 | drivers/scsi/fdomain.c | qualifier = (unsigned char)(*((char *)current_SC->request_buffer |
current_SC | 1199 | drivers/scsi/fdomain.c | my_done( (current_SC->SCp.Status & 0xff) |
current_SC | 1200 | drivers/scsi/fdomain.c | | ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) ); |
current_SC | 1206 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & disconnect) { |
current_SC | 1234 | drivers/scsi/fdomain.c | current_SC = SCpnt; /* Save this for the done function */ |
current_SC | 1235 | drivers/scsi/fdomain.c | current_SC->scsi_done = done; |
current_SC | 1239 | drivers/scsi/fdomain.c | if (current_SC->use_sg) { |
current_SC | 1240 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = |
current_SC | 1241 | drivers/scsi/fdomain.c | (struct scatterlist *)current_SC->request_buffer; |
current_SC | 1242 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1243 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1244 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = current_SC->use_sg - 1; |
current_SC | 1246 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = (char *)current_SC->request_buffer; |
current_SC | 1247 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->request_bufflen; |
current_SC | 1248 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = NULL; |
current_SC | 1249 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = 0; |
current_SC | 1253 | drivers/scsi/fdomain.c | current_SC->SCp.Status = 0; |
current_SC | 1254 | drivers/scsi/fdomain.c | current_SC->SCp.Message = 0; |
current_SC | 1255 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 0; |
current_SC | 1256 | drivers/scsi/fdomain.c | current_SC->SCp.sent_command = 0; |
current_SC | 1257 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_arbitration; |
current_SC | 1385 | drivers/scsi/fdomain.c | current_SC->SCp.phase |= aborted; |
current_SC | 1387 | drivers/scsi/fdomain.c | current_SC->result = code ? code : DID_ABORT; |
current_SC | 1408 | drivers/scsi/fdomain.c | if (called_once) print_info( current_SC ); |