Lines Matching refs:SCp
154 cmd->SCp.buffer = scsi_sglist(cmd); in initialize_SCp()
155 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in initialize_SCp()
156 cmd->SCp.this_residual = cmd->SCp.buffer->length; in initialize_SCp()
158 cmd->SCp.buffer = NULL; in initialize_SCp()
159 cmd->SCp.ptr = NULL; in initialize_SCp()
160 cmd->SCp.this_residual = 0; in initialize_SCp()
163 cmd->SCp.Status = 0; in initialize_SCp()
164 cmd->SCp.Message = 0; in initialize_SCp()
169 struct scatterlist *s = cmd->SCp.buffer; in advance_sg_buffer()
171 if (!cmd->SCp.this_residual && s && !sg_is_last(s)) { in advance_sg_buffer()
172 cmd->SCp.buffer = sg_next(s); in advance_sg_buffer()
173 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in advance_sg_buffer()
174 cmd->SCp.this_residual = cmd->SCp.buffer->length; in advance_sg_buffer()
180 int resid = cmd->SCp.this_residual; in set_resid_from_SCp()
181 struct scatterlist *s = cmd->SCp.buffer; in set_resid_from_SCp()
767 p = hostdata->connected->SCp.phase; in NCR5380_dma_complete()
804 data = (unsigned char **)&hostdata->connected->SCp.ptr; in NCR5380_dma_complete()
805 count = &hostdata->connected->SCp.this_residual; in NCR5380_dma_complete()
1501 hostdata->connected->SCp.phase = p; in NCR5380_transfer_dma()
1715 cmd->SCp.ptr, count); in NCR5380_information_transfer()
1718 cmd->SCp.ptr, count); in NCR5380_information_transfer()
1761 cmd->SCp.this_residual, in NCR5380_information_transfer()
1762 sg_nents(cmd->SCp.buffer)); in NCR5380_information_transfer()
1781 &len, (unsigned char **)&cmd->SCp.ptr)) { in NCR5380_information_transfer()
1797 transfersize = min(cmd->SCp.this_residual, in NCR5380_information_transfer()
1801 (unsigned char **)&cmd->SCp.ptr, in NCR5380_information_transfer()
1803 cmd->SCp.this_residual -= transfersize - len; in NCR5380_information_transfer()
1814 cmd->SCp.Message = tmp; in NCR5380_information_transfer()
1831 set_status_byte(cmd, cmd->SCp.Status); in NCR5380_information_transfer()
1838 if (cmd->SCp.Status == SAM_STAT_CHECK_CONDITION || in NCR5380_information_transfer()
1839 cmd->SCp.Status == SAM_STAT_COMMAND_TERMINATED) { in NCR5380_information_transfer()
2003 cmd->SCp.Status = tmp; in NCR5380_information_transfer()
2163 tmp->SCp.ptr, count); in NCR5380_reselect()
2166 tmp->SCp.ptr, count); in NCR5380_reselect()