tag | line | file | source code |
current_SC | 207 | drivers/scsi/NCR53c406a.c | static Scsi_Cmnd *current_SC = NULL; |
current_SC | 661 | drivers/scsi/NCR53c406a.c | current_SC->result = DID_TIME_OUT << 16; |
current_SC | 662 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = idle; |
current_SC | 663 | drivers/scsi/NCR53c406a.c | current_SC->scsi_done(current_SC); |
current_SC | 703 | drivers/scsi/NCR53c406a.c | current_SC = SCpnt; |
current_SC | 704 | drivers/scsi/NCR53c406a.c | current_SC->scsi_done = done; |
current_SC | 705 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = command_ph; |
current_SC | 706 | drivers/scsi/NCR53c406a.c | current_SC->SCp.Status = 0; |
current_SC | 707 | drivers/scsi/NCR53c406a.c | current_SC->SCp.Message = 0; |
current_SC | 805 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = idle; |
current_SC | 806 | drivers/scsi/NCR53c406a.c | current_SC->result = DID_RESET << 16; |
current_SC | 807 | drivers/scsi/NCR53c406a.c | current_SC->scsi_done(current_SC); |
current_SC | 814 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = idle; |
current_SC | 815 | drivers/scsi/NCR53c406a.c | current_SC->result = DID_ERROR << 16; |
current_SC | 816 | drivers/scsi/NCR53c406a.c | current_SC->scsi_done(current_SC); |
current_SC | 823 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = idle; |
current_SC | 824 | drivers/scsi/NCR53c406a.c | current_SC->result = DID_PARITY << 16; |
current_SC | 825 | drivers/scsi/NCR53c406a.c | current_SC->scsi_done(current_SC); |
current_SC | 831 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = idle; |
current_SC | 832 | drivers/scsi/NCR53c406a.c | current_SC->result = DID_ERROR << 16; |
current_SC | 833 | drivers/scsi/NCR53c406a.c | current_SC->scsi_done(current_SC); |
current_SC | 839 | drivers/scsi/NCR53c406a.c | if(current_SC->SCp.phase != message_in){ /* Unexpected disconnect */ |
current_SC | 840 | drivers/scsi/NCR53c406a.c | current_SC->result = DID_NO_CONNECT << 16; |
current_SC | 843 | drivers/scsi/NCR53c406a.c | current_SC->result = (current_SC->SCp.Status & 0xff) |
current_SC | 844 | drivers/scsi/NCR53c406a.c | | ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16); |
current_SC | 848 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = idle; |
current_SC | 849 | drivers/scsi/NCR53c406a.c | current_SC->scsi_done( current_SC ); |
current_SC | 857 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = data_out; |
current_SC | 860 | drivers/scsi/NCR53c406a.c | LOAD_DMA_COUNT(current_SC->request_bufflen); /* Max transfer size */ |
current_SC | 862 | drivers/scsi/NCR53c406a.c | NCR53c406a_dma_write(current_SC->request_buffer, |
current_SC | 863 | drivers/scsi/NCR53c406a.c | current_SC->request_bufflen); |
current_SC | 867 | drivers/scsi/NCR53c406a.c | if (!current_SC->use_sg) /* Don't use scatter-gather */ |
current_SC | 868 | drivers/scsi/NCR53c406a.c | NCR53c406a_pio_write(current_SC->request_buffer, |
current_SC | 869 | drivers/scsi/NCR53c406a.c | current_SC->request_bufflen); |
current_SC | 871 | drivers/scsi/NCR53c406a.c | sgcount = current_SC->use_sg; |
current_SC | 872 | drivers/scsi/NCR53c406a.c | sglist = current_SC->request_buffer; |
current_SC | 886 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = data_in; |
current_SC | 889 | drivers/scsi/NCR53c406a.c | LOAD_DMA_COUNT(current_SC->request_bufflen); /* Max transfer size */ |
current_SC | 891 | drivers/scsi/NCR53c406a.c | NCR53c406a_dma_read(current_SC->request_buffer, |
current_SC | 892 | drivers/scsi/NCR53c406a.c | current_SC->request_bufflen); |
current_SC | 896 | drivers/scsi/NCR53c406a.c | if (!current_SC->use_sg) /* Don't use scatter-gather */ |
current_SC | 897 | drivers/scsi/NCR53c406a.c | NCR53c406a_pio_read(current_SC->request_buffer, |
current_SC | 898 | drivers/scsi/NCR53c406a.c | current_SC->request_bufflen); |
current_SC | 900 | drivers/scsi/NCR53c406a.c | sgcount = current_SC->use_sg; |
current_SC | 901 | drivers/scsi/NCR53c406a.c | sglist = current_SC->request_buffer; |
current_SC | 913 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = command_ph; |
current_SC | 919 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = status_ph; |
current_SC | 932 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = message_out; |
current_SC | 940 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = message_in; |
current_SC | 942 | drivers/scsi/NCR53c406a.c | current_SC->SCp.Status = inb(SCSI_FIFO); |
current_SC | 943 | drivers/scsi/NCR53c406a.c | current_SC->SCp.Message = inb(SCSI_FIFO); |
current_SC | 947 | drivers/scsi/NCR53c406a.c | current_SC->SCp.Status, current_SC->SCp.Message)); |
current_SC | 949 | drivers/scsi/NCR53c406a.c | if(current_SC->SCp.Message == SAVE_POINTERS || |
current_SC | 950 | drivers/scsi/NCR53c406a.c | current_SC->SCp.Message == DISCONNECT) { |
current_SC | 351 | drivers/scsi/aha152x.c | #define CURRENT_SC (HOSTDATA(shpnt)->current_SC) |
current_SC | 362 | drivers/scsi/aha152x.c | Scsi_Cmnd *current_SC; |
current_SC | 372 | drivers/scsi/fdomain.c | static Scsi_Cmnd *current_SC = NULL; |
current_SC | 1264 | drivers/scsi/fdomain.c | current_SC->result = error; |
current_SC | 1265 | drivers/scsi/fdomain.c | if (current_SC->scsi_done) |
current_SC | 1266 | drivers/scsi/fdomain.c | current_SC->scsi_done( current_SC ); |
current_SC | 1293 | drivers/scsi/fdomain.c | if (!in_command || !current_SC) { /* Spurious interrupt */ |
current_SC | 1296 | drivers/scsi/fdomain.c | in_command, current_SC ); |
current_SC | 1302 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & aborted) { |
current_SC | 1314 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & in_arbitration) { |
current_SC | 1323 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_selection; |
current_SC | 1328 | drivers/scsi/fdomain.c | outb( adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port ); |
current_SC | 1336 | drivers/scsi/fdomain.c | } else if (current_SC->SCp.phase & in_selection) { |
current_SC | 1340 | drivers/scsi/fdomain.c | if (fdomain_select( current_SC->target )) { |
current_SC | 1354 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_other; |
current_SC | 1372 | drivers/scsi/fdomain.c | outb( current_SC->cmnd[current_SC->SCp.sent_command++], |
current_SC | 1376 | drivers/scsi/fdomain.c | current_SC->cmnd[ current_SC->SCp.sent_command - 1] ); |
current_SC | 1380 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
current_SC | 1381 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
current_SC | 1386 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
current_SC | 1387 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
current_SC | 1392 | drivers/scsi/fdomain.c | current_SC->SCp.Status = inb( Read_SCSI_Data_port ); |
current_SC | 1394 | drivers/scsi/fdomain.c | printk( "Status = %x, ", current_SC->SCp.Status ); |
current_SC | 1397 | drivers/scsi/fdomain.c | if (current_SC->SCp.Status && current_SC->SCp.Status != 2) { |
current_SC | 1399 | drivers/scsi/fdomain.c | current_SC->target, |
current_SC | 1400 | drivers/scsi/fdomain.c | current_SC->cmnd[0], |
current_SC | 1401 | drivers/scsi/fdomain.c | current_SC->SCp.Status ); |
current_SC | 1409 | drivers/scsi/fdomain.c | current_SC->SCp.Message = inb( Read_SCSI_Data_port ); |
current_SC | 1411 | drivers/scsi/fdomain.c | printk( "Message = %x, ", current_SC->SCp.Message ); |
current_SC | 1413 | drivers/scsi/fdomain.c | if (!current_SC->SCp.Message) ++done; |
current_SC | 1415 | drivers/scsi/fdomain.c | if (current_SC->SCp.Message) { |
current_SC | 1416 | drivers/scsi/fdomain.c | printk( "fdomain: message = %x\n", current_SC->SCp.Message ); |
current_SC | 1424 | drivers/scsi/fdomain.c | && !current_SC->SCp.have_data_in |
current_SC | 1425 | drivers/scsi/fdomain.c | && (current_SC->SCp.sent_command |
current_SC | 1426 | drivers/scsi/fdomain.c | >= current_SC->cmd_len)) { |
current_SC | 1553 | drivers/scsi/fdomain.c | switch (current_SC->cmnd[0]) { |
current_SC | 1574 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
current_SC | 1581 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
current_SC | 1587 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == -1) { /* DATA OUT */ |
current_SC | 1592 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1593 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1599 | drivers/scsi/fdomain.c | outb( *current_SC->SCp.ptr++, Write_FIFO_port ); |
current_SC | 1600 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
current_SC | 1603 | drivers/scsi/fdomain.c | outsw( Write_FIFO_port, current_SC->SCp.ptr, data_count ); |
current_SC | 1604 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1605 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1608 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual) { |
current_SC | 1609 | drivers/scsi/fdomain.c | if (current_SC->SCp.buffers_residual) { |
current_SC | 1610 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
current_SC | 1611 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
current_SC | 1612 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1613 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1620 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == 1) { /* DATA IN */ |
current_SC | 1625 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
current_SC | 1626 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
current_SC | 1632 | drivers/scsi/fdomain.c | *current_SC->SCp.ptr++ = inb( Read_FIFO_port ); |
current_SC | 1633 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
current_SC | 1636 | drivers/scsi/fdomain.c | insw( Read_FIFO_port, current_SC->SCp.ptr, data_count ); |
current_SC | 1637 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
current_SC | 1638 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
current_SC | 1641 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual |
current_SC | 1642 | drivers/scsi/fdomain.c | && current_SC->SCp.buffers_residual) { |
current_SC | 1643 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
current_SC | 1644 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
current_SC | 1645 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1646 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1653 | drivers/scsi/fdomain.c | printk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in ); |
current_SC | 1657 | drivers/scsi/fdomain.c | if (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) { |
current_SC | 1658 | drivers/scsi/fdomain.c | if ((unsigned char)(*((char *)current_SC->request_buffer+2)) & 0x0f) { |
current_SC | 1663 | drivers/scsi/fdomain.c | key = (unsigned char)(*((char *)current_SC->request_buffer + 2)) |
current_SC | 1665 | drivers/scsi/fdomain.c | code = (unsigned char)(*((char *)current_SC->request_buffer + 12)); |
current_SC | 1666 | drivers/scsi/fdomain.c | qualifier = (unsigned char)(*((char *)current_SC->request_buffer |
current_SC | 1686 | drivers/scsi/fdomain.c | my_done( (current_SC->SCp.Status & 0xff) |
current_SC | 1687 | drivers/scsi/fdomain.c | | ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) ); |
current_SC | 1693 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & disconnect) { |
current_SC | 1721 | drivers/scsi/fdomain.c | current_SC = SCpnt; /* Save this for the done function */ |
current_SC | 1722 | drivers/scsi/fdomain.c | current_SC->scsi_done = done; |
current_SC | 1726 | drivers/scsi/fdomain.c | if (current_SC->use_sg) { |
current_SC | 1727 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = |
current_SC | 1728 | drivers/scsi/fdomain.c | (struct scatterlist *)current_SC->request_buffer; |
current_SC | 1729 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
current_SC | 1730 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
current_SC | 1731 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = current_SC->use_sg - 1; |
current_SC | 1733 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = (char *)current_SC->request_buffer; |
current_SC | 1734 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->request_bufflen; |
current_SC | 1735 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = NULL; |
current_SC | 1736 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = 0; |
current_SC | 1740 | drivers/scsi/fdomain.c | current_SC->SCp.Status = 0; |
current_SC | 1741 | drivers/scsi/fdomain.c | current_SC->SCp.Message = 0; |
current_SC | 1742 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 0; |
current_SC | 1743 | drivers/scsi/fdomain.c | current_SC->SCp.sent_command = 0; |
current_SC | 1744 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_arbitration; |
current_SC | 1874 | drivers/scsi/fdomain.c | current_SC->SCp.phase |= aborted; |
current_SC | 1876 | drivers/scsi/fdomain.c | current_SC->result = DID_ABORT << 16; |
current_SC | 1897 | drivers/scsi/fdomain.c | if (called_once) print_info( current_SC ); |