Lines Matching defs:firstPiece
571 file->firstPiece = getBytePiece( info, firstByte );
579 return ( file->firstPiece <= piece ) && ( piece <= file->lastPiece );
616 if( file->firstPiece == piece || file->lastPiece == piece )
651 assert( inf->files[f].firstPiece <= p );
2138 for( i = file->firstPiece; i <= file->lastPiece; ++i )
2186 tr_piece_index_t firstPiece;
2194 firstPiece = file->firstPiece;
2204 if( tor->info.files[i].lastPiece != firstPiece )
2217 if( tor->info.files[i].firstPiece != lastPiece )
2222 if( firstPiece == lastPiece )
2224 tor->info.pieces[firstPiece].dnd = firstPieceDND && lastPieceDND;
2229 tor->info.pieces[firstPiece].dnd = firstPieceDND;
2231 for( pp = firstPiece + 1; pp < lastPiece; ++pp )
3042 for( p=&inf->pieces[f->firstPiece], pend=&inf->pieces[f->lastPiece]; p!=pend; ++p )