Lines Matching refs:score
102 memmove(r->score, b->score, VtScoreSize); in vtfilealloc()
149 memmove(e.score, vtzeroscore, VtScoreSize); in vtfilecreateroot()
243 memmove(e.score, vtzeroscore, VtScoreSize); in _vtfilecreate()
286 memmove(e.score, vtzeroscore, VtScoreSize); in vtfilekill()
330 uchar score[VtScoreSize]; in shrinksize() local
333 b = vtcacheglobal(r->c, e->score, e->type); in shrinksize()
370 memmove(score, b->data+i*VtScoreSize, VtScoreSize); in shrinksize()
372 b = vtcacheglobal(r->c, score, type); in shrinksize()
505 uchar *score; in blockwalk() local
513 score = e->score; in blockwalk()
517 score = p->data+index*VtScoreSize; in blockwalk()
522 if(mode == VtOWRITE && vtglobaltolocal(score) == NilBlock){ in blockwalk()
527 b = vtcacheglobal(c, score, type); in blockwalk()
532 if(vtglobaltolocal(b->score) != NilBlock) in blockwalk()
548 memmove(e->score, b->score, VtScoreSize); in blockwalk()
551 memmove(p->data+index*VtScoreSize, b->score, VtScoreSize); in blockwalk()
569 b = vtcacheglobal(r->c, e->score, e->type); in growdepth()
583 memmove(bb->data, b->score, VtScoreSize); in growdepth()
584 memmove(e->score, bb->score, VtScoreSize); in growdepth()
608 rb = vtcacheglobal(r->c, e->score, e->type); in shrinkdepth()
648 memmove(e->score, b->score, VtScoreSize); in shrinkdepth()
737 vtfileblockscore(VtFile *r, u32int bn, uchar score[VtScoreSize]) in vtfileblockscore()
752 memmove(score, e.score, VtScoreSize); in vtfileblockscore()
763 memmove(score, vtzeroscore, VtScoreSize); in vtfileblockscore()
776 if(memcmp(b->score, vtzeroscore, VtScoreSize) == 0) in vtfileblockscore()
780 memmove(score, b->data+index[0]*VtScoreSize, VtScoreSize); in vtfileblockscore()
840 b = vtcacheglobal(r->c, r->score, VtDirType); in fileloadblock()
853 memmove(r->score, b->score, VtScoreSize); in fileloadblock()
862 addr = vtglobaltolocal(r->score); in fileloadblock()
864 return vtcacheglobal(r->c, r->score, VtDirType); in fileloadblock()
887 r->score, b->score); in fileloadblock()
888 memmove(r->score, b->score, VtScoreSize); in fileloadblock()
1101 flushblock(VtCache *c, VtBlock *bb, uchar score[VtScoreSize], int ppb, int epb, in flushblock()
1109 addr = vtglobaltolocal(score); in flushblock()
1115 if(memcmp(b->score, score, VtScoreSize) != 0) in flushblock()
1131 if(flushblock(c, nil, e.score, e.psize/VtScoreSize, e.dsize/VtEntrySize, in flushblock()
1148 memmove(score, b->score, VtScoreSize); in flushblock()
1173 ret = flushblock(f->c, nil, e.score, e.psize/VtScoreSize, e.dsize/VtEntrySize, in vtfileflush()
1193 uchar *score; in vtfileflushbefore() local
1267 score = e.score; in vtfileflushbefore()
1269 score = bi[i+1]->data+index[i]*VtScoreSize; in vtfileflushbefore()
1270 if(flushblock(r->c, bi[i], score, ppb, epb, base+i) < 0) in vtfileflushbefore()