Lines Matching refs:pref_weight
601 unsigned int pref_weight) in zcrypt_card_compare() argument
606 pref_weight += atomic_read(&pref_zc->load); in zcrypt_card_compare()
607 if (weight == pref_weight) in zcrypt_card_compare()
610 return weight > pref_weight; in zcrypt_card_compare()
616 unsigned int pref_weight) in zcrypt_queue_compare() argument
621 pref_weight += atomic_read(&pref_zq->load); in zcrypt_queue_compare()
622 if (weight == pref_weight) in zcrypt_queue_compare()
625 return weight > pref_weight; in zcrypt_queue_compare()
636 unsigned int weight, pref_weight; in zcrypt_rsa_modexpo() local
676 if (zcrypt_card_compare(zc, pref_zc, weight, pref_weight)) in zcrypt_rsa_modexpo()
687 weight, pref_weight)) in zcrypt_rsa_modexpo()
691 pref_weight = weight; in zcrypt_rsa_modexpo()
720 unsigned int weight, pref_weight; in zcrypt_rsa_crt() local
760 if (zcrypt_card_compare(zc, pref_zc, weight, pref_weight)) in zcrypt_rsa_crt()
771 weight, pref_weight)) in zcrypt_rsa_crt()
775 pref_weight = weight; in zcrypt_rsa_crt()
805 unsigned int weight, pref_weight; in _zcrypt_send_cprb() local
846 if (zcrypt_card_compare(zc, pref_zc, weight, pref_weight)) in _zcrypt_send_cprb()
860 weight, pref_weight)) in _zcrypt_send_cprb()
864 pref_weight = weight; in _zcrypt_send_cprb()
930 unsigned int weight, pref_weight; in zcrypt_send_ep11_cprb() local
983 if (zcrypt_card_compare(zc, pref_zc, weight, pref_weight)) in zcrypt_send_ep11_cprb()
998 weight, pref_weight)) in zcrypt_send_ep11_cprb()
1002 pref_weight = weight; in zcrypt_send_ep11_cprb()
1033 unsigned int weight, pref_weight; in zcrypt_rng() local
1056 if (zcrypt_card_compare(zc, pref_zc, weight, pref_weight)) in zcrypt_rng()
1063 weight, pref_weight)) in zcrypt_rng()
1067 pref_weight = weight; in zcrypt_rng()