Lines Matching refs:ap
85 ainit(Area *ap) in ainit() argument
96 ap->next = NULL; in ainit()
100 findptr(struct lalloc_common **lpp, char *ptr, Area *ap) in findptr() argument
115 while (ap->next != lp) in findptr()
116 if ((ap = ap->next) == NULL) { in findptr()
122 (size_t)ptr, (size_t)ap); in findptr()
129 return (ap); in findptr()
133 aresize2(void *ptr, size_t fac1, size_t fac2, Area *ap) in aresize2() argument
137 return (aresize(ptr, fac1 * fac2, ap)); in aresize2()
141 aresize(void *ptr, size_t numb, Area *ap) in aresize() argument
149 pp = findptr(&lp, ptr, ap); in aresize()
161 lp->next = ap->next; in aresize()
162 ap->next = lp; in aresize()
168 afree(void *ptr, Area *ap) in afree() argument
173 pp = findptr(&lp, ptr, ap); in afree()
182 afreeall(Area *ap) in afreeall() argument
187 while ((lp = ap->next) != NULL) { in afreeall()
189 ap->next = lp->next; in afreeall()