Lines Matching refs:ap_msg

85 				      struct ap_message *ap_msg,  in ICAMEX_msg_to_type4MEX_msg()  argument
94 struct type4_sme *sme = ap_msg->message; in ICAMEX_msg_to_type4MEX_msg()
96 ap_msg->length = sizeof(*sme); in ICAMEX_msg_to_type4MEX_msg()
105 struct type4_lme *lme = ap_msg->message; in ICAMEX_msg_to_type4MEX_msg()
107 ap_msg->length = sizeof(*lme); in ICAMEX_msg_to_type4MEX_msg()
134 struct ap_message *ap_msg, in ICACRT_msg_to_type4CRT_msg() argument
145 struct type4_scr *scr = ap_msg->message; in ICACRT_msg_to_type4CRT_msg()
147 ap_msg->length = sizeof(*scr); in ICACRT_msg_to_type4CRT_msg()
159 struct type4_lcr *lcr = ap_msg->message; in ICACRT_msg_to_type4CRT_msg()
161 ap_msg->length = sizeof(*lcr); in ICACRT_msg_to_type4CRT_msg()
287 struct ap_message ap_msg; in zcrypt_pcica_modexpo() local
291 ap_init_message(&ap_msg); in zcrypt_pcica_modexpo()
292 ap_msg.message = kmalloc(PCICA_MAX_MESSAGE_SIZE, GFP_KERNEL); in zcrypt_pcica_modexpo()
293 if (!ap_msg.message) in zcrypt_pcica_modexpo()
295 ap_msg.receive = zcrypt_pcica_receive; in zcrypt_pcica_modexpo()
296 ap_msg.psmid = (((unsigned long long) current->pid) << 32) + in zcrypt_pcica_modexpo()
298 ap_msg.private = &work; in zcrypt_pcica_modexpo()
299 rc = ICAMEX_msg_to_type4MEX_msg(zdev, &ap_msg, mex); in zcrypt_pcica_modexpo()
303 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcica_modexpo()
306 rc = convert_response(zdev, &ap_msg, mex->outputdata, in zcrypt_pcica_modexpo()
310 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_pcica_modexpo()
312 kfree(ap_msg.message); in zcrypt_pcica_modexpo()
326 struct ap_message ap_msg; in zcrypt_pcica_modexpo_crt() local
330 ap_init_message(&ap_msg); in zcrypt_pcica_modexpo_crt()
331 ap_msg.message = kmalloc(PCICA_MAX_MESSAGE_SIZE, GFP_KERNEL); in zcrypt_pcica_modexpo_crt()
332 if (!ap_msg.message) in zcrypt_pcica_modexpo_crt()
334 ap_msg.receive = zcrypt_pcica_receive; in zcrypt_pcica_modexpo_crt()
335 ap_msg.psmid = (((unsigned long long) current->pid) << 32) + in zcrypt_pcica_modexpo_crt()
337 ap_msg.private = &work; in zcrypt_pcica_modexpo_crt()
338 rc = ICACRT_msg_to_type4CRT_msg(zdev, &ap_msg, crt); in zcrypt_pcica_modexpo_crt()
342 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcica_modexpo_crt()
345 rc = convert_response(zdev, &ap_msg, crt->outputdata, in zcrypt_pcica_modexpo_crt()
349 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_pcica_modexpo_crt()
351 kfree(ap_msg.message); in zcrypt_pcica_modexpo_crt()