Lines Matching refs:pref_zq

620 					struct zcrypt_queue *pref_zq,  in zcrypt_queue_compare()  argument
624 if (!pref_zq) in zcrypt_queue_compare()
627 pref_weight += atomic_read(&pref_zq->load); in zcrypt_queue_compare()
630 pref_zq->queue->total_request_count; in zcrypt_queue_compare()
642 struct zcrypt_queue *zq, *pref_zq; in zcrypt_rsa_modexpo() local
671 pref_zq = NULL; in zcrypt_rsa_modexpo()
706 if (!zcrypt_queue_compare(zq, pref_zq, in zcrypt_rsa_modexpo()
710 pref_zq = zq; in zcrypt_rsa_modexpo()
714 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rsa_modexpo()
717 if (!pref_zq) { in zcrypt_rsa_modexpo()
723 qid = pref_zq->queue->qid; in zcrypt_rsa_modexpo()
724 rc = pref_zq->ops->rsa_modexpo(pref_zq, mex, &ap_msg); in zcrypt_rsa_modexpo()
727 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rsa_modexpo()
746 struct zcrypt_queue *zq, *pref_zq; in zcrypt_rsa_crt() local
775 pref_zq = NULL; in zcrypt_rsa_crt()
810 if (!zcrypt_queue_compare(zq, pref_zq, in zcrypt_rsa_crt()
814 pref_zq = zq; in zcrypt_rsa_crt()
818 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rsa_crt()
821 if (!pref_zq) { in zcrypt_rsa_crt()
827 qid = pref_zq->queue->qid; in zcrypt_rsa_crt()
828 rc = pref_zq->ops->rsa_modexpo_crt(pref_zq, crt, &ap_msg); in zcrypt_rsa_crt()
831 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rsa_crt()
850 struct zcrypt_queue *zq, *pref_zq; in _zcrypt_send_cprb() local
891 pref_zq = NULL; in _zcrypt_send_cprb()
931 if (!zcrypt_queue_compare(zq, pref_zq, in _zcrypt_send_cprb()
935 pref_zq = zq; in _zcrypt_send_cprb()
939 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in _zcrypt_send_cprb()
942 if (!pref_zq) { in _zcrypt_send_cprb()
950 qid = pref_zq->queue->qid; in _zcrypt_send_cprb()
954 rc = pref_zq->ops->send_cprb(userspace, pref_zq, xcrb, &ap_msg); in _zcrypt_send_cprb()
961 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in _zcrypt_send_cprb()
1032 struct zcrypt_queue *zq, *pref_zq; in _zcrypt_send_ep11_cprb() local
1087 pref_zq = NULL; in _zcrypt_send_ep11_cprb()
1128 if (!zcrypt_queue_compare(zq, pref_zq, in _zcrypt_send_ep11_cprb()
1132 pref_zq = zq; in _zcrypt_send_ep11_cprb()
1136 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in _zcrypt_send_ep11_cprb()
1139 if (!pref_zq) { in _zcrypt_send_ep11_cprb()
1153 qid = pref_zq->queue->qid; in _zcrypt_send_ep11_cprb()
1154 rc = pref_zq->ops->send_ep11_cprb(userspace, pref_zq, xcrb, &ap_msg); in _zcrypt_send_ep11_cprb()
1161 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in _zcrypt_send_ep11_cprb()
1205 struct zcrypt_queue *zq, *pref_zq; in zcrypt_rng() local
1221 pref_zq = NULL; in zcrypt_rng()
1237 if (!zcrypt_queue_compare(zq, pref_zq, wgt, pref_wgt)) in zcrypt_rng()
1240 pref_zq = zq; in zcrypt_rng()
1244 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rng()
1247 if (!pref_zq) { in zcrypt_rng()
1253 qid = pref_zq->queue->qid; in zcrypt_rng()
1254 rc = pref_zq->ops->rng(pref_zq, buffer, &ap_msg); in zcrypt_rng()
1257 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rng()