Lines Matching refs:e
67 BufCacheEntry *e = BufCacheEntry_Alloc();
68 if (!e) {
72 memset(e, 0, sizeof(*e));
73 e->disk = NULL;
74 e->buffer = (void *)(bufBase + BLOCKSIZE * i);
75 TAILQ_INSERT_TAIL(&lruList, e, lruEntry);
100 BufCacheEntry *e;
104 TAILQ_FOREACH(e, table, htEntry) {
105 if (e->disk == disk && e->diskOffset == diskOffset) {
106 e->refCount++;
107 if (e->refCount == 1) {
108 TAILQ_REMOVE(&lruList, e, lruEntry);
110 *entry = e;
136 BufCacheEntry *e;
139 e = TAILQ_FIRST(&lruList);
140 if (e == NULL) {
144 TAILQ_REMOVE(&lruList, e, lruEntry);
147 if (e->disk != NULL) {
148 table = &hashTable[e->diskOffset % HASHTABLEENTRIES];
149 TAILQ_REMOVE(table, e, htEntry);
153 e->disk = disk;
154 e->diskOffset = diskOffset;
155 e->refCount = 1;
159 TAILQ_INSERT_HEAD(table, e, htEntry);
160 *entry = e;