Lines Matching refs:p
77 void ** const p = nodes[l]; in sa_doall() local
80 if (p != NULL && node != NULL) in sa_doall()
81 (*node)(p); in sa_doall()
86 if (p != NULL && p[n] != NULL) { in sa_doall()
90 nodes[l] = p[n]; in sa_doall()
93 (*leaf)(idx, p[n], arg); in sa_doall()
100 static void sa_free_node(void **p) in sa_free_node() argument
102 OPENSSL_free(p); in sa_free_node()
105 static void sa_free_leaf(ossl_uintmax_t n, void *p, void *arg) in sa_free_leaf() argument
107 OPENSSL_free(p); in sa_free_leaf()
159 void **p, *r = NULL; in ossl_sa_get() local
165 p = sa->nodes; in ossl_sa_get()
166 for (level = sa->levels - 1; p != NULL && level > 0; level--) in ossl_sa_get()
167 p = (void **)p[(n >> (OPENSSL_SA_BLOCK_BITS * level)) in ossl_sa_get()
169 r = p == NULL ? NULL : p[n & SA_BLOCK_MASK]; in ossl_sa_get()
183 void **p; in ossl_sa_set() local
193 p = alloc_node(); in ossl_sa_set()
194 if (p == NULL) in ossl_sa_set()
196 p[0] = sa->nodes; in ossl_sa_set()
197 sa->nodes = p; in ossl_sa_set()
202 p = sa->nodes; in ossl_sa_set()
205 if (p[i] == NULL && (p[i] = alloc_node()) == NULL) in ossl_sa_set()
207 p = p[i]; in ossl_sa_set()
209 p += posn & SA_BLOCK_MASK; in ossl_sa_set()
210 if (val == NULL && *p != NULL) in ossl_sa_set()
212 else if (val != NULL && *p == NULL) in ossl_sa_set()
214 *p = val; in ossl_sa_set()