Lines Matching refs:sfhme

3048 	struct sf_hment *sfhme;  in sfmmu_tteload_addentry()  local
3115 HBLKTOHME_IDX(sfhme, hmeblkp, vaddr, hmenum); in sfmmu_tteload_addentry()
3125 sfmmu_copytte(&sfhme->hme_tte, &tteold); in sfmmu_tteload_addentry()
3143 (pp != NULL || sfhme->hme_page != NULL)) { in sfmmu_tteload_addentry()
3189 ASSERT(remap || (sfhme->hme_page == NULL)); in sfmmu_tteload_addentry()
3192 ASSERT((!remap) ? sfhme->hme_next == NULL : 1); in sfmmu_tteload_addentry()
3221 while (sfmmu_modifytte_try(&tteold, ttep, &sfhme->hme_tte) < 0) { in sfmmu_tteload_addentry()
3224 sfmmu_copytte(&sfhme->hme_tte, &tteold); in sfmmu_tteload_addentry()
3230 ASSERT(TTE_IS_VALID(&sfhme->hme_tte)); in sfmmu_tteload_addentry()
3344 sfmmu_load_tsb(sfmmup, vaddr, &sfhme->hme_tte, in sfmmu_tteload_addentry()
3352 HME_ADD(sfhme, pp); in sfmmu_tteload_addentry()
4091 struct sf_hment *sfhme; in sfmmu_hblk_unlock() local
4101 HBLKTOHME(sfhme, hmeblkp, addr); in sfmmu_hblk_unlock()
4104 sfmmu_copytte(&sfhme->hme_tte, &tteold); in sfmmu_hblk_unlock()
4110 &sfhme->hme_tte); in sfmmu_hblk_unlock()
4129 sfhme++; in sfmmu_hblk_unlock()
7020 struct sf_hment *sfhme, *tmphme; in hat_pageunload() local
7054 for (sfhme = pp->p_mapping; sfhme; sfhme = tmphme) { in hat_pageunload()
7055 tmphme = sfhme->hme_next; in hat_pageunload()
7057 if (IS_PAHME(sfhme)) { in hat_pageunload()
7058 ASSERT(sfhme->hme_data != NULL); in hat_pageunload()
7063 hmeblkp = sfmmu_hmetohblk(sfhme); in hat_pageunload()
7073 tset = sfmmu_pageunload(pp, sfhme, cons); in hat_pageunload()
7125 for (sfhme = pp->p_mapping; sfhme; sfhme = tmphme) { in hat_pageunload()
7126 tmphme = sfhme->hme_next; in hat_pageunload()
7127 if (IS_PAHME(sfhme)) { in hat_pageunload()
7128 struct pa_hment *pahmep = sfhme->hme_data; in hat_pageunload()
7130 HME_SUB(sfhme, pp); in hat_pageunload()
7144 sfmmu_pageunload(page_t *pp, struct sf_hment *sfhme, int cons) in sfmmu_pageunload() argument
7163 hmeblkp = sfmmu_hmetohblk(sfhme); in sfmmu_pageunload()
7166 sfmmu_copytte(&sfhme->hme_tte, &tte); in sfmmu_pageunload()
7188 ret = sfmmu_modifytte_try(&tte, &ttemod, &sfhme->hme_tte); in sfmmu_pageunload()
7263 HME_SUB(sfhme, pp); in sfmmu_pageunload()
7303 struct sf_hment *sfhme; in hat_pagereload() local
7316 for (sfhme = tpp->p_mapping; sfhme != NULL; sfhme = sfhme->hme_next) { in hat_pagereload()
7317 if (IS_PAHME(sfhme)) in hat_pagereload()
7319 sfmmu_copytte(&sfhme->hme_tte, &tte); in hat_pagereload()
7333 if (sfmmu_modifytte_try(&tte, &ttemod, &sfhme->hme_tte) < 0) in hat_pagereload()
7339 sfhme->hme_page = dpp; in hat_pagereload()
7368 struct sf_hment *sfhme, *tmphme = NULL; in hat_pagesync() local
7406 for (sfhme = pp->p_mapping; sfhme; sfhme = tmphme) { in hat_pagesync()
7412 tmphme = sfhme->hme_next; in hat_pagesync()
7413 if (IS_PAHME(sfhme)) in hat_pagesync()
7419 hmeblkp = sfmmu_hmetohblk(sfhme); in hat_pagesync()
7421 if (hme_size(sfhme) < cons) in hat_pagesync()
7449 tset = sfmmu_pagesync(pp, sfhme, in hat_pagesync()
7484 sfmmu_pagesync(struct page *pp, struct sf_hment *sfhme, in sfmmu_pagesync() argument
7505 sfmmu_copytte(&sfhme->hme_tte, &tte); in sfmmu_pagesync()
7507 hmeblkp = sfmmu_hmetohblk(sfhme); in sfmmu_pagesync()
7514 &sfhme->hme_tte); in sfmmu_pagesync()
7558 sfmmu_pageclrwrt(struct page *pp, struct sf_hment *sfhme) in sfmmu_pageclrwrt() argument
7576 sfmmu_copytte(&sfhme->hme_tte, &tte); in sfmmu_pageclrwrt()
7578 hmeblkp = sfmmu_hmetohblk(sfhme); in sfmmu_pageclrwrt()
7585 ret = sfmmu_modifytte_try(&tte, &ttemod, &sfhme->hme_tte); in sfmmu_pageclrwrt()
7625 struct sf_hment *sfhme; in hat_page_clrwrt() local
7639 for (sfhme = pp->p_mapping; sfhme; sfhme = tmphme) { in hat_page_clrwrt()
7640 tmphme = sfhme->hme_next; in hat_page_clrwrt()
7647 if (hme_size(sfhme) < cons) in hat_page_clrwrt()
7650 tset = sfmmu_pageclrwrt(pp, sfhme); in hat_page_clrwrt()
8089 struct sf_hment *sfhme, *tmphme = NULL; in hat_page_checkshare() local
8111 for (sfhme = pp->p_mapping; sfhme; sfhme = tmphme) { in hat_page_checkshare()
8112 tmphme = sfhme->hme_next; in hat_page_checkshare()
8113 if (IS_PAHME(sfhme)) { in hat_page_checkshare()
8117 hmeblkp = sfmmu_hmetohblk(sfhme); in hat_page_checkshare()
8118 if (hme_size(sfhme) != sz) { in hat_page_checkshare()
8188 struct sf_hment *sfhme; in hat_page_demote() local
8224 for (sfhme = rootpp->p_mapping; sfhme; sfhme = tmphme) { in hat_page_demote()
8225 tmphme = sfhme->hme_next; in hat_page_demote()
8226 ASSERT(!IS_PAHME(sfhme)); in hat_page_demote()
8227 if (hme_size(sfhme) != sz) { in hat_page_demote()
8230 tset = sfmmu_pageunload(rootpp, sfhme, sz); in hat_page_demote()
9287 struct sf_hment *sfhme; in tst_tnc() local
9322 for (sfhme = pp->p_mapping; sfhme; sfhme = sfhme->hme_next) { in tst_tnc()
9323 if (IS_PAHME(sfhme)) in tst_tnc()
9325 hmeblkp = sfmmu_hmetohblk(sfhme); in tst_tnc()
9327 sfmmu_copytte(&sfhme->hme_tte, &tte); in tst_tnc()
9456 struct sf_hment *sfhme; in sfmmu_page_cache() local
9467 for (sfhme = pp->p_mapping; sfhme; sfhme = sfhme->hme_next) { in sfmmu_page_cache()
9469 if (IS_PAHME(sfhme)) in sfmmu_page_cache()
9471 hmeblkp = sfmmu_hmetohblk(sfhme); in sfmmu_page_cache()
9473 sfmmu_copytte(&sfhme->hme_tte, &tte); in sfmmu_page_cache()
9492 ret = sfmmu_modifytte_try(&tte, &ttemod, &sfhme->hme_tte); in sfmmu_page_cache()
11524 sfmmu_hmetohblk(struct sf_hment *sfhme) in sfmmu_hmetohblk() argument
11533 ASSERT(sfhme->hme_tte.ll != 0); in sfmmu_hmetohblk()
11535 sfhme0 = sfhme - sfhme->hme_tte.tte_hmenum; in sfmmu_hmetohblk()