Lines Matching defs:totlen
1376 uint32_t totlen, len, offs, sn;
1383 totlen = ntohl(rx_pdu->pdu_hdr.pduh_p.r2t.DesiredDataTransferLength);
1386 totlen = min(conn->c_max_firstdata - offs, tx_ccb->ccb_data_len - offs);
1390 while (totlen) {
1391 len = min(totlen, conn->c_max_transfer);
1404 totlen -= len;
1407 if (!totlen)
1418 DEBC(conn, 10, ("Send DataOut: DataSN %d, len %d offs %x totlen %d\n",
1419 sn, len, offs, totlen));
1422 send_pdu(tx_ccb, tx_pdu, (totlen) ? CCBDISP_NOWAIT : disp, PDUDISP_FREE);
1443 uint32_t totlen, len;
1474 totlen = len = ccb->ccb_data_len;
1482 hpdu->pduh_p.command.ExpectedDataTransferLength = htonl(totlen);
1484 if (totlen) {
1487 totlen = 0;
1491 len = min(totlen, conn->c_max_firstimmed);
1494 totlen = conn->c_max_firstdata ? totlen - len : 0;
1497 if (!totlen)
1515 DEBC(conn, 10, ("Send Command: CmdSN %d (%d), data_in %d, len %d, totlen %d\n",
1516 ccb->ccb_CmdSN, sess->s_MaxCmdSN, ccb->ccb_data_in, len, totlen));
1519 send_pdu(ccb, ppdu, (totlen) ? CCBDISP_DEFER : disp, PDUDISP_WAIT);
1521 if (totlen)