Lines Matching refs:pieceIndex
1556 gotBadPiece( Torrent * t, tr_piece_index_t pieceIndex )
1559 const uint32_t byteCount = tr_torPieceCountBytes( tor, pieceIndex );
1570 tr_piece_index_t pieceIndex UNUSED,
1579 if( pieceIndex >= t->tor->info.pieceCount )
1583 if( tr_cpPieceIsComplete( t->tor->completion, pieceIndex ) )
1587 if( !tr_bitfieldHas( peer->have, pieceIndex ) )
1601 tr_torGetPieceBlockRange( t->tor, pieceIndex, &first, &last );
1609 tr_peerMsgsAddRequest( peer->msgs, pieceIndex, offset, length );
1610 incrementPieceRequests( t, pieceIndex );
1681 tr_incrReplicationOfPiece( t, e->pieceIndex );
1706 tr_block_index_t b = _tr_block( t->tor, e->pieceIndex, e->offset );
1725 peerSuggestedPiece( t, peer, e->pieceIndex, false );
1729 peerSuggestedPiece( t, peer, e->pieceIndex, true );
1758 tr_block_index_t block = _tr_block( tor, e->pieceIndex, e->offset );
1792 pieceListResortPiece( t, pieceListLookup( t, e->pieceIndex ) );
1795 if( tr_cpPieceIsComplete( &tor->completion, e->pieceIndex ) )
1797 const tr_piece_index_t p = e->pieceIndex;
2232 tr_piece_index_t pieceIndex,
2247 if( tr_bitfieldHas( &peer->blame, pieceIndex ) )
2251 pieceIndex, (int)peer->strikes + 1 );