Lines Matching refs:SCp

173 static void print_SCp(struct scsi_pointer *SCp, const char *prefix, const char *suffix)  in print_SCp()  argument
176 prefix, SCp->ptr, SCp->this_residual, SCp->buffer, in print_SCp()
177 SCp->buffers_residual, suffix); in print_SCp()
199 print_SCp(&info->scsi.SCp, " SCp={ ", " }\n"); in fas216_dumpinfo()
628 struct scsi_pointer *SCp = &info->scsi.SCp; in fas216_updateptrs() local
634 SCp->phase -= bytes_transferred; in fas216_updateptrs()
637 if (SCp->this_residual > bytes_transferred) in fas216_updateptrs()
643 bytes_transferred -= SCp->this_residual; in fas216_updateptrs()
644 if (!next_SCp(SCp) && bytes_transferred) { in fas216_updateptrs()
651 SCp->this_residual -= bytes_transferred; in fas216_updateptrs()
652 if (SCp->this_residual) in fas216_updateptrs()
653 SCp->ptr += bytes_transferred; in fas216_updateptrs()
655 SCp->ptr = NULL; in fas216_updateptrs()
668 struct scsi_pointer *SCp = &info->scsi.SCp; in fas216_pio() local
673 fas216_writeb(info, REG_FF, get_next_SCp_byte(SCp)); in fas216_pio()
675 put_next_SCp_byte(SCp, fas216_readb(info, REG_FF)); in fas216_pio()
677 if (SCp->this_residual == 0) in fas216_pio()
678 next_SCp(SCp); in fas216_pio()
716 total = info->scsi.SCp.phase; in fas216_cleanuptransfer()
718 total = info->scsi.SCp.this_residual; in fas216_cleanuptransfer()
753 info->scsi.SCp.ptr, info->scsi.SCp.this_residual, in fas216_transfer()
754 info->scsi.SCp.phase); in fas216_transfer()
756 if (!info->scsi.SCp.ptr) { in fas216_transfer()
759 print_SCp(&info->scsi.SCp, "SCp: ", "\n"); in fas216_transfer()
760 print_SCp(&info->SCpnt->SCp, "Cmnd SCp: ", "\n"); in fas216_transfer()
780 dmatype = info->dma.setup(info->host, &info->scsi.SCp, in fas216_transfer()
785 fas216_set_stc(info, info->scsi.SCp.phase); in fas216_transfer()
787 fas216_set_stc(info, info->scsi.SCp.this_residual); in fas216_transfer()
801 info->dma.pseudo(info->host, &info->scsi.SCp, in fas216_transfer()
834 info->dma.stop(info->host, &info->scsi.SCp); in fas216_stoptransfer()
847 while (fifo && info->scsi.SCp.ptr) { in fas216_stoptransfer()
848 *info->scsi.SCp.ptr = fas216_readb(info, REG_FF); in fas216_stoptransfer()
867 info->dma.stop(info->host, &info->scsi.SCp); in fas216_aborttransfer()
1010 info->scsi.SCp = info->SCpnt->SCp; in fas216_reselected_intr()
1013 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_reselected_intr()
1077 info->SCpnt->SCp = info->scsi.SCp; in fas216_parse_message()
1078 info->SCpnt->SCp.sent_command = 0; in fas216_parse_message()
1081 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_parse_message()
1091 info->scsi.SCp = info->SCpnt->SCp; in fas216_parse_message()
1094 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_parse_message()
1296 for (i = info->scsi.SCp.sent_command; i < info->SCpnt->cmd_len; i++) in fas216_send_command()
1567 info->scsi.SCp.Status = fas216_readb(info, REG_FF); in fas216_funcdone_intr()
1568 info->scsi.SCp.Message = fas216_readb(info, REG_FF); in fas216_funcdone_intr()
1609 memset(&info->scsi.SCp, 0, sizeof(info->scsi.SCp)); in fas216_bus_reset()
1769 info->scsi.SCp = SCpnt->SCp; in fas216_start_command()
1848 info->scsi.SCp = SCpnt->SCp; in fas216_do_bus_device_reset()
1966 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_kick()
2000 result, SCpnt->SCp.Message, SCpnt->SCp.Status); in fas216_rq_sns_done()
2002 if (result != DID_OK || SCpnt->SCp.Status != SAM_STAT_GOOD) in fas216_rq_sns_done()
2036 scsi_msg_to_host_byte(SCpnt, info->scsi.SCp.Message); in fas216_std_done()
2037 set_status_byte(SCpnt, info->scsi.SCp.Status); in fas216_std_done()
2070 if (info->scsi.SCp.ptr) { in fas216_std_done()
2080 SCpnt->result, info->scsi.SCp.ptr, in fas216_std_done()
2081 info->scsi.SCp.this_residual); in fas216_std_done()
2106 SCpnt->SCp.Message = 0; in fas216_std_done()
2107 SCpnt->SCp.Status = 0; in fas216_std_done()
2153 if (info->scsi.SCp.ptr && info->scsi.SCp.this_residual == 0) { in fas216_done()
2156 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_done()
2157 info->scsi.SCp.ptr = NULL; in fas216_done()