Lines Matching full:amp
85 pcache_link_t p_plink; /* per segment/amp list */
86 void *p_htag0; /* segment/amp pointer */
219 * htag0 argument can be a seg or amp pointer.
231 * htag0 argument can be a seg or amp pointer.
418 * for non wired shadow lists. The caller already holds a per seg/amp list
459 * active count. If amp is not NULL use amp as a lookup tag otherwise use seg
463 seg_plookup(struct seg *seg, struct anon_map *amp, caddr_t addr, size_t len, in seg_plookup() argument
482 htag0 = (amp == NULL ? (void *)seg : (void *)amp); in seg_plookup()
520 * active count and set ref bit. If amp is not NULL use amp as a lookup tag
524 seg_pinactive(struct seg *seg, struct anon_map *amp, caddr_t addr, in seg_pinactive() argument
539 htag0 = (amp == NULL ? (void *)seg : (void *)amp); in seg_pinactive()
549 * Grab per seg/amp lock before hash lock if we are going to remove in seg_pinactive()
553 if (amp == NULL) { in seg_pinactive()
557 pheadp = &->a_phead; in seg_pinactive()
558 pmtx = &->a_pmtx; in seg_pinactive()
681 * seg/amp list lock since we already hold hash lock in seg_pinactive()
682 * and seg/amp list lock is above hash lock in lock in seg_pinactive()
688 if (amp == NULL) { in seg_pinactive()
692 pheadp = &->a_phead; in seg_pinactive()
693 pmtx = &->a_pmtx; in seg_pinactive()
739 seg_pinsert_check(struct seg *seg, struct anon_map *amp, caddr_t addr, in seg_pinsert_check() argument
781 * function to avoid linking all the entries from the same segment or amp on
782 * the same bucket. amp is used instead of seg if amp is not NULL. Non wired
783 * pcache entries are also linked on a per segment/amp list so that all
784 * entries can be found quickly during seg/amp purge without walking the
791 * Both hash bucket and per seg/amp locks need to be held before adding a non
792 * wired entry to hash and per seg/amp lists. per seg/amp lock should be taken
800 seg_pinsert(struct seg *seg, struct anon_map *amp, caddr_t addr, size_t len, in seg_pinsert() argument
815 ASSERT(amp == NULL || wlen == len); in seg_pinsert()
843 * If amp is not NULL set htag0 to amp otherwise set it to seg. in seg_pinsert()
845 if (amp == NULL) { in seg_pinsert()
849 pcp->p_htag0 = (void *)amp; in seg_pinsert()
864 if (amp == NULL) { in seg_pinsert()
869 pheadp = &->a_phead; in seg_pinsert()
870 pmtx = &->a_pmtx; in seg_pinsert()
871 htag0 = (void *)amp; in seg_pinsert()
1165 * why we don't need to hold as/seg/amp locks to execute the callback. in seg_ppurge_async()
1269 seg_ppurge(struct seg *seg, struct anon_map *amp, uint_t flags) in seg_ppurge() argument
1283 * If amp is not NULL use amp as a lookup tag otherwise use seg in seg_ppurge()
1286 htag0 = (amp == NULL ? (void *)seg : (void *)amp); in seg_ppurge()
1312 if (amp == NULL) { in seg_ppurge()
1317 pheadp = &->a_phead; in seg_ppurge()
1318 pmtx = &->a_pmtx; in seg_ppurge()
1832 svd->amp != NULL && in seg_can_change_zones()
1833 svd->amp->swresv > 0) in seg_can_change_zones()