Lines Matching defs:index
275 page_hash_search(ulong_t index, vnode_t *vnode, u_offset_t off)
280 for (page = page_hash[index]; page; page = page->p_hash, mylen++)
726 ulong_t index;
741 index = PAGE_HASH_FUNC(vp, off);
744 pp = page_hash_search(index, vp, off);
760 phm = PAGE_HASH_MUTEX(index);
797 phm = PAGE_HASH_MUTEX(index);
831 phm = PAGE_HASH_MUTEX(index);
878 phm = PAGE_HASH_MUTEX(index);
935 ulong_t index;
941 index = PAGE_HASH_FUNC(vp, off);
942 pp = page_hash_search(index, vp, off);
948 phm = PAGE_HASH_MUTEX(index);
950 pp = page_hash_search(index, vp, off);
1003 ulong_t index;
1008 index = PAGE_HASH_FUNC(vp, off);
1009 phm = PAGE_HASH_MUTEX(index);
1012 pp = page_hash_search(index, vp, off);
1030 ulong_t index;
1035 index = PAGE_HASH_FUNC(vp, off);
1037 return (page_hash_search(index, vp, off));
1063 ulong_t index;
1080 index = PAGE_HASH_FUNC(vp, off);
1081 phm = PAGE_HASH_MUTEX(index);
1084 pp = page_hash_search(index, vp, off);
1300 ulong_t index;
1307 index = PAGE_HASH_FUNC(vp, off);
1308 phm = PAGE_HASH_MUTEX(index);
1311 pp = page_hash_search(index, vp, off);
2372 ulong_t index;
2374 index = PAGE_HASH_FUNC(vp, off);
2377 ASSERT(index == PAGE_HASH_FUNC(vp, off));
2437 phm = PAGE_HASH_MUTEX(index);
2439 pp = page_hash_search(index, vp, off);
3222 ulong_t index;
3256 index = PAGE_HASH_FUNC(vp, off);
3257 phm = PAGE_HASH_MUTEX(index);
3269 pp = page_hash_search(index, vp, off);
3392 ulong_t index;
3413 index = PAGE_HASH_FUNC(vp, offset);
3414 ASSERT(MUTEX_HELD(PAGE_HASH_MUTEX(index)));
3415 listp = &page_hash[index];
3539 ulong_t index;
3563 index = PAGE_HASH_FUNC(vp, pp->p_offset);
3566 nphm = PAGE_HASH_MUTEX(index);
3569 ASSERT(phm ? phm == PAGE_HASH_MUTEX(index) : 1);
6007 pgcnt_t index;
6032 index = MEMSEG_PFN_HASH(pseg->pages_base);
6035 if (index >= N_MEM_SLOTS)
6036 index = MEMSEG_PFN_HASH(cur);
6038 if (memseg_hash[index] == NULL ||
6039 memseg_hash[index]->pages_base > pseg->pages_base) {
6040 memseg_hash[index] = pseg;
6041 hat_kpm_mseghash_update(index, pseg);
6044 index++;
6246 page_capture_register_callback(uint_t index, clock_t duration,
6249 ASSERT(pc_cb[index].cb_active == 0);
6251 rw_enter(&pc_cb[index].cb_rwlock, RW_WRITER);
6252 pc_cb[index].duration = duration;
6253 pc_cb[index].cb_func = cb_func;
6254 pc_cb[index].cb_active = 1;
6255 rw_exit(&pc_cb[index].cb_rwlock);
6259 page_capture_unregister_callback(uint_t index)
6265 uint_t flags = (1 << index);
6267 rw_enter(&pc_cb[index].cb_rwlock, RW_WRITER);
6268 ASSERT(pc_cb[index].cb_active == 1);
6269 pc_cb[index].duration = 0; /* Paranoia */
6270 pc_cb[index].cb_func = NULL; /* Paranoia */
6271 pc_cb[index].cb_active = 0;
6272 rw_exit(&pc_cb[index].cb_rwlock);
6328 int index;
6330 index = PAGE_CAPTURE_HASH(pp);
6332 mutex_enter(&page_capture_hash[index].pchh_mutex);
6333 bp = page_capture_hash[index].lists[0].next;
6334 while (bp != &page_capture_hash[index].lists[0]) {
6341 bp->next = page_capture_hash[index].lists[1].next;
6342 bp->prev = &page_capture_hash[index].lists[1];
6343 page_capture_hash[index].lists[1].next = bp;
6355 page_capture_hash[index].num_pages[bp->pri]--;
6357 page_capture_hash[index].num_pages[bp->pri]++;
6358 mutex_exit(&page_capture_hash[index].pchh_mutex);
6363 mutex_exit(&page_capture_hash[index].pchh_mutex);
6379 int index;
6420 index = PAGE_CAPTURE_HASH(pp);
6426 mutex_enter(&page_capture_hash[index].pchh_mutex);
6435 tp1 = page_capture_hash[index].lists[l].next;
6436 while (tp1 != &page_capture_hash[index].lists[l]) {
6450 bp1->next = page_capture_hash[index].lists[0].next;
6451 bp1->prev = &page_capture_hash[index].lists[0];
6453 page_capture_hash[index].lists[0].next = bp1;
6454 page_capture_hash[index].num_pages[pri]++;
6458 mutex_exit(&page_capture_hash[index].pchh_mutex);
6472 * *void's so that we can index based upon callers index).
6477 bp2 = page_capture_hash[index].lists[i].next;
6478 while (bp2 != &page_capture_hash[index].lists[i]) {
6495 mutex_exit(&page_capture_hash[index].
6749 int index;
6773 index = PAGE_CAPTURE_HASH(pp);
6775 mutex_enter(&page_capture_hash[index].pchh_mutex);
6777 bp1 = page_capture_hash[index].lists[i].next;
6778 while (bp1 != &page_capture_hash[index].lists[i]) {
6782 page_capture_hash[index].
6791 mutex_exit(&page_capture_hash[index].pchh_mutex);
6857 mutex_enter(&page_capture_hash[index].pchh_mutex);
6861 bp1->next = page_capture_hash[index].lists[1].next;
6862 bp1->prev = &page_capture_hash[index].lists[1];
6865 page_capture_hash[index].lists[1].next = bp1;
6866 page_capture_hash[index].num_pages[bp1->pri]++;
6867 mutex_exit(&page_capture_hash[index].pchh_mutex);
6877 bp2 = page_capture_hash[index].lists[i].next;
6878 while (bp2 != &page_capture_hash[index].lists[i]) {
6896 page_capture_hash[index].num_pages[bp2->pri]--;
6898 page_capture_hash[index].num_pages[bp2->pri]++;
6899 mutex_exit(&page_capture_hash[index].
7040 int index;
7068 index = PAGE_CAPTURE_HASH(pp);
7070 mp = &page_capture_hash[index].pchh_mutex;
7073 bp = page_capture_hash[index].lists[i].next;
7074 while (bp != &page_capture_hash[index].lists[i]) {