Lines Matching refs:phm
744 kmutex_t *phm; in page_lookup_create() local
761 phm = NULL; in page_lookup_create()
779 phm = PAGE_HASH_MUTEX(index); in page_lookup_create()
780 mutex_enter(phm); in page_lookup_create()
786 if (!page_lock_es(pp, se, phm, P_RECLAIM, es)) { in page_lookup_create()
816 phm = PAGE_HASH_MUTEX(index); in page_lookup_create()
817 mutex_enter(phm); in page_lookup_create()
850 phm = PAGE_HASH_MUTEX(index); in page_lookup_create()
851 mutex_enter(phm); in page_lookup_create()
861 mutex_exit(phm); in page_lookup_create()
897 phm = PAGE_HASH_MUTEX(index); in page_lookup_create()
898 mutex_enter(phm); in page_lookup_create()
917 ASSERT(MUTEX_HELD(phm)); in page_lookup_create()
918 if (!page_hashin(newpp, vp, off, phm)) { in page_lookup_create()
919 ASSERT(MUTEX_HELD(phm)); in page_lookup_create()
921 (void *)newpp, (void *)vp, off, (void *)phm); in page_lookup_create()
924 ASSERT(MUTEX_HELD(phm)); in page_lookup_create()
925 mutex_exit(phm); in page_lookup_create()
926 phm = NULL; in page_lookup_create()
933 mutex_exit(phm); in page_lookup_create()
953 kmutex_t *phm; in page_lookup_nowait() local
967 phm = PAGE_HASH_MUTEX(index); in page_lookup_nowait()
968 mutex_enter(phm); in page_lookup_nowait()
1004 mutex_exit(phm); in page_lookup_nowait()
1021 kmutex_t *phm; in page_find() local
1028 phm = PAGE_HASH_MUTEX(index); in page_find()
1030 mutex_enter(phm); in page_find()
1032 mutex_exit(phm); in page_find()
1083 kmutex_t *phm; in page_exists_physcontig() local
1100 phm = PAGE_HASH_MUTEX(index); in page_exists_physcontig()
1102 mutex_enter(phm); in page_exists_physcontig()
1104 mutex_exit(phm); in page_exists_physcontig()
1318 kmutex_t *phm; in page_exists_forreal() local
1327 phm = PAGE_HASH_MUTEX(index); in page_exists_forreal()
1329 mutex_enter(phm); in page_exists_forreal()
1335 mutex_exit(phm); in page_exists_forreal()
2392 kmutex_t *phm = NULL; in page_create_va() local
2397 ASSERT(phm == NULL); in page_create_va()
2458 phm = PAGE_HASH_MUTEX(index); in page_create_va()
2459 mutex_enter(phm); in page_create_va()
2465 if (!page_hashin(pp, vp, off, phm)) { in page_create_va()
2475 ASSERT(MUTEX_HELD(phm)); in page_create_va()
2478 (void *)pp, (void *)vp, off, (void *)phm); in page_create_va()
2481 ASSERT(MUTEX_HELD(phm)); in page_create_va()
2482 mutex_exit(phm); in page_create_va()
2483 phm = NULL; in page_create_va()
2506 mutex_exit(phm); in page_create_va()
2507 phm = NULL; in page_create_va()
2521 if (!page_lock(pp, SE_EXCL, phm, P_NO_RECLAIM)) { in page_create_va()
2526 mutex_exit(phm); in page_create_va()
2528 phm = NULL; in page_create_va()
2531 mutex_exit(phm); in page_create_va()
2532 phm = NULL; in page_create_va()
3242 kmutex_t *phm; in page_rename() local
3278 phm = PAGE_HASH_MUTEX(index); in page_rename()
3279 mutex_enter(phm); in page_rename()
3302 if (!page_lock(pp, SE_EXCL, phm, P_RECLAIM)) { in page_rename()
3328 mutex_exit(phm); in page_rename()
3336 mutex_enter(phm); in page_rename()
3340 mutex_exit(phm); in page_rename()
3343 mutex_enter(phm); in page_rename()
3345 page_hashout(pp, phm); in page_rename()
3350 if (!page_hashin(opp, vp, off, phm)) { in page_rename()
3361 ASSERT(MUTEX_HELD(phm)); in page_rename()
3362 mutex_exit(phm); in page_rename()
3473 kmutex_t *phm = NULL; in page_hashin() local
3487 phm = hold; in page_hashin()
3490 phm = PAGE_HASH_MUTEX(PAGE_HASH_FUNC(vp, offset)); in page_hashin()
3491 mutex_enter(phm); in page_hashin()
3499 mutex_exit(phm); in page_hashin()
3557 page_hashout(page_t *pp, kmutex_t *phm) in page_hashout() argument
3565 ASSERT(phm != NULL ? MUTEX_HELD(phm) : 1); in page_hashout()
3580 if (phm == NULL) { in page_hashout()
3585 ASSERT(phm ? phm == PAGE_HASH_MUTEX(index) : 1); in page_hashout()
3597 if (phm == NULL) in page_hashout()
4646 kmutex_t *phm, *vphm; in page_relocate_hash() local
4659 phm = PAGE_HASH_MUTEX(PAGE_HASH_FUNC(vp, off)); in page_relocate_hash()
4660 mutex_enter(phm); in page_relocate_hash()
4670 mutex_exit(phm); in page_relocate_hash()