Lines Matching refs:ap_msg
155 struct ap_message *ap_msg, in ICAMEX_msg_to_type6MEX_msg() argument
176 } __attribute__((packed)) *msg = ap_msg->message; in ICAMEX_msg_to_type6MEX_msg()
228 ap_msg->length = (size + 3) & -4; in ICAMEX_msg_to_type6MEX_msg()
242 struct ap_message *ap_msg, in ICACRT_msg_to_type6CRT_msg() argument
263 } __attribute__((packed)) *msg = ap_msg->message; in ICACRT_msg_to_type6CRT_msg()
292 ap_msg->length = (size + 3) & -4; in ICACRT_msg_to_type6CRT_msg()
492 struct ap_message ap_msg; in zcrypt_pcicc_modexpo() local
496 ap_init_message(&ap_msg); in zcrypt_pcicc_modexpo()
497 ap_msg.message = (void *) get_zeroed_page(GFP_KERNEL); in zcrypt_pcicc_modexpo()
498 if (!ap_msg.message) in zcrypt_pcicc_modexpo()
500 ap_msg.receive = zcrypt_pcicc_receive; in zcrypt_pcicc_modexpo()
501 ap_msg.length = PAGE_SIZE; in zcrypt_pcicc_modexpo()
502 ap_msg.psmid = (((unsigned long long) current->pid) << 32) + in zcrypt_pcicc_modexpo()
504 ap_msg.private = &work; in zcrypt_pcicc_modexpo()
505 rc = ICAMEX_msg_to_type6MEX_msg(zdev, &ap_msg, mex); in zcrypt_pcicc_modexpo()
509 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcicc_modexpo()
512 rc = convert_response(zdev, &ap_msg, mex->outputdata, in zcrypt_pcicc_modexpo()
516 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_pcicc_modexpo()
518 free_page((unsigned long) ap_msg.message); in zcrypt_pcicc_modexpo()
532 struct ap_message ap_msg; in zcrypt_pcicc_modexpo_crt() local
536 ap_init_message(&ap_msg); in zcrypt_pcicc_modexpo_crt()
537 ap_msg.message = (void *) get_zeroed_page(GFP_KERNEL); in zcrypt_pcicc_modexpo_crt()
538 if (!ap_msg.message) in zcrypt_pcicc_modexpo_crt()
540 ap_msg.receive = zcrypt_pcicc_receive; in zcrypt_pcicc_modexpo_crt()
541 ap_msg.length = PAGE_SIZE; in zcrypt_pcicc_modexpo_crt()
542 ap_msg.psmid = (((unsigned long long) current->pid) << 32) + in zcrypt_pcicc_modexpo_crt()
544 ap_msg.private = &work; in zcrypt_pcicc_modexpo_crt()
545 rc = ICACRT_msg_to_type6CRT_msg(zdev, &ap_msg, crt); in zcrypt_pcicc_modexpo_crt()
549 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcicc_modexpo_crt()
552 rc = convert_response(zdev, &ap_msg, crt->outputdata, in zcrypt_pcicc_modexpo_crt()
556 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_pcicc_modexpo_crt()
558 free_page((unsigned long) ap_msg.message); in zcrypt_pcicc_modexpo_crt()