Lines Matching refs:SCp
177 static void print_SCp(struct scsi_pointer *SCp, const char *prefix, const char *suffix) in print_SCp() argument
180 prefix, SCp->ptr, SCp->this_residual, SCp->buffer, in print_SCp()
181 SCp->buffers_residual, suffix); in print_SCp()
203 print_SCp(&info->scsi.SCp, " SCp={ ", " }\n"); in fas216_dumpinfo()
632 struct scsi_pointer *SCp = &info->scsi.SCp; in fas216_updateptrs() local
638 SCp->phase -= bytes_transferred; in fas216_updateptrs()
641 if (SCp->this_residual > bytes_transferred) in fas216_updateptrs()
647 bytes_transferred -= SCp->this_residual; in fas216_updateptrs()
648 if (!next_SCp(SCp) && bytes_transferred) { in fas216_updateptrs()
655 SCp->this_residual -= bytes_transferred; in fas216_updateptrs()
656 if (SCp->this_residual) in fas216_updateptrs()
657 SCp->ptr += bytes_transferred; in fas216_updateptrs()
659 SCp->ptr = NULL; in fas216_updateptrs()
672 struct scsi_pointer *SCp = &info->scsi.SCp; in fas216_pio() local
677 fas216_writeb(info, REG_FF, get_next_SCp_byte(SCp)); in fas216_pio()
679 put_next_SCp_byte(SCp, fas216_readb(info, REG_FF)); in fas216_pio()
681 if (SCp->this_residual == 0) in fas216_pio()
682 next_SCp(SCp); in fas216_pio()
720 total = info->scsi.SCp.phase; in fas216_cleanuptransfer()
722 total = info->scsi.SCp.this_residual; in fas216_cleanuptransfer()
757 info->scsi.SCp.ptr, info->scsi.SCp.this_residual, in fas216_transfer()
758 info->scsi.SCp.phase); in fas216_transfer()
760 if (!info->scsi.SCp.ptr) { in fas216_transfer()
763 print_SCp(&info->scsi.SCp, "SCp: ", "\n"); in fas216_transfer()
784 dmatype = info->dma.setup(info->host, &info->scsi.SCp, in fas216_transfer()
789 fas216_set_stc(info, info->scsi.SCp.phase); in fas216_transfer()
791 fas216_set_stc(info, info->scsi.SCp.this_residual); in fas216_transfer()
805 info->dma.pseudo(info->host, &info->scsi.SCp, in fas216_transfer()
838 info->dma.stop(info->host, &info->scsi.SCp); in fas216_stoptransfer()
851 while (fifo && info->scsi.SCp.ptr) { in fas216_stoptransfer()
852 *info->scsi.SCp.ptr = fas216_readb(info, REG_FF); in fas216_stoptransfer()
871 info->dma.stop(info->host, &info->scsi.SCp); in fas216_aborttransfer()
1014 info->scsi.SCp = *arm_scsi_pointer(info->SCpnt); in fas216_reselected_intr()
1017 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_reselected_intr()
1083 *scsi_pointer = info->scsi.SCp; in fas216_parse_message()
1087 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_parse_message()
1097 info->scsi.SCp = *arm_scsi_pointer(info->SCpnt); in fas216_parse_message()
1100 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_parse_message()
1302 for (i = info->scsi.SCp.sent_command; i < info->SCpnt->cmd_len; i++) in fas216_send_command()
1573 info->scsi.SCp.Status = fas216_readb(info, REG_FF); in fas216_funcdone_intr()
1574 info->scsi.SCp.Message = fas216_readb(info, REG_FF); in fas216_funcdone_intr()
1615 memset(&info->scsi.SCp, 0, sizeof(info->scsi.SCp)); in fas216_bus_reset()
1775 info->scsi.SCp = *arm_scsi_pointer(SCpnt); in fas216_start_command()
1854 info->scsi.SCp = *arm_scsi_pointer(SCpnt); in fas216_do_bus_device_reset()
1972 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_kick()
2046 scsi_msg_to_host_byte(SCpnt, info->scsi.SCp.Message); in fas216_std_done()
2047 set_status_byte(SCpnt, info->scsi.SCp.Status); in fas216_std_done()
2080 if (info->scsi.SCp.ptr) { in fas216_std_done()
2090 SCpnt->result, info->scsi.SCp.ptr, in fas216_std_done()
2091 info->scsi.SCp.this_residual); in fas216_std_done()
2163 if (info->scsi.SCp.ptr && info->scsi.SCp.this_residual == 0) { in fas216_done()
2166 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_done()
2167 info->scsi.SCp.ptr = NULL; in fas216_done()