Lines Matching refs:ap_msg

648 	struct ap_message ap_msg;  in zcrypt_rsa_modexpo()  local
656 rc = ap_init_apmsg(&ap_msg, 0); in zcrypt_rsa_modexpo()
730 rc = pref_zq->ops->rsa_modexpo(pref_zq, mex, &ap_msg); in zcrypt_rsa_modexpo()
737 ap_release_apmsg(&ap_msg); in zcrypt_rsa_modexpo()
753 struct ap_message ap_msg; in zcrypt_rsa_crt() local
761 rc = ap_init_apmsg(&ap_msg, 0); in zcrypt_rsa_crt()
835 rc = pref_zq->ops->rsa_modexpo_crt(pref_zq, crt, &ap_msg); in zcrypt_rsa_crt()
842 ap_release_apmsg(&ap_msg); in zcrypt_rsa_crt()
859 struct ap_message ap_msg; in _zcrypt_send_cprb() local
870 rc = ap_init_apmsg(&ap_msg, xflags & ZCRYPT_XFLAG_NOMEMALLOC ? in _zcrypt_send_cprb()
875 rc = prep_cca_ap_msg(userspace, xcrb, &ap_msg, &func_code, &domain); in _zcrypt_send_cprb()
879 ap_msg.msg, ap_msg.len, false); in _zcrypt_send_cprb()
883 if (ap_msg.flags & AP_MSG_FLAG_ADMIN) { in _zcrypt_send_cprb()
888 } else if ((ap_msg.flags & AP_MSG_FLAG_USAGE) == 0) { in _zcrypt_send_cprb()
915 if (ap_msg.len > zc->card->maxmsgsize) in _zcrypt_send_cprb()
966 rc = pref_zq->ops->send_cprb(userspace, pref_zq, xcrb, &ap_msg); in _zcrypt_send_cprb()
969 ap_msg.msg, ap_msg.len, false); in _zcrypt_send_cprb()
977 ap_release_apmsg(&ap_msg); in _zcrypt_send_cprb()
1050 struct ap_message ap_msg; in _zcrypt_send_ep11_cprb() local
1056 rc = ap_init_apmsg(&ap_msg, xflags & ZCRYPT_XFLAG_NOMEMALLOC ? in _zcrypt_send_ep11_cprb()
1080 rc = prep_ep11_ap_msg(userspace, xcrb, &ap_msg, &func_code, &domain); in _zcrypt_send_ep11_cprb()
1084 ap_msg.msg, ap_msg.len, false); in _zcrypt_send_ep11_cprb()
1087 if (ap_msg.flags & AP_MSG_FLAG_ADMIN) { in _zcrypt_send_ep11_cprb()
1092 } else if ((ap_msg.flags & AP_MSG_FLAG_USAGE) == 0) { in _zcrypt_send_ep11_cprb()
1111 if (ap_msg.len > zc->card->maxmsgsize) in _zcrypt_send_ep11_cprb()
1166 rc = pref_zq->ops->send_ep11_cprb(userspace, pref_zq, xcrb, &ap_msg); in _zcrypt_send_ep11_cprb()
1169 ap_msg.msg, ap_msg.len, false); in _zcrypt_send_ep11_cprb()
1179 ap_release_apmsg(&ap_msg); in _zcrypt_send_ep11_cprb()
1220 struct ap_message ap_msg; in zcrypt_rng() local
1227 rc = ap_init_apmsg(&ap_msg, 0); in zcrypt_rng()
1230 rc = prep_rng_ap_msg(&ap_msg, &func_code, &domain); in zcrypt_rng()
1268 rc = pref_zq->ops->rng(pref_zq, buffer, &ap_msg); in zcrypt_rng()
1275 ap_release_apmsg(&ap_msg); in zcrypt_rng()