Lines Matching refs:pieceIndex
1496 tr_piece_index_t pieceIndex,
1500 assert( pieceIndex < tor->info.pieceCount );
1503 tr_cpPieceAdd( &tor->completion, pieceIndex );
1505 tr_cpPieceRem( &tor->completion, pieceIndex );
2442 tr_torrentSetPieceChecked( tr_torrent * tor, tr_piece_index_t pieceIndex )
2445 assert( pieceIndex < tor->info.pieceCount );
2447 tor->info.pieces[pieceIndex].timeChecked = tr_time( );
2462 tr_torrentCheckPiece( tr_torrent * tor, tr_piece_index_t pieceIndex )
2464 const bool pass = tr_ioTestPiece( tor, pieceIndex );
2466 tr_deeplog_tor( tor, "[LAZY] tr_torrentCheckPiece tested piece %zu, pass==%d", (size_t)pieceIndex, (int)pass );
2467 tr_torrentSetHasPiece( tor, pieceIndex, pass );
2468 tr_torrentSetPieceChecked( tor, pieceIndex );