Lines Matching refs:residual
1464 size_t residual = 0;
1513 residual = (xwire_len - io->wire_len);
1523 /* if this is the last data phase and there is no residual, enable
1527 (residual == 0) && ((io->transferred + io->wire_len) == io->exp_xfer_len) && (!(flags & OCS_SCSI_NO_AUTO_RESPONSE))) {
1538 * when the residual is calculated in ocs_scsi_send_resp
1540 io->transferred += residual;
1544 if (residual) {
1547 while (residual) {
1549 if ( len > residual) {
1550 sgl_ptr->len = len - residual;
1551 residual = 0;
1554 residual -= len;
1632 int32_t residual;
1653 residual = rsp->residual;
1655 residual = io->exp_xfer_len - io->transferred;
1675 if ((scsi_status != 0) || residual || sense_data_length) {
1692 /* set residual status if necessary */
1693 if (residual != 0) {
1698 if (residual > 0) {
1700 *((uint32_t *)fcprsp->fcp_resid) = ocs_htobe32(residual);
1703 *((uint32_t *)fcprsp->fcp_resid) = ocs_htobe32(-residual);
2170 /* Set residual */
2172 rsp.residual = -ocs_fc_getbe32(fcprsp->fcp_resid);
2175 rsp.residual = ocs_fc_getbe32(fcprsp->fcp_resid);