• Home
  • Raw
  • Download

Lines Matching refs:ao

2011     struct arena_object *ao = &arenas[pool->arenaindex];  in insert_to_freepool()  local
2012 pool->nextpool = ao->freepools; in insert_to_freepool()
2013 ao->freepools = pool; in insert_to_freepool()
2014 uint nf = ao->nfreepools; in insert_to_freepool()
2026 if (lastnf == ao) { /* it is the rightmost */ in insert_to_freepool()
2027 struct arena_object* p = ao->prevarena; in insert_to_freepool()
2030 ao->nfreepools = ++nf; in insert_to_freepool()
2049 if (nf == ao->ntotalpools && ao->nextarena != NULL) { in insert_to_freepool()
2052 assert(ao->prevarena == NULL || in insert_to_freepool()
2053 ao->prevarena->address != 0); in insert_to_freepool()
2054 assert(ao ->nextarena == NULL || in insert_to_freepool()
2055 ao->nextarena->address != 0); in insert_to_freepool()
2060 if (ao->prevarena == NULL) { in insert_to_freepool()
2061 usable_arenas = ao->nextarena; in insert_to_freepool()
2066 assert(ao->prevarena->nextarena == ao); in insert_to_freepool()
2067 ao->prevarena->nextarena = in insert_to_freepool()
2068 ao->nextarena; in insert_to_freepool()
2071 if (ao->nextarena != NULL) { in insert_to_freepool()
2072 assert(ao->nextarena->prevarena == ao); in insert_to_freepool()
2073 ao->nextarena->prevarena = in insert_to_freepool()
2074 ao->prevarena; in insert_to_freepool()
2079 ao->nextarena = unused_arena_objects; in insert_to_freepool()
2080 unused_arena_objects = ao; in insert_to_freepool()
2084 arena_map_mark_used(ao->address, 0); in insert_to_freepool()
2089 (void *)ao->address, ARENA_SIZE); in insert_to_freepool()
2090 ao->address = 0; /* mark unassociated */ in insert_to_freepool()
2102 ao->nextarena = usable_arenas; in insert_to_freepool()
2103 ao->prevarena = NULL; in insert_to_freepool()
2105 usable_arenas->prevarena = ao; in insert_to_freepool()
2106 usable_arenas = ao; in insert_to_freepool()
2109 nfp2lasta[1] = ao; in insert_to_freepool()
2124 nfp2lasta[nf] = ao; in insert_to_freepool()
2127 if (ao == lastnf) { in insert_to_freepool()
2134 assert(ao->nextarena != NULL); in insert_to_freepool()
2141 if (ao->prevarena != NULL) { in insert_to_freepool()
2143 assert(ao->prevarena->nextarena == ao); in insert_to_freepool()
2144 ao->prevarena->nextarena = ao->nextarena; in insert_to_freepool()
2148 assert(usable_arenas == ao); in insert_to_freepool()
2149 usable_arenas = ao->nextarena; in insert_to_freepool()
2151 ao->nextarena->prevarena = ao->prevarena; in insert_to_freepool()
2153 ao->prevarena = lastnf; in insert_to_freepool()
2154 ao->nextarena = lastnf->nextarena; in insert_to_freepool()
2155 if (ao->nextarena != NULL) { in insert_to_freepool()
2156 ao->nextarena->prevarena = ao; in insert_to_freepool()
2158 lastnf->nextarena = ao; in insert_to_freepool()
2160 assert(ao->nextarena == NULL || nf <= ao->nextarena->nfreepools); in insert_to_freepool()
2161 assert(ao->prevarena == NULL || nf > ao->prevarena->nfreepools); in insert_to_freepool()
2162 assert(ao->nextarena == NULL || ao->nextarena->prevarena == ao); in insert_to_freepool()
2163 assert((usable_arenas == ao && ao->prevarena == NULL) in insert_to_freepool()
2164 || ao->prevarena->nextarena == ao); in insert_to_freepool()