Searched refs:ap_msg (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/s390/crypto/ |
| H A D | zcrypt_msgtype6.c | 186 struct ap_message *ap_msg, in icamex_msg_to_type6mex_msgx() argument 206 } __packed * msg = ap_msg->msg; in icamex_msg_to_type6mex_msgx() 241 ap_msg->len = size; in icamex_msg_to_type6mex_msgx() 255 struct ap_message *ap_msg, in icacrt_msg_to_type6crt_msgx() argument 276 } __packed * msg = ap_msg->msg; in icacrt_msg_to_type6crt_msgx() 310 ap_msg->len = size; in icacrt_msg_to_type6crt_msgx() 328 static int xcrb_msg_to_type6cprb_msgx(bool userspace, struct ap_message *ap_msg, in xcrb_msg_to_type6cprb_msgx() argument 343 } __packed * msg = ap_msg->msg; in xcrb_msg_to_type6cprb_msgx() 347 char *req_data = ap_msg->msg + sizeof(struct type6_hdr) + rcblen; in xcrb_msg_to_type6cprb_msgx() 355 ap_msg->len = sizeof(struct type6_hdr) + in xcrb_msg_to_type6cprb_msgx() [all …]
|
| H A D | zcrypt_msgtype50.c | 195 struct ap_message *ap_msg, in ICAMEX_msg_to_type50MEX_msg() argument 204 struct type50_meb1_msg *meb1 = ap_msg->msg; in ICAMEX_msg_to_type50MEX_msg() 207 ap_msg->len = sizeof(*meb1); in ICAMEX_msg_to_type50MEX_msg() 215 struct type50_meb2_msg *meb2 = ap_msg->msg; in ICAMEX_msg_to_type50MEX_msg() 218 ap_msg->len = sizeof(*meb2); in ICAMEX_msg_to_type50MEX_msg() 226 struct type50_meb3_msg *meb3 = ap_msg->msg; in ICAMEX_msg_to_type50MEX_msg() 229 ap_msg->len = sizeof(*meb3); in ICAMEX_msg_to_type50MEX_msg() 258 struct ap_message *ap_msg, in ICACRT_msg_to_type50CRT_msg() argument 274 struct type50_crb1_msg *crb1 = ap_msg->msg; in ICACRT_msg_to_type50CRT_msg() 277 ap_msg->len = sizeof(*crb1); in ICACRT_msg_to_type50CRT_msg() [all …]
|
| H A D | ap_queue.c | 136 struct ap_message *ap_msg; in ap_sm_recv() local 169 list_for_each_entry(ap_msg, &aq->pendingq, list) { in ap_sm_recv() 170 if (ap_msg->psmid != aq->reply->psmid) in ap_sm_recv() 172 list_del_init(&ap_msg->list); in ap_sm_recv() 175 ap_msg->rc = -EMSGSIZE; in ap_sm_recv() 176 ap_msg->receive(aq, ap_msg, NULL); in ap_sm_recv() 178 ap_msg->receive(aq, ap_msg, aq->reply); in ap_sm_recv() 265 struct ap_message *ap_msg; in ap_sm_write() local 272 ap_msg = list_entry(aq->requestq.next, struct ap_message, list); in ap_sm_write() 274 ap_msg->msg, ap_msg->len, false); in ap_sm_write() [all …]
|
| H A D | zcrypt_msgtype6.h | 98 struct ap_message *ap_msg, 101 struct ap_message *ap_msg, 103 int prep_rng_ap_msg(struct ap_message *ap_msg, 119 static inline void rng_type6cprb_msgx(struct ap_message *ap_msg, in rng_type6cprb_msgx() argument 131 } __packed * msg = ap_msg->msg; in rng_type6cprb_msgx() 158 ap_msg->len = sizeof(*msg); in rng_type6cprb_msgx()
|
| H A D | zcrypt_api.c | 646 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 D | ap_bus.h | 242 int ap_init_apmsg(struct ap_message *ap_msg, u32 flags); 243 void ap_release_apmsg(struct ap_message *ap_msg); 248 int ap_queue_message(struct ap_queue *aq, struct ap_message *ap_msg); 249 void ap_cancel_message(struct ap_queue *aq, struct ap_message *ap_msg); 263 void ap_queue_init_reply(struct ap_queue *aq, struct ap_message *ap_msg);
|
| H A D | ap_bus.c | 585 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 …]
|