Lines Matching refs:ap_msg

674 	struct ap_message ap_msg;  in zcrypt_rsa_modexpo()  local
682 ap_init_message(&ap_msg); in zcrypt_rsa_modexpo()
686 ap_msg.fi.cmd = tr->fi.cmd; in zcrypt_rsa_modexpo()
761 rc = pref_zq->ops->rsa_modexpo(pref_zq, mex, &ap_msg); in zcrypt_rsa_modexpo()
768 ap_release_message(&ap_msg); in zcrypt_rsa_modexpo()
784 struct ap_message ap_msg; in zcrypt_rsa_crt() local
792 ap_init_message(&ap_msg); in zcrypt_rsa_crt()
796 ap_msg.fi.cmd = tr->fi.cmd; in zcrypt_rsa_crt()
871 rc = pref_zq->ops->rsa_modexpo_crt(pref_zq, crt, &ap_msg); in zcrypt_rsa_crt()
878 ap_release_message(&ap_msg); in zcrypt_rsa_crt()
894 struct ap_message ap_msg; in _zcrypt_send_cprb() local
904 ap_init_message(&ap_msg); in _zcrypt_send_cprb()
908 ap_msg.fi.cmd = tr->fi.cmd; in _zcrypt_send_cprb()
916 rc = prep_cca_ap_msg(userspace, xcrb, &ap_msg, &func_code, &domain); in _zcrypt_send_cprb()
922 if (ap_msg.flags & AP_MSG_FLAG_ADMIN) { in _zcrypt_send_cprb()
927 } else if ((ap_msg.flags & AP_MSG_FLAG_USAGE) == 0) { in _zcrypt_send_cprb()
954 if (ap_msg.len > zc->card->maxmsgsize) in _zcrypt_send_cprb()
1013 rc = pref_zq->ops->send_cprb(userspace, pref_zq, xcrb, &ap_msg); in _zcrypt_send_cprb()
1020 ap_release_message(&ap_msg); in _zcrypt_send_cprb()
1073 struct ap_message ap_msg; in _zcrypt_send_ep11_cprb() local
1079 ap_init_message(&ap_msg); in _zcrypt_send_ep11_cprb()
1083 ap_msg.fi.cmd = tr->fi.cmd; in _zcrypt_send_ep11_cprb()
1109 rc = prep_ep11_ap_msg(userspace, xcrb, &ap_msg, &func_code, &domain); in _zcrypt_send_ep11_cprb()
1114 if (ap_msg.flags & AP_MSG_FLAG_ADMIN) { in _zcrypt_send_ep11_cprb()
1119 } else if ((ap_msg.flags & AP_MSG_FLAG_USAGE) == 0) { in _zcrypt_send_ep11_cprb()
1138 if (ap_msg.len > zc->card->maxmsgsize) in _zcrypt_send_ep11_cprb()
1195 rc = pref_zq->ops->send_ep11_cprb(userspace, pref_zq, xcrb, &ap_msg); in _zcrypt_send_ep11_cprb()
1204 ap_release_message(&ap_msg); in _zcrypt_send_ep11_cprb()
1226 struct ap_message ap_msg; in zcrypt_rng() local
1233 ap_init_message(&ap_msg); in zcrypt_rng()
1234 rc = prep_rng_ap_msg(&ap_msg, &func_code, &domain); in zcrypt_rng()
1273 rc = pref_zq->ops->rng(pref_zq, buffer, &ap_msg); in zcrypt_rng()
1280 ap_release_message(&ap_msg); in zcrypt_rng()