Lines Matching refs:pref_zq
620 struct zcrypt_queue *pref_zq,
624 if (!pref_zq)
627 pref_weight += atomic_read(&pref_zq->load);
630 pref_zq->queue->total_request_count;
642 struct zcrypt_queue *zq, *pref_zq;
671 pref_zq = NULL;
706 if (!zcrypt_queue_compare(zq, pref_zq,
710 pref_zq = zq;
714 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt);
717 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;
776 pref_zq = NULL;
811 if (!zcrypt_queue_compare(zq, pref_zq,
815 pref_zq = zq;
819 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt);
822 if (!pref_zq) {
829 qid = pref_zq->queue->qid;
830 rc = pref_zq->ops->rsa_modexpo_crt(pref_zq, crt, &ap_msg);
833 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt);
852 struct zcrypt_queue *zq, *pref_zq;
891 pref_zq = NULL;
931 if (!zcrypt_queue_compare(zq, pref_zq,
935 pref_zq = zq;
939 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt);
942 if (!pref_zq) {
950 qid = pref_zq->queue->qid;
954 rc = pref_zq->ops->send_cprb(userspace, pref_zq, xcrb, &ap_msg);
957 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt);
1009 struct zcrypt_queue *zq, *pref_zq;
1062 pref_zq = NULL;
1103 if (!zcrypt_queue_compare(zq, pref_zq,
1107 pref_zq = zq;
1111 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt);
1114 if (!pref_zq) {
1130 qid = pref_zq->queue->qid;
1131 rc = pref_zq->ops->send_ep11_cprb(userspace, pref_zq, xcrb, &ap_msg);
1134 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt);
1159 struct zcrypt_queue *zq, *pref_zq;
1175 pref_zq = NULL;
1191 if (!zcrypt_queue_compare(zq, pref_zq, wgt, pref_wgt))
1194 pref_zq = zq;
1198 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt);
1201 if (!pref_zq) {
1208 qid = pref_zq->queue->qid;
1209 rc = pref_zq->ops->rng(pref_zq, buffer, &ap_msg);
1212 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt);