ap_msg 213 drivers/s390/crypto/ap_bus.h static inline void ap_init_message(struct ap_message *ap_msg) ap_msg 215 drivers/s390/crypto/ap_bus.h memset(ap_msg, 0, sizeof(*ap_msg)); ap_msg 223 drivers/s390/crypto/ap_bus.h static inline void ap_release_message(struct ap_message *ap_msg) ap_msg 225 drivers/s390/crypto/ap_bus.h kzfree(ap_msg->message); ap_msg 226 drivers/s390/crypto/ap_bus.h kzfree(ap_msg->private); ap_msg 137 drivers/s390/crypto/ap_queue.c struct ap_message *ap_msg; ap_msg 147 drivers/s390/crypto/ap_queue.c list_for_each_entry(ap_msg, &aq->pendingq, list) { ap_msg 148 drivers/s390/crypto/ap_queue.c if (ap_msg->psmid != aq->reply->psmid) ap_msg 150 drivers/s390/crypto/ap_queue.c list_del_init(&ap_msg->list); ap_msg 152 drivers/s390/crypto/ap_queue.c ap_msg->receive(aq, ap_msg, aq->reply); ap_msg 237 drivers/s390/crypto/ap_queue.c struct ap_message *ap_msg; ap_msg 242 drivers/s390/crypto/ap_queue.c ap_msg = list_entry(aq->requestq.next, struct ap_message, list); ap_msg 243 drivers/s390/crypto/ap_queue.c status = __ap_send(aq->qid, ap_msg->psmid, ap_msg 244 drivers/s390/crypto/ap_queue.c ap_msg->message, ap_msg->length, ap_msg->special); ap_msg 250 drivers/s390/crypto/ap_queue.c list_move_tail(&ap_msg->list, &aq->pendingq); ap_msg 266 drivers/s390/crypto/ap_queue.c list_del_init(&ap_msg->list); ap_msg 268 drivers/s390/crypto/ap_queue.c ap_msg->rc = -EINVAL; ap_msg 269 drivers/s390/crypto/ap_queue.c ap_msg->receive(aq, ap_msg, NULL); ap_msg 667 drivers/s390/crypto/ap_queue.c void ap_queue_message(struct ap_queue *aq, struct ap_message *ap_msg) ap_msg 672 drivers/s390/crypto/ap_queue.c BUG_ON(!ap_msg->receive); ap_msg 676 drivers/s390/crypto/ap_queue.c list_add_tail(&ap_msg->list, &aq->requestq); ap_msg 696 drivers/s390/crypto/ap_queue.c void ap_cancel_message(struct ap_queue *aq, struct ap_message *ap_msg) ap_msg 701 drivers/s390/crypto/ap_queue.c if (!list_empty(&ap_msg->list)) { ap_msg 703 drivers/s390/crypto/ap_queue.c if (tmp->psmid == ap_msg->psmid) { ap_msg 709 drivers/s390/crypto/ap_queue.c list_del_init(&ap_msg->list); ap_msg 723 drivers/s390/crypto/ap_queue.c struct ap_message *ap_msg, *next; ap_msg 725 drivers/s390/crypto/ap_queue.c list_for_each_entry_safe(ap_msg, next, &aq->pendingq, list) { ap_msg 726 drivers/s390/crypto/ap_queue.c list_del_init(&ap_msg->list); ap_msg 728 drivers/s390/crypto/ap_queue.c ap_msg->rc = -EAGAIN; ap_msg 729 drivers/s390/crypto/ap_queue.c ap_msg->receive(aq, ap_msg, NULL); ap_msg 731 drivers/s390/crypto/ap_queue.c list_for_each_entry_safe(ap_msg, next, &aq->requestq, list) { ap_msg 732 drivers/s390/crypto/ap_queue.c list_del_init(&ap_msg->list); ap_msg 734 drivers/s390/crypto/ap_queue.c ap_msg->rc = -EAGAIN; ap_msg 735 drivers/s390/crypto/ap_queue.c ap_msg->receive(aq, ap_msg, NULL); ap_msg 804 drivers/s390/crypto/zcrypt_api.c struct ap_message ap_msg; ap_msg 814 drivers/s390/crypto/zcrypt_api.c ap_init_message(&ap_msg); ap_msg 815 drivers/s390/crypto/zcrypt_api.c rc = get_cprb_fc(xcRB, &ap_msg, &func_code, &domain); ap_msg 880 drivers/s390/crypto/zcrypt_api.c rc = pref_zq->ops->send_cprb(pref_zq, xcRB, &ap_msg); ap_msg 887 drivers/s390/crypto/zcrypt_api.c ap_release_message(&ap_msg); ap_msg 932 drivers/s390/crypto/zcrypt_api.c struct ap_message ap_msg; ap_msg 938 drivers/s390/crypto/zcrypt_api.c ap_init_message(&ap_msg); ap_msg 963 drivers/s390/crypto/zcrypt_api.c rc = get_ep11cprb_fc(xcrb, &ap_msg, &func_code); ap_msg 1014 drivers/s390/crypto/zcrypt_api.c rc = pref_zq->ops->send_ep11_cprb(pref_zq, xcrb, &ap_msg); ap_msg 1023 drivers/s390/crypto/zcrypt_api.c ap_release_message(&ap_msg); ap_msg 1035 drivers/s390/crypto/zcrypt_api.c struct ap_message ap_msg; ap_msg 1042 drivers/s390/crypto/zcrypt_api.c ap_init_message(&ap_msg); ap_msg 1043 drivers/s390/crypto/zcrypt_api.c rc = get_rng_fc(&ap_msg, &func_code, &domain); ap_msg 1079 drivers/s390/crypto/zcrypt_api.c rc = pref_zq->ops->rng(pref_zq, buffer, &ap_msg); ap_msg 1086 drivers/s390/crypto/zcrypt_api.c ap_release_message(&ap_msg); ap_msg 70 drivers/s390/crypto/zcrypt_cex2c.c struct ap_message ap_msg; ap_msg 89 drivers/s390/crypto/zcrypt_cex2c.c ap_init_message(&ap_msg); ap_msg 90 drivers/s390/crypto/zcrypt_cex2c.c ap_msg.message = (void *) get_zeroed_page(GFP_KERNEL); ap_msg 91 drivers/s390/crypto/zcrypt_cex2c.c if (!ap_msg.message) ap_msg 94 drivers/s390/crypto/zcrypt_cex2c.c rng_type6CPRB_msgX(&ap_msg, 4, &domain); ap_msg 96 drivers/s390/crypto/zcrypt_cex2c.c msg = ap_msg.message; ap_msg 99 drivers/s390/crypto/zcrypt_cex2c.c rc = ap_send(aq->qid, 0x0102030405060708ULL, ap_msg.message, ap_msg 100 drivers/s390/crypto/zcrypt_cex2c.c ap_msg.length); ap_msg 107 drivers/s390/crypto/zcrypt_cex2c.c rc = ap_recv(aq->qid, &psmid, ap_msg.message, 4096); ap_msg 118 drivers/s390/crypto/zcrypt_cex2c.c reply = ap_msg.message; ap_msg 124 drivers/s390/crypto/zcrypt_cex2c.c free_page((unsigned long) ap_msg.message); ap_msg 201 drivers/s390/crypto/zcrypt_msgtype50.c struct ap_message *ap_msg, ap_msg 210 drivers/s390/crypto/zcrypt_msgtype50.c struct type50_meb1_msg *meb1 = ap_msg->message; ap_msg 213 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg->length = sizeof(*meb1); ap_msg 221 drivers/s390/crypto/zcrypt_msgtype50.c struct type50_meb2_msg *meb2 = ap_msg->message; ap_msg 224 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg->length = sizeof(*meb2); ap_msg 232 drivers/s390/crypto/zcrypt_msgtype50.c struct type50_meb3_msg *meb3 = ap_msg->message; ap_msg 235 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg->length = sizeof(*meb3); ap_msg 262 drivers/s390/crypto/zcrypt_msgtype50.c struct ap_message *ap_msg, ap_msg 278 drivers/s390/crypto/zcrypt_msgtype50.c struct type50_crb1_msg *crb1 = ap_msg->message; ap_msg 281 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg->length = sizeof(*crb1); ap_msg 292 drivers/s390/crypto/zcrypt_msgtype50.c struct type50_crb2_msg *crb2 = ap_msg->message; ap_msg 295 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg->length = sizeof(*crb2); ap_msg 307 drivers/s390/crypto/zcrypt_msgtype50.c struct type50_crb3_msg *crb3 = ap_msg->message; ap_msg 310 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg->length = sizeof(*crb3); ap_msg 457 drivers/s390/crypto/zcrypt_msgtype50.c struct ap_message ap_msg; ap_msg 461 drivers/s390/crypto/zcrypt_msgtype50.c ap_init_message(&ap_msg); ap_msg 463 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg.message = kmalloc(MSGTYPE50_CRB2_MAX_MSG_SIZE, ap_msg 466 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg.message = kmalloc(MSGTYPE50_CRB3_MAX_MSG_SIZE, ap_msg 468 drivers/s390/crypto/zcrypt_msgtype50.c if (!ap_msg.message) ap_msg 470 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg.receive = zcrypt_cex2a_receive; ap_msg 471 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg.psmid = (((unsigned long long) current->pid) << 32) + ap_msg 473 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg.private = &work; ap_msg 474 drivers/s390/crypto/zcrypt_msgtype50.c rc = ICAMEX_msg_to_type50MEX_msg(zq, &ap_msg, mex); ap_msg 478 drivers/s390/crypto/zcrypt_msgtype50.c ap_queue_message(zq->queue, &ap_msg); ap_msg 481 drivers/s390/crypto/zcrypt_msgtype50.c rc = ap_msg.rc; ap_msg 483 drivers/s390/crypto/zcrypt_msgtype50.c rc = convert_response(zq, &ap_msg, mex->outputdata, ap_msg 487 drivers/s390/crypto/zcrypt_msgtype50.c ap_cancel_message(zq->queue, &ap_msg); ap_msg 489 drivers/s390/crypto/zcrypt_msgtype50.c kfree(ap_msg.message); ap_msg 503 drivers/s390/crypto/zcrypt_msgtype50.c struct ap_message ap_msg; ap_msg 507 drivers/s390/crypto/zcrypt_msgtype50.c ap_init_message(&ap_msg); ap_msg 509 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg.message = kmalloc(MSGTYPE50_CRB2_MAX_MSG_SIZE, ap_msg 512 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg.message = kmalloc(MSGTYPE50_CRB3_MAX_MSG_SIZE, ap_msg 514 drivers/s390/crypto/zcrypt_msgtype50.c if (!ap_msg.message) ap_msg 516 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg.receive = zcrypt_cex2a_receive; ap_msg 517 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg.psmid = (((unsigned long long) current->pid) << 32) + ap_msg 519 drivers/s390/crypto/zcrypt_msgtype50.c ap_msg.private = &work; ap_msg 520 drivers/s390/crypto/zcrypt_msgtype50.c rc = ICACRT_msg_to_type50CRT_msg(zq, &ap_msg, crt); ap_msg 524 drivers/s390/crypto/zcrypt_msgtype50.c ap_queue_message(zq->queue, &ap_msg); ap_msg 527 drivers/s390/crypto/zcrypt_msgtype50.c rc = ap_msg.rc; ap_msg 529 drivers/s390/crypto/zcrypt_msgtype50.c rc = convert_response(zq, &ap_msg, crt->outputdata, ap_msg 533 drivers/s390/crypto/zcrypt_msgtype50.c ap_cancel_message(zq->queue, &ap_msg); ap_msg 535 drivers/s390/crypto/zcrypt_msgtype50.c kfree(ap_msg.message); ap_msg 249 drivers/s390/crypto/zcrypt_msgtype6.c struct ap_message *ap_msg, ap_msg 269 drivers/s390/crypto/zcrypt_msgtype6.c } __packed * msg = ap_msg->message; ap_msg 304 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->length = size; ap_msg 318 drivers/s390/crypto/zcrypt_msgtype6.c struct ap_message *ap_msg, ap_msg 339 drivers/s390/crypto/zcrypt_msgtype6.c } __packed * msg = ap_msg->message; ap_msg 373 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->length = size; ap_msg 391 drivers/s390/crypto/zcrypt_msgtype6.c static int XCRB_msg_to_type6CPRB_msgX(struct ap_message *ap_msg, ap_msg 403 drivers/s390/crypto/zcrypt_msgtype6.c } __packed * msg = ap_msg->message; ap_msg 407 drivers/s390/crypto/zcrypt_msgtype6.c char *req_data = ap_msg->message + sizeof(struct type6_hdr) + rcblen; ap_msg 415 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->length = sizeof(struct type6_hdr) + ap_msg 418 drivers/s390/crypto/zcrypt_msgtype6.c if (ap_msg->length > MSGTYPE06_MAX_MSG_SIZE) ap_msg 483 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->special = 1; ap_msg 485 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->special = 0; ap_msg 496 drivers/s390/crypto/zcrypt_msgtype6.c static int xcrb_msg_to_type6_ep11cprb_msgx(struct ap_message *ap_msg, ap_msg 515 drivers/s390/crypto/zcrypt_msgtype6.c } __packed * msg = ap_msg->message; ap_msg 530 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->length = sizeof(struct type6_hdr) + xcRB->req_len; ap_msg 572 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->special = 1; ap_msg 1016 drivers/s390/crypto/zcrypt_msgtype6.c struct ap_message ap_msg; ap_msg 1022 drivers/s390/crypto/zcrypt_msgtype6.c ap_init_message(&ap_msg); ap_msg 1023 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg.message = (void *) get_zeroed_page(GFP_KERNEL); ap_msg 1024 drivers/s390/crypto/zcrypt_msgtype6.c if (!ap_msg.message) ap_msg 1026 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg.receive = zcrypt_msgtype6_receive; ap_msg 1027 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg.psmid = (((unsigned long long) current->pid) << 32) + ap_msg 1029 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg.private = &resp_type; ap_msg 1030 drivers/s390/crypto/zcrypt_msgtype6.c rc = ICAMEX_msg_to_type6MEX_msgX(zq, &ap_msg, mex); ap_msg 1034 drivers/s390/crypto/zcrypt_msgtype6.c ap_queue_message(zq->queue, &ap_msg); ap_msg 1037 drivers/s390/crypto/zcrypt_msgtype6.c rc = ap_msg.rc; ap_msg 1039 drivers/s390/crypto/zcrypt_msgtype6.c rc = convert_response_ica(zq, &ap_msg, ap_msg 1044 drivers/s390/crypto/zcrypt_msgtype6.c ap_cancel_message(zq->queue, &ap_msg); ap_msg 1046 drivers/s390/crypto/zcrypt_msgtype6.c free_page((unsigned long) ap_msg.message); ap_msg 1060 drivers/s390/crypto/zcrypt_msgtype6.c struct ap_message ap_msg; ap_msg 1066 drivers/s390/crypto/zcrypt_msgtype6.c ap_init_message(&ap_msg); ap_msg 1067 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg.message = (void *) get_zeroed_page(GFP_KERNEL); ap_msg 1068 drivers/s390/crypto/zcrypt_msgtype6.c if (!ap_msg.message) ap_msg 1070 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg.receive = zcrypt_msgtype6_receive; ap_msg 1071 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg.psmid = (((unsigned long long) current->pid) << 32) + ap_msg 1073 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg.private = &resp_type; ap_msg 1074 drivers/s390/crypto/zcrypt_msgtype6.c rc = ICACRT_msg_to_type6CRT_msgX(zq, &ap_msg, crt); ap_msg 1078 drivers/s390/crypto/zcrypt_msgtype6.c ap_queue_message(zq->queue, &ap_msg); ap_msg 1081 drivers/s390/crypto/zcrypt_msgtype6.c rc = ap_msg.rc; ap_msg 1083 drivers/s390/crypto/zcrypt_msgtype6.c rc = convert_response_ica(zq, &ap_msg, ap_msg 1088 drivers/s390/crypto/zcrypt_msgtype6.c ap_cancel_message(zq->queue, &ap_msg); ap_msg 1091 drivers/s390/crypto/zcrypt_msgtype6.c free_page((unsigned long) ap_msg.message); ap_msg 1103 drivers/s390/crypto/zcrypt_msgtype6.c struct ap_message *ap_msg, ap_msg 1110 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->message = kmalloc(MSGTYPE06_MAX_MSG_SIZE, GFP_KERNEL); ap_msg 1111 drivers/s390/crypto/zcrypt_msgtype6.c if (!ap_msg->message) ap_msg 1113 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->receive = zcrypt_msgtype6_receive; ap_msg 1114 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->psmid = (((unsigned long long) current->pid) << 32) + ap_msg 1116 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->private = kmemdup(&resp_type, sizeof(resp_type), GFP_KERNEL); ap_msg 1117 drivers/s390/crypto/zcrypt_msgtype6.c if (!ap_msg->private) ap_msg 1119 drivers/s390/crypto/zcrypt_msgtype6.c return XCRB_msg_to_type6CPRB_msgX(ap_msg, xcRB, func_code, dom); ap_msg 1131 drivers/s390/crypto/zcrypt_msgtype6.c struct ap_message *ap_msg) ap_msg 1134 drivers/s390/crypto/zcrypt_msgtype6.c struct response_type *rtype = (struct response_type *)(ap_msg->private); ap_msg 1137 drivers/s390/crypto/zcrypt_msgtype6.c ap_queue_message(zq->queue, ap_msg); ap_msg 1140 drivers/s390/crypto/zcrypt_msgtype6.c rc = ap_msg->rc; ap_msg 1142 drivers/s390/crypto/zcrypt_msgtype6.c rc = convert_response_xcrb(zq, ap_msg, xcRB); ap_msg 1145 drivers/s390/crypto/zcrypt_msgtype6.c ap_cancel_message(zq->queue, ap_msg); ap_msg 1158 drivers/s390/crypto/zcrypt_msgtype6.c struct ap_message *ap_msg, ap_msg 1165 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->message = kmalloc(MSGTYPE06_MAX_MSG_SIZE, GFP_KERNEL); ap_msg 1166 drivers/s390/crypto/zcrypt_msgtype6.c if (!ap_msg->message) ap_msg 1168 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->receive = zcrypt_msgtype6_receive_ep11; ap_msg 1169 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->psmid = (((unsigned long long) current->pid) << 32) + ap_msg 1171 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->private = kmemdup(&resp_type, sizeof(resp_type), GFP_KERNEL); ap_msg 1172 drivers/s390/crypto/zcrypt_msgtype6.c if (!ap_msg->private) ap_msg 1174 drivers/s390/crypto/zcrypt_msgtype6.c return xcrb_msg_to_type6_ep11cprb_msgx(ap_msg, xcrb, func_code); ap_msg 1186 drivers/s390/crypto/zcrypt_msgtype6.c struct ap_message *ap_msg) ap_msg 1190 drivers/s390/crypto/zcrypt_msgtype6.c struct response_type *rtype = (struct response_type *)(ap_msg->private); ap_msg 1196 drivers/s390/crypto/zcrypt_msgtype6.c } __packed * msg = ap_msg->message; ap_msg 1239 drivers/s390/crypto/zcrypt_msgtype6.c ap_queue_message(zq->queue, ap_msg); ap_msg 1242 drivers/s390/crypto/zcrypt_msgtype6.c rc = ap_msg->rc; ap_msg 1244 drivers/s390/crypto/zcrypt_msgtype6.c rc = convert_response_ep11_xcrb(zq, ap_msg, xcrb); ap_msg 1247 drivers/s390/crypto/zcrypt_msgtype6.c ap_cancel_message(zq->queue, ap_msg); ap_msg 1252 drivers/s390/crypto/zcrypt_msgtype6.c unsigned int get_rng_fc(struct ap_message *ap_msg, int *func_code, ap_msg 1259 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->message = kmalloc(MSGTYPE06_MAX_MSG_SIZE, GFP_KERNEL); ap_msg 1260 drivers/s390/crypto/zcrypt_msgtype6.c if (!ap_msg->message) ap_msg 1262 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->receive = zcrypt_msgtype6_receive; ap_msg 1263 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->psmid = (((unsigned long long) current->pid) << 32) + ap_msg 1265 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->private = kmemdup(&resp_type, sizeof(resp_type), GFP_KERNEL); ap_msg 1266 drivers/s390/crypto/zcrypt_msgtype6.c if (!ap_msg->private) ap_msg 1269 drivers/s390/crypto/zcrypt_msgtype6.c rng_type6CPRB_msgX(ap_msg, ZCRYPT_RNG_BUFFER_SIZE, domain); ap_msg 1283 drivers/s390/crypto/zcrypt_msgtype6.c char *buffer, struct ap_message *ap_msg) ap_msg 1293 drivers/s390/crypto/zcrypt_msgtype6.c } __packed * msg = ap_msg->message; ap_msg 1294 drivers/s390/crypto/zcrypt_msgtype6.c struct response_type *rtype = (struct response_type *)(ap_msg->private); ap_msg 1300 drivers/s390/crypto/zcrypt_msgtype6.c ap_queue_message(zq->queue, ap_msg); ap_msg 1303 drivers/s390/crypto/zcrypt_msgtype6.c rc = ap_msg->rc; ap_msg 1305 drivers/s390/crypto/zcrypt_msgtype6.c rc = convert_response_rng(zq, ap_msg, buffer); ap_msg 1308 drivers/s390/crypto/zcrypt_msgtype6.c ap_cancel_message(zq->queue, ap_msg); ap_msg 118 drivers/s390/crypto/zcrypt_msgtype6.h static inline void rng_type6CPRB_msgX(struct ap_message *ap_msg, ap_msg 130 drivers/s390/crypto/zcrypt_msgtype6.h } __packed * msg = ap_msg->message; ap_msg 157 drivers/s390/crypto/zcrypt_msgtype6.h ap_msg->length = sizeof(*msg);