Lines Matching refs:sptree

29     splay_tree *sptree; /* data in nodes of tree are (http_auth_cache_entry *)*/  member
97 splay_tree *sptree = ac->sptree; in http_auth_cache_free() local
98 while (sptree) { in http_auth_cache_free()
99 http_auth_cache_entry_free(sptree->data); in http_auth_cache_free()
100 sptree = splaytree_delete(sptree, sptree->key); in http_auth_cache_free()
109 ac->sptree = NULL; in http_auth_cache_init()
131 http_auth_cache_query (splay_tree ** const sptree, const int ndx) in http_auth_cache_query() argument
133 *sptree = splaytree_splay(*sptree, ndx); in http_auth_cache_query()
134 return (*sptree && (*sptree)->key == ndx) ? (*sptree)->data : NULL; in http_auth_cache_query()
138 http_auth_cache_insert (splay_tree ** const sptree, const int ndx, void * const data, void(data_fre… in http_auth_cache_insert() argument
143 if (NULL == *sptree || (*sptree)->key != ndx) in http_auth_cache_insert()
144 *sptree = splaytree_insert(*sptree, ndx, data); in http_auth_cache_insert()
146 data_free_fn((*sptree)->data); in http_auth_cache_insert()
147 (*sptree)->data = data; in http_auth_cache_insert()
171 splay_tree *sptree = *sptree_ptr; in mod_auth_periodic_cleanup() local
175 if (!sptree) break; in mod_auth_periodic_cleanup()
177 mod_auth_tag_old_entries(sptree, keys, &max_ndx, max_age, cur_ts); in mod_auth_periodic_cleanup()
180 sptree = splaytree_splay(sptree, ndx); in mod_auth_periodic_cleanup()
181 if (sptree && sptree->key == ndx) { in mod_auth_periodic_cleanup()
182 http_auth_cache_entry_free(sptree->data); in mod_auth_periodic_cleanup()
183 sptree = splaytree_delete(sptree, ndx); in mod_auth_periodic_cleanup()
187 *sptree_ptr = sptree; in mod_auth_periodic_cleanup()
207 mod_auth_periodic_cleanup(&ac->sptree, ac->max_age, cur_ts); in TRIGGER_FUNC()
813 splay_tree ** sptree = p->conf.auth_cache in mod_auth_check_basic() local
814 ? &p->conf.auth_cache->sptree in mod_auth_check_basic()
819 if (sptree) { in mod_auth_check_basic()
821 ae = http_auth_cache_query(sptree, ndx); in mod_auth_check_basic()
839 if (sptree && NULL == ae) { /*(cache (new) successful result)*/ in mod_auth_check_basic()
842 http_auth_cache_insert(sptree, ndx, ae, http_auth_cache_entry_free); in mod_auth_check_basic()
1124 splay_tree **sptree = p->conf.auth_cache in mod_auth_digest_get() local
1125 ? &p->conf.auth_cache->sptree in mod_auth_digest_get()
1142 if (sptree) { in mod_auth_digest_get()
1144 ae = http_auth_cache_query(sptree, ndx); in mod_auth_digest_get()
1183 if (sptree && NULL == ae) { /*(cache digest from backend)*/ in mod_auth_digest_get()
1187 http_auth_cache_insert(sptree, ndx, ae, http_auth_cache_entry_free); in mod_auth_digest_get()