Lines Matching refs:SCp
242 SCpnt->SCp.Status = CHECK_CONDITION; in nsp_queuecommand()
243 SCpnt->SCp.Message = 0; in nsp_queuecommand()
244 SCpnt->SCp.have_data_in = IO_UNKNOWN; in nsp_queuecommand()
245 SCpnt->SCp.sent_command = 0; in nsp_queuecommand()
246 SCpnt->SCp.phase = PH_UNDETERMINED; in nsp_queuecommand()
256 SCpnt->SCp.buffer = (struct scatterlist *) SCpnt->request_buffer; in nsp_queuecommand()
257 SCpnt->SCp.ptr = SG_ADDRESS(SCpnt->SCp.buffer); in nsp_queuecommand()
258 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in nsp_queuecommand()
259 SCpnt->SCp.buffers_residual = SCpnt->use_sg - 1; in nsp_queuecommand()
261 SCpnt->SCp.ptr = (char *) SCpnt->request_buffer; in nsp_queuecommand()
262 SCpnt->SCp.this_residual = SCpnt->request_bufflen; in nsp_queuecommand()
263 SCpnt->SCp.buffer = NULL; in nsp_queuecommand()
264 SCpnt->SCp.buffers_residual = 0; in nsp_queuecommand()
401 SCpnt->SCp.phase = PH_ARBSTART; in nsphw_start_selection()
421 SCpnt->SCp.phase = PH_SELSTART; in nsphw_start_selection()
653 if (len == 1 && SCpnt->SCp.phase == PH_MSG_OUT) { in nsp_xfer()
681 if (SCpnt->SCp.have_data_in != IO_IN) { in nsp_dataphase_bypass()
696 SCpnt->SCp.phase = PH_DATA; in nsp_dataphase_bypass()
784 …SCpnt, SCpnt->resid, ocount, SCpnt->SCp.ptr, SCpnt->SCp.this_residual, SCpnt->SCp.buffer, SCpnt->S… in nsp_pio_read()
789 (SCpnt->SCp.this_residual > 0 || SCpnt->SCp.buffers_residual > 0 ) ) { in nsp_pio_read()
813 res = MIN(res, SCpnt->SCp.this_residual); in nsp_pio_read()
818 nsp_fifo32_read(base, SCpnt->SCp.ptr, res >> 2); in nsp_pio_read()
821 nsp_fifo8_read (base, SCpnt->SCp.ptr, res ); in nsp_pio_read()
826 nsp_mmio_fifo32_read(mmio_base, SCpnt->SCp.ptr, res >> 2); in nsp_pio_read()
835 SCpnt->SCp.ptr += res; in nsp_pio_read()
836 SCpnt->SCp.this_residual -= res; in nsp_pio_read()
841 if (SCpnt->SCp.this_residual == 0 && in nsp_pio_read()
842 SCpnt->SCp.buffers_residual != 0 ) { in nsp_pio_read()
844 SCpnt->SCp.buffers_residual--; in nsp_pio_read()
845 SCpnt->SCp.buffer++; in nsp_pio_read()
846 SCpnt->SCp.ptr = SG_ADDRESS(SCpnt->SCp.buffer); in nsp_pio_read()
847 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in nsp_pio_read()
858 SCpnt->resid, SCpnt->SCp.this_residual, SCpnt->SCp.buffers_residual); in nsp_pio_read()
879 …data->FifoCount, SCpnt->SCp.ptr, SCpnt->SCp.this_residual, SCpnt->SCp.buffer, SCpnt->SCp.buffers_r… in nsp_pio_write()
884 (SCpnt->SCp.this_residual > 0 || SCpnt->SCp.buffers_residual > 0)) { in nsp_pio_write()
894 SCpnt->SCp.ptr -= res; in nsp_pio_write()
895 SCpnt->SCp.this_residual += res; in nsp_pio_write()
907 res = MIN(SCpnt->SCp.this_residual, WFIFO_CRIT); in nsp_pio_write()
913 nsp_fifo32_write(base, SCpnt->SCp.ptr, res >> 2); in nsp_pio_write()
916 nsp_fifo8_write (base, SCpnt->SCp.ptr, res ); in nsp_pio_write()
921 nsp_mmio_fifo32_write(mmio_base, SCpnt->SCp.ptr, res >> 2); in nsp_pio_write()
930 SCpnt->SCp.ptr += res; in nsp_pio_write()
931 SCpnt->SCp.this_residual -= res; in nsp_pio_write()
935 if (SCpnt->SCp.this_residual == 0 && in nsp_pio_write()
936 SCpnt->SCp.buffers_residual != 0 ) { in nsp_pio_write()
938 SCpnt->SCp.buffers_residual--; in nsp_pio_write()
939 SCpnt->SCp.buffer++; in nsp_pio_write()
940 SCpnt->SCp.ptr = SG_ADDRESS(SCpnt->SCp.buffer); in nsp_pio_write()
941 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in nsp_pio_write()
1090 ((tmpSC->SCp.Message & 0xff) << 8) | in nspintr()
1091 ((tmpSC->SCp.Status & 0xff) << 0); in nspintr()
1128 switch(tmpSC->SCp.phase) { in nspintr()
1151 tmpSC->SCp.phase = PH_SELECTED; in nspintr()
1182 if (((tmpSC->SCp.phase == PH_MSG_IN) || (tmpSC->SCp.phase == PH_MSG_OUT)) && in nspintr()
1188 …if ((tmpSC->SCp.Message == MSG_COMMAND_COMPLETE)) { /* all command complete and return status … in nspintr()
1190 ((tmpSC->SCp.Message & 0xff) << 8) | in nspintr()
1191 ((tmpSC->SCp.Status & 0xff) << 0); in nspintr()
1220 tmpSC->SCp.phase = PH_COMMAND; in nspintr()
1236 tmpSC->SCp.phase = PH_DATA; in nspintr()
1237 tmpSC->SCp.have_data_in = IO_OUT; in nspintr()
1246 tmpSC->SCp.phase = PH_DATA; in nspintr()
1247 tmpSC->SCp.have_data_in = IO_IN; in nspintr()
1257 tmpSC->SCp.phase = PH_STATUS; in nspintr()
1259 tmpSC->SCp.Status = nsp_index_read(base, SCSIDATAWITHACK); in nspintr()
1260 nsp_dbg(NSP_DEBUG_INTR, "message=0x%x status=0x%x", tmpSC->SCp.Message, tmpSC->SCp.Status); in nspintr()
1270 tmpSC->SCp.phase = PH_MSG_OUT; in nspintr()
1303 tmpSC->SCp.phase = PH_MSG_IN; in nspintr()
1335 tmpSC->SCp.Message = tmp; in nspintr()
1337 nsp_dbg(NSP_DEBUG_INTR, "message=0x%x len=%d", tmpSC->SCp.Message, data->MsgLen); in nspintr()