Lines Matching refs:wgt
681 unsigned int wgt = 0, pref_wgt = 0; in zcrypt_rsa_modexpo() local
728 wgt = zc->speed_rating[func_code]; in zcrypt_rsa_modexpo()
733 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in zcrypt_rsa_modexpo()
749 wgt + cpen + qpen, pref_wgt)) in zcrypt_rsa_modexpo()
753 pref_wgt = wgt + cpen + qpen; in zcrypt_rsa_modexpo()
756 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rsa_modexpo()
770 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rsa_modexpo()
791 unsigned int wgt = 0, pref_wgt = 0; in zcrypt_rsa_crt() local
838 wgt = zc->speed_rating[func_code]; in zcrypt_rsa_crt()
843 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in zcrypt_rsa_crt()
859 wgt + cpen + qpen, pref_wgt)) in zcrypt_rsa_crt()
863 pref_wgt = wgt + cpen + qpen; in zcrypt_rsa_crt()
866 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rsa_crt()
880 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rsa_crt()
901 unsigned int wgt = 0, pref_wgt = 0; in _zcrypt_send_cprb() local
966 wgt = speed_idx_cca(func_code) * zc->speed_rating[SECKEY]; in _zcrypt_send_cprb()
971 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in _zcrypt_send_cprb()
989 wgt + cpen + qpen, pref_wgt)) in _zcrypt_send_cprb()
993 pref_wgt = wgt + cpen + qpen; in _zcrypt_send_cprb()
996 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in _zcrypt_send_cprb()
1022 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in _zcrypt_send_cprb()
1077 unsigned int wgt = 0, pref_wgt = 0; in _zcrypt_send_ep11_cprb() local
1150 wgt = speed_idx_ep11(func_code) * zc->speed_rating[SECKEY]; in _zcrypt_send_ep11_cprb()
1155 if (!zcrypt_card_compare(zc, pref_zc, wgt + cpen, pref_wgt)) in _zcrypt_send_ep11_cprb()
1174 wgt + cpen + qpen, pref_wgt)) in _zcrypt_send_ep11_cprb()
1178 pref_wgt = wgt + cpen + qpen; in _zcrypt_send_ep11_cprb()
1181 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in _zcrypt_send_ep11_cprb()
1204 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in _zcrypt_send_ep11_cprb()
1230 unsigned int wgt = 0, pref_wgt = 0; in zcrypt_rng() local
1253 wgt = zc->speed_rating[func_code]; in zcrypt_rng()
1254 if (!zcrypt_card_compare(zc, pref_zc, wgt, pref_wgt)) in zcrypt_rng()
1261 if (!zcrypt_queue_compare(zq, pref_zq, wgt, pref_wgt)) in zcrypt_rng()
1265 pref_wgt = wgt; in zcrypt_rng()
1268 pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, wgt); in zcrypt_rng()
1282 zcrypt_drop_queue(pref_zc, pref_zq, mod, wgt); in zcrypt_rng()