Lines Matching defs:bucket
139 uint32_t vm_page_bucket_hash; /* Basic bucket hash */
170 printf("Sum of bucket max depth: %d\n", highsum);
171 printf("Average bucket depth: %d.%2d\n",
174 printf("Maximum bucket depth: %d\n", maxdepth);
535 register vm_page_bucket_t *bucket = &vm_page_buckets[i];
537 bucket->pages = VM_PAGE_NULL;
539 bucket->cur_count = 0;
540 bucket->hi_count = 0;
866 * NOTE: The bucket count must be a power of 2
898 register vm_page_bucket_t *bucket;
937 bucket = &vm_page_buckets[vm_page_hash(object, offset)];
939 mem->next = bucket->pages;
940 bucket->pages = mem;
942 if (++bucket->cur_count > bucket->hi_count)
943 bucket->hi_count = bucket->cur_count;
993 vm_page_bucket_t *bucket;
1018 bucket = &vm_page_buckets[vm_page_hash(object, offset)];
1021 if (bucket->pages) {
1022 vm_page_t *mp = &bucket->pages;
1038 mem->next = bucket->pages;
1045 bucket->pages = mem;
1109 register vm_page_bucket_t *bucket;
1129 bucket = &vm_page_buckets[vm_page_hash(mem->object, mem->offset)];
1131 if ((this = bucket->pages) == mem) {
1134 bucket->pages = mem->next;
1145 bucket->cur_count--;
1194 register vm_page_bucket_t *bucket;
1239 bucket = &vm_page_buckets[vm_page_hash(object, offset)];
1245 * if the bucket it hashes to is currently NULL even when looked
1246 * at outside the scope of the hash bucket lock... this is a
1249 if (bucket->pages == VM_PAGE_NULL) {
1256 for (mem = bucket->pages; mem != VM_PAGE_NULL; mem = mem->next) {
3528 vm_page_bucket_t *bucket = &vm_page_buckets[i];
3533 for (m = bucket->pages; m != VM_PAGE_NULL; m = m->next)