Lines Matching refs:ap_msg
643 struct ap_message ap_msg; in zcrypt_rsa_modexpo() local
651 ap_init_message(&ap_msg); in zcrypt_rsa_modexpo()
725 rc = pref_zq->ops->rsa_modexpo(pref_zq, mex, &ap_msg); in zcrypt_rsa_modexpo()
732 ap_release_message(&ap_msg); in zcrypt_rsa_modexpo()
748 struct ap_message ap_msg; in zcrypt_rsa_crt() local
756 ap_init_message(&ap_msg); in zcrypt_rsa_crt()
830 rc = pref_zq->ops->rsa_modexpo_crt(pref_zq, crt, &ap_msg); in zcrypt_rsa_crt()
837 ap_release_message(&ap_msg); in zcrypt_rsa_crt()
853 struct ap_message ap_msg; in _zcrypt_send_cprb() local
863 ap_init_message(&ap_msg); in _zcrypt_send_cprb()
865 rc = prep_cca_ap_msg(userspace, xcrb, &ap_msg, &func_code, &domain); in _zcrypt_send_cprb()
871 if (ap_msg.flags & AP_MSG_FLAG_ADMIN) { in _zcrypt_send_cprb()
876 } else if ((ap_msg.flags & AP_MSG_FLAG_USAGE) == 0) { in _zcrypt_send_cprb()
903 if (ap_msg.len > zc->card->maxmsgsize) in _zcrypt_send_cprb()
954 rc = pref_zq->ops->send_cprb(userspace, pref_zq, xcrb, &ap_msg); in _zcrypt_send_cprb()
961 ap_release_message(&ap_msg); in _zcrypt_send_cprb()
1014 struct ap_message ap_msg; in _zcrypt_send_ep11_cprb() local
1020 ap_init_message(&ap_msg); in _zcrypt_send_ep11_cprb()
1045 rc = prep_ep11_ap_msg(userspace, xcrb, &ap_msg, &func_code, &domain); in _zcrypt_send_ep11_cprb()
1050 if (ap_msg.flags & AP_MSG_FLAG_ADMIN) { in _zcrypt_send_ep11_cprb()
1055 } else if ((ap_msg.flags & AP_MSG_FLAG_USAGE) == 0) { in _zcrypt_send_ep11_cprb()
1074 if (ap_msg.len > zc->card->maxmsgsize) in _zcrypt_send_ep11_cprb()
1131 rc = pref_zq->ops->send_ep11_cprb(userspace, pref_zq, xcrb, &ap_msg); in _zcrypt_send_ep11_cprb()
1140 ap_release_message(&ap_msg); in _zcrypt_send_ep11_cprb()
1162 struct ap_message ap_msg; in zcrypt_rng() local
1169 ap_init_message(&ap_msg); in zcrypt_rng()
1170 rc = prep_rng_ap_msg(&ap_msg, &func_code, &domain); in zcrypt_rng()
1209 rc = pref_zq->ops->rng(pref_zq, buffer, &ap_msg); in zcrypt_rng()
1216 ap_release_message(&ap_msg); in zcrypt_rng()