Lines Matching refs:SCp
234 printk("BH @%p +%04x, ", host->scsi.SCp.ptr, in acornscsi_dumpdma()
235 host->scsi.SCp.this_residual); in acornscsi_dumpdma()
237 host->scsi.SCp.scsi_xferred); in acornscsi_dumpdma()
728 host->scsi.SCp = SCpnt->SCp; in acornscsi_kick()
784 scsi_msg_to_host_byte(SCpnt, host->scsi.SCp.Message); in acornscsi_done()
785 set_status_byte(SCpnt, host->scsi.SCp.Status); in acornscsi_done()
799 if (host->scsi.SCp.ptr && in acornscsi_done()
803 if (host->scsi.SCp.scsi_xferred < SCpnt->underflow || in acornscsi_done()
804 host->scsi.SCp.scsi_xferred != host->dma.transferred) in acornscsi_done()
862 void acornscsi_data_updateptr(AS_Host *host, struct scsi_pointer *SCp, unsigned int length) in acornscsi_data_updateptr() argument
864 SCp->ptr += length; in acornscsi_data_updateptr()
865 SCp->this_residual -= length; in acornscsi_data_updateptr()
867 if (SCp->this_residual == 0 && next_SCp(SCp) == 0) in acornscsi_data_updateptr()
1015 length = min_t(unsigned int, host->scsi.SCp.this_residual, DMAC_BUFFER_SIZE / 2); in acornscsi_dma_setup()
1025 acornscsi_data_write(host, host->scsi.SCp.ptr, host->dma.start_addr, in acornscsi_dma_setup()
1087 acornscsi_data_read(host, host->scsi.SCp.ptr, in acornscsi_dma_cleanup()
1093 acornscsi_data_updateptr(host, &host->scsi.SCp, transferred); in acornscsi_dma_cleanup()
1134 host->dma.xfer_ptr = host->scsi.SCp.ptr; in acornscsi_dma_intr()
1138 acornscsi_data_updateptr(host, &host->scsi.SCp, transferred); in acornscsi_dma_intr()
1143 length = min_t(unsigned int, host->scsi.SCp.this_residual, DMAC_BUFFER_SIZE / 2); in acornscsi_dma_intr()
1153 acornscsi_data_write(host, host->scsi.SCp.ptr, host->dma.start_addr, in acornscsi_dma_intr()
1230 transferred = host->scsi.SCp.scsi_xferred - host->dma.transferred; in acornscsi_dma_adjust()
1289 sbic_arm_writenext(host, SCpnt->cmd_len - host->scsi.SCp.sent_command); in acornscsi_sendcommand()
1294 (int *)&host->scsi.SCp.sent_command, SCpnt->cmd_len, 1000000)) in acornscsi_sendcommand()
1388 host->scsi.SCp.Status = sbic_arm_read(host, SBIC_DATA); in acornscsi_readstatusbyte()
1481 host->scsi.SCp.Message = message[0]; in acornscsi_message()
1492 host->SCpnt->SCp = host->scsi.SCp; in acornscsi_message()
1493 host->SCpnt->SCp.sent_command = 0; in acornscsi_message()
1508 host->scsi.SCp = host->SCpnt->SCp; in acornscsi_message()
1682 if (!host->scsi.SCp.ptr /*&& host->scsi.SCp.this_residual*/) { in acornscsi_starttransfer()
1688 residual = scsi_bufflen(host->SCpnt) - host->scsi.SCp.scsi_xferred; in acornscsi_starttransfer()
1808 host->scsi.SCp = host->SCpnt->SCp; in acornscsi_reconnect_finish()
1811 host->scsi.SCp.ptr, host->scsi.SCp.this_residual); in acornscsi_reconnect_finish()
1818 host->dma.transferred = host->scsi.SCp.scsi_xferred; in acornscsi_reconnect_finish()
1915 host->dma.transferred = host->scsi.SCp.scsi_xferred; in acornscsi_sbicintr()
2023 if (host->scsi.SCp.sent_command != host->SCpnt->cmd_len) in acornscsi_sbicintr()
2033 if (host->scsi.SCp.sent_command != host->SCpnt->cmd_len) in acornscsi_sbicintr()
2162 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
2173 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
2183 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
2211 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
2223 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
2234 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
2422 SCpnt->SCp.phase = (int)acornscsi_datadirection(SCpnt->cmnd[0]); in acornscsi_queuecmd_lck()
2423 SCpnt->SCp.sent_command = 0; in acornscsi_queuecmd_lck()
2424 SCpnt->SCp.scsi_xferred = 0; in acornscsi_queuecmd_lck()