Lines Matching refs:block
131 PHashTableEntryBlock *tmp, *block;
136 block = table->entryBlock;
137 while (block != NULL)
139 tmp = block->next;
140 FREE(block);
141 block = tmp;
370 /* Allocate a new block and put all entries on the free list. */
371 PHashTableEntryBlock *block;
374 block = NEW(PHashTableEntryBlock, table->memoryTag);
375 if (block == NULL)
378 block->next = table->entryBlock;
379 table->entryBlock = block;
383 block->entries[i].next = &block->entries[i+1];
385 block->entries[ALLOC_SIZE-1].next = NULL;
388 it produces wrong result: block->entries[0].next is correct but block->entries[1].next = NULL
390 for (i = 0, entry = block->entries; i < ALLOC_SIZE - 1; ++i, ++entry)
397 table->freeList = block->entries;