Lines Matching refs:pref_zq
617 struct zcrypt_queue *pref_zq,
621 if (!pref_zq)
624 pref_weight += atomic_read(&pref_zq->load);
627 pref_zq->queue->total_request_count;
639 struct zcrypt_queue *zq, *pref_zq;
673 pref_zq = NULL;
708 if (!zcrypt_queue_compare(zq, pref_zq,
712 pref_zq = zq;
716 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt);
719 if (!pref_zq) {
724 qid = pref_zq->queue->qid;
725 rc = pref_zq->ops->rsa_modexpo(pref_zq, mex, &ap_msg);
728 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt);
747 struct zcrypt_queue *zq, *pref_zq;
781 pref_zq = NULL;
816 if (!zcrypt_queue_compare(zq, pref_zq,
820 pref_zq = zq;
824 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt);
827 if (!pref_zq) {
832 qid = pref_zq->queue->qid;
833 rc = pref_zq->ops->rsa_modexpo_crt(pref_zq, crt, &ap_msg);
836 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt);
855 struct zcrypt_queue *zq, *pref_zq;
894 pref_zq = NULL;
932 if (!zcrypt_queue_compare(zq, pref_zq,
936 pref_zq = zq;
940 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt);
943 if (!pref_zq) {
949 qid = pref_zq->queue->qid;
961 rc = pref_zq->ops->send_cprb(userspace, pref_zq, xcRB, &ap_msg);
964 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt);
1016 struct zcrypt_queue *zq, *pref_zq;
1062 pref_zq = NULL;
1101 if (!zcrypt_queue_compare(zq, pref_zq,
1105 pref_zq = zq;
1109 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt);
1112 if (!pref_zq) {
1117 qid = pref_zq->queue->qid;
1118 rc = pref_zq->ops->send_ep11_cprb(userspace, pref_zq, xcrb, &ap_msg);
1121 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt);
1146 struct zcrypt_queue *zq, *pref_zq;
1162 pref_zq = NULL;
1178 if (!zcrypt_queue_compare(zq, pref_zq, wgt, pref_wgt))
1181 pref_zq = zq;
1185 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt);
1188 if (!pref_zq) {
1193 qid = pref_zq->queue->qid;
1194 rc = pref_zq->ops->rng(pref_zq, buffer, &ap_msg);
1197 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt);