Lines Matching refs:curr
22 struct fd_lookup_st *curr; in ASYNC_WAIT_CTX_free() local
28 curr = ctx->fds; in ASYNC_WAIT_CTX_free()
29 while (curr != NULL) { in ASYNC_WAIT_CTX_free()
30 if (!curr->del) { in ASYNC_WAIT_CTX_free()
32 if (curr->cleanup != NULL) in ASYNC_WAIT_CTX_free()
33 curr->cleanup(ctx, curr->key, curr->fd, curr->custom_data); in ASYNC_WAIT_CTX_free()
36 next = curr->next; in ASYNC_WAIT_CTX_free()
37 OPENSSL_free(curr); in ASYNC_WAIT_CTX_free()
38 curr = next; in ASYNC_WAIT_CTX_free()
67 struct fd_lookup_st *curr; in ASYNC_WAIT_CTX_get_fd() local
69 curr = ctx->fds; in ASYNC_WAIT_CTX_get_fd()
70 while (curr != NULL) { in ASYNC_WAIT_CTX_get_fd()
71 if (curr->del) { in ASYNC_WAIT_CTX_get_fd()
73 curr = curr->next; in ASYNC_WAIT_CTX_get_fd()
76 if (curr->key == key) { in ASYNC_WAIT_CTX_get_fd()
77 *fd = curr->fd; in ASYNC_WAIT_CTX_get_fd()
78 *custom_data = curr->custom_data; in ASYNC_WAIT_CTX_get_fd()
81 curr = curr->next; in ASYNC_WAIT_CTX_get_fd()
89 struct fd_lookup_st *curr; in ASYNC_WAIT_CTX_get_all_fds() local
91 curr = ctx->fds; in ASYNC_WAIT_CTX_get_all_fds()
93 while (curr != NULL) { in ASYNC_WAIT_CTX_get_all_fds()
94 if (curr->del) { in ASYNC_WAIT_CTX_get_all_fds()
96 curr = curr->next; in ASYNC_WAIT_CTX_get_all_fds()
100 *fd = curr->fd; in ASYNC_WAIT_CTX_get_all_fds()
104 curr = curr->next; in ASYNC_WAIT_CTX_get_all_fds()
113 struct fd_lookup_st *curr; in ASYNC_WAIT_CTX_get_changed_fds() local
120 curr = ctx->fds; in ASYNC_WAIT_CTX_get_changed_fds()
122 while (curr != NULL) { in ASYNC_WAIT_CTX_get_changed_fds()
124 if (curr->del && !curr->add && (delfd != NULL)) { in ASYNC_WAIT_CTX_get_changed_fds()
125 *delfd = curr->fd; in ASYNC_WAIT_CTX_get_changed_fds()
128 if (curr->add && !curr->del && (addfd != NULL)) { in ASYNC_WAIT_CTX_get_changed_fds()
129 *addfd = curr->fd; in ASYNC_WAIT_CTX_get_changed_fds()
132 curr = curr->next; in ASYNC_WAIT_CTX_get_changed_fds()
140 struct fd_lookup_st *curr, *prev; in ASYNC_WAIT_CTX_clear_fd() local
142 curr = ctx->fds; in ASYNC_WAIT_CTX_clear_fd()
144 while (curr != NULL) { in ASYNC_WAIT_CTX_clear_fd()
145 if (curr->del == 1) { in ASYNC_WAIT_CTX_clear_fd()
147 prev = curr; in ASYNC_WAIT_CTX_clear_fd()
148 curr = curr->next; in ASYNC_WAIT_CTX_clear_fd()
151 if (curr->key == key) { in ASYNC_WAIT_CTX_clear_fd()
153 if (curr->add == 1) { in ASYNC_WAIT_CTX_clear_fd()
154 if (ctx->fds == curr) { in ASYNC_WAIT_CTX_clear_fd()
155 ctx->fds = curr->next; in ASYNC_WAIT_CTX_clear_fd()
157 prev->next = curr->next; in ASYNC_WAIT_CTX_clear_fd()
163 OPENSSL_free(curr); in ASYNC_WAIT_CTX_clear_fd()
173 curr->del = 1; in ASYNC_WAIT_CTX_clear_fd()
177 prev = curr; in ASYNC_WAIT_CTX_clear_fd()
178 curr = curr->next; in ASYNC_WAIT_CTX_clear_fd()
220 struct fd_lookup_st *curr, *prev = NULL; in async_wait_ctx_reset_counts() local
225 curr = ctx->fds; in async_wait_ctx_reset_counts()
227 while (curr != NULL) { in async_wait_ctx_reset_counts()
228 if (curr->del) { in async_wait_ctx_reset_counts()
230 ctx->fds = curr->next; in async_wait_ctx_reset_counts()
232 prev->next = curr->next; in async_wait_ctx_reset_counts()
233 OPENSSL_free(curr); in async_wait_ctx_reset_counts()
235 curr = ctx->fds; in async_wait_ctx_reset_counts()
237 curr = prev->next; in async_wait_ctx_reset_counts()
240 if (curr->add) { in async_wait_ctx_reset_counts()
241 curr->add = 0; in async_wait_ctx_reset_counts()
243 prev = curr; in async_wait_ctx_reset_counts()
244 curr = curr->next; in async_wait_ctx_reset_counts()