Lines Matching refs:SCp
59 dev->cur_cmd->SCp.phase = 1; in got_it()
546 if ((cmd->SCp.this_residual <= 0)) { in ppa_completion()
575 fast = (bulk && (cmd->SCp.this_residual >= PPA_BURST_SIZE)) in ppa_completion()
579 status = ppa_out(dev, cmd->SCp.ptr, fast); in ppa_completion()
581 status = ppa_in(dev, cmd->SCp.ptr, fast); in ppa_completion()
583 cmd->SCp.ptr += fast; in ppa_completion()
584 cmd->SCp.this_residual -= fast; in ppa_completion()
590 if (cmd->SCp.buffer && !cmd->SCp.this_residual) { in ppa_completion()
592 if (cmd->SCp.buffers_residual--) { in ppa_completion()
593 cmd->SCp.buffer = sg_next(cmd->SCp.buffer); in ppa_completion()
594 cmd->SCp.this_residual = in ppa_completion()
595 cmd->SCp.buffer->length; in ppa_completion()
596 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in ppa_completion()
661 if (cmd->SCp.phase > 1) in ppa_interrupt()
683 switch (cmd->SCp.phase) { in ppa_engine()
718 cmd->SCp.phase++; in ppa_engine()
727 cmd->SCp.phase++; in ppa_engine()
737 cmd->SCp.phase++; in ppa_engine()
742 cmd->SCp.buffer = scsi_sglist(cmd); in ppa_engine()
743 cmd->SCp.this_residual = cmd->SCp.buffer->length; in ppa_engine()
744 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); in ppa_engine()
746 cmd->SCp.buffer = NULL; in ppa_engine()
747 cmd->SCp.this_residual = 0; in ppa_engine()
748 cmd->SCp.ptr = NULL; in ppa_engine()
750 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; in ppa_engine()
751 cmd->SCp.phase++; in ppa_engine()
764 cmd->SCp.phase++; in ppa_engine()
801 cmd->SCp.phase = 0; /* bus free */ in ppa_queuecommand_lck()
842 switch (cmd->SCp.phase) { in ppa_abort()
864 if (cmd->SCp.phase) in ppa_reset()