Lines Matching refs: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,
482 htag0 = (amp == NULL ? (void *)seg : (void *)amp);
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,
539 htag0 = (amp == NULL ? (void *)seg : (void *)amp);
549 * Grab per seg/amp lock before hash lock if we are going to remove
553 if (amp == NULL) {
557 pheadp = &amp->a_phead;
558 pmtx = &amp->a_pmtx;
681 * seg/amp list lock since we already hold hash lock
682 * and seg/amp list lock is above hash lock in lock
688 if (amp == NULL) {
692 pheadp = &amp->a_phead;
693 pmtx = &amp->a_pmtx;
739 seg_pinsert_check(struct seg *seg, struct anon_map *amp, caddr_t addr,
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,
815 ASSERT(amp == NULL || wlen == len);
843 * If amp is not NULL set htag0 to amp otherwise set it to seg.
845 if (amp == NULL) {
849 pcp->p_htag0 = (void *)amp;
864 if (amp == NULL) {
869 pheadp = &amp->a_phead;
870 pmtx = &amp->a_pmtx;
871 htag0 = (void *)amp;
1165 * why we don't need to hold as/seg/amp locks to execute the callback.
1269 seg_ppurge(struct seg *seg, struct anon_map *amp, uint_t flags)
1283 * If amp is not NULL use amp as a lookup tag otherwise use seg
1286 htag0 = (amp == NULL ? (void *)seg : (void *)amp);
1312 if (amp == NULL) {
1317 pheadp = &amp->a_phead;
1318 pmtx = &amp->a_pmtx;
1832 svd->amp != NULL &&
1833 svd->amp->swresv > 0)