Lines Matching refs:new

151     struct rcu_qp *new =  in allocate_new_qp_group()  local
152 OPENSSL_zalloc(sizeof(*new) * count); in allocate_new_qp_group()
155 return new; in allocate_new_qp_group()
160 struct rcu_lock_st *new; in ossl_rcu_lock_new() local
169 new = OPENSSL_zalloc(sizeof(*new)); in ossl_rcu_lock_new()
171 if (new == NULL) in ossl_rcu_lock_new()
174 new->ctx = ctx; in ossl_rcu_lock_new()
175 new->rw_lock = CRYPTO_THREAD_lock_new(); in ossl_rcu_lock_new()
176 new->write_lock = ossl_crypto_mutex_new(); in ossl_rcu_lock_new()
177 new->alloc_signal = ossl_crypto_condvar_new(); in ossl_rcu_lock_new()
178 new->prior_signal = ossl_crypto_condvar_new(); in ossl_rcu_lock_new()
179 new->alloc_lock = ossl_crypto_mutex_new(); in ossl_rcu_lock_new()
180 new->prior_lock = ossl_crypto_mutex_new(); in ossl_rcu_lock_new()
181 new->qp_group = allocate_new_qp_group(new, num_writers + 1); in ossl_rcu_lock_new()
182 if (new->qp_group == NULL in ossl_rcu_lock_new()
183 || new->alloc_signal == NULL in ossl_rcu_lock_new()
184 || new->prior_signal == NULL in ossl_rcu_lock_new()
185 || new->write_lock == NULL in ossl_rcu_lock_new()
186 || new->alloc_lock == NULL in ossl_rcu_lock_new()
187 || new->prior_lock == NULL in ossl_rcu_lock_new()
188 || new->rw_lock == NULL) { in ossl_rcu_lock_new()
189 CRYPTO_THREAD_lock_free(new->rw_lock); in ossl_rcu_lock_new()
190 OPENSSL_free(new->qp_group); in ossl_rcu_lock_new()
191 ossl_crypto_condvar_free(&new->alloc_signal); in ossl_rcu_lock_new()
192 ossl_crypto_condvar_free(&new->prior_signal); in ossl_rcu_lock_new()
193 ossl_crypto_mutex_free(&new->alloc_lock); in ossl_rcu_lock_new()
194 ossl_crypto_mutex_free(&new->prior_lock); in ossl_rcu_lock_new()
195 ossl_crypto_mutex_free(&new->write_lock); in ossl_rcu_lock_new()
196 OPENSSL_free(new); in ossl_rcu_lock_new()
197 new = NULL; in ossl_rcu_lock_new()
199 return new; in ossl_rcu_lock_new()
429 struct rcu_cb_item *new; in ossl_rcu_call() local
431 new = OPENSSL_zalloc(sizeof(struct rcu_cb_item)); in ossl_rcu_call()
432 if (new == NULL) in ossl_rcu_call()
434 new->data = data; in ossl_rcu_call()
435 new->fn = cb; in ossl_rcu_call()
437 new->next = InterlockedExchangePointer((void * volatile *)&lock->cb_items, in ossl_rcu_call()
438 new); in ossl_rcu_call()