Lines Matching refs:msp

372 hat_kpm_mseghash_update(pgcnt_t inx, struct memseg *msp)  in hat_kpm_mseghash_update()  argument
377 memseg_phash[inx] = (msp) ? va_to_pa(msp) : MSEG_NULLPTR_PA; in hat_kpm_mseghash_update()
384 hat_kpm_addmem_mseg_update(struct memseg *msp, pgcnt_t nkpmpgs, in hat_kpm_addmem_mseg_update() argument
390 msp->kpm_pages = (kpm_page_t *)((caddr_t)msp->pages + kpm_pages_off); in hat_kpm_addmem_mseg_update()
391 msp->kpm_nkpmpgs = nkpmpgs; in hat_kpm_addmem_mseg_update()
392 msp->kpm_pbase = kpmptop(ptokpmp(msp->pages_base)); in hat_kpm_addmem_mseg_update()
393 msp->pagespa = va_to_pa(msp->pages); in hat_kpm_addmem_mseg_update()
394 msp->epagespa = va_to_pa(msp->epages); in hat_kpm_addmem_mseg_update()
395 msp->kpm_pagespa = va_to_pa(msp->kpm_pages); in hat_kpm_addmem_mseg_update()
403 hat_kpm_addmem_mseg_insert(struct memseg *msp) in hat_kpm_addmem_mseg_insert() argument
409 msp->nextpa = (memsegs) ? va_to_pa(memsegs) : MSEG_NULLPTR_PA; in hat_kpm_addmem_mseg_insert()
419 hat_kpm_addmem_memsegs_update(struct memseg *msp) in hat_kpm_addmem_memsegs_update() argument
426 memsegspa = va_to_pa(msp); in hat_kpm_addmem_memsegs_update()
438 hat_kpm_mseg_reuse(struct memseg *msp) in hat_kpm_mseg_reuse() argument
443 end = (caddr_t)(msp->kpm_pages + msp->kpm_nkpmpgs); in hat_kpm_mseg_reuse()
445 end = (caddr_t)(msp->kpm_spages + msp->kpm_nkpmpgs); in hat_kpm_mseg_reuse()
456 hat_kpm_delmem_mseg_update(struct memseg *msp, struct memseg **mspp) in hat_kpm_delmem_mseg_update() argument
466 memsegspa = (msp->next) ? in hat_kpm_delmem_mseg_update()
467 va_to_pa(msp->next) : MSEG_NULLPTR_PA; in hat_kpm_delmem_mseg_update()
471 lmsp->nextpa = (msp->next) ? in hat_kpm_delmem_mseg_update()
472 va_to_pa(msp->next) : MSEG_NULLPTR_PA; in hat_kpm_delmem_mseg_update()
490 hat_kpm_split_mseg_update(struct memseg *msp, struct memseg **mspp, in hat_kpm_split_mseg_update() argument
500 ASSERT(msp && mid && msp->kpm_pages); in hat_kpm_split_mseg_update()
502 kbase = ptokpmp(msp->kpm_pbase); in hat_kpm_split_mseg_update()
511 lo->kpm_pages = msp->kpm_pages; in hat_kpm_split_mseg_update()
527 mid->kpm_pages = msp->kpm_pages + (kstart - kbase); in hat_kpm_split_mseg_update()
529 mid->kpm_spages = msp->kpm_spages + (kstart - kbase); in hat_kpm_split_mseg_update()
545 hi->kpm_pages = msp->kpm_pages + (kstart - kbase); in hat_kpm_split_mseg_update()
547 hi->kpm_spages = msp->kpm_spages + (kstart - kbase); in hat_kpm_split_mseg_update()
577 struct memseg *msp; in hat_kpm_walk() local
579 for (msp = memsegs; msp; msp = msp->next) { in hat_kpm_walk()
580 pbase = msp->pages_base; in hat_kpm_walk()
581 pend = msp->pages_end; in hat_kpm_walk()