Lines Matching refs:current_SC
210 static Scsi_Cmnd *current_SC; variable
676 current_SC->result = DID_TIME_OUT << 16; in wait_intr()
677 current_SC->SCp.phase = idle; in wait_intr()
678 current_SC->scsi_done(current_SC); in wait_intr()
718 current_SC = SCpnt; in NCR53c406a_queue()
719 current_SC->scsi_done = done; in NCR53c406a_queue()
720 current_SC->SCp.phase = command_ph; in NCR53c406a_queue()
721 current_SC->SCp.Status = 0; in NCR53c406a_queue()
722 current_SC->SCp.Message = 0; in NCR53c406a_queue()
829 current_SC->SCp.phase = idle; in NCR53c406a_intr()
830 current_SC->result = DID_RESET << 16; in NCR53c406a_intr()
831 current_SC->scsi_done(current_SC); in NCR53c406a_intr()
838 current_SC->SCp.phase = idle; in NCR53c406a_intr()
839 current_SC->result = DID_ERROR << 16; in NCR53c406a_intr()
840 current_SC->scsi_done(current_SC); in NCR53c406a_intr()
847 current_SC->SCp.phase = idle; in NCR53c406a_intr()
848 current_SC->result = DID_PARITY << 16; in NCR53c406a_intr()
849 current_SC->scsi_done(current_SC); in NCR53c406a_intr()
855 current_SC->SCp.phase = idle; in NCR53c406a_intr()
856 current_SC->result = DID_ERROR << 16; in NCR53c406a_intr()
857 current_SC->scsi_done(current_SC); in NCR53c406a_intr()
863 if(current_SC->SCp.phase != message_in){ /* Unexpected disconnect */ in NCR53c406a_intr()
864 current_SC->result = DID_NO_CONNECT << 16; in NCR53c406a_intr()
867 current_SC->result = (current_SC->SCp.Status & 0xff) in NCR53c406a_intr()
868 | ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16); in NCR53c406a_intr()
872 current_SC->SCp.phase = idle; in NCR53c406a_intr()
873 current_SC->scsi_done( current_SC ); in NCR53c406a_intr()
881 current_SC->SCp.phase = data_out; in NCR53c406a_intr()
884 LOAD_DMA_COUNT(current_SC->request_bufflen); /* Max transfer size */ in NCR53c406a_intr()
886 NCR53c406a_dma_write(current_SC->request_buffer, in NCR53c406a_intr()
887 current_SC->request_bufflen); in NCR53c406a_intr()
891 if (!current_SC->use_sg) /* Don't use scatter-gather */ in NCR53c406a_intr()
892 NCR53c406a_pio_write(current_SC->request_buffer, in NCR53c406a_intr()
893 current_SC->request_bufflen); in NCR53c406a_intr()
895 sgcount = current_SC->use_sg; in NCR53c406a_intr()
896 sglist = current_SC->request_buffer; in NCR53c406a_intr()
910 current_SC->SCp.phase = data_in; in NCR53c406a_intr()
913 LOAD_DMA_COUNT(current_SC->request_bufflen); /* Max transfer size */ in NCR53c406a_intr()
915 NCR53c406a_dma_read(current_SC->request_buffer, in NCR53c406a_intr()
916 current_SC->request_bufflen); in NCR53c406a_intr()
920 if (!current_SC->use_sg) /* Don't use scatter-gather */ in NCR53c406a_intr()
921 NCR53c406a_pio_read(current_SC->request_buffer, in NCR53c406a_intr()
922 current_SC->request_bufflen); in NCR53c406a_intr()
924 sgcount = current_SC->use_sg; in NCR53c406a_intr()
925 sglist = current_SC->request_buffer; in NCR53c406a_intr()
937 current_SC->SCp.phase = command_ph; in NCR53c406a_intr()
943 current_SC->SCp.phase = status_ph; in NCR53c406a_intr()
956 current_SC->SCp.phase = message_out; in NCR53c406a_intr()
964 current_SC->SCp.phase = message_in; in NCR53c406a_intr()
966 current_SC->SCp.Status = inb(SCSI_FIFO); in NCR53c406a_intr()
967 current_SC->SCp.Message = inb(SCSI_FIFO); in NCR53c406a_intr()
971 current_SC->SCp.Status, current_SC->SCp.Message)); in NCR53c406a_intr()
973 if(current_SC->SCp.Message == SAVE_POINTERS || in NCR53c406a_intr()
974 current_SC->SCp.Message == DISCONNECT) { in NCR53c406a_intr()