Lines Matching refs:SCp
140 static void print_SCp(Scsi_Pointer *SCp, const char *prefix, const char *suffix) in print_SCp() argument
143 prefix, SCp->ptr, SCp->this_residual, SCp->buffer, in print_SCp()
144 SCp->buffers_residual, suffix); in print_SCp()
165 print_SCp(&info->scsi.SCp, " SCp={ ", " }\n"); in fas216_dumpinfo()
595 Scsi_Pointer *SCp = &info->scsi.SCp; in fas216_updateptrs() local
604 if (SCp->this_residual > bytes_transferred) in fas216_updateptrs()
610 bytes_transferred -= SCp->this_residual; in fas216_updateptrs()
611 if (!next_SCp(SCp) && bytes_transferred) { in fas216_updateptrs()
618 SCp->this_residual -= bytes_transferred; in fas216_updateptrs()
619 if (SCp->this_residual) in fas216_updateptrs()
620 SCp->ptr += bytes_transferred; in fas216_updateptrs()
622 SCp->ptr = NULL; in fas216_updateptrs()
635 Scsi_Pointer *SCp = &info->scsi.SCp; in fas216_pio() local
640 fas216_writeb(info, REG_FF, get_next_SCp_byte(SCp)); in fas216_pio()
642 put_next_SCp_byte(SCp, fas216_readb(info, REG_FF)); in fas216_pio()
644 if (SCp->this_residual == 0) in fas216_pio()
645 next_SCp(SCp); in fas216_pio()
685 total = info->scsi.SCp.this_residual; in fas216_cleanuptransfer()
720 info->scsi.SCp.ptr, info->scsi.SCp.this_residual, in fas216_transfer()
723 if (!info->scsi.SCp.ptr) { in fas216_transfer()
726 print_SCp(&info->scsi.SCp, "SCp: ", "\n"); in fas216_transfer()
727 print_SCp(&info->SCpnt->SCp, "Cmnd SCp: ", "\n"); in fas216_transfer()
747 dmatype = info->dma.setup(info->host, &info->scsi.SCp, in fas216_transfer()
754 fas216_set_stc(info, info->scsi.SCp.this_residual); in fas216_transfer()
768 info->dma.pseudo(info->host, &info->scsi.SCp, in fas216_transfer()
801 info->dma.stop(info->host, &info->scsi.SCp); in fas216_stoptransfer()
814 while (fifo && info->scsi.SCp.ptr) { in fas216_stoptransfer()
815 *info->scsi.SCp.ptr = fas216_readb(info, REG_FF); in fas216_stoptransfer()
834 info->dma.stop(info->host, &info->scsi.SCp); in fas216_aborttransfer()
979 info->scsi.SCp = info->SCpnt->SCp; in fas216_reselected_intr()
982 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_reselected_intr()
1044 info->SCpnt->SCp = info->scsi.SCp; in fas216_parse_message()
1045 info->SCpnt->SCp.sent_command = 0; in fas216_parse_message()
1048 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_parse_message()
1058 info->scsi.SCp = info->SCpnt->SCp; in fas216_parse_message()
1061 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_parse_message()
1263 for (i = info->scsi.SCp.sent_command; i < info->SCpnt->cmd_len; i++) in fas216_send_command()
1529 info->scsi.SCp.Status = fas216_readb(info, REG_FF); in fas216_funcdone_intr()
1530 info->scsi.SCp.Message = fas216_readb(info, REG_FF); in fas216_funcdone_intr()
1570 memset(&info->scsi.SCp, 0, sizeof(info->scsi.SCp)); in fas216_bus_reset()
1727 info->scsi.SCp = SCpnt->SCp; in fas216_start_command()
1815 info->scsi.SCp = SCpnt->SCp; in fas216_do_bus_device_reset()
1931 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_kick()
1965 result, SCpnt->SCp.Message, SCpnt->SCp.Status); in fas216_rq_sns_done()
1967 if (result != DID_OK || SCpnt->SCp.Status != GOOD) in fas216_rq_sns_done()
1998 SCpnt->result = result << 16 | info->scsi.SCp.Message << 8 | in fas216_std_done()
1999 info->scsi.SCp.Status; in fas216_std_done()
2033 if (info->scsi.SCp.ptr) { in fas216_std_done()
2044 SCpnt->result, info->scsi.SCp.ptr, in fas216_std_done()
2045 info->scsi.SCp.this_residual); in fas216_std_done()
2074 SCpnt->SCp.buffer = NULL; in fas216_std_done()
2075 SCpnt->SCp.buffers_residual = 0; in fas216_std_done()
2076 SCpnt->SCp.ptr = (char *)SCpnt->sense_buffer; in fas216_std_done()
2077 SCpnt->SCp.this_residual = sizeof(SCpnt->sense_buffer); in fas216_std_done()
2078 SCpnt->SCp.Message = 0; in fas216_std_done()
2079 SCpnt->SCp.Status = 0; in fas216_std_done()
2129 if (info->scsi.SCp.ptr && info->scsi.SCp.this_residual == 0) { in fas216_done()
2133 info->scsi.SCp.ptr, info->scsi.SCp.this_residual); in fas216_done()
2134 info->scsi.SCp.ptr = NULL; in fas216_done()