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()
724 rc = pref_zq->ops->rsa_modexpo(pref_zq, mex, &ap_msg); in zcrypt_rsa_modexpo()
731 ap_release_message(&ap_msg); in zcrypt_rsa_modexpo()
747 struct ap_message ap_msg; in zcrypt_rsa_crt() local
755 ap_init_message(&ap_msg); in zcrypt_rsa_crt()
828 rc = pref_zq->ops->rsa_modexpo_crt(pref_zq, crt, &ap_msg); in zcrypt_rsa_crt()
835 ap_release_message(&ap_msg); in zcrypt_rsa_crt()
851 struct ap_message ap_msg; in _zcrypt_send_cprb() local
861 ap_init_message(&ap_msg); in _zcrypt_send_cprb()
863 rc = prep_cca_ap_msg(userspace, xcrb, &ap_msg, &func_code, &domain); in _zcrypt_send_cprb()
867 ap_msg.msg, ap_msg.len, false); 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()
957 ap_msg.msg, ap_msg.len, false); in _zcrypt_send_cprb()
965 ap_release_message(&ap_msg); in _zcrypt_send_cprb()
1037 struct ap_message ap_msg; in _zcrypt_send_ep11_cprb() local
1043 ap_init_message(&ap_msg); in _zcrypt_send_ep11_cprb()
1068 rc = prep_ep11_ap_msg(userspace, xcrb, &ap_msg, &func_code, &domain); in _zcrypt_send_ep11_cprb()
1072 ap_msg.msg, ap_msg.len, false); in _zcrypt_send_ep11_cprb()
1075 if (ap_msg.flags & AP_MSG_FLAG_ADMIN) { in _zcrypt_send_ep11_cprb()
1080 } else if ((ap_msg.flags & AP_MSG_FLAG_USAGE) == 0) { in _zcrypt_send_ep11_cprb()
1099 if (ap_msg.len > zc->card->maxmsgsize) in _zcrypt_send_ep11_cprb()
1154 rc = pref_zq->ops->send_ep11_cprb(userspace, pref_zq, xcrb, &ap_msg); in _zcrypt_send_ep11_cprb()
1157 ap_msg.msg, ap_msg.len, false); in _zcrypt_send_ep11_cprb()
1167 ap_release_message(&ap_msg); in _zcrypt_send_ep11_cprb()
1208 struct ap_message ap_msg; in zcrypt_rng() local
1215 ap_init_message(&ap_msg); in zcrypt_rng()
1216 rc = prep_rng_ap_msg(&ap_msg, &func_code, &domain); in zcrypt_rng()
1254 rc = pref_zq->ops->rng(pref_zq, buffer, &ap_msg); in zcrypt_rng()
1261 ap_release_message(&ap_msg); in zcrypt_rng()