Home
last modified time | relevance | path

Searched refs:ap_msg (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/s390/crypto/
H A Dzcrypt_msgtype6.c190 struct ap_message *ap_msg, in icamex_msg_to_type6mex_msgx() argument
210 } __packed * msg = ap_msg->msg; in icamex_msg_to_type6mex_msgx()
245 ap_msg->len = size; in icamex_msg_to_type6mex_msgx()
259 struct ap_message *ap_msg, in icacrt_msg_to_type6crt_msgx() argument
280 } __packed * msg = ap_msg->msg; in icacrt_msg_to_type6crt_msgx()
314 ap_msg->len = size; in icacrt_msg_to_type6crt_msgx()
332 static int xcrb_msg_to_type6cprb_msgx(bool userspace, struct ap_message *ap_msg, in xcrb_msg_to_type6cprb_msgx() argument
347 } __packed * msg = ap_msg->msg; in xcrb_msg_to_type6cprb_msgx()
361 ap_msg->len = sizeof(struct type6_hdr) + req_sumlen; in xcrb_msg_to_type6cprb_msgx()
362 if (ap_msg->len > ap_msg->bufsize) in xcrb_msg_to_type6cprb_msgx()
[all …]
H A Dzcrypt_api.c646 struct ap_message ap_msg; in zcrypt_rsa_modexpo() local
654 rc = ap_init_apmsg(&ap_msg, 0); in zcrypt_rsa_modexpo()
728 rc = pref_zq->ops->rsa_modexpo(pref_zq, mex, &ap_msg); in zcrypt_rsa_modexpo()
735 ap_release_apmsg(&ap_msg); in zcrypt_rsa_modexpo()
742 ap_msg.psmid); in zcrypt_rsa_modexpo()
752 struct ap_message ap_msg; in zcrypt_rsa_crt() local
760 rc = ap_init_apmsg(&ap_msg, 0); in zcrypt_rsa_crt()
834 rc = pref_zq->ops->rsa_modexpo_crt(pref_zq, crt, &ap_msg); in zcrypt_rsa_crt()
841 ap_release_apmsg(&ap_msg); in zcrypt_rsa_crt()
848 ap_msg.psmid); in zcrypt_rsa_crt()
[all …]
H A Dzcrypt_msgtype6.h98 struct ap_message *ap_msg,
101 struct ap_message *ap_msg,
103 int prep_rng_ap_msg(struct ap_message *ap_msg,
H A Dap_bus.c585 int ap_init_apmsg(struct ap_message *ap_msg, u32 flags) in ap_init_apmsg() argument
589 memset(ap_msg, 0, sizeof(*ap_msg)); in ap_init_apmsg()
590 ap_msg->flags = flags; in ap_init_apmsg()
593 ap_msg->msg = mempool_alloc_preallocated(ap_msg_pool); in ap_init_apmsg()
594 if (!ap_msg->msg) in ap_init_apmsg()
596 ap_msg->bufsize = AP_DEFAULT_MAX_MSG_SIZE; in ap_init_apmsg()
601 ap_msg->msg = kmalloc(maxmsgsize, GFP_KERNEL); in ap_init_apmsg()
602 if (!ap_msg->msg) in ap_init_apmsg()
604 ap_msg->bufsize = maxmsgsize; in ap_init_apmsg()
613 void ap_release_apmsg(struct ap_message *ap_msg) in ap_release_apmsg() argument
[all …]