Lines Matching refs:wgt

640 	unsigned int wgt = 0, pref_wgt = 0;  in zcrypt_rsa_modexpo()  local
687 wgt = zc->speed_rating[func_code]; in zcrypt_rsa_modexpo()
692 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in zcrypt_rsa_modexpo()
708 wgt + cpen + qpen, pref_wgt)) in zcrypt_rsa_modexpo()
712 pref_wgt = wgt + cpen + qpen; in zcrypt_rsa_modexpo()
715 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
795 wgt = zc->speed_rating[func_code]; in zcrypt_rsa_crt()
800 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in zcrypt_rsa_crt()
816 wgt + cpen + qpen, pref_wgt)) in zcrypt_rsa_crt()
820 pref_wgt = wgt + cpen + qpen; in zcrypt_rsa_crt()
823 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
908 wgt = speed_idx_cca(func_code) * zc->speed_rating[SECKEY]; in _zcrypt_send_cprb()
913 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()
963 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in _zcrypt_send_cprb()
1018 unsigned int wgt = 0, pref_wgt = 0; in _zcrypt_send_ep11_cprb() local
1076 wgt = speed_idx_ep11(func_code) * zc->speed_rating[SECKEY]; in _zcrypt_send_ep11_cprb()
1081 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in _zcrypt_send_ep11_cprb()
1101 wgt + cpen + qpen, pref_wgt)) in _zcrypt_send_ep11_cprb()
1105 pref_wgt = wgt + cpen + qpen; in _zcrypt_send_ep11_cprb()
1108 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in _zcrypt_send_ep11_cprb()
1120 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in _zcrypt_send_ep11_cprb()
1146 unsigned int wgt = 0, pref_wgt = 0; in zcrypt_rng() local
1169 wgt = zc->speed_rating[func_code]; in zcrypt_rng()
1170 if (!zcrypt_card_compare(zc, pref_zc, wgt, pref_wgt)) in zcrypt_rng()
1177 if (!zcrypt_queue_compare(zq, pref_zq, wgt, pref_wgt)) in zcrypt_rng()
1181 pref_wgt = wgt; in zcrypt_rng()
1184 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rng()
1196 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rng()