Lines Matching defs:piece
42 tr_piece_index_t piece;
100 info->is_piece_done = tr_cpPieceIsComplete( &b->tor->completion, b->piece );
101 info->is_multi_piece = b->piece != blocks[pos]->piece ? true : false;
144 * growing is very small, for blocks on piece boundaries, and nonexistant for
148 /* Move the multi piece runs higher */
171 const tr_piece_index_t piece = b->piece;
183 err = tr_ioWrite( tor, piece, offset, walk-buf, buf );
303 tr_piece_index_t piece,
308 key.block = _tr_block( torrent, piece, offset );
315 tr_piece_index_t piece,
320 struct cache_block * cb = findBlock( cache, torrent, piece, offset );
326 cb->piece = piece;
329 cb->block = _tr_block( torrent, piece, offset );
349 tr_piece_index_t piece,
355 struct cache_block * cb = findBlock( cache, torrent, piece, offset );
360 err = tr_ioRead( torrent, piece, offset, len, setme );
368 tr_piece_index_t piece,
373 struct cache_block * cb = findBlock( cache, torrent, piece, offset );
376 err = tr_ioPrefetch( torrent, piece, offset, len );