Lines Matching refs:ap_msg

680 	struct ap_message ap_msg;  in zcrypt_rsa_modexpo()  local
688 ap_init_message(&ap_msg); in zcrypt_rsa_modexpo()
692 ap_msg.fi.cmd = tr->fi.cmd; in zcrypt_rsa_modexpo()
767 rc = pref_zq->ops->rsa_modexpo(pref_zq, mex, &ap_msg); in zcrypt_rsa_modexpo()
774 ap_release_message(&ap_msg); in zcrypt_rsa_modexpo()
790 struct ap_message ap_msg; in zcrypt_rsa_crt() local
798 ap_init_message(&ap_msg); in zcrypt_rsa_crt()
802 ap_msg.fi.cmd = tr->fi.cmd; in zcrypt_rsa_crt()
877 rc = pref_zq->ops->rsa_modexpo_crt(pref_zq, crt, &ap_msg); in zcrypt_rsa_crt()
884 ap_release_message(&ap_msg); in zcrypt_rsa_crt()
900 struct ap_message ap_msg; in _zcrypt_send_cprb() local
910 ap_init_message(&ap_msg); in _zcrypt_send_cprb()
914 ap_msg.fi.cmd = tr->fi.cmd; in _zcrypt_send_cprb()
922 rc = prep_cca_ap_msg(userspace, xcrb, &ap_msg, &func_code, &domain); in _zcrypt_send_cprb()
928 if (ap_msg.flags & AP_MSG_FLAG_ADMIN) { in _zcrypt_send_cprb()
933 } else if ((ap_msg.flags & AP_MSG_FLAG_USAGE) == 0) { in _zcrypt_send_cprb()
960 if (ap_msg.len > zc->card->maxmsgsize) in _zcrypt_send_cprb()
1019 rc = pref_zq->ops->send_cprb(userspace, pref_zq, xcrb, &ap_msg); in _zcrypt_send_cprb()
1026 ap_release_message(&ap_msg); in _zcrypt_send_cprb()
1079 struct ap_message ap_msg; in _zcrypt_send_ep11_cprb() local
1085 ap_init_message(&ap_msg); in _zcrypt_send_ep11_cprb()
1089 ap_msg.fi.cmd = tr->fi.cmd; in _zcrypt_send_ep11_cprb()
1115 rc = prep_ep11_ap_msg(userspace, xcrb, &ap_msg, &func_code, &domain); in _zcrypt_send_ep11_cprb()
1120 if (ap_msg.flags & AP_MSG_FLAG_ADMIN) { in _zcrypt_send_ep11_cprb()
1125 } else if ((ap_msg.flags & AP_MSG_FLAG_USAGE) == 0) { in _zcrypt_send_ep11_cprb()
1144 if (ap_msg.len > zc->card->maxmsgsize) in _zcrypt_send_ep11_cprb()
1201 rc = pref_zq->ops->send_ep11_cprb(userspace, pref_zq, xcrb, &ap_msg); in _zcrypt_send_ep11_cprb()
1210 ap_release_message(&ap_msg); in _zcrypt_send_ep11_cprb()
1232 struct ap_message ap_msg; in zcrypt_rng() local
1239 ap_init_message(&ap_msg); in zcrypt_rng()
1240 rc = prep_rng_ap_msg(&ap_msg, &func_code, &domain); in zcrypt_rng()
1279 rc = pref_zq->ops->rng(pref_zq, buffer, &ap_msg); in zcrypt_rng()
1286 ap_release_message(&ap_msg); in zcrypt_rng()