Lines Matching refs:pref_zc
605 struct zcrypt_card *pref_zc, in zcrypt_card_compare() argument
609 if (!pref_zc) in zcrypt_card_compare()
612 pref_weight += atomic_read(&pref_zc->load); in zcrypt_card_compare()
615 atomic64_read(&pref_zc->card->total_request_count); in zcrypt_card_compare()
641 struct zcrypt_card *zc, *pref_zc; in zcrypt_rsa_modexpo() local
670 pref_zc = NULL; in zcrypt_rsa_modexpo()
691 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in zcrypt_rsa_modexpo()
709 pref_zc = zc; in zcrypt_rsa_modexpo()
714 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rsa_modexpo()
728 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rsa_modexpo()
746 struct zcrypt_card *zc, *pref_zc; in zcrypt_rsa_crt() local
775 pref_zc = NULL; in zcrypt_rsa_crt()
796 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in zcrypt_rsa_crt()
814 pref_zc = zc; in zcrypt_rsa_crt()
819 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rsa_crt()
833 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rsa_crt()
851 struct zcrypt_card *zc, *pref_zc; in _zcrypt_send_cprb() local
890 pref_zc = NULL; in _zcrypt_send_cprb()
914 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in _zcrypt_send_cprb()
934 pref_zc = zc; in _zcrypt_send_cprb()
939 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in _zcrypt_send_cprb()
957 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in _zcrypt_send_cprb()
1008 struct zcrypt_card *zc, *pref_zc; in _zcrypt_send_ep11_cprb() local
1061 pref_zc = NULL; in _zcrypt_send_ep11_cprb()
1085 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in _zcrypt_send_ep11_cprb()
1106 pref_zc = zc; in _zcrypt_send_ep11_cprb()
1111 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in _zcrypt_send_ep11_cprb()
1134 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in _zcrypt_send_ep11_cprb()
1158 struct zcrypt_card *zc, *pref_zc; in zcrypt_rng() local
1174 pref_zc = NULL; in zcrypt_rng()
1184 if (!zcrypt_card_compare(zc, pref_zc, wgt, pref_wgt)) in zcrypt_rng()
1193 pref_zc = zc; in zcrypt_rng()
1198 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rng()
1212 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rng()