Lines Matching refs:wgt

646 	unsigned int wgt = 0, pref_wgt = 0;  in zcrypt_rsa_modexpo()  local
688 wgt = zc->speed_rating[func_code]; in zcrypt_rsa_modexpo()
693 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in zcrypt_rsa_modexpo()
709 wgt + cpen + qpen, pref_wgt)) in zcrypt_rsa_modexpo()
713 pref_wgt = wgt + cpen + qpen; in zcrypt_rsa_modexpo()
716 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rsa_modexpo()
730 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rsa_modexpo()
751 unsigned int wgt = 0, pref_wgt = 0; in zcrypt_rsa_crt() local
793 wgt = zc->speed_rating[func_code]; in zcrypt_rsa_crt()
798 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in zcrypt_rsa_crt()
814 wgt + cpen + qpen, pref_wgt)) in zcrypt_rsa_crt()
818 pref_wgt = wgt + cpen + qpen; in zcrypt_rsa_crt()
821 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rsa_crt()
835 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rsa_crt()
856 unsigned int wgt = 0, pref_wgt = 0; in _zcrypt_send_cprb() local
911 wgt = speed_idx_cca(func_code) * zc->speed_rating[SECKEY]; in _zcrypt_send_cprb()
916 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in _zcrypt_send_cprb()
934 wgt + cpen + qpen, pref_wgt)) in _zcrypt_send_cprb()
938 pref_wgt = wgt + cpen + qpen; in _zcrypt_send_cprb()
941 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in _zcrypt_send_cprb()
959 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in _zcrypt_send_cprb()
1014 unsigned int wgt = 0, pref_wgt = 0; in _zcrypt_send_ep11_cprb() local
1082 wgt = speed_idx_ep11(func_code) * zc->speed_rating[SECKEY]; in _zcrypt_send_ep11_cprb()
1087 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in _zcrypt_send_ep11_cprb()
1106 wgt + cpen + qpen, pref_wgt)) in _zcrypt_send_ep11_cprb()
1110 pref_wgt = wgt + cpen + qpen; in _zcrypt_send_ep11_cprb()
1113 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in _zcrypt_send_ep11_cprb()
1136 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in _zcrypt_send_ep11_cprb()
1162 unsigned int wgt = 0, pref_wgt = 0; in zcrypt_rng() local
1185 wgt = zc->speed_rating[func_code]; in zcrypt_rng()
1186 if (!zcrypt_card_compare(zc, pref_zc, wgt, pref_wgt)) in zcrypt_rng()
1193 if (!zcrypt_queue_compare(zq, pref_zq, wgt, pref_wgt)) in zcrypt_rng()
1197 pref_wgt = wgt; in zcrypt_rng()
1200 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rng()
1214 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rng()