tag | line | file | source code |
current_SC | 311 | drivers/scsi/aha152x.c | static Scsi_Cmnd *current_SC = NULL; |
current_SC | 805 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 870 | drivers/scsi/aha152x.c | if ( TESTLO(SSTAT1, BUSFREE) || (current_SC && current_SC!=SCpnt)) |
current_SC | 874 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 883 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 887 | drivers/scsi/aha152x.c | current_SC->result = DID_ERROR << 16; |
current_SC | 888 | drivers/scsi/aha152x.c | current_SC->done(current_SC); |
current_SC | 889 | drivers/scsi/aha152x.c | current_SC = (Scsi_Cmnd *) NULL; |
current_SC | 910 | drivers/scsi/aha152x.c | current_SC = ptr; |
current_SC | 912 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | current_SC->target ); |
current_SC | 1003 | drivers/scsi/aha152x.c | if(current_SC && !current_SC->device->soft_reset) |
current_SC | 1005 | drivers/scsi/aha152x.c | current_SC->host_scribble = NULL; |
current_SC | 1006 | drivers/scsi/aha152x.c | current_SC->result = DID_RESET << 16; |
current_SC | 1007 | drivers/scsi/aha152x.c | current_SC->done(current_SC); |
current_SC | 1008 | drivers/scsi/aha152x.c | current_SC=NULL; |
current_SC | 1106 | drivers/scsi/aha152x.c | if (current_SC) |
current_SC | 1115 | drivers/scsi/aha152x.c | done_SC = current_SC; |
current_SC | 1116 | drivers/scsi/aha152x.c | current_SC = NULL; |
current_SC | 1192 | drivers/scsi/aha152x.c | ( !current_SC || ( current_SC->SCp.phase & in_selection ) ) |
current_SC | 1199 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 1206 | drivers/scsi/aha152x.c | append_SC( &issue_SC, current_SC); |
current_SC | 1207 | drivers/scsi/aha152x.c | current_SC=NULL; |
current_SC | 1273 | drivers/scsi/aha152x.c | current_SC = remove_SC( &disconnected_SC, |
current_SC | 1277 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 1283 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~disconnected; |
current_SC | 1296 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 1306 | drivers/scsi/aha152x.c | current_SC = remove_first_SC( &issue_SC ); |
current_SC | 1313 | drivers/scsi/aha152x.c | current_SC->SCp.phase = in_selection; |
current_SC | 1317 | drivers/scsi/aha152x.c | printk("selecting %d, ", current_SC->target); |
current_SC | 1319 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | current_SC->target ); |
current_SC | 1351 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & in_selection) |
current_SC | 1376 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
current_SC | 1394 | drivers/scsi/aha152x.c | if((aha152x_debug & debug_abort) && (current_SC->SCp.phase & aborted)) |
current_SC | 1398 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~in_selection; |
current_SC | 1399 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= in_other; |
current_SC | 1433 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
current_SC | 1458 | drivers/scsi/aha152x.c | current_SC->SCp.phase = |
current_SC | 1459 | drivers/scsi/aha152x.c | (current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 ); |
current_SC | 1473 | drivers/scsi/aha152x.c | if( current_SC->SCp.phase & aborted ) |
current_SC | 1485 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.phase & sent_ident)) |
current_SC | 1487 | drivers/scsi/aha152x.c | message=IDENTIFY(can_disconnect,current_SC->lun); |
current_SC | 1491 | drivers/scsi/aha152x.c | can_disconnect ? "enabled" : "disabled", current_SC->lun); |
current_SC | 1523 | drivers/scsi/aha152x.c | if(message==IDENTIFY(can_disconnect,current_SC->lun)) |
current_SC | 1524 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= sent_ident; |
current_SC | 1532 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 1550 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.sent_command) ) |
current_SC | 1583 | drivers/scsi/aha152x.c | current_SC->cmd_len >>1 ); |
current_SC | 1589 | drivers/scsi/aha152x.c | ¤t_SC->cmnd, |
current_SC | 1590 | drivers/scsi/aha152x.c | current_SC->cmd_len >>1 ); |
current_SC | 1615 | drivers/scsi/aha152x.c | current_SC->cmd_len); |
current_SC | 1635 | drivers/scsi/aha152x.c | current_SC->SCp.Message = GETPORT( SCSIBUS ); |
current_SC | 1636 | drivers/scsi/aha152x.c | switch(current_SC->SCp.Message) |
current_SC | 1643 | drivers/scsi/aha152x.c | current_SC->SCp.Message = 0; |
current_SC | 1644 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= disconnected; |
current_SC | 1762 | drivers/scsi/aha152x.c | printk("unsupported inbound message %x, ", current_SC->SCp.Message); |
current_SC | 1775 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & disconnected) |
current_SC | 1782 | drivers/scsi/aha152x.c | append_SC( &disconnected_SC, current_SC); |
current_SC | 1783 | drivers/scsi/aha152x.c | current_SC = NULL; |
current_SC | 1809 | drivers/scsi/aha152x.c | current_SC->SCp.Status = GETPORT( SCSIBUS ); |
current_SC | 1817 | drivers/scsi/aha152x.c | print_status( current_SC->SCp.Status ); |
current_SC | 1881 | drivers/scsi/aha152x.c | while( fifodata && current_SC->SCp.this_residual ) |
current_SC | 1886 | drivers/scsi/aha152x.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1887 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1900 | drivers/scsi/aha152x.c | *current_SC->SCp.ptr++ = GETPORT( DATAPORT ); |
current_SC | 1901 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
current_SC | 1907 | drivers/scsi/aha152x.c | insw( DATAPORT, current_SC->SCp.ptr, data_count ); |
current_SC | 1918 | drivers/scsi/aha152x.c | data = (unsigned char *) current_SC->SCp.ptr; |
current_SC | 1924 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1925 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1929 | drivers/scsi/aha152x.c | if (!current_SC->SCp.this_residual && |
current_SC | 1930 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
current_SC | 1933 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
current_SC | 1934 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
current_SC | 1935 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
current_SC | 1936 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
current_SC | 1937 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
current_SC | 1938 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
current_SC | 1966 | drivers/scsi/aha152x.c | if((aha152x_debug & debug_datai) && (current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)) |
current_SC | 1968 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
current_SC | 1969 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual); |
current_SC | 1982 | drivers/scsi/aha152x.c | current_SC->SCp.have_data_in++; |
current_SC | 1997 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 1998 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ); |
current_SC | 2019 | drivers/scsi/aha152x.c | (current_SC->SCp.this_residual || |
current_SC | 2020 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) ) |
current_SC | 2025 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 2026 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
current_SC | 2029 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual > 128 ? |
current_SC | 2030 | drivers/scsi/aha152x.c | 128 : current_SC->SCp.this_residual ; |
current_SC | 2041 | drivers/scsi/aha152x.c | SETPORT(DATAPORT, *current_SC->SCp.ptr++); |
current_SC | 2042 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
current_SC | 2048 | drivers/scsi/aha152x.c | outsw( DATAPORT, current_SC->SCp.ptr, data_count ); |
current_SC | 2049 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 2050 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 2065 | drivers/scsi/aha152x.c | !current_SC->SCp.this_residual && |
current_SC | 2066 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
current_SC | 2069 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
current_SC | 2070 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
current_SC | 2071 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
current_SC | 2072 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
current_SC | 2073 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
current_SC | 2074 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
current_SC | 2078 | drivers/scsi/aha152x.c | if ( current_SC->SCp.this_residual || |
current_SC | 2079 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ) |
current_SC | 2088 | drivers/scsi/aha152x.c | current_SC->SCp.ptr -= data_count; |
current_SC | 2089 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual += data_count; |
current_SC | 2093 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 2094 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
current_SC | 2113 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 2114 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
current_SC | 2140 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 2152 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 2180 | drivers/scsi/aha152x.c | aha152x_done( (current_SC->SCp.Status & 0xff) |
current_SC | 2181 | drivers/scsi/aha152x.c | | ( (current_SC->SCp.Message & 0xff) << 8) |
current_SC | 2186 | drivers/scsi/aha152x.c | current_SC->SCp.Status, current_SC->SCp.Message); |
current_SC | 2191 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 2192 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= 1<<16 ; |
current_SC | 2229 | drivers/scsi/aha152x.c | printk("\n%s: ", current_SC ? "on bus" : "waiting"); |
current_SC | 2533 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 2534 | drivers/scsi/aha152x.c | show_command(current_SC); |
current_SC | 283 | drivers/scsi/fdomain.c | static Scsi_Cmnd *current_SC = NULL; |
current_SC | 872 | drivers/scsi/fdomain.c | current_SC->result = error; |
current_SC | 873 | drivers/scsi/fdomain.c | if (current_SC->scsi_done) |
current_SC | 874 | drivers/scsi/fdomain.c | current_SC->scsi_done( current_SC ); |
current_SC | 895 | drivers/scsi/fdomain.c | if (!in_command || !current_SC) { /* Spurious interrupt */ |
current_SC | 898 | drivers/scsi/fdomain.c | in_command, current_SC ); |
current_SC | 904 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & aborted) { |
current_SC | 916 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & in_arbitration) { |
current_SC | 925 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_selection; |
current_SC | 930 | drivers/scsi/fdomain.c | outb( adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port ); |
current_SC | 938 | drivers/scsi/fdomain.c | } else if (current_SC->SCp.phase & in_selection) { |
current_SC | 942 | drivers/scsi/fdomain.c | if (fdomain_select( current_SC->target )) { |
current_SC | 956 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_other; |
current_SC | 974 | drivers/scsi/fdomain.c | outb( current_SC->cmnd[current_SC->SCp.sent_command++], |
current_SC | 978 | drivers/scsi/fdomain.c | current_SC->cmnd[ current_SC->SCp.sent_command - 1] ); |
current_SC | 982 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
current_SC | 983 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
current_SC | 988 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
current_SC | 989 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
current_SC | 994 | drivers/scsi/fdomain.c | current_SC->SCp.Status = inb( Read_SCSI_Data_port ); |
current_SC | 996 | drivers/scsi/fdomain.c | printk( "Status = %x, ", current_SC->SCp.Status ); |
current_SC | 999 | drivers/scsi/fdomain.c | if (current_SC->SCp.Status && current_SC->SCp.Status != 2) { |
current_SC | 1002 | drivers/scsi/fdomain.c | current_SC->target, current_SC->cmnd[0], |
current_SC | 1003 | drivers/scsi/fdomain.c | current_SC->SCp.Status ); |
current_SC | 1011 | drivers/scsi/fdomain.c | current_SC->SCp.Message = inb( Read_SCSI_Data_port ); |
current_SC | 1013 | drivers/scsi/fdomain.c | printk( "Message = %x, ", current_SC->SCp.Message ); |
current_SC | 1015 | drivers/scsi/fdomain.c | if (!current_SC->SCp.Message) ++done; |
current_SC | 1017 | drivers/scsi/fdomain.c | if (current_SC->SCp.Message) { |
current_SC | 1019 | drivers/scsi/fdomain.c | current_SC->SCp.Message ); |
current_SC | 1027 | drivers/scsi/fdomain.c | && !current_SC->SCp.have_data_in |
current_SC | 1028 | drivers/scsi/fdomain.c | && (current_SC->SCp.sent_command |
current_SC | 1029 | drivers/scsi/fdomain.c | >= current_SC->cmd_len)) { |
current_SC | 1156 | drivers/scsi/fdomain.c | switch (current_SC->cmnd[0]) { |
current_SC | 1177 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
current_SC | 1184 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
current_SC | 1190 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == -1) { /* DATA OUT */ |
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 | outb( *current_SC->SCp.ptr++, Write_FIFO_port ); |
current_SC | 1203 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
current_SC | 1206 | drivers/scsi/fdomain.c | outsw( Write_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 | if (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 | if (current_SC->SCp.have_data_in == 1) { /* DATA IN */ |
current_SC | 1228 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1229 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1235 | drivers/scsi/fdomain.c | *current_SC->SCp.ptr++ = inb( Read_FIFO_port ); |
current_SC | 1236 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
current_SC | 1239 | drivers/scsi/fdomain.c | insw( Read_FIFO_port, current_SC->SCp.ptr, data_count ); |
current_SC | 1240 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1241 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1244 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual |
current_SC | 1245 | drivers/scsi/fdomain.c | && current_SC->SCp.buffers_residual) { |
current_SC | 1246 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
current_SC | 1247 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
current_SC | 1248 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1249 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1256 | drivers/scsi/fdomain.c | printk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in ); |
current_SC | 1260 | drivers/scsi/fdomain.c | if (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) { |
current_SC | 1261 | drivers/scsi/fdomain.c | if ((unsigned char)(*((char *)current_SC->request_buffer+2)) & 0x0f) { |
current_SC | 1266 | drivers/scsi/fdomain.c | key = (unsigned char)(*((char *)current_SC->request_buffer + 2)) |
current_SC | 1268 | drivers/scsi/fdomain.c | code = (unsigned char)(*((char *)current_SC->request_buffer + 12)); |
current_SC | 1269 | drivers/scsi/fdomain.c | qualifier = (unsigned char)(*((char *)current_SC->request_buffer |
current_SC | 1289 | drivers/scsi/fdomain.c | my_done( (current_SC->SCp.Status & 0xff) |
current_SC | 1290 | drivers/scsi/fdomain.c | | ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) ); |
current_SC | 1296 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & disconnect) { |
current_SC | 1324 | drivers/scsi/fdomain.c | current_SC = SCpnt; /* Save this for the done function */ |
current_SC | 1325 | drivers/scsi/fdomain.c | current_SC->scsi_done = done; |
current_SC | 1329 | drivers/scsi/fdomain.c | if (current_SC->use_sg) { |
current_SC | 1330 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = |
current_SC | 1331 | drivers/scsi/fdomain.c | (struct scatterlist *)current_SC->request_buffer; |
current_SC | 1332 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1333 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1334 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = current_SC->use_sg - 1; |
current_SC | 1336 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = (char *)current_SC->request_buffer; |
current_SC | 1337 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->request_bufflen; |
current_SC | 1338 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = NULL; |
current_SC | 1339 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = 0; |
current_SC | 1343 | drivers/scsi/fdomain.c | current_SC->SCp.Status = 0; |
current_SC | 1344 | drivers/scsi/fdomain.c | current_SC->SCp.Message = 0; |
current_SC | 1345 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 0; |
current_SC | 1346 | drivers/scsi/fdomain.c | current_SC->SCp.sent_command = 0; |
current_SC | 1347 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_arbitration; |
current_SC | 1470 | drivers/scsi/fdomain.c | current_SC->SCp.phase |= aborted; |
current_SC | 1472 | drivers/scsi/fdomain.c | current_SC->result = DID_ABORT << 16; |
current_SC | 1493 | drivers/scsi/fdomain.c | if (called_once) print_info( current_SC ); |