Lines Matching defs:beginSlot
93 if(dce->beginSlot != cache->nrHashed)
163 unsigned int beginSlot,
171 if(endSlot < beginSlot) {
173 beginSlot, endSlot);
177 while(beginSlot < endSlot) {
178 entry = cache->entries[beginSlot];
180 beginSlot++;
187 clearBegin = beginSlot;
193 entry->endSlot = beginSlot;
194 else if(entry->beginSlot == beginSlot)
195 entry->beginSlot = endSlot;
199 fprintf(stderr, "%d %d\n", beginSlot, endSlot);
200 fprintf(stderr, "%d %d\n", entry->beginSlot,
205 if(entry->beginSlot == entry->endSlot) {
213 beginSlot = clearEnd;
217 static dirCacheEntry_t *allocDirCacheEntry(dirCache_t *cache, int beginSlot,
233 entry->beginSlot = beginSlot;
236 freeDirCacheRange(cache, beginSlot, endSlot);
237 for(i=beginSlot; i<endSlot; i++) {
243 dirCacheEntry_t *addUsedEntry(dirCache_t *cache, int beginSlot, int endSlot,
249 if(endSlot < beginSlot) {
252 beginSlot, endSlot);
257 entry = allocDirCacheEntry(cache, beginSlot, endSlot, DCET_USED);
261 entry->beginSlot = beginSlot;
282 for(i=next->beginSlot; i < next->endSlot; i++)
290 unsigned int beginSlot,
295 if(beginSlot < cache->nrHashed)
296 cache->nrHashed = beginSlot;
298 if(endSlot < beginSlot) {
300 beginSlot, endSlot);
304 if(endSlot == beginSlot)
306 entry = allocDirCacheEntry(cache, beginSlot, endSlot, DCET_FREE);
307 mergeFreeSlots(cache, beginSlot);
309 return cache->entries[beginSlot];