Lines Matching refs:new
573 struct rcu_qp *new = in allocate_new_qp_group() local
574 OPENSSL_zalloc(sizeof(*new) * count); in allocate_new_qp_group()
577 return new; in allocate_new_qp_group()
636 struct rcu_cb_item *new = in ossl_rcu_call() local
637 OPENSSL_zalloc(sizeof(*new)); in ossl_rcu_call()
639 if (new == NULL) in ossl_rcu_call()
642 new->data = data; in ossl_rcu_call()
643 new->fn = cb; in ossl_rcu_call()
649 new->next = ATOMIC_EXCHANGE_N(prcu_cb_item, &lock->cb_items, new, in ossl_rcu_call()
667 struct rcu_lock_st *new; in ossl_rcu_lock_new() local
676 new = OPENSSL_zalloc(sizeof(*new)); in ossl_rcu_lock_new()
677 if (new == NULL) in ossl_rcu_lock_new()
680 new->ctx = ctx; in ossl_rcu_lock_new()
681 pthread_mutex_init(&new->write_lock, NULL); in ossl_rcu_lock_new()
682 pthread_mutex_init(&new->prior_lock, NULL); in ossl_rcu_lock_new()
683 pthread_mutex_init(&new->alloc_lock, NULL); in ossl_rcu_lock_new()
684 pthread_cond_init(&new->prior_signal, NULL); in ossl_rcu_lock_new()
685 pthread_cond_init(&new->alloc_signal, NULL); in ossl_rcu_lock_new()
686 new->qp_group = allocate_new_qp_group(new, num_writers + 1); in ossl_rcu_lock_new()
687 if (new->qp_group == NULL) { in ossl_rcu_lock_new()
688 OPENSSL_free(new); in ossl_rcu_lock_new()
689 new = NULL; in ossl_rcu_lock_new()
691 return new; in ossl_rcu_lock_new()