Lines Matching refs:wgt
644 unsigned int wgt = 0, pref_wgt = 0; in zcrypt_rsa_modexpo() local
686 wgt = zc->speed_rating[func_code]; in zcrypt_rsa_modexpo()
691 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in zcrypt_rsa_modexpo()
707 wgt + cpen + qpen, pref_wgt)) in zcrypt_rsa_modexpo()
711 pref_wgt = wgt + cpen + qpen; 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()
748 unsigned int wgt = 0, pref_wgt = 0; in zcrypt_rsa_crt() local
790 wgt = zc->speed_rating[func_code]; in zcrypt_rsa_crt()
795 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in zcrypt_rsa_crt()
811 wgt + cpen + qpen, pref_wgt)) in zcrypt_rsa_crt()
815 pref_wgt = wgt + cpen + qpen; 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()
852 unsigned int wgt = 0, pref_wgt = 0; in _zcrypt_send_cprb() local
909 wgt = speed_idx_cca(func_code) * zc->speed_rating[SECKEY]; in _zcrypt_send_cprb()
914 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in _zcrypt_send_cprb()
932 wgt + cpen + qpen, pref_wgt)) in _zcrypt_send_cprb()
936 pref_wgt = wgt + cpen + qpen; 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()
1035 unsigned int wgt = 0, pref_wgt = 0; in _zcrypt_send_ep11_cprb() local
1105 wgt = speed_idx_ep11(func_code) * zc->speed_rating[SECKEY]; in _zcrypt_send_ep11_cprb()
1110 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in _zcrypt_send_ep11_cprb()
1129 wgt + cpen + qpen, pref_wgt)) in _zcrypt_send_ep11_cprb()
1133 pref_wgt = wgt + cpen + qpen; 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()
1206 unsigned int wgt = 0, pref_wgt = 0; in zcrypt_rng() local
1229 wgt = zc->speed_rating[func_code]; in zcrypt_rng()
1230 if (!zcrypt_card_compare(zc, pref_zc, wgt, pref_wgt)) in zcrypt_rng()
1237 if (!zcrypt_queue_compare(zq, pref_zq, wgt, pref_wgt)) in zcrypt_rng()
1241 pref_wgt = wgt; 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()