tag | line | file | source code |
SCp | 3854 | drivers/scsi/53c7,8xx.c | cmd->SCp.ptr = NULL; |
SCp | 3855 | drivers/scsi/53c7,8xx.c | cmd->SCp.buffer = NULL; |
SCp | 3902 | drivers/scsi/53c7,8xx.c | cmd->SCp.ptr = (unsigned char *) hostdata->issue_queue; |
SCp | 3905 | drivers/scsi/53c7,8xx.c | for (tmp = (Scsi_Cmnd *) hostdata->issue_queue; tmp->SCp.ptr; |
SCp | 3906 | drivers/scsi/53c7,8xx.c | tmp = (Scsi_Cmnd *) tmp->SCp.ptr); |
SCp | 3907 | drivers/scsi/53c7,8xx.c | tmp->SCp.ptr = (unsigned char *) cmd; |
SCp | 4077 | drivers/scsi/53c7,8xx.c | hostdata->issue_queue = (Scsi_Cmnd *) tmp->SCp.ptr; |
SCp | 4091 | drivers/scsi/53c7,8xx.c | tmp->SCp.ptr) |
SCp | 4095 | drivers/scsi/53c7,8xx.c | prev->SCp.ptr = tmp->SCp.ptr; |
SCp | 4098 | drivers/scsi/53c7,8xx.c | tmp->SCp.ptr; |
SCp | 4099 | drivers/scsi/53c7,8xx.c | tmp->SCp.ptr = NULL; |
SCp | 5498 | drivers/scsi/53c7,8xx.c | me && me != cmd; last = (Scsi_Cmnd **)&(me->SCp.ptr), |
SCp | 5499 | drivers/scsi/53c7,8xx.c | me = (Scsi_Cmnd *)me->SCp.ptr); |
SCp | 5502 | drivers/scsi/53c7,8xx.c | *last = (Scsi_Cmnd *) me->SCp.ptr; |
SCp | 5628 | drivers/scsi/53c7,8xx.c | 0 /* issue */ ); tmp; tmp = (Scsi_Cmnd *) tmp->SCp.buffer) |
SCp | 5646 | drivers/scsi/53c7,8xx.c | cmd->SCp.buffer = (struct scatterlist *) nuke_list; |
SCp | 5658 | drivers/scsi/53c7,8xx.c | tmp = (Scsi_Cmnd *) nuke_list->SCp.buffer; |
SCp | 5871 | drivers/scsi/53c7,8xx.c | next_cmd = (Scsi_Cmnd *) cmd->SCp.ptr; |
SCp | 6098 | drivers/scsi/53c7,8xx.c | if (c->cmd->SCp.buffer) { |
SCp | 6106 | drivers/scsi/53c7,8xx.c | c->cmd->SCp.buffer = (struct scatterlist *) list; |
SCp | 6125 | drivers/scsi/53c7,8xx.c | if (tmp->SCp.buffer) { |
SCp | 6130 | drivers/scsi/53c7,8xx.c | tmp->SCp.buffer = (struct scatterlist *) list; |
SCp | 6170 | drivers/scsi/53c7,8xx.c | tmp = (Scsi_Cmnd *) nuke_list->SCp.buffer; |
SCp | 306 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; |
SCp | 307 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = cmd->use_sg - 1; |
SCp | 308 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->SCp.buffer->address; |
SCp | 309 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
SCp | 311 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
SCp | 312 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = 0; |
SCp | 313 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->request_buffer; |
SCp | 314 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->request_bufflen; |
SCp | 1098 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.this_residual -= transferred; |
SCp | 1099 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.ptr += transferred; |
SCp | 1965 | drivers/scsi/NCR5380.c | if (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) { |
SCp | 1966 | drivers/scsi/NCR5380.c | ++cmd->SCp.buffer; |
SCp | 1967 | drivers/scsi/NCR5380.c | --cmd->SCp.buffers_residual; |
SCp | 1968 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
SCp | 1969 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = cmd->SCp.buffer->address; |
SCp | 1972 | drivers/scsi/NCR5380.c | instance->host_no, cmd->SCp.this_residual, |
SCp | 1973 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual); |
SCp | 2000 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual && !(cmd->SCp.this_residual % |
SCp | 2005 | drivers/scsi/NCR5380.c | &len, (unsigned char **) &cmd->SCp.ptr)) { |
SCp | 2019 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual -= transfersize - len; |
SCp | 2023 | drivers/scsi/NCR5380.c | (int *) &cmd->SCp.this_residual, (unsigned char **) |
SCp | 2024 | drivers/scsi/NCR5380.c | &cmd->SCp.ptr); |
SCp | 2030 | drivers/scsi/NCR5380.c | cmd->SCp.Message = tmp; |
SCp | 2072 | drivers/scsi/NCR5380.c | cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); |
SCp | 2109 | drivers/scsi/NCR5380.c | cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); |
SCp | 2110 | drivers/scsi/NCR5380.c | else if (cmd->SCp.Status != GOOD) |
SCp | 2115 | drivers/scsi/NCR5380.c | (cmd->SCp.Status == CHECK_CONDITION)) { |
SCp | 2127 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
SCp | 2128 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = 0; |
SCp | 2129 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->sense_buffer; |
SCp | 2130 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = sizeof(cmd->sense_buffer); |
SCp | 2338 | drivers/scsi/NCR5380.c | cmd->SCp.Status = tmp; |
SCp | 2545 | drivers/scsi/NCR5380.c | if (!(hostdata->connected->SCp.phase & SR_CD)) { |
SCp | 2547 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.this_residual -= transferred; |
SCp | 2548 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.ptr += transferred; |
SCp | 652 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = idle; |
SCp | 695 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = command_ph; |
SCp | 696 | drivers/scsi/NCR53c406a.c | current_SC->SCp.Status = 0; |
SCp | 697 | drivers/scsi/NCR53c406a.c | current_SC->SCp.Message = 0; |
SCp | 795 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = idle; |
SCp | 804 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = idle; |
SCp | 813 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = idle; |
SCp | 821 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = idle; |
SCp | 829 | drivers/scsi/NCR53c406a.c | if(current_SC->SCp.phase != message_in){ /* Unexpected disconnect */ |
SCp | 833 | drivers/scsi/NCR53c406a.c | current_SC->result = (current_SC->SCp.Status & 0xff) |
SCp | 834 | drivers/scsi/NCR53c406a.c | | ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16); |
SCp | 838 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = idle; |
SCp | 847 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = data_out; |
SCp | 876 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = data_in; |
SCp | 903 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = command_ph; |
SCp | 909 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = status_ph; |
SCp | 934 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = message_out; |
SCp | 942 | drivers/scsi/NCR53c406a.c | current_SC->SCp.phase = message_in; |
SCp | 944 | drivers/scsi/NCR53c406a.c | current_SC->SCp.Status = inb(SCSI_FIFO); |
SCp | 945 | drivers/scsi/NCR53c406a.c | current_SC->SCp.Message = inb(SCSI_FIFO); |
SCp | 949 | drivers/scsi/NCR53c406a.c | current_SC->SCp.Status, current_SC->SCp.Message)); |
SCp | 951 | drivers/scsi/NCR53c406a.c | if(current_SC->SCp.Message == SAVE_POINTERS || |
SCp | 952 | drivers/scsi/NCR53c406a.c | current_SC->SCp.Message == DISCONNECT) { |
SCp | 887 | drivers/scsi/aha152x.c | SCpnt->SCp.phase = not_issued; |
SCp | 890 | drivers/scsi/aha152x.c | SCpnt->SCp.buffer = |
SCp | 892 | drivers/scsi/aha152x.c | SCpnt->SCp.ptr = SCpnt->SCp.buffer->address; |
SCp | 893 | drivers/scsi/aha152x.c | SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; |
SCp | 894 | drivers/scsi/aha152x.c | SCpnt->SCp.buffers_residual = SCpnt->use_sg - 1; |
SCp | 898 | drivers/scsi/aha152x.c | SCpnt->SCp.ptr = (char *)SCpnt->request_buffer; |
SCp | 899 | drivers/scsi/aha152x.c | SCpnt->SCp.this_residual = SCpnt->request_bufflen; |
SCp | 900 | drivers/scsi/aha152x.c | SCpnt->SCp.buffer = NULL; |
SCp | 901 | drivers/scsi/aha152x.c | SCpnt->SCp.buffers_residual = 0; |
SCp | 904 | drivers/scsi/aha152x.c | SCpnt->SCp.Status = CHECK_CONDITION; |
SCp | 905 | drivers/scsi/aha152x.c | SCpnt->SCp.Message = 0; |
SCp | 906 | drivers/scsi/aha152x.c | SCpnt->SCp.have_data_in = 0; |
SCp | 907 | drivers/scsi/aha152x.c | SCpnt->SCp.sent_command = 0; |
SCp | 1031 | drivers/scsi/aha152x.c | ptr->SCp.phase = in_selection|aborted; |
SCp | 1323 | drivers/scsi/aha152x.c | (!CURRENT_SC || (CURRENT_SC->SCp.phase & in_selection)) ) |
SCp | 1418 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase &= ~disconnected; |
SCp | 1449 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase = in_selection; |
SCp | 1494 | drivers/scsi/aha152x.c | if(CURRENT_SC->SCp.phase & in_selection) |
SCp | 1519 | drivers/scsi/aha152x.c | if(CURRENT_SC->SCp.phase & aborted) |
SCp | 1537 | drivers/scsi/aha152x.c | if((HOSTDATA(shpnt)->debug & debug_abort) && (CURRENT_SC->SCp.phase & aborted)) |
SCp | 1541 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase &= ~in_selection; |
SCp | 1542 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase |= in_other; |
SCp | 1558 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase |= in_sync; |
SCp | 1594 | drivers/scsi/aha152x.c | if(CURRENT_SC->SCp.phase & aborted) |
SCp | 1620 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase = |
SCp | 1621 | drivers/scsi/aha152x.c | (CURRENT_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16); |
SCp | 1693 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase |= sent_ident; |
SCp | 1701 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase &= ~(P_MASK<<16); |
SCp | 1719 | drivers/scsi/aha152x.c | if(!(CURRENT_SC->SCp.sent_command)) |
SCp | 1743 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.sent_command++; |
SCp | 1764 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.Message = GETPORT(SCSIDAT); |
SCp | 1765 | drivers/scsi/aha152x.c | switch(CURRENT_SC->SCp.Message) |
SCp | 1772 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.Message = 0; |
SCp | 1773 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase |= disconnected; |
SCp | 1787 | drivers/scsi/aha152x.c | if(CURRENT_SC->SCp.phase & in_sync) |
SCp | 1789 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase &= ~in_sync; |
SCp | 1849 | drivers/scsi/aha152x.c | if(CURRENT_SC->SCp.phase & in_sync) |
SCp | 1878 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase |= in_sync; |
SCp | 1907 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.Message); |
SCp | 1917 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase |= in_sync; |
SCp | 1919 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase &= ~in_sync; |
SCp | 1928 | drivers/scsi/aha152x.c | if(CURRENT_SC->SCp.phase & disconnected) |
SCp | 1964 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.Status = GETPORT(SCSIBUS); |
SCp | 1972 | drivers/scsi/aha152x.c | print_status(CURRENT_SC->SCp.Status); |
SCp | 2043 | drivers/scsi/aha152x.c | while(fifodata && CURRENT_SC->SCp.this_residual) |
SCp | 2048 | drivers/scsi/aha152x.c | if (data_count > CURRENT_SC->SCp.this_residual) |
SCp | 2049 | drivers/scsi/aha152x.c | data_count = CURRENT_SC->SCp.this_residual; |
SCp | 2062 | drivers/scsi/aha152x.c | *CURRENT_SC->SCp.ptr++ = GETPORT(DATAPORT); |
SCp | 2063 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.this_residual--; |
SCp | 2069 | drivers/scsi/aha152x.c | insw(DATAPORT, CURRENT_SC->SCp.ptr, data_count); |
SCp | 2085 | drivers/scsi/aha152x.c | data = (unsigned char *) CURRENT_SC->SCp.ptr; |
SCp | 2092 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.ptr += 2 * data_count; |
SCp | 2093 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.this_residual -= 2 * data_count; |
SCp | 2097 | drivers/scsi/aha152x.c | if (!CURRENT_SC->SCp.this_residual && |
SCp | 2098 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffers_residual) |
SCp | 2101 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffers_residual--; |
SCp | 2102 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffer++; |
SCp | 2103 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.ptr = |
SCp | 2104 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffer->address; |
SCp | 2105 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.this_residual = |
SCp | 2106 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffer->length; |
SCp | 2135 | drivers/scsi/aha152x.c | (CURRENT_SC->SCp.buffers_residual || |
SCp | 2136 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.this_residual)) |
SCp | 2138 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffers_residual, |
SCp | 2139 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.this_residual); |
SCp | 2152 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.have_data_in++; |
SCp | 2167 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.this_residual, |
SCp | 2168 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffers_residual); |
SCp | 2190 | drivers/scsi/aha152x.c | (CURRENT_SC->SCp.this_residual || |
SCp | 2191 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffers_residual)) |
SCp | 2196 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.this_residual, |
SCp | 2197 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffers_residual); |
SCp | 2201 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.this_residual > 128 ? |
SCp | 2202 | drivers/scsi/aha152x.c | 128 : CURRENT_SC->SCp.this_residual ; |
SCp | 2213 | drivers/scsi/aha152x.c | SETPORT(DATAPORT, *CURRENT_SC->SCp.ptr++); |
SCp | 2214 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.this_residual--; |
SCp | 2220 | drivers/scsi/aha152x.c | outsw(DATAPORT, CURRENT_SC->SCp.ptr, data_count); |
SCp | 2221 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.ptr += 2 * data_count; |
SCp | 2222 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.this_residual -= 2 * data_count; |
SCp | 2237 | drivers/scsi/aha152x.c | !CURRENT_SC->SCp.this_residual && |
SCp | 2238 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffers_residual) |
SCp | 2241 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffers_residual--; |
SCp | 2242 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffer++; |
SCp | 2243 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.ptr = |
SCp | 2244 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffer->address; |
SCp | 2245 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.this_residual = |
SCp | 2246 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffer->length; |
SCp | 2250 | drivers/scsi/aha152x.c | if (CURRENT_SC->SCp.this_residual || CURRENT_SC->SCp.buffers_residual) |
SCp | 2259 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.ptr -= data_count; |
SCp | 2260 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.this_residual += data_count; |
SCp | 2265 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.this_residual, |
SCp | 2266 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffers_residual, |
SCp | 2285 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.this_residual, |
SCp | 2286 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.buffers_residual); |
SCp | 2312 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase &= ~(P_MASK<<16); |
SCp | 2324 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase &= ~(P_MASK<<16); |
SCp | 2353 | drivers/scsi/aha152x.c | (CURRENT_SC->SCp.Status & 0xff) |
SCp | 2354 | drivers/scsi/aha152x.c | | ((CURRENT_SC->SCp.Message & 0xff) << 8) |
SCp | 2359 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.Status, CURRENT_SC->SCp.Message); |
SCp | 2365 | drivers/scsi/aha152x.c | CURRENT_SC->SCp.phase |= 1<<16 ; |
SCp | 2659 | drivers/scsi/aha152x.c | ptr->SCp.this_residual, ptr->SCp.buffers_residual); |
SCp | 2661 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & not_issued ) printk("not issued|"); |
SCp | 2662 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & in_selection) printk("in selection|"); |
SCp | 2663 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & disconnected) printk("disconnected|"); |
SCp | 2664 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & aborted ) printk("aborted|"); |
SCp | 2665 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & sent_ident ) printk("send_ident|"); |
SCp | 2666 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & in_other) |
SCp | 2669 | drivers/scsi/aha152x.c | switch((ptr->SCp.phase >> 16) & P_MASK) |
SCp | 2694 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & (1<<16)) |
SCp | 2749 | drivers/scsi/aha152x.c | ptr->SCp.this_residual, ptr->SCp.buffers_residual); |
SCp | 2751 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & not_issued ) SPRINTF("not issued|"); |
SCp | 2752 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & in_selection) SPRINTF("in selection|"); |
SCp | 2753 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & disconnected) SPRINTF("disconnected|"); |
SCp | 2754 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & aborted ) SPRINTF("aborted|"); |
SCp | 2755 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & sent_ident ) SPRINTF("send_ident|"); |
SCp | 2756 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & in_other) |
SCp | 2759 | drivers/scsi/aha152x.c | switch((ptr->SCp.phase >> 16) & P_MASK) |
SCp | 2784 | drivers/scsi/aha152x.c | if(ptr->SCp.phase & (1<<16)) |
SCp | 681 | drivers/scsi/aha1542.c | SCpnt->SCp.Status++; |
SCp | 690 | drivers/scsi/aha1542.c | SCpnt->SCp.Status = 0; |
SCp | 691 | drivers/scsi/aha1542.c | while (!SCpnt->SCp.Status) |
SCp | 892 | drivers/scsi/aic7xxx.c | #define aic7xxx_error(cmd) ((cmd)->SCp.Status) |
SCp | 897 | drivers/scsi/aic7xxx.c | #define aic7xxx_status(cmd) ((cmd)->SCp.sent_command) |
SCp | 902 | drivers/scsi/aic7xxx.c | #define aic7xxx_position(cmd) ((cmd)->SCp.have_data_in) |
SCp | 112 | drivers/scsi/eata_pio.c | void IncStat(Scsi_Pointer *SCp, uint Increment) |
SCp | 114 | drivers/scsi/eata_pio.c | SCp->ptr+=Increment; |
SCp | 115 | drivers/scsi/eata_pio.c | if ((SCp->this_residual-=Increment)==0) |
SCp | 117 | drivers/scsi/eata_pio.c | if ((--SCp->buffers_residual)==0) SCp->Status=FALSE; |
SCp | 120 | drivers/scsi/eata_pio.c | SCp->buffer++; |
SCp | 121 | drivers/scsi/eata_pio.c | SCp->ptr=SCp->buffer->address; |
SCp | 122 | drivers/scsi/eata_pio.c | SCp->this_residual=SCp->buffer->length; |
SCp | 164 | drivers/scsi/eata_pio.c | while ((cmd->SCp.Status)&&((z>0)||(odd))) |
SCp | 168 | drivers/scsi/eata_pio.c | *(cmd->SCp.ptr)=zwickel>>8; |
SCp | 169 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
SCp | 172 | drivers/scsi/eata_pio.c | x=min(z,cmd->SCp.this_residual/2); |
SCp | 173 | drivers/scsi/eata_pio.c | insw(base+HA_RDATA,cmd->SCp.ptr,x); |
SCp | 175 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,2*x); |
SCp | 176 | drivers/scsi/eata_pio.c | if ((z>0)&&(cmd->SCp.this_residual==1)) |
SCp | 179 | drivers/scsi/eata_pio.c | *(cmd->SCp.ptr)=zwickel&0xff; |
SCp | 180 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); z--; |
SCp | 192 | drivers/scsi/eata_pio.c | while ((cmd->SCp.Status)&&((z>0)||(odd))) |
SCp | 196 | drivers/scsi/eata_pio.c | zwickel+=*(cmd->SCp.ptr)<<8; |
SCp | 197 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
SCp | 202 | drivers/scsi/eata_pio.c | x=min(z,cmd->SCp.this_residual/2); |
SCp | 203 | drivers/scsi/eata_pio.c | outsw(base+HA_RDATA,cmd->SCp.ptr,x); |
SCp | 205 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,2*x); |
SCp | 206 | drivers/scsi/eata_pio.c | if ((z>0)&&(cmd->SCp.this_residual==1)) |
SCp | 208 | drivers/scsi/eata_pio.c | zwickel=*(cmd->SCp.ptr); |
SCp | 210 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
SCp | 365 | drivers/scsi/eata_pio.c | cmd->SCp.buffers_residual=1; |
SCp | 366 | drivers/scsi/eata_pio.c | cmd->SCp.ptr = cmd->request_buffer; |
SCp | 367 | drivers/scsi/eata_pio.c | cmd->SCp.this_residual = cmd->request_bufflen; |
SCp | 368 | drivers/scsi/eata_pio.c | cmd->SCp.buffer = NULL; |
SCp | 370 | drivers/scsi/eata_pio.c | cmd->SCp.buffer = cmd->request_buffer; |
SCp | 371 | drivers/scsi/eata_pio.c | cmd->SCp.buffers_residual = cmd->use_sg; |
SCp | 372 | drivers/scsi/eata_pio.c | cmd->SCp.ptr = cmd->SCp.buffer->address; |
SCp | 373 | drivers/scsi/eata_pio.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
SCp | 375 | drivers/scsi/eata_pio.c | cmd->SCp.Status = (cmd->SCp.this_residual != 0); /* TRUE as long as bytes |
SCp | 1240 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & aborted) { |
SCp | 1252 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & in_arbitration) { |
SCp | 1261 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_selection; |
SCp | 1274 | drivers/scsi/fdomain.c | } else if (current_SC->SCp.phase & in_selection) { |
SCp | 1292 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_other; |
SCp | 1310 | drivers/scsi/fdomain.c | outb( current_SC->cmnd[current_SC->SCp.sent_command++], |
SCp | 1314 | drivers/scsi/fdomain.c | current_SC->cmnd[ current_SC->SCp.sent_command - 1] ); |
SCp | 1318 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
SCp | 1319 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
SCp | 1324 | drivers/scsi/fdomain.c | if (chip != tmc1800 && !current_SC->SCp.have_data_in) { |
SCp | 1325 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
SCp | 1330 | drivers/scsi/fdomain.c | current_SC->SCp.Status = inb( Read_SCSI_Data_port ); |
SCp | 1332 | drivers/scsi/fdomain.c | printk( "Status = %x, ", current_SC->SCp.Status ); |
SCp | 1335 | drivers/scsi/fdomain.c | if (current_SC->SCp.Status && current_SC->SCp.Status != 2) { |
SCp | 1339 | drivers/scsi/fdomain.c | current_SC->SCp.Status ); |
SCp | 1347 | drivers/scsi/fdomain.c | current_SC->SCp.Message = inb( Read_SCSI_Data_port ); |
SCp | 1349 | drivers/scsi/fdomain.c | printk( "Message = %x, ", current_SC->SCp.Message ); |
SCp | 1351 | drivers/scsi/fdomain.c | if (!current_SC->SCp.Message) ++done; |
SCp | 1353 | drivers/scsi/fdomain.c | if (current_SC->SCp.Message) { |
SCp | 1354 | drivers/scsi/fdomain.c | printk( "fdomain: message = %x\n", current_SC->SCp.Message ); |
SCp | 1362 | drivers/scsi/fdomain.c | && !current_SC->SCp.have_data_in |
SCp | 1363 | drivers/scsi/fdomain.c | && (current_SC->SCp.sent_command |
SCp | 1512 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = -1; |
SCp | 1519 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 1; |
SCp | 1525 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == -1) { /* DATA OUT */ |
SCp | 1530 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
SCp | 1531 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
SCp | 1537 | drivers/scsi/fdomain.c | outb( *current_SC->SCp.ptr++, Write_FIFO_port ); |
SCp | 1538 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
SCp | 1541 | drivers/scsi/fdomain.c | outsw( Write_FIFO_port, current_SC->SCp.ptr, data_count ); |
SCp | 1542 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
SCp | 1543 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
SCp | 1546 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual) { |
SCp | 1547 | drivers/scsi/fdomain.c | if (current_SC->SCp.buffers_residual) { |
SCp | 1548 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
SCp | 1549 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
SCp | 1550 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
SCp | 1551 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
SCp | 1558 | drivers/scsi/fdomain.c | if (current_SC->SCp.have_data_in == 1) { /* DATA IN */ |
SCp | 1563 | drivers/scsi/fdomain.c | if (data_count > current_SC->SCp.this_residual) |
SCp | 1564 | drivers/scsi/fdomain.c | data_count = current_SC->SCp.this_residual; |
SCp | 1570 | drivers/scsi/fdomain.c | *current_SC->SCp.ptr++ = inb( Read_FIFO_port ); |
SCp | 1571 | drivers/scsi/fdomain.c | --current_SC->SCp.this_residual; |
SCp | 1574 | drivers/scsi/fdomain.c | insw( Read_FIFO_port, current_SC->SCp.ptr, data_count ); |
SCp | 1575 | drivers/scsi/fdomain.c | current_SC->SCp.ptr += 2 * data_count; |
SCp | 1576 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual -= 2 * data_count; |
SCp | 1579 | drivers/scsi/fdomain.c | if (!current_SC->SCp.this_residual |
SCp | 1580 | drivers/scsi/fdomain.c | && current_SC->SCp.buffers_residual) { |
SCp | 1581 | drivers/scsi/fdomain.c | --current_SC->SCp.buffers_residual; |
SCp | 1582 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
SCp | 1583 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
SCp | 1584 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
SCp | 1591 | drivers/scsi/fdomain.c | printk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in ); |
SCp | 1595 | drivers/scsi/fdomain.c | if (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) { |
SCp | 1624 | drivers/scsi/fdomain.c | my_done( (current_SC->SCp.Status & 0xff) |
SCp | 1625 | drivers/scsi/fdomain.c | | ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) ); |
SCp | 1631 | drivers/scsi/fdomain.c | if (current_SC->SCp.phase & disconnect) { |
SCp | 1665 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = |
SCp | 1667 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
SCp | 1668 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
SCp | 1669 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = current_SC->use_sg - 1; |
SCp | 1671 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = (char *)current_SC->request_buffer; |
SCp | 1672 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->request_bufflen; |
SCp | 1673 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = NULL; |
SCp | 1674 | drivers/scsi/fdomain.c | current_SC->SCp.buffers_residual = 0; |
SCp | 1678 | drivers/scsi/fdomain.c | current_SC->SCp.Status = 0; |
SCp | 1679 | drivers/scsi/fdomain.c | current_SC->SCp.Message = 0; |
SCp | 1680 | drivers/scsi/fdomain.c | current_SC->SCp.have_data_in = 0; |
SCp | 1681 | drivers/scsi/fdomain.c | current_SC->SCp.sent_command = 0; |
SCp | 1682 | drivers/scsi/fdomain.c | current_SC->SCp.phase = in_arbitration; |
SCp | 1732 | drivers/scsi/fdomain.c | switch (SCpnt->SCp.phase) { |
SCp | 1740 | drivers/scsi/fdomain.c | SCpnt->SCp.phase, |
SCp | 1746 | drivers/scsi/fdomain.c | SCpnt->SCp.sent_command, |
SCp | 1747 | drivers/scsi/fdomain.c | SCpnt->SCp.have_data_in, |
SCp | 1812 | drivers/scsi/fdomain.c | current_SC->SCp.phase |= aborted; |
SCp | 409 | drivers/scsi/scsi.h | Scsi_Pointer SCp; /* Scratchpad used by some host adapters */ |
SCp | 805 | drivers/scsi/wd7000.c | SCpnt->SCp.phase = 0; |
SCp | 875 | drivers/scsi/wd7000.c | if (--(SCpnt->SCp.phase) <= 0) { /* all scbs are done */ |
SCp | 910 | drivers/scsi/wd7000.c | SCpnt->SCp.phase = 1; |
SCp | 955 | drivers/scsi/wd7000.c | while (SCpnt->SCp.phase > 0) barrier(); /* phase counts scbs down to 0 */ |