xcRB 800 drivers/s390/crypto/zcrypt_api.c struct ica_xcRB *xcRB) xcRB 811 drivers/s390/crypto/zcrypt_api.c trace_s390_zcrypt_req(xcRB, TB_ZSECSENDCPRB); xcRB 813 drivers/s390/crypto/zcrypt_api.c xcRB->status = 0; xcRB 815 drivers/s390/crypto/zcrypt_api.c rc = get_cprb_fc(xcRB, &ap_msg, &func_code, &domain); xcRB 838 drivers/s390/crypto/zcrypt_api.c if (xcRB->user_defined != AUTOSELECT && xcRB 839 drivers/s390/crypto/zcrypt_api.c xcRB->user_defined != zc->card->id) xcRB 880 drivers/s390/crypto/zcrypt_api.c rc = pref_zq->ops->send_cprb(pref_zq, xcRB, &ap_msg); xcRB 888 drivers/s390/crypto/zcrypt_api.c trace_s390_zcrypt_rep(xcRB, func_code, rc, xcRB 893 drivers/s390/crypto/zcrypt_api.c long zcrypt_send_cprb(struct ica_xcRB *xcRB) xcRB 895 drivers/s390/crypto/zcrypt_api.c return _zcrypt_send_cprb(&ap_perms, xcRB); xcRB 1345 drivers/s390/crypto/zcrypt_api.c struct ica_xcRB xcRB; xcRB 1347 drivers/s390/crypto/zcrypt_api.c if (copy_from_user(&xcRB, uxcRB, sizeof(xcRB))) xcRB 1350 drivers/s390/crypto/zcrypt_api.c rc = _zcrypt_send_cprb(perms, &xcRB); xcRB 1355 drivers/s390/crypto/zcrypt_api.c rc = _zcrypt_send_cprb(perms, &xcRB); xcRB 1359 drivers/s390/crypto/zcrypt_api.c rc, xcRB.status); xcRB 1360 drivers/s390/crypto/zcrypt_api.c if (copy_to_user(uxcRB, &xcRB, sizeof(xcRB))) xcRB 142 drivers/s390/crypto/zcrypt_api.h long zcrypt_send_cprb(struct ica_xcRB *xcRB); xcRB 392 drivers/s390/crypto/zcrypt_msgtype6.c struct ica_xcRB *xcRB, xcRB 405 drivers/s390/crypto/zcrypt_msgtype6.c int rcblen = CEIL4(xcRB->request_control_blk_length); xcRB 410 drivers/s390/crypto/zcrypt_msgtype6.c if (CEIL4(xcRB->request_control_blk_length) < xcRB 411 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->request_control_blk_length) xcRB 416 drivers/s390/crypto/zcrypt_msgtype6.c CEIL4(xcRB->request_control_blk_length) + xcRB 417 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->request_data_length; xcRB 425 drivers/s390/crypto/zcrypt_msgtype6.c req_sumlen = CEIL4(xcRB->request_control_blk_length) + xcRB 426 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->request_data_length; xcRB 427 drivers/s390/crypto/zcrypt_msgtype6.c if ((CEIL4(xcRB->request_control_blk_length) <= xcRB 428 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->request_data_length) ? xcRB 429 drivers/s390/crypto/zcrypt_msgtype6.c (req_sumlen < xcRB->request_data_length) : xcRB 430 drivers/s390/crypto/zcrypt_msgtype6.c (req_sumlen < CEIL4(xcRB->request_control_blk_length))) { xcRB 434 drivers/s390/crypto/zcrypt_msgtype6.c if (CEIL4(xcRB->reply_control_blk_length) < xcRB 435 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->reply_control_blk_length) xcRB 439 drivers/s390/crypto/zcrypt_msgtype6.c CEIL4(xcRB->reply_control_blk_length) + xcRB 440 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->reply_data_length; xcRB 448 drivers/s390/crypto/zcrypt_msgtype6.c resp_sumlen = CEIL4(xcRB->reply_control_blk_length) + xcRB 449 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->reply_data_length; xcRB 450 drivers/s390/crypto/zcrypt_msgtype6.c if ((CEIL4(xcRB->reply_control_blk_length) <= xcRB->reply_data_length) ? xcRB 451 drivers/s390/crypto/zcrypt_msgtype6.c (resp_sumlen < xcRB->reply_data_length) : xcRB 452 drivers/s390/crypto/zcrypt_msgtype6.c (resp_sumlen < CEIL4(xcRB->reply_control_blk_length))) { xcRB 458 drivers/s390/crypto/zcrypt_msgtype6.c memcpy(msg->hdr.agent_id, &(xcRB->agent_ID), sizeof(xcRB->agent_ID)); xcRB 459 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.ToCardLen1 = xcRB->request_control_blk_length; xcRB 460 drivers/s390/crypto/zcrypt_msgtype6.c if (xcRB->request_data_length) { xcRB 462 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.ToCardLen2 = xcRB->request_data_length; xcRB 464 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.FromCardLen1 = xcRB->reply_control_blk_length; xcRB 465 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.FromCardLen2 = xcRB->reply_data_length; xcRB 468 drivers/s390/crypto/zcrypt_msgtype6.c if (copy_from_user(&(msg->cprbx), xcRB->request_control_blk_addr, xcRB 469 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->request_control_blk_length)) xcRB 472 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->request_control_blk_length) xcRB 488 drivers/s390/crypto/zcrypt_msgtype6.c if (xcRB->request_data_length && xcRB 489 drivers/s390/crypto/zcrypt_msgtype6.c copy_from_user(req_data, xcRB->request_data_address, xcRB 490 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->request_data_length)) xcRB 497 drivers/s390/crypto/zcrypt_msgtype6.c struct ep11_urb *xcRB, xcRB 526 drivers/s390/crypto/zcrypt_msgtype6.c if (CEIL4(xcRB->req_len) < xcRB->req_len) xcRB 530 drivers/s390/crypto/zcrypt_msgtype6.c ap_msg->length = sizeof(struct type6_hdr) + xcRB->req_len; xcRB 531 drivers/s390/crypto/zcrypt_msgtype6.c if (CEIL4(xcRB->req_len) > MSGTYPE06_MAX_MSG_SIZE - xcRB 535 drivers/s390/crypto/zcrypt_msgtype6.c if (CEIL4(xcRB->resp_len) < xcRB->resp_len) xcRB 538 drivers/s390/crypto/zcrypt_msgtype6.c if (CEIL4(xcRB->resp_len) > MSGTYPE06_MAX_MSG_SIZE - xcRB 544 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.ToCardLen1 = xcRB->req_len; xcRB 545 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.FromCardLen1 = xcRB->resp_len; xcRB 549 drivers/s390/crypto/zcrypt_msgtype6.c (char __force __user *)xcRB->req, xcRB->req_len)) { xcRB 714 drivers/s390/crypto/zcrypt_msgtype6.c struct ica_xcRB *xcRB) xcRB 720 drivers/s390/crypto/zcrypt_msgtype6.c if (copy_to_user(xcRB->reply_control_blk_addr, xcRB 723 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->reply_control_blk_length = msg->fmt2.count1; xcRB 727 drivers/s390/crypto/zcrypt_msgtype6.c if (copy_to_user(xcRB->reply_data_addr, xcRB 730 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->reply_data_length = msg->fmt2.count2; xcRB 745 drivers/s390/crypto/zcrypt_msgtype6.c struct ep11_urb *xcRB) xcRB 750 drivers/s390/crypto/zcrypt_msgtype6.c if (xcRB->resp_len < msg->fmt2.count1) xcRB 754 drivers/s390/crypto/zcrypt_msgtype6.c if (copy_to_user((char __force __user *)xcRB->resp, xcRB 757 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->resp_len = msg->fmt2.count1; xcRB 821 drivers/s390/crypto/zcrypt_msgtype6.c struct ica_xcRB *xcRB) xcRB 828 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->status = 0x0008044DL; /* HDD_InvalidParm */ xcRB 832 drivers/s390/crypto/zcrypt_msgtype6.c memcpy(&(xcRB->status), msg->fmt2.apfs, sizeof(u32)); xcRB 836 drivers/s390/crypto/zcrypt_msgtype6.c return convert_type86_xcrb(zq, reply, xcRB); xcRB 839 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->status = 0x0008044DL; /* HDD_InvalidParm */ xcRB 854 drivers/s390/crypto/zcrypt_msgtype6.c struct ap_message *reply, struct ep11_urb *xcRB) xcRB 866 drivers/s390/crypto/zcrypt_msgtype6.c return convert_type86_ep11_xcrb(zq, reply, xcRB); xcRB 1102 drivers/s390/crypto/zcrypt_msgtype6.c unsigned int get_cprb_fc(struct ica_xcRB *xcRB, xcRB 1119 drivers/s390/crypto/zcrypt_msgtype6.c return XCRB_msg_to_type6CPRB_msgX(ap_msg, xcRB, func_code, dom); xcRB 1130 drivers/s390/crypto/zcrypt_msgtype6.c struct ica_xcRB *xcRB, xcRB 1142 drivers/s390/crypto/zcrypt_msgtype6.c rc = convert_response_xcrb(zq, ap_msg, xcRB);