Lines Matching refs:residual
624 size_t residual = 0; in efct_scsi_xfer_data() local
639 residual = io->exp_xfer_len - io->transferred; in efct_scsi_xfer_data()
640 io->wire_len = (xwire_len < residual) ? xwire_len : residual; in efct_scsi_xfer_data()
641 residual = (xwire_len - io->wire_len); in efct_scsi_xfer_data()
652 if (enable_ar && (flags & EFCT_SCSI_LAST_DATAPHASE) && residual == 0 && in efct_scsi_xfer_data()
667 io->transferred += residual; in efct_scsi_xfer_data()
671 if (residual) { in efct_scsi_xfer_data()
674 while (residual) { in efct_scsi_xfer_data()
677 if (len > residual) { in efct_scsi_xfer_data()
678 sgl_ptr->len = len - residual; in efct_scsi_xfer_data()
679 residual = 0; in efct_scsi_xfer_data()
682 residual -= len; in efct_scsi_xfer_data()
736 int residual; in efct_scsi_send_resp() local
751 residual = rsp->residual; in efct_scsi_send_resp()
753 residual = io->exp_xfer_len - io->transferred; in efct_scsi_send_resp()
775 if (scsi_status != 0 || residual || sense_data_length) { in efct_scsi_send_resp()
797 if (residual != 0) { in efct_scsi_send_resp()
803 if (residual > 0) { in efct_scsi_send_resp()
805 fcprsp->ext.fr_resid = cpu_to_be32(residual); in efct_scsi_send_resp()
808 fcprsp->ext.fr_resid = cpu_to_be32(-residual); in efct_scsi_send_resp()