Lines Matching refs:residual
624 size_t residual = 0;
639 residual = io->exp_xfer_len - io->transferred;
640 io->wire_len = (xwire_len < residual) ? xwire_len : residual;
641 residual = (xwire_len - io->wire_len);
649 /* if this is the last data phase and there is no residual, enable
652 if (enable_ar && (flags & EFCT_SCSI_LAST_DATAPHASE) && residual == 0 &&
665 * when the residual is calculated in efct_scsi_send_resp
667 io->transferred += residual;
671 if (residual) {
674 while (residual) {
677 if (len > residual) {
678 sgl_ptr->len = len - residual;
679 residual = 0;
682 residual -= len;
736 int residual;
751 residual = rsp->residual;
753 residual = io->exp_xfer_len - io->transferred;
775 if (scsi_status != 0 || residual || sense_data_length) {
796 /* set residual status if necessary */
797 if (residual != 0) {
803 if (residual > 0) {
805 fcprsp->ext.fr_resid = cpu_to_be32(residual);
808 fcprsp->ext.fr_resid = cpu_to_be32(-residual);