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()
727 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rsa_modexpo()
745 struct zcrypt_card *zc, *pref_zc; in zcrypt_rsa_crt() local
774 pref_zc = NULL; in zcrypt_rsa_crt()
795 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in zcrypt_rsa_crt()
813 pref_zc = zc; in zcrypt_rsa_crt()
818 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rsa_crt()
831 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rsa_crt()
849 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()
961 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in _zcrypt_send_cprb()
1031 struct zcrypt_card *zc, *pref_zc; in _zcrypt_send_ep11_cprb() local
1086 pref_zc = NULL; in _zcrypt_send_ep11_cprb()
1110 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in _zcrypt_send_ep11_cprb()
1131 pref_zc = zc; in _zcrypt_send_ep11_cprb()
1136 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in _zcrypt_send_ep11_cprb()
1161 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in _zcrypt_send_ep11_cprb()
1204 struct zcrypt_card *zc, *pref_zc; in zcrypt_rng() local
1220 pref_zc = NULL; in zcrypt_rng()
1230 if (!zcrypt_card_compare(zc, pref_zc, wgt, pref_wgt)) in zcrypt_rng()
1239 pref_zc = zc; in zcrypt_rng()
1244 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rng()
1257 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rng()