Lines Matching refs:ap_msg
638 struct ap_message ap_msg; in zcrypt_rsa_modexpo() local
646 ap_init_message(&ap_msg); in zcrypt_rsa_modexpo()
650 ap_msg.fi.cmd = tr->fi.cmd; in zcrypt_rsa_modexpo()
723 rc = pref_zq->ops->rsa_modexpo(pref_zq, mex, &ap_msg); in zcrypt_rsa_modexpo()
730 ap_release_message(&ap_msg); in zcrypt_rsa_modexpo()
746 struct ap_message ap_msg; in zcrypt_rsa_crt() local
754 ap_init_message(&ap_msg); in zcrypt_rsa_crt()
758 ap_msg.fi.cmd = tr->fi.cmd; in zcrypt_rsa_crt()
831 rc = pref_zq->ops->rsa_modexpo_crt(pref_zq, crt, &ap_msg); in zcrypt_rsa_crt()
838 ap_release_message(&ap_msg); in zcrypt_rsa_crt()
854 struct ap_message ap_msg; in _zcrypt_send_cprb() local
864 ap_init_message(&ap_msg); in _zcrypt_send_cprb()
868 ap_msg.fi.cmd = tr->fi.cmd; in _zcrypt_send_cprb()
876 rc = get_cprb_fc(userspace, xcRB, &ap_msg, &func_code, &domain); in _zcrypt_send_cprb()
904 if (ap_msg.len > zc->card->maxmsgsize) in _zcrypt_send_cprb()
962 rc = pref_zq->ops->send_cprb(userspace, pref_zq, xcRB, &ap_msg); in _zcrypt_send_cprb()
969 ap_release_message(&ap_msg); in _zcrypt_send_cprb()
1022 struct ap_message ap_msg; in _zcrypt_send_ep11_cprb() local
1028 ap_init_message(&ap_msg); in _zcrypt_send_ep11_cprb()
1032 ap_msg.fi.cmd = tr->fi.cmd; in _zcrypt_send_ep11_cprb()
1058 rc = get_ep11cprb_fc(userspace, xcrb, &ap_msg, &func_code); in _zcrypt_send_ep11_cprb()
1075 if (ap_msg.len > zc->card->maxmsgsize) in _zcrypt_send_ep11_cprb()
1122 rc = pref_zq->ops->send_ep11_cprb(userspace, pref_zq, xcrb, &ap_msg); in _zcrypt_send_ep11_cprb()
1131 ap_release_message(&ap_msg); in _zcrypt_send_ep11_cprb()
1153 struct ap_message ap_msg; in zcrypt_rng() local
1160 ap_init_message(&ap_msg); in zcrypt_rng()
1161 rc = get_rng_fc(&ap_msg, &func_code, &domain); in zcrypt_rng()
1198 rc = pref_zq->ops->rng(pref_zq, buffer, &ap_msg); in zcrypt_rng()
1205 ap_release_message(&ap_msg); in zcrypt_rng()