Lines Matching defs:an_idx

833 	spgcnt_t	an_idx;
909 for (an_idx = pg_idx; an_idx < pg_idx + npages; ) {
910 if (ppa[an_idx] == NULL) {
917 if ((szc = ppa[an_idx]->p_szc) != 0) {
919 an_idx = P2ROUNDUP(an_idx + 1, npgs);
921 an_idx++;
943 for (an_idx = pg_idx; an_idx < pg_idx + npages; ) {
944 if (ppa[an_idx] == NULL) {
952 if ((szc = ppa[an_idx]->p_szc) != 0) {
954 an_idx = P2ROUNDUP(an_idx + 1, npgs);
956 an_idx++;
995 for (an_idx = 0; an_idx < tot_npages; ) {
996 ap = anon_get_ptr(amp->ahp, an_idx);
1005 (sptd->spt_ppa_lckcnt[an_idx] != 0))) {
1026 if (!IS_P2ALIGNED(an_idx, npgs)) {
1027 an_idx = P2ALIGN(an_idx, npgs);
1039 if (sptd->spt_ppa_lckcnt[an_idx] == 0)
1041 pplist[an_idx] = pp;
1043 an_idx++;
1097 for (an_idx = pg_idx; an_idx < pg_idx + npages; ) {
1098 if (ppa[an_idx] == NULL) {
1106 if ((szc = ppa[an_idx]->p_szc) != 0) {
1108 an_idx = P2ROUNDUP(an_idx + 1, npgs);
1110 an_idx++;
1147 for (an_idx = 0; an_idx < tot_npages; an_idx++) {
1148 if (pplist[an_idx] != NULL)
1149 page_unlock(pplist[an_idx]);
1833 ulong_t an_idx = 0;
1881 an_idx = seg_page(seg, shm_addr);
1882 segspt_addr = sptseg->s_base + ptob(an_idx);
2339 pgcnt_t an_idx;
2352 an_idx = seg_page(sptseg, sptaddr);
2362 an_idx += lp_npgs, lp_addr += pg_sz, ppa_idx += lp_npgs) {
2368 if (anon_locked && P2PHASE(an_idx, amp_pgs) == 0) {
2373 anon_array_enter(amp, an_idx, &cookie);
2377 ierr = anon_map_getpages(amp, an_idx, szc, sptseg,
2649 pgcnt_t an_idx, a_an_idx, ppa_idx;
2668 an_idx = seg_page(seg, addr);
2671 if (an_idx + npages > btopr(shmd->shm_amp->size)) {
2697 ppa_idx = an_idx - a_an_idx;
2729 sts = spt_lockpages(seg, an_idx, npages,
2768 sts = spt_unlockpages(seg, an_idx, npages, &unlocked);