Lines Matching defs:band
106 b->band[TR_UP].honorParentLimits = true;
107 b->band[TR_DOWN].honorParentLimits = true;
175 if( b->band[dir].isLimited )
177 const uint64_t nextPulseSpeed = b->band[dir].desiredSpeed_Bps;
178 b->band[dir].bytesLeft = (unsigned int)( nextPulseSpeed * period_msec ) / 1000u;
315 if( b->band[dir].isLimited )
317 byteCount = MIN( byteCount, b->band[dir].bytesLeft );
340 if( b->parent && b->band[dir].honorParentLimits && ( byteCount > 0 ) )
361 return getSpeed_Bps( &b->band[dir].raw, HISTORY_MSEC, now );
370 return getSpeed_Bps( &b->band[dir].piece, HISTORY_MSEC, now );
380 struct tr_band * band;
385 band = &b->band[dir];
387 if( band->isLimited && isPieceData )
388 band->bytesLeft -= MIN( band->bytesLeft, byteCount );
391 if( ( dir == DEBUG_DIRECTION ) && ( band->isLimited ) )
393 b, byteCount, (isPieceData?"piece":"raw"), oldBytesLeft, band->bytesLeft );
396 bytesUsed( now, &band->raw, byteCount );
399 bytesUsed( now, &band->piece, byteCount );