tag | line | file | source code |
current_SC | 330 | drivers/scsi/aha152x.c | static Scsi_Cmnd *current_SC = NULL; |
current_SC | 844 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 911 | drivers/scsi/aha152x.c | if ( TESTLO(SSTAT1, BUSFREE) || (current_SC && current_SC!=SCpnt)) |
current_SC | 915 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 924 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 928 | drivers/scsi/aha152x.c | current_SC->result = DID_ERROR << 16; |
current_SC | 929 | drivers/scsi/aha152x.c | current_SC->done(current_SC); |
current_SC | 930 | drivers/scsi/aha152x.c | current_SC = (Scsi_Cmnd *) NULL; |
current_SC | 951 | drivers/scsi/aha152x.c | current_SC = ptr; |
current_SC | 953 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | current_SC->target ); |
current_SC | 1046 | drivers/scsi/aha152x.c | if(current_SC && !current_SC->device->soft_reset) |
current_SC | 1048 | drivers/scsi/aha152x.c | current_SC->host_scribble = NULL; |
current_SC | 1049 | drivers/scsi/aha152x.c | current_SC->result = DID_RESET << 16; |
current_SC | 1050 | drivers/scsi/aha152x.c | current_SC->done(current_SC); |
current_SC | 1051 | drivers/scsi/aha152x.c | current_SC=NULL; |
current_SC | 1151 | drivers/scsi/aha152x.c | if (current_SC) |
current_SC | 1161 | drivers/scsi/aha152x.c | done_SC = current_SC; |
current_SC | 1162 | drivers/scsi/aha152x.c | current_SC = NULL; |
current_SC | 1239 | drivers/scsi/aha152x.c | ( !current_SC || ( current_SC->SCp.phase & in_selection ) ) |
current_SC | 1246 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 1254 | drivers/scsi/aha152x.c | append_SC( &issue_SC, current_SC); |
current_SC | 1255 | drivers/scsi/aha152x.c | current_SC=NULL; |
current_SC | 1323 | drivers/scsi/aha152x.c | current_SC = remove_SC( &disconnected_SC, |
current_SC | 1327 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 1333 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~disconnected; |
current_SC | 1346 | drivers/scsi/aha152x.c | if(!current_SC) |
current_SC | 1357 | drivers/scsi/aha152x.c | current_SC = remove_first_SC( &issue_SC ); |
current_SC | 1364 | drivers/scsi/aha152x.c | current_SC->SCp.phase = in_selection; |
current_SC | 1368 | drivers/scsi/aha152x.c | printk("selecting %d, ", current_SC->target); |
current_SC | 1370 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | current_SC->target ); |
current_SC | 1402 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & in_selection) |
current_SC | 1427 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
current_SC | 1445 | drivers/scsi/aha152x.c | if((aha152x_debug & debug_abort) && (current_SC->SCp.phase & aborted)) |
current_SC | 1449 | drivers/scsi/aha152x.c | current_SC->SCp.phase &= ~in_selection; |
current_SC | 1450 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= in_other; |
current_SC | 1484 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & aborted) |
current_SC | 1509 | drivers/scsi/aha152x.c | current_SC->SCp.phase = |
current_SC | 1510 | drivers/scsi/aha152x.c | (current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 ); |
current_SC | 1524 | drivers/scsi/aha152x.c | if( current_SC->SCp.phase & aborted ) |
current_SC | 1536 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.phase & sent_ident)) |
current_SC | 1538 | drivers/scsi/aha152x.c | message=IDENTIFY(can_disconnect,current_SC->lun); |
current_SC | 1542 | drivers/scsi/aha152x.c | can_disconnect ? "enabled" : "disabled", current_SC->lun); |
current_SC | 1574 | drivers/scsi/aha152x.c | if(message==IDENTIFY(can_disconnect,current_SC->lun)) |
current_SC | 1575 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= sent_ident; |
current_SC | 1583 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 1601 | drivers/scsi/aha152x.c | if( !(current_SC->SCp.sent_command) ) |
current_SC | 1634 | drivers/scsi/aha152x.c | current_SC->cmd_len, current_SC->cmd_len >> 1 ); |
current_SC | 1639 | drivers/scsi/aha152x.c | outsw( DATAPORT, ¤t_SC->cmnd, current_SC->cmd_len >> 1 ); |
current_SC | 1679 | drivers/scsi/aha152x.c | current_SC->cmd_len); |
current_SC | 1699 | drivers/scsi/aha152x.c | current_SC->SCp.Message = GETPORT( SCSIBUS ); |
current_SC | 1700 | drivers/scsi/aha152x.c | switch(current_SC->SCp.Message) |
current_SC | 1707 | drivers/scsi/aha152x.c | current_SC->SCp.Message = 0; |
current_SC | 1708 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= disconnected; |
current_SC | 1826 | drivers/scsi/aha152x.c | printk("unsupported inbound message %x, ", current_SC->SCp.Message); |
current_SC | 1839 | drivers/scsi/aha152x.c | if(current_SC->SCp.phase & disconnected) |
current_SC | 1847 | drivers/scsi/aha152x.c | append_SC( &disconnected_SC, current_SC); |
current_SC | 1848 | drivers/scsi/aha152x.c | current_SC = NULL; |
current_SC | 1874 | drivers/scsi/aha152x.c | current_SC->SCp.Status = GETPORT( SCSIBUS ); |
current_SC | 1882 | drivers/scsi/aha152x.c | print_status( current_SC->SCp.Status ); |
current_SC | 1946 | drivers/scsi/aha152x.c | while( fifodata && current_SC->SCp.this_residual ) |
current_SC | 1951 | drivers/scsi/aha152x.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1952 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1965 | drivers/scsi/aha152x.c | *current_SC->SCp.ptr++ = GETPORT( DATAPORT ); |
current_SC | 1966 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
current_SC | 1972 | drivers/scsi/aha152x.c | insw( DATAPORT, current_SC->SCp.ptr, data_count ); |
current_SC | 1983 | drivers/scsi/aha152x.c | data = (unsigned char *) current_SC->SCp.ptr; |
current_SC | 1989 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1990 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1994 | drivers/scsi/aha152x.c | if (!current_SC->SCp.this_residual && |
current_SC | 1995 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
current_SC | 1998 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
current_SC | 1999 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
current_SC | 2000 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
current_SC | 2001 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
current_SC | 2002 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
current_SC | 2003 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
current_SC | 2031 | drivers/scsi/aha152x.c | if((aha152x_debug & debug_datai) && (current_SC->SCp.buffers_residual || current_SC->SCp.this_residual)) |
current_SC | 2033 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
current_SC | 2034 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual); |
current_SC | 2047 | drivers/scsi/aha152x.c | current_SC->SCp.have_data_in++; |
current_SC | 2062 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 2063 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ); |
current_SC | 2084 | drivers/scsi/aha152x.c | (current_SC->SCp.this_residual || |
current_SC | 2085 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) ) |
current_SC | 2090 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 2091 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
current_SC | 2094 | drivers/scsi/aha152x.c | data_count = current_SC->SCp.this_residual > 128 ? |
current_SC | 2095 | drivers/scsi/aha152x.c | 128 : current_SC->SCp.this_residual ; |
current_SC | 2106 | drivers/scsi/aha152x.c | SETPORT(DATAPORT, *current_SC->SCp.ptr++); |
current_SC | 2107 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual--; |
current_SC | 2113 | drivers/scsi/aha152x.c | outsw( DATAPORT, current_SC->SCp.ptr, data_count ); |
current_SC | 2114 | drivers/scsi/aha152x.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 2115 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 2130 | drivers/scsi/aha152x.c | !current_SC->SCp.this_residual && |
current_SC | 2131 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual) |
current_SC | 2134 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual--; |
current_SC | 2135 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
current_SC | 2136 | drivers/scsi/aha152x.c | current_SC->SCp.ptr = |
current_SC | 2137 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
current_SC | 2138 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual = |
current_SC | 2139 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
current_SC | 2143 | drivers/scsi/aha152x.c | if ( current_SC->SCp.this_residual || |
current_SC | 2144 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual ) |
current_SC | 2153 | drivers/scsi/aha152x.c | current_SC->SCp.ptr -= data_count; |
current_SC | 2154 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual += data_count; |
current_SC | 2158 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 2159 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual, |
current_SC | 2178 | drivers/scsi/aha152x.c | current_SC->SCp.this_residual, |
current_SC | 2179 | drivers/scsi/aha152x.c | current_SC->SCp.buffers_residual); |
current_SC | 2205 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 2217 | drivers/scsi/aha152x.c | current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16)); |
current_SC | 2245 | drivers/scsi/aha152x.c | aha152x_done( (current_SC->SCp.Status & 0xff) |
current_SC | 2246 | drivers/scsi/aha152x.c | | ( (current_SC->SCp.Message & 0xff) << 8) |
current_SC | 2251 | drivers/scsi/aha152x.c | current_SC->SCp.Status, current_SC->SCp.Message); |
current_SC | 2256 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 2257 | drivers/scsi/aha152x.c | current_SC->SCp.phase |= 1<<16 ; |
current_SC | 2296 | drivers/scsi/aha152x.c | printk("\n%s: ", current_SC ? "on bus" : "waiting"); |
current_SC | 2608 | drivers/scsi/aha152x.c | if(current_SC) |
current_SC | 2609 | drivers/scsi/aha152x.c | show_command(current_SC); |
current_SC | 287 | drivers/scsi/fdomain.c | static Scsi_Cmnd *current_SC = NULL; |
current_SC | 891 | drivers/scsi/fdomain.c | current_SC->result = error; |
current_SC | 892 | drivers/scsi/fdomain.c | if (current_SC->scsi_done) |
current_SC | 893 | drivers/scsi/fdomain.c | current_SC->scsi_done( current_SC ); |
current_SC | 920 | drivers/scsi/fdomain.c | if (!in_command || !current_SC) { /* Spurious interrupt */ |
current_SC | 923 | drivers/scsi/fdomain.c | in_command, current_SC ); |
current_SC | 929 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & aborted) { |
current_SC | 941 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & in_arbitration) { |
current_SC | 950 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_selection; |
current_SC | 955 | drivers/scsi/fdomain.c | outb( adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port ); |
current_SC | 963 | drivers/scsi/fdomain.c | } else if (current_SC->SCp.phase & in_selection) { |
current_SC | 967 | drivers/scsi/fdomain.c | if (fdomain_select( current_SC->target )) { |
current_SC | 981 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_other; |
current_SC | 999 | drivers/scsi/fdomain.c | outb( current_SC->cmnd[current_SC->SCp.sent_command++], |
current_SC | 1003 | drivers/scsi/fdomain.c | current_SC->cmnd[ current_SC->SCp.sent_command - 1] ); |
current_SC | 1007 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
current_SC | 1008 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
current_SC | 1013 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
current_SC | 1014 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
current_SC | 1019 | drivers/scsi/fdomain.c | current_SC->SCp.Status = inb( Read_SCSI_Data_port ); |
current_SC | 1021 | drivers/scsi/fdomain.c | printk( "Status = %x, ", current_SC->SCp.Status ); |
current_SC | 1024 | drivers/scsi/fdomain.c | if (current_SC->SCp.Status && current_SC->SCp.Status != 2) { |
current_SC | 1026 | drivers/scsi/fdomain.c | current_SC->target, |
current_SC | 1027 | drivers/scsi/fdomain.c | current_SC->cmnd[0], |
current_SC | 1028 | drivers/scsi/fdomain.c | current_SC->SCp.Status ); |
current_SC | 1036 | drivers/scsi/fdomain.c | current_SC->SCp.Message = inb( Read_SCSI_Data_port ); |
current_SC | 1038 | drivers/scsi/fdomain.c | printk( "Message = %x, ", current_SC->SCp.Message ); |
current_SC | 1040 | drivers/scsi/fdomain.c | if (!current_SC->SCp.Message) ++done; |
current_SC | 1042 | drivers/scsi/fdomain.c | if (current_SC->SCp.Message) { |
current_SC | 1043 | drivers/scsi/fdomain.c | printk( "fdomain: message = %x\n", current_SC->SCp.Message ); |
current_SC | 1051 | drivers/scsi/fdomain.c | && !current_SC->SCp.have_data_in |
current_SC | 1052 | drivers/scsi/fdomain.c | && (current_SC->SCp.sent_command |
current_SC | 1053 | drivers/scsi/fdomain.c | >= current_SC->cmd_len)) { |
current_SC | 1180 | drivers/scsi/fdomain.c | switch (current_SC->cmnd[0]) { |
current_SC | 1201 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
current_SC | 1208 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
current_SC | 1214 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == -1) { /* DATA OUT */ |
current_SC | 1219 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1220 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1226 | drivers/scsi/fdomain.c | outb( *current_SC->SCp.ptr++, Write_FIFO_port ); |
current_SC | 1227 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
current_SC | 1230 | drivers/scsi/fdomain.c | outsw( Write_FIFO_port, current_SC->SCp.ptr, data_count ); |
current_SC | 1231 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1232 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1235 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual) { |
current_SC | 1236 | drivers/scsi/fdomain.c | if (current_SC->SCp.buffers_residual) { |
current_SC | 1237 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
current_SC | 1238 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
current_SC | 1239 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1240 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1247 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == 1) { /* DATA IN */ |
current_SC | 1252 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1253 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1259 | drivers/scsi/fdomain.c | *current_SC->SCp.ptr++ = inb( Read_FIFO_port ); |
current_SC | 1260 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
current_SC | 1263 | drivers/scsi/fdomain.c | insw( Read_FIFO_port, current_SC->SCp.ptr, data_count ); |
current_SC | 1264 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1265 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1268 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual |
current_SC | 1269 | drivers/scsi/fdomain.c | && current_SC->SCp.buffers_residual) { |
current_SC | 1270 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
current_SC | 1271 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
current_SC | 1272 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1273 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1280 | drivers/scsi/fdomain.c | printk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in ); |
current_SC | 1284 | drivers/scsi/fdomain.c | if (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) { |
current_SC | 1285 | drivers/scsi/fdomain.c | if ((unsigned char)(*((char *)current_SC->request_buffer+2)) & 0x0f) { |
current_SC | 1290 | drivers/scsi/fdomain.c | key = (unsigned char)(*((char *)current_SC->request_buffer + 2)) |
current_SC | 1292 | drivers/scsi/fdomain.c | code = (unsigned char)(*((char *)current_SC->request_buffer + 12)); |
current_SC | 1293 | drivers/scsi/fdomain.c | qualifier = (unsigned char)(*((char *)current_SC->request_buffer |
current_SC | 1313 | drivers/scsi/fdomain.c | my_done( (current_SC->SCp.Status & 0xff) |
current_SC | 1314 | drivers/scsi/fdomain.c | | ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) ); |
current_SC | 1320 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & disconnect) { |
current_SC | 1348 | drivers/scsi/fdomain.c | current_SC = SCpnt; /* Save this for the done function */ |
current_SC | 1349 | drivers/scsi/fdomain.c | current_SC->scsi_done = done; |
current_SC | 1353 | drivers/scsi/fdomain.c | if (current_SC->use_sg) { |
current_SC | 1354 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = |
current_SC | 1355 | drivers/scsi/fdomain.c | (struct scatterlist *)current_SC->request_buffer; |
current_SC | 1356 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1357 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1358 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = current_SC->use_sg - 1; |
current_SC | 1360 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = (char *)current_SC->request_buffer; |
current_SC | 1361 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->request_bufflen; |
current_SC | 1362 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = NULL; |
current_SC | 1363 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = 0; |
current_SC | 1367 | drivers/scsi/fdomain.c | current_SC->SCp.Status = 0; |
current_SC | 1368 | drivers/scsi/fdomain.c | current_SC->SCp.Message = 0; |
current_SC | 1369 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 0; |
current_SC | 1370 | drivers/scsi/fdomain.c | current_SC->SCp.sent_command = 0; |
current_SC | 1371 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_arbitration; |
current_SC | 1501 | drivers/scsi/fdomain.c | current_SC->SCp.phase |= aborted; |
current_SC | 1503 | drivers/scsi/fdomain.c | current_SC->result = DID_ABORT << 16; |
current_SC | 1524 | drivers/scsi/fdomain.c | if (called_once) print_info( current_SC ); |