Lines Matching refs:ppa

180 		page_t **ppa);
382 page_t **ppa;
414 if ((ppa = kmem_zalloc(((sizeof (page_t *)) * npages),
502 if ((err = anon_map_createpages(amp, anon_index, ptob(npages), ppa,
510 if (ppa[i]->p_lckcnt == 0)
521 page_unlock(ppa[i]);
529 * addr is initial address corresponding to the first page on ppa list
533 if (page_pp_lock(ppa[i], 0, 1) == 0) {
539 page_pp_unlock(ppa[j], 0, 1);
541 page_unlock(ppa[i]);
571 &ppa[pidx], sptd->spt_prot, hat_flags);
588 page_unlock(ppa[i]);
591 kmem_free(ppa, ((sizeof (page_t *)) * npages));
604 kmem_free(ppa, (sizeof (*ppa) * npages));
818 * entire segment in the ppa field of the underlying DISM segment structure.
819 * Later, during a call to segspt_reclaim() we will use this ppa array
820 * to page_unlock() all of the pages and then we will free this ppa list.
831 struct page **pplist, **pl, **ppa, *pp;
892 * for DISM ppa needs to be rebuild since
908 ppa = sptd->spt_ppa;
910 if (ppa[an_idx] == NULL) {
912 sptd->spt_amp->size, ppa,
917 if ((szc = ppa[an_idx]->p_szc) != 0) {
942 ppa = sptd->spt_ppa;
944 if (ppa[an_idx] == NULL) {
947 sptd->spt_amp->size, ppa,
952 if ((szc = ppa[an_idx]->p_szc) != 0) {
982 * Do we need to build the ppa array?
1002 * lookups of ppa array;
1063 * We already have a valid ppa[].
1081 * No one else has referenced the ppa[].
1096 ppa = sptd->spt_ppa;
1098 if (ppa[an_idx] == NULL) {
1106 if ((szc = ppa[an_idx]->p_szc) != 0) {
1114 * We can now drop the sptd->spt_lock since the ppa[]
1132 * to set up a new ppa[].
1174 * entire segment in the ppa field of the underlying ISM segment structure.
1175 * Later, during a call to segspt_reclaim() we will use this ppa array
1176 * to page_unlock() all of the pages and then we will free this ppa list.
1299 * Do we need to build the ppa array?
1342 * We already have a valid ppa[].
1360 * No one else has referenced the ppa[].
1376 * We can now drop the sptd->spt_lock since the ppa[]
1394 * to set up a new ppa[].
1459 * ppa array IF this is the last pcachecnt.
1485 * ppa, that is initialized at the time we add an entry to
1831 page_t **ppa;
1862 * and get all of the necessary page_t's into an array called ppa[].
1903 ppa = kmem_zalloc(npages * sizeof (page_t *), KM_SLEEP);
1905 err = spt_anon_getpages(sptseg, segspt_addr, size, ppa);
1924 a, pgsz, &ppa[pidx], sptd->spt_prot,
1932 page_migrate(seg, shm_addr, ppa, npages);
1936 a, pgsz, &ppa[pidx],
1946 page_unlock(ppa[i]);
1960 page_unlock(ppa[i]);
1966 kmem_free(ppa, npages * sizeof (page_t *));
2014 page_t *pp, **ppa;
2053 * and get all of the necessary page_t's into an array called ppa[].
2132 ppa = kmem_zalloc(sizeof (page_t *) * npages, KM_SLEEP);
2152 ppa[i] = pp;
2174 sz, &ppa[pidx], sptd->spt_prot,
2182 page_migrate(seg, shm_addr, ppa, npages);
2187 a, sz, &ppa[pidx],
2195 page_unlock(ppa[i]);
2199 kmem_free(ppa, sizeof (page_t *) * npages);
2326 page_t *ppa[])
2378 lp_addr, sptd->spt_prot, &vpprot, &ppa[ppa_idx],
2450 page_unlock(ppa[j]);
2459 spt_unlockedbytes(pgcnt_t npages, page_t **ppa)
2465 if (ppa[i]->p_lckcnt == 0)
2480 page_t **ppa, ulong_t *lockmap, size_t pos,
2536 if (!page_pp_lock(ppa[i], 0, kernel ||
2543 if (ppa[i]->p_lckcnt == 1) {
2648 page_t **ppa;
2699 if ((ppa = kmem_zalloc(((sizeof (page_t *)) * a_npages),
2712 sts = spt_anon_getpages(sptseg, spt_addr, a_len, ppa);
2715 kmem_free(ppa, ((sizeof (page_t *)) * a_npages));
2721 unlocked = spt_unlockedbytes(npages, &ppa[ppa_idx]);
2730 &ppa[ppa_idx], lockmap, pos, &locked);
2745 page_unlock(ppa[i]);
2751 kmem_free(ppa, ((sizeof (page_t *)) * a_npages));
2754 page_t **ppa;
2769 if ((ppa = sptd->spt_ppa) != NULL)
2776 if (ppa != NULL)
2777 seg_ppurge_wiredpp(ppa);
2859 page_t **ppa;
2871 if ((ppa = sptd->spt_ppa) == NULL) {
2887 seg_ppurge_wiredpp(ppa);