Lines Matching refs:requestCount
173 int16_t requestCount;
201 int requestCount;
757 if( t->requestCount + 1 >= t->requestAlloc )
773 const int pos = tr_lowerBound( &key, t->requests, t->requestCount,
779 sizeof( struct block_request ) * ( t->requestCount++ - pos ) );
791 (unsigned long)block, tr_atomAddrStr( peer->atom ), t->requestCount );*/
801 return bsearch( &key, t->requests, t->requestCount,
820 pos = tr_lowerBound( &key, t->requests, t->requestCount,
826 for( i = pos; i < t->requestCount; ++i )
849 assert( pos < t->requestCount );
856 t->requestCount-- );
860 (unsigned long)block, tr_atomAddrStr( peer->atom ), t->requestCount );*/
883 return ( t->requestCount * t->tor->blockSize )
890 assert( t->requestCount >= 0 );
912 t->endgame = t->requestCount / MAX( numDownloading, 1 );
956 pending = a->requestCount;
959 pending = b->requestCount;
1098 piece->requestCount = 0;
1211 if( ((p = pieceListLookup( t, index ))) && ( p->requestCount > 0 ) )
1213 --p->requestCount;
1421 ++p->requestCount;
1488 cancel_buflen = MAX( cancel_buflen, tor->torrentPeers->requestCount );
1497 const int n = t->requestCount;
1518 t->requestCount = keepCount;
1630 tr_block_index_t * blocks = tr_new( tr_block_index_t, t->requestCount );
1632 for( i=n=0; i<t->requestCount; ++i )