Lines Matching refs:thread_qps
318 struct thread_qp thread_qps[MAX_QPS]; member
449 if (data->thread_qps[i].qp == NULL && available_qp == -1) in ossl_rcu_read_lock()
452 if (data->thread_qps[i].lock == lock) { in ossl_rcu_read_lock()
453 data->thread_qps[i].depth++; in ossl_rcu_read_lock()
463 data->thread_qps[available_qp].qp = get_hold_current_qp(lock); in ossl_rcu_read_lock()
464 data->thread_qps[available_qp].depth = 1; in ossl_rcu_read_lock()
465 data->thread_qps[available_qp].lock = lock; in ossl_rcu_read_lock()
478 if (data->thread_qps[i].lock == lock) { in ossl_rcu_read_unlock()
484 data->thread_qps[i].depth--; in ossl_rcu_read_unlock()
485 if (data->thread_qps[i].depth == 0) { in ossl_rcu_read_unlock()
486 ret = ATOMIC_SUB_FETCH(&data->thread_qps[i].qp->users, in ossl_rcu_read_unlock()
489 data->thread_qps[i].qp = NULL; in ossl_rcu_read_unlock()
490 data->thread_qps[i].lock = NULL; in ossl_rcu_read_unlock()