Lines Matching defs:residual
1480 size_t residual = 0;
1529 residual = (xwire_len - io->wire_len);
1539 /* if this is the last data phase and there is no residual, enable
1543 (residual == 0) && ((io->transferred + io->wire_len) == io->exp_xfer_len) && (!(flags & OCS_SCSI_NO_AUTO_RESPONSE))) {
1554 * when the residual is calculated in ocs_scsi_send_resp
1556 io->transferred += residual;
1560 if (residual) {
1563 while (residual) {
1565 if ( len > residual) {
1566 sgl_ptr->len = len - residual;
1567 residual = 0;
1570 residual -= len;
1649 int32_t residual;
1670 residual = rsp->residual;
1672 residual = io->exp_xfer_len - io->transferred;
1692 if ((scsi_status != 0) || residual || sense_data_length) {
1709 /* set residual status if necessary */
1710 if (residual != 0) {
1715 if (residual > 0) {
1717 *((uint32_t *)fcprsp->fcp_resid) = ocs_htobe32(residual);
1720 *((uint32_t *)fcprsp->fcp_resid) = ocs_htobe32(-residual);
2189 /* Set residual */
2191 rsp.residual = -ocs_fc_getbe32(fcprsp->fcp_resid);
2194 rsp.residual = ocs_fc_getbe32(fcprsp->fcp_resid);