Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/s390/crypto/
Dzcrypt_msgtype6.c192 struct ap_message *ap_msg, in icamex_msg_to_type6mex_msgx() argument
212 } __packed * msg = ap_msg->msg; in icamex_msg_to_type6mex_msgx()
247 ap_msg->len = size; in icamex_msg_to_type6mex_msgx()
261 struct ap_message *ap_msg, in icacrt_msg_to_type6crt_msgx() argument
282 } __packed * msg = ap_msg->msg; in icacrt_msg_to_type6crt_msgx()
316 ap_msg->len = size; in icacrt_msg_to_type6crt_msgx()
334 static int xcrb_msg_to_type6cprb_msgx(bool userspace, struct ap_message *ap_msg, in xcrb_msg_to_type6cprb_msgx() argument
349 } __packed * msg = ap_msg->msg; in xcrb_msg_to_type6cprb_msgx()
353 char *req_data = ap_msg->msg + sizeof(struct type6_hdr) + rcblen; in xcrb_msg_to_type6cprb_msgx()
361 ap_msg->len = sizeof(struct type6_hdr) + in xcrb_msg_to_type6cprb_msgx()
[all …]
Dzcrypt_msgtype50.c199 struct ap_message *ap_msg, in ICAMEX_msg_to_type50MEX_msg() argument
208 struct type50_meb1_msg *meb1 = ap_msg->msg; in ICAMEX_msg_to_type50MEX_msg()
211 ap_msg->len = sizeof(*meb1); in ICAMEX_msg_to_type50MEX_msg()
219 struct type50_meb2_msg *meb2 = ap_msg->msg; in ICAMEX_msg_to_type50MEX_msg()
222 ap_msg->len = sizeof(*meb2); in ICAMEX_msg_to_type50MEX_msg()
230 struct type50_meb3_msg *meb3 = ap_msg->msg; in ICAMEX_msg_to_type50MEX_msg()
233 ap_msg->len = sizeof(*meb3); in ICAMEX_msg_to_type50MEX_msg()
250 if (ap_msg->fi.flags & AP_FI_FLAG_TOGGLE_SPECIAL) in ICAMEX_msg_to_type50MEX_msg()
251 ap_msg->flags ^= AP_MSG_FLAG_SPECIAL; in ICAMEX_msg_to_type50MEX_msg()
267 struct ap_message *ap_msg, in ICACRT_msg_to_type50CRT_msg() argument
[all …]
Dap_queue.c137 struct ap_message *ap_msg; in ap_sm_recv() local
165 list_for_each_entry(ap_msg, &aq->pendingq, list) { in ap_sm_recv()
166 if (ap_msg->psmid != aq->reply->psmid) in ap_sm_recv()
168 list_del_init(&ap_msg->list); in ap_sm_recv()
171 ap_msg->rc = -EMSGSIZE; in ap_sm_recv()
172 ap_msg->receive(aq, ap_msg, NULL); in ap_sm_recv()
174 ap_msg->receive(aq, ap_msg, aq->reply); in ap_sm_recv()
246 struct ap_message *ap_msg; in ap_sm_write() local
253 ap_msg = list_entry(aq->requestq.next, struct ap_message, list); in ap_sm_write()
255 if (ap_msg->fi.action == AP_FI_ACTION_NQAP_QID_INVAL) { in ap_sm_write()
[all …]
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,
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()
Dap_bus.h267 static inline void ap_init_message(struct ap_message *ap_msg) in ap_init_message() argument
269 memset(ap_msg, 0, sizeof(*ap_msg)); in ap_init_message()
277 static inline void ap_release_message(struct ap_message *ap_msg) in ap_release_message() argument
279 kfree_sensitive(ap_msg->msg); in ap_release_message()
280 kfree_sensitive(ap_msg->private); in ap_release_message()
294 int ap_queue_message(struct ap_queue *aq, struct ap_message *ap_msg);
295 void ap_cancel_message(struct ap_queue *aq, struct ap_message *ap_msg);
306 void ap_queue_init_reply(struct ap_queue *aq, struct ap_message *ap_msg);
Dzcrypt_cex2c.c183 struct ap_message ap_msg; in zcrypt_cex2c_rng_supported() local
202 ap_init_message(&ap_msg); in zcrypt_cex2c_rng_supported()
203 ap_msg.msg = (void *)get_zeroed_page(GFP_KERNEL); in zcrypt_cex2c_rng_supported()
204 if (!ap_msg.msg) in zcrypt_cex2c_rng_supported()
207 rng_type6cprb_msgx(&ap_msg, 4, &domain); in zcrypt_cex2c_rng_supported()
209 msg = ap_msg.msg; in zcrypt_cex2c_rng_supported()
212 rc = ap_send(aq->qid, 0x0102030405060708ULL, ap_msg.msg, ap_msg.len); in zcrypt_cex2c_rng_supported()
219 rc = ap_recv(aq->qid, &psmid, ap_msg.msg, 4096); in zcrypt_cex2c_rng_supported()
230 reply = ap_msg.msg; in zcrypt_cex2c_rng_supported()
236 free_page((unsigned long)ap_msg.msg); in zcrypt_cex2c_rng_supported()
Dzcrypt_api.c680 struct ap_message ap_msg; in zcrypt_rsa_modexpo() local
688 ap_init_message(&ap_msg); in zcrypt_rsa_modexpo()
692 ap_msg.fi.cmd = tr->fi.cmd; in zcrypt_rsa_modexpo()
767 rc = pref_zq->ops->rsa_modexpo(pref_zq, mex, &ap_msg); in zcrypt_rsa_modexpo()
774 ap_release_message(&ap_msg); in zcrypt_rsa_modexpo()
790 struct ap_message ap_msg; in zcrypt_rsa_crt() local
798 ap_init_message(&ap_msg); in zcrypt_rsa_crt()
802 ap_msg.fi.cmd = tr->fi.cmd; in zcrypt_rsa_crt()
877 rc = pref_zq->ops->rsa_modexpo_crt(pref_zq, crt, &ap_msg); in zcrypt_rsa_crt()
884 ap_release_message(&ap_msg); in zcrypt_rsa_crt()
[all …]