Lines Matching refs:as
42 #include <vm/as.h>
63 #define hrm_hash(as, addr) \
65 (((uintptr_t)(addr) >> HRM_BASESHIFT) ^ ((uintptr_t)(as) >> 2)))
67 #define hrm_match(hrm, as, addr) \
68 (((hrm)->hrm_as == (as) && \
77 hat_resvstat(size_t chunk, struct as *as, caddr_t addr)
89 hat_startstat(struct as *as)
113 chunk = hat_get_mapped_size(as->a_hat);
123 hat_enter(as->a_hat);
124 vbits = as->a_vbits;
125 nbits = sizeof (as->a_vbits) * NBBY;
130 hat_exit(as->a_hat);
133 as->a_vbits |= id;
134 hat_exit(as->a_hat);
135 (void) hat_stats_enable(as->a_hat);
149 hat_setstat(struct as *as, caddr_t addr, size_t len, uint_t rmbits)
164 * Search the hash list for the as and addr we are looking for
168 h = hrm_hash(as, addr);
170 if (hrm_match(hrm, as, addr)) {
181 if (vbits != as->a_vbits) {
182 newbits = (vbits ^ as->a_vbits) & as->a_vbits;
193 hrm->hrm_as = as;
210 hat_freestat(struct as *as, int id)
217 hat_stats_disable(as->a_hat); /* tell the hat layer to stop */
218 hat_enter(as->a_hat);
220 as->a_vbits = 0;
222 as->a_vbits &= ~id;
224 if ((hrm = as->a_hrm) == NULL) {
225 hat_exit(as->a_hat);
228 hat_exit(as->a_hat);
241 as->a_hrm = hrm->hrm_anext;
371 struct as *as = hrm->hrm_as;
374 hrm->hrm_anext = as->a_hrm;
375 as->a_hrm = hrm;
421 * in address space, as, uniquely identified by id.
428 hat_getstat(struct as *as, caddr_t addr, size_t len, uint_t id,
441 hat_sync(as->a_hat, addr, len, clearflag);
460 h = hrm_hash(as, a);
468 if (hrm->hrm_as == as &&