Lines Matching refs:SCp

398 		cmd->SCp.buffer = scsi_sglist(cmd);  in wd33c93_queuecommand_lck()
399 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; in wd33c93_queuecommand_lck()
400 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in wd33c93_queuecommand_lck()
401 cmd->SCp.this_residual = cmd->SCp.buffer->length; in wd33c93_queuecommand_lck()
403 cmd->SCp.buffer = NULL; in wd33c93_queuecommand_lck()
404 cmd->SCp.buffers_residual = 0; in wd33c93_queuecommand_lck()
405 cmd->SCp.ptr = NULL; in wd33c93_queuecommand_lck()
406 cmd->SCp.this_residual = 0; in wd33c93_queuecommand_lck()
426 cmd->SCp.Status = ILLEGAL_STATUS_BYTE; in wd33c93_queuecommand_lck()
549 cmd->SCp.phase = 0; /* assume no disconnect */ in DEF_SCSI_QCMD()
566 prev->SCp.phase = 1; in DEF_SCSI_QCMD()
574 cmd->SCp.phase = 1; in DEF_SCSI_QCMD()
582 write_wd33c93(regs, WD_SOURCE_ID, ((cmd->SCp.phase) ? SRCID_ER : 0)); in DEF_SCSI_QCMD()
651 if ((cmd->SCp.phase == 0) && (hostdata->no_dma == 0)) { in DEF_SCSI_QCMD()
658 cmd->SCp.this_residual); in DEF_SCSI_QCMD()
678 printk("%s)EX-2 ", (cmd->SCp.phase) ? "d:" : "")) in DEF_SCSI_QCMD()
733 if (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) { in transfer_bytes()
734 cmd->SCp.buffer = sg_next(cmd->SCp.buffer); in transfer_bytes()
735 --cmd->SCp.buffers_residual; in transfer_bytes()
736 cmd->SCp.this_residual = cmd->SCp.buffer->length; in transfer_bytes()
737 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in transfer_bytes()
739 if (!cmd->SCp.this_residual) /* avoid bogus setups */ in transfer_bytes()
753 transfer_pio(regs, (uchar *) cmd->SCp.ptr, in transfer_bytes()
754 cmd->SCp.this_residual, data_in_dir, hostdata); in transfer_bytes()
755 length = cmd->SCp.this_residual; in transfer_bytes()
756 cmd->SCp.this_residual = read_wd33c93_count(regs); in transfer_bytes()
757 cmd->SCp.ptr += (length - cmd->SCp.this_residual); in transfer_bytes()
774 write_wd33c93_count(regs, cmd->SCp.this_residual); in transfer_bytes()
777 (hostdata->level2 == L2_BASIC && cmd->SCp.phase == 0)) { in transfer_bytes()
830 printk("[%p/%d:", cmd->SCp.ptr, cmd->SCp.this_residual)) in wd33c93_intr()
833 length = cmd->SCp.this_residual; in wd33c93_intr()
834 cmd->SCp.this_residual = read_wd33c93_count(regs); in wd33c93_intr()
835 cmd->SCp.ptr += (length - cmd->SCp.this_residual); in wd33c93_intr()
837 printk("%p/%d]", cmd->SCp.ptr, cmd->SCp.this_residual)) in wd33c93_intr()
887 if (cmd->SCp.phase) in wd33c93_intr()
929 printk("IN-%d.%d", cmd->SCp.this_residual, in wd33c93_intr()
930 cmd->SCp.buffers_residual)) in wd33c93_intr()
941 printk("OUT-%d.%d", cmd->SCp.this_residual, in wd33c93_intr()
942 cmd->SCp.buffers_residual)) in wd33c93_intr()
965 cmd->SCp.Status = read_1_byte(regs); in wd33c93_intr()
966 DB(DB_INTR, printk("%02x", cmd->SCp.Status)) in wd33c93_intr()
994 cmd->SCp.Message = msg; in wd33c93_intr()
1166 cmd->SCp.Message = COMMAND_COMPLETE; in wd33c93_intr()
1168 DB(DB_INTR, printk(":%d.%d", cmd->SCp.Status, lun)) in wd33c93_intr()
1172 if (cmd->SCp.Status == ILLEGAL_STATUS_BYTE) in wd33c93_intr()
1173 cmd->SCp.Status = lun; in wd33c93_intr()
1175 && cmd->SCp.Status != SAM_STAT_GOOD) { in wd33c93_intr()
1179 scsi_msg_to_host_byte(cmd, cmd->SCp.Message); in wd33c93_intr()
1180 set_status_byte(cmd, cmd->SCp.Status); in wd33c93_intr()
1262 cmd->SCp.Status != SAM_STAT_GOOD) { in wd33c93_intr()
1266 scsi_msg_to_host_byte(cmd, cmd->SCp.Message); in wd33c93_intr()
1267 set_status_byte(cmd, cmd->SCp.Status); in wd33c93_intr()
1296 DB(DB_INTR, printk(":%d", cmd->SCp.Status)) in wd33c93_intr()
1298 && cmd->SCp.Status != SAM_STAT_GOOD) { in wd33c93_intr()
1302 scsi_msg_to_host_byte(cmd, cmd->SCp.Message); in wd33c93_intr()
1303 set_status_byte(cmd, cmd->SCp.Status); in wd33c93_intr()