zq 573 drivers/memory/emif.c u32 zq = 0, val = 0; zq 576 drivers/memory/emif.c zq |= val << ZQ_REFINTERVAL_SHIFT; zq 579 drivers/memory/emif.c zq |= val << ZQ_ZQCL_MULT_SHIFT; zq 582 drivers/memory/emif.c zq |= val << ZQ_ZQINIT_MULT_SHIFT; zq 584 drivers/memory/emif.c zq |= ZQ_SFEXITEN_ENABLE << ZQ_SFEXITEN_SHIFT; zq 587 drivers/memory/emif.c zq |= ZQ_DUALCALEN_ENABLE << ZQ_DUALCALEN_SHIFT; zq 589 drivers/memory/emif.c zq |= ZQ_DUALCALEN_DISABLE << ZQ_DUALCALEN_SHIFT; zq 591 drivers/memory/emif.c zq |= ZQ_CS0EN_MASK; /* CS0 is used for sure */ zq 594 drivers/memory/emif.c zq |= val << ZQ_CS1EN_SHIFT; zq 596 drivers/memory/emif.c return zq; zq 1136 drivers/memory/emif.c u32 pwr_mgmt_ctrl, zq, temp_alert_cfg; zq 1155 drivers/memory/emif.c zq = get_zq_config_reg(addressing, device_info->cs1_used, zq 1157 drivers/memory/emif.c writel(zq, base + EMIF_SDRAM_OUTPUT_IMPEDANCE_CALIBRATION_CONFIG); zq 570 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq, zq 574 drivers/s390/crypto/zcrypt_api.c if (!zq || !try_module_get(zq->queue->ap_dev.drv->driver.owner)) zq 576 drivers/s390/crypto/zcrypt_api.c zcrypt_queue_get(zq); zq 577 drivers/s390/crypto/zcrypt_api.c get_device(&zq->queue->ap_dev.device); zq 579 drivers/s390/crypto/zcrypt_api.c atomic_add(weight, &zq->load); zq 580 drivers/s390/crypto/zcrypt_api.c zq->request_count++; zq 581 drivers/s390/crypto/zcrypt_api.c *pmod = zq->queue->ap_dev.drv->driver.owner; zq 582 drivers/s390/crypto/zcrypt_api.c return zq; zq 586 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq, zq 590 drivers/s390/crypto/zcrypt_api.c zq->request_count--; zq 592 drivers/s390/crypto/zcrypt_api.c atomic_sub(weight, &zq->load); zq 593 drivers/s390/crypto/zcrypt_api.c put_device(&zq->queue->ap_dev.device); zq 594 drivers/s390/crypto/zcrypt_api.c zcrypt_queue_put(zq); zq 613 drivers/s390/crypto/zcrypt_api.c static inline bool zcrypt_queue_compare(struct zcrypt_queue *zq, zq 620 drivers/s390/crypto/zcrypt_api.c weight += atomic_read(&zq->load); zq 623 drivers/s390/crypto/zcrypt_api.c return zq->queue->total_request_count > zq 635 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq, *pref_zq; zq 678 drivers/s390/crypto/zcrypt_api.c for_each_zcrypt_queue(zq, zc) { zq 680 drivers/s390/crypto/zcrypt_api.c if (!zq->online || !zq->ops->rsa_modexpo) zq 684 drivers/s390/crypto/zcrypt_api.c AP_QID_QUEUE(zq->queue->qid))) zq 686 drivers/s390/crypto/zcrypt_api.c if (zcrypt_queue_compare(zq, pref_zq, zq 690 drivers/s390/crypto/zcrypt_api.c pref_zq = zq; zq 719 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq, *pref_zq; zq 762 drivers/s390/crypto/zcrypt_api.c for_each_zcrypt_queue(zq, zc) { zq 764 drivers/s390/crypto/zcrypt_api.c if (!zq->online || !zq->ops->rsa_modexpo_crt) zq 768 drivers/s390/crypto/zcrypt_api.c AP_QID_QUEUE(zq->queue->qid))) zq 770 drivers/s390/crypto/zcrypt_api.c if (zcrypt_queue_compare(zq, pref_zq, zq 774 drivers/s390/crypto/zcrypt_api.c pref_zq = zq; zq 803 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq, *pref_zq; zq 848 drivers/s390/crypto/zcrypt_api.c for_each_zcrypt_queue(zq, zc) { zq 850 drivers/s390/crypto/zcrypt_api.c if (!zq->online || zq 851 drivers/s390/crypto/zcrypt_api.c !zq->ops->send_cprb || zq 853 drivers/s390/crypto/zcrypt_api.c tdom != AP_QID_QUEUE(zq->queue->qid))) zq 857 drivers/s390/crypto/zcrypt_api.c AP_QID_QUEUE(zq->queue->qid))) zq 859 drivers/s390/crypto/zcrypt_api.c if (zcrypt_queue_compare(zq, pref_zq, zq 863 drivers/s390/crypto/zcrypt_api.c pref_zq = zq; zq 927 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq, *pref_zq; zq 985 drivers/s390/crypto/zcrypt_api.c for_each_zcrypt_queue(zq, zc) { zq 987 drivers/s390/crypto/zcrypt_api.c if (!zq->online || zq 988 drivers/s390/crypto/zcrypt_api.c !zq->ops->send_ep11_cprb || zq 990 drivers/s390/crypto/zcrypt_api.c !is_desired_ep11_queue(zq->queue->qid, zq 995 drivers/s390/crypto/zcrypt_api.c AP_QID_QUEUE(zq->queue->qid))) zq 997 drivers/s390/crypto/zcrypt_api.c if (zcrypt_queue_compare(zq, pref_zq, zq 1001 drivers/s390/crypto/zcrypt_api.c pref_zq = zq; zq 1032 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq, *pref_zq; zq 1058 drivers/s390/crypto/zcrypt_api.c for_each_zcrypt_queue(zq, zc) { zq 1060 drivers/s390/crypto/zcrypt_api.c if (!zq->online || !zq->ops->rng) zq 1062 drivers/s390/crypto/zcrypt_api.c if (zcrypt_queue_compare(zq, pref_zq, zq 1066 drivers/s390/crypto/zcrypt_api.c pref_zq = zq; zq 1095 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq; zq 1104 drivers/s390/crypto/zcrypt_api.c for_each_zcrypt_queue(zq, zc) { zq 1105 drivers/s390/crypto/zcrypt_api.c card = AP_QID_CARD(zq->queue->qid); zq 1108 drivers/s390/crypto/zcrypt_api.c queue = AP_QID_QUEUE(zq->queue->qid); zq 1112 drivers/s390/crypto/zcrypt_api.c stat->qid = zq->queue->qid; zq 1113 drivers/s390/crypto/zcrypt_api.c stat->online = zq->online ? 0x01 : 0x00; zq 1122 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq; zq 1131 drivers/s390/crypto/zcrypt_api.c for_each_zcrypt_queue(zq, zc) { zq 1132 drivers/s390/crypto/zcrypt_api.c card = AP_QID_CARD(zq->queue->qid); zq 1133 drivers/s390/crypto/zcrypt_api.c queue = AP_QID_QUEUE(zq->queue->qid); zq 1137 drivers/s390/crypto/zcrypt_api.c stat->qid = zq->queue->qid; zq 1138 drivers/s390/crypto/zcrypt_api.c stat->online = zq->online ? 0x01 : 0x00; zq 1149 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq; zq 1155 drivers/s390/crypto/zcrypt_api.c for_each_zcrypt_queue(zq, zc) { zq 1156 drivers/s390/crypto/zcrypt_api.c if (card == AP_QID_CARD(zq->queue->qid) && zq 1157 drivers/s390/crypto/zcrypt_api.c queue == AP_QID_QUEUE(zq->queue->qid)) { zq 1160 drivers/s390/crypto/zcrypt_api.c devstat->qid = zq->queue->qid; zq 1161 drivers/s390/crypto/zcrypt_api.c devstat->online = zq->online ? 0x01 : 0x00; zq 1176 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq; zq 1182 drivers/s390/crypto/zcrypt_api.c for_each_zcrypt_queue(zq, zc) { zq 1183 drivers/s390/crypto/zcrypt_api.c card = AP_QID_CARD(zq->queue->qid); zq 1184 drivers/s390/crypto/zcrypt_api.c if (AP_QID_QUEUE(zq->queue->qid) != ap_domain_index zq 1196 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq; zq 1203 drivers/s390/crypto/zcrypt_api.c for_each_zcrypt_queue(zq, zc) { zq 1204 drivers/s390/crypto/zcrypt_api.c card = AP_QID_CARD(zq->queue->qid); zq 1205 drivers/s390/crypto/zcrypt_api.c if (AP_QID_QUEUE(zq->queue->qid) != ap_domain_index zq 1208 drivers/s390/crypto/zcrypt_api.c spin_lock(&zq->queue->lock); zq 1210 drivers/s390/crypto/zcrypt_api.c zq->queue->pendingq_count + zq 1211 drivers/s390/crypto/zcrypt_api.c zq->queue->requestq_count; zq 1212 drivers/s390/crypto/zcrypt_api.c spin_unlock(&zq->queue->lock); zq 1222 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq; zq 1230 drivers/s390/crypto/zcrypt_api.c for_each_zcrypt_queue(zq, zc) { zq 1231 drivers/s390/crypto/zcrypt_api.c card = AP_QID_CARD(zq->queue->qid); zq 1232 drivers/s390/crypto/zcrypt_api.c if (AP_QID_QUEUE(zq->queue->qid) != ap_domain_index zq 1235 drivers/s390/crypto/zcrypt_api.c spin_lock(&zq->queue->lock); zq 1236 drivers/s390/crypto/zcrypt_api.c cnt = zq->queue->total_request_count; zq 1237 drivers/s390/crypto/zcrypt_api.c spin_unlock(&zq->queue->lock); zq 1248 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq; zq 1255 drivers/s390/crypto/zcrypt_api.c for_each_zcrypt_queue(zq, zc) { zq 1256 drivers/s390/crypto/zcrypt_api.c if (AP_QID_QUEUE(zq->queue->qid) != ap_domain_index) zq 1258 drivers/s390/crypto/zcrypt_api.c spin_lock(&zq->queue->lock); zq 1259 drivers/s390/crypto/zcrypt_api.c pendingq_count += zq->queue->pendingq_count; zq 1260 drivers/s390/crypto/zcrypt_api.c spin_unlock(&zq->queue->lock); zq 1271 drivers/s390/crypto/zcrypt_api.c struct zcrypt_queue *zq; zq 1278 drivers/s390/crypto/zcrypt_api.c for_each_zcrypt_queue(zq, zc) { zq 1279 drivers/s390/crypto/zcrypt_api.c if (AP_QID_QUEUE(zq->queue->qid) != ap_domain_index) zq 1281 drivers/s390/crypto/zcrypt_api.c spin_lock(&zq->queue->lock); zq 1282 drivers/s390/crypto/zcrypt_api.c requestq_count += zq->queue->requestq_count; zq 1283 drivers/s390/crypto/zcrypt_api.c spin_unlock(&zq->queue->lock); zq 63 drivers/s390/crypto/zcrypt_card.c struct zcrypt_queue *zq; zq 75 drivers/s390/crypto/zcrypt_card.c list_for_each_entry(zq, &zc->zqueues, list) zq 76 drivers/s390/crypto/zcrypt_card.c zcrypt_queue_force_online(zq, online); zq 157 drivers/s390/crypto/zcrypt_cex2a.c struct zcrypt_queue *zq = NULL; zq 162 drivers/s390/crypto/zcrypt_cex2a.c zq = zcrypt_queue_alloc(CEX2A_MAX_RESPONSE_SIZE); zq 163 drivers/s390/crypto/zcrypt_cex2a.c if (!zq) zq 167 drivers/s390/crypto/zcrypt_cex2a.c zq = zcrypt_queue_alloc(CEX3A_MAX_RESPONSE_SIZE); zq 168 drivers/s390/crypto/zcrypt_cex2a.c if (!zq) zq 172 drivers/s390/crypto/zcrypt_cex2a.c if (!zq) zq 174 drivers/s390/crypto/zcrypt_cex2a.c zq->ops = zcrypt_msgtype(MSGTYPE50_NAME, MSGTYPE50_VARIANT_DEFAULT); zq 175 drivers/s390/crypto/zcrypt_cex2a.c zq->queue = aq; zq 176 drivers/s390/crypto/zcrypt_cex2a.c zq->online = 1; zq 177 drivers/s390/crypto/zcrypt_cex2a.c atomic_set(&zq->load, 0); zq 179 drivers/s390/crypto/zcrypt_cex2a.c ap_queue_init_reply(aq, &zq->reply); zq 181 drivers/s390/crypto/zcrypt_cex2a.c aq->private = zq; zq 182 drivers/s390/crypto/zcrypt_cex2a.c rc = zcrypt_queue_register(zq); zq 185 drivers/s390/crypto/zcrypt_cex2a.c zcrypt_queue_free(zq); zq 198 drivers/s390/crypto/zcrypt_cex2a.c struct zcrypt_queue *zq = aq->private; zq 200 drivers/s390/crypto/zcrypt_cex2a.c if (zq) zq 201 drivers/s390/crypto/zcrypt_cex2a.c zcrypt_queue_unregister(zq); zq 214 drivers/s390/crypto/zcrypt_cex2c.c struct zcrypt_queue *zq; zq 217 drivers/s390/crypto/zcrypt_cex2c.c zq = zcrypt_queue_alloc(CEX2C_MAX_XCRB_MESSAGE_SIZE); zq 218 drivers/s390/crypto/zcrypt_cex2c.c if (!zq) zq 220 drivers/s390/crypto/zcrypt_cex2c.c zq->queue = aq; zq 221 drivers/s390/crypto/zcrypt_cex2c.c zq->online = 1; zq 222 drivers/s390/crypto/zcrypt_cex2c.c atomic_set(&zq->load, 0); zq 226 drivers/s390/crypto/zcrypt_cex2c.c zcrypt_queue_free(zq); zq 230 drivers/s390/crypto/zcrypt_cex2c.c zq->ops = zcrypt_msgtype(MSGTYPE06_NAME, zq 233 drivers/s390/crypto/zcrypt_cex2c.c zq->ops = zcrypt_msgtype(MSGTYPE06_NAME, zq 236 drivers/s390/crypto/zcrypt_cex2c.c ap_queue_init_reply(aq, &zq->reply); zq 238 drivers/s390/crypto/zcrypt_cex2c.c aq->private = zq; zq 239 drivers/s390/crypto/zcrypt_cex2c.c rc = zcrypt_queue_register(zq); zq 242 drivers/s390/crypto/zcrypt_cex2c.c zcrypt_queue_free(zq); zq 254 drivers/s390/crypto/zcrypt_cex2c.c struct zcrypt_queue *zq = aq->private; zq 256 drivers/s390/crypto/zcrypt_cex2c.c if (zq) zq 257 drivers/s390/crypto/zcrypt_cex2c.c zcrypt_queue_unregister(zq); zq 111 drivers/s390/crypto/zcrypt_cex4.c struct zcrypt_queue *zq = to_ap_queue(dev)->private; zq 117 drivers/s390/crypto/zcrypt_cex4.c cca_get_info(AP_QID_CARD(zq->queue->qid), zq 118 drivers/s390/crypto/zcrypt_cex4.c AP_QID_QUEUE(zq->queue->qid), zq 119 drivers/s390/crypto/zcrypt_cex4.c &ci, zq->online); zq 356 drivers/s390/crypto/zcrypt_cex4.c struct zcrypt_queue *zq; zq 360 drivers/s390/crypto/zcrypt_cex4.c zq = zcrypt_queue_alloc(CEX4A_MAX_MESSAGE_SIZE); zq 361 drivers/s390/crypto/zcrypt_cex4.c if (!zq) zq 363 drivers/s390/crypto/zcrypt_cex4.c zq->ops = zcrypt_msgtype(MSGTYPE50_NAME, zq 366 drivers/s390/crypto/zcrypt_cex4.c zq = zcrypt_queue_alloc(CEX4C_MAX_MESSAGE_SIZE); zq 367 drivers/s390/crypto/zcrypt_cex4.c if (!zq) zq 369 drivers/s390/crypto/zcrypt_cex4.c zq->ops = zcrypt_msgtype(MSGTYPE06_NAME, zq 372 drivers/s390/crypto/zcrypt_cex4.c zq = zcrypt_queue_alloc(CEX4C_MAX_MESSAGE_SIZE); zq 373 drivers/s390/crypto/zcrypt_cex4.c if (!zq) zq 375 drivers/s390/crypto/zcrypt_cex4.c zq->ops = zcrypt_msgtype(MSGTYPE06_NAME, zq 381 drivers/s390/crypto/zcrypt_cex4.c zq->queue = aq; zq 382 drivers/s390/crypto/zcrypt_cex4.c zq->online = 1; zq 383 drivers/s390/crypto/zcrypt_cex4.c atomic_set(&zq->load, 0); zq 385 drivers/s390/crypto/zcrypt_cex4.c ap_queue_init_reply(aq, &zq->reply); zq 387 drivers/s390/crypto/zcrypt_cex4.c aq->private = zq; zq 388 drivers/s390/crypto/zcrypt_cex4.c rc = zcrypt_queue_register(zq); zq 391 drivers/s390/crypto/zcrypt_cex4.c zcrypt_queue_free(zq); zq 399 drivers/s390/crypto/zcrypt_cex4.c zcrypt_queue_unregister(zq); zq 413 drivers/s390/crypto/zcrypt_cex4.c struct zcrypt_queue *zq = aq->private; zq 417 drivers/s390/crypto/zcrypt_cex4.c if (zq) zq 418 drivers/s390/crypto/zcrypt_cex4.c zcrypt_queue_unregister(zq); zq 80 drivers/s390/crypto/zcrypt_error.h static inline int convert_error(struct zcrypt_queue *zq, zq 84 drivers/s390/crypto/zcrypt_error.h int card = AP_QID_CARD(zq->queue->qid); zq 85 drivers/s390/crypto/zcrypt_error.h int queue = AP_QID_QUEUE(zq->queue->qid); zq 112 drivers/s390/crypto/zcrypt_error.h zq->online = 0; zq 122 drivers/s390/crypto/zcrypt_error.h zq->online = 0; zq 145 drivers/s390/crypto/zcrypt_error.h zq->online = 0; zq 153 drivers/s390/crypto/zcrypt_error.h zq->online = 0; zq 200 drivers/s390/crypto/zcrypt_msgtype50.c static int ICAMEX_msg_to_type50MEX_msg(struct zcrypt_queue *zq, zq 261 drivers/s390/crypto/zcrypt_msgtype50.c static int ICACRT_msg_to_type50CRT_msg(struct zcrypt_queue *zq, zq 306 drivers/s390/crypto/zcrypt_msgtype50.c (zq->zcard->max_mod_size == CEX3A_MAX_MOD_SIZE)) { zq 348 drivers/s390/crypto/zcrypt_msgtype50.c static int convert_type80(struct zcrypt_queue *zq, zq 358 drivers/s390/crypto/zcrypt_msgtype50.c zq->online = 0; zq 360 drivers/s390/crypto/zcrypt_msgtype50.c AP_QID_CARD(zq->queue->qid), zq 361 drivers/s390/crypto/zcrypt_msgtype50.c AP_QID_QUEUE(zq->queue->qid)); zq 364 drivers/s390/crypto/zcrypt_msgtype50.c AP_QID_CARD(zq->queue->qid), zq 365 drivers/s390/crypto/zcrypt_msgtype50.c AP_QID_QUEUE(zq->queue->qid), zq 369 drivers/s390/crypto/zcrypt_msgtype50.c if (zq->zcard->user_space_type == ZCRYPT_CEX2A) zq 379 drivers/s390/crypto/zcrypt_msgtype50.c static int convert_response(struct zcrypt_queue *zq, zq 390 drivers/s390/crypto/zcrypt_msgtype50.c return convert_error(zq, reply); zq 392 drivers/s390/crypto/zcrypt_msgtype50.c return convert_type80(zq, reply, zq 395 drivers/s390/crypto/zcrypt_msgtype50.c zq->online = 0; zq 397 drivers/s390/crypto/zcrypt_msgtype50.c AP_QID_CARD(zq->queue->qid), zq 398 drivers/s390/crypto/zcrypt_msgtype50.c AP_QID_QUEUE(zq->queue->qid)); zq 401 drivers/s390/crypto/zcrypt_msgtype50.c AP_QID_CARD(zq->queue->qid), zq 402 drivers/s390/crypto/zcrypt_msgtype50.c AP_QID_QUEUE(zq->queue->qid), zq 454 drivers/s390/crypto/zcrypt_msgtype50.c static long zcrypt_cex2a_modexpo(struct zcrypt_queue *zq, zq 462 drivers/s390/crypto/zcrypt_msgtype50.c if (zq->zcard->user_space_type == ZCRYPT_CEX2A) zq 474 drivers/s390/crypto/zcrypt_msgtype50.c rc = ICAMEX_msg_to_type50MEX_msg(zq, &ap_msg, mex); zq 478 drivers/s390/crypto/zcrypt_msgtype50.c ap_queue_message(zq->queue, &ap_msg); zq 483 drivers/s390/crypto/zcrypt_msgtype50.c rc = convert_response(zq, &ap_msg, mex->outputdata, zq 487 drivers/s390/crypto/zcrypt_msgtype50.c ap_cancel_message(zq->queue, &ap_msg); zq 500 drivers/s390/crypto/zcrypt_msgtype50.c static long zcrypt_cex2a_modexpo_crt(struct zcrypt_queue *zq, zq 508 drivers/s390/crypto/zcrypt_msgtype50.c if (zq->zcard->user_space_type == ZCRYPT_CEX2A) zq 520 drivers/s390/crypto/zcrypt_msgtype50.c rc = ICACRT_msg_to_type50CRT_msg(zq, &ap_msg, crt); zq 524 drivers/s390/crypto/zcrypt_msgtype50.c ap_queue_message(zq->queue, &ap_msg); zq 529 drivers/s390/crypto/zcrypt_msgtype50.c rc = convert_response(zq, &ap_msg, crt->outputdata, zq 533 drivers/s390/crypto/zcrypt_msgtype50.c ap_cancel_message(zq->queue, &ap_msg); zq 248 drivers/s390/crypto/zcrypt_msgtype6.c static int ICAMEX_msg_to_type6MEX_msgX(struct zcrypt_queue *zq, zq 297 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); zq 317 drivers/s390/crypto/zcrypt_msgtype6.c static int ICACRT_msg_to_type6CRT_msgX(struct zcrypt_queue *zq, zq 367 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); zq 602 drivers/s390/crypto/zcrypt_msgtype6.c static int convert_type86_ica(struct zcrypt_queue *zq, zq 657 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_CARD(zq->queue->qid), zq 658 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_QUEUE(zq->queue->qid), zq 662 drivers/s390/crypto/zcrypt_msgtype6.c zq->online = 0; zq 664 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_CARD(zq->queue->qid), zq 665 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_QUEUE(zq->queue->qid)); zq 668 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_CARD(zq->queue->qid), zq 669 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_QUEUE(zq->queue->qid), zq 712 drivers/s390/crypto/zcrypt_msgtype6.c static int convert_type86_xcrb(struct zcrypt_queue *zq, zq 743 drivers/s390/crypto/zcrypt_msgtype6.c static int convert_type86_ep11_xcrb(struct zcrypt_queue *zq, zq 761 drivers/s390/crypto/zcrypt_msgtype6.c static int convert_type86_rng(struct zcrypt_queue *zq, zq 778 drivers/s390/crypto/zcrypt_msgtype6.c static int convert_response_ica(struct zcrypt_queue *zq, zq 788 drivers/s390/crypto/zcrypt_msgtype6.c return convert_error(zq, reply); zq 793 drivers/s390/crypto/zcrypt_msgtype6.c if (zq->zcard->max_exp_bit_length <= 17) { zq 794 drivers/s390/crypto/zcrypt_msgtype6.c zq->zcard->max_exp_bit_length = 17; zq 800 drivers/s390/crypto/zcrypt_msgtype6.c return convert_error(zq, reply); zq 802 drivers/s390/crypto/zcrypt_msgtype6.c return convert_type86_ica(zq, reply, zq 806 drivers/s390/crypto/zcrypt_msgtype6.c zq->online = 0; zq 808 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_CARD(zq->queue->qid), zq 809 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_QUEUE(zq->queue->qid)); zq 812 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_CARD(zq->queue->qid), zq 813 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_QUEUE(zq->queue->qid), zq 819 drivers/s390/crypto/zcrypt_msgtype6.c static int convert_response_xcrb(struct zcrypt_queue *zq, zq 829 drivers/s390/crypto/zcrypt_msgtype6.c return convert_error(zq, reply); zq 833 drivers/s390/crypto/zcrypt_msgtype6.c return convert_error(zq, reply); zq 836 drivers/s390/crypto/zcrypt_msgtype6.c return convert_type86_xcrb(zq, reply, xcRB); zq 840 drivers/s390/crypto/zcrypt_msgtype6.c zq->online = 0; zq 842 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_CARD(zq->queue->qid), zq 843 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_QUEUE(zq->queue->qid)); zq 846 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_CARD(zq->queue->qid), zq 847 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_QUEUE(zq->queue->qid), zq 853 drivers/s390/crypto/zcrypt_msgtype6.c static int convert_response_ep11_xcrb(struct zcrypt_queue *zq, zq 861 drivers/s390/crypto/zcrypt_msgtype6.c return convert_error(zq, reply); zq 864 drivers/s390/crypto/zcrypt_msgtype6.c return convert_error(zq, reply); zq 866 drivers/s390/crypto/zcrypt_msgtype6.c return convert_type86_ep11_xcrb(zq, reply, xcRB); zq 869 drivers/s390/crypto/zcrypt_msgtype6.c zq->online = 0; zq 871 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_CARD(zq->queue->qid), zq 872 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_QUEUE(zq->queue->qid)); zq 875 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_CARD(zq->queue->qid), zq 876 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_QUEUE(zq->queue->qid), zq 882 drivers/s390/crypto/zcrypt_msgtype6.c static int convert_response_rng(struct zcrypt_queue *zq, zq 896 drivers/s390/crypto/zcrypt_msgtype6.c return convert_type86_rng(zq, reply, data); zq 899 drivers/s390/crypto/zcrypt_msgtype6.c zq->online = 0; zq 901 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_CARD(zq->queue->qid), zq 902 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_QUEUE(zq->queue->qid)); zq 905 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_CARD(zq->queue->qid), zq 906 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_QUEUE(zq->queue->qid), zq 1013 drivers/s390/crypto/zcrypt_msgtype6.c static long zcrypt_msgtype6_modexpo(struct zcrypt_queue *zq, zq 1030 drivers/s390/crypto/zcrypt_msgtype6.c rc = ICAMEX_msg_to_type6MEX_msgX(zq, &ap_msg, mex); zq 1034 drivers/s390/crypto/zcrypt_msgtype6.c ap_queue_message(zq->queue, &ap_msg); zq 1039 drivers/s390/crypto/zcrypt_msgtype6.c rc = convert_response_ica(zq, &ap_msg, zq 1044 drivers/s390/crypto/zcrypt_msgtype6.c ap_cancel_message(zq->queue, &ap_msg); zq 1057 drivers/s390/crypto/zcrypt_msgtype6.c static long zcrypt_msgtype6_modexpo_crt(struct zcrypt_queue *zq, zq 1074 drivers/s390/crypto/zcrypt_msgtype6.c rc = ICACRT_msg_to_type6CRT_msgX(zq, &ap_msg, crt); zq 1078 drivers/s390/crypto/zcrypt_msgtype6.c ap_queue_message(zq->queue, &ap_msg); zq 1083 drivers/s390/crypto/zcrypt_msgtype6.c rc = convert_response_ica(zq, &ap_msg, zq 1088 drivers/s390/crypto/zcrypt_msgtype6.c ap_cancel_message(zq->queue, &ap_msg); zq 1129 drivers/s390/crypto/zcrypt_msgtype6.c static long zcrypt_msgtype6_send_cprb(struct zcrypt_queue *zq, zq 1137 drivers/s390/crypto/zcrypt_msgtype6.c ap_queue_message(zq->queue, ap_msg); zq 1142 drivers/s390/crypto/zcrypt_msgtype6.c rc = convert_response_xcrb(zq, ap_msg, xcRB); zq 1145 drivers/s390/crypto/zcrypt_msgtype6.c ap_cancel_message(zq->queue, ap_msg); zq 1184 drivers/s390/crypto/zcrypt_msgtype6.c static long zcrypt_msgtype6_send_ep11_cprb(struct zcrypt_queue *zq, zq 1217 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_QUEUE(zq->queue->qid); zq 1235 drivers/s390/crypto/zcrypt_msgtype6.c AP_QID_QUEUE(zq->queue->qid); zq 1239 drivers/s390/crypto/zcrypt_msgtype6.c ap_queue_message(zq->queue, ap_msg); zq 1244 drivers/s390/crypto/zcrypt_msgtype6.c rc = convert_response_ep11_xcrb(zq, ap_msg, xcrb); zq 1247 drivers/s390/crypto/zcrypt_msgtype6.c ap_cancel_message(zq->queue, ap_msg); zq 1282 drivers/s390/crypto/zcrypt_msgtype6.c static long zcrypt_msgtype6_rng(struct zcrypt_queue *zq, zq 1297 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); zq 1300 drivers/s390/crypto/zcrypt_msgtype6.c ap_queue_message(zq->queue, ap_msg); zq 1305 drivers/s390/crypto/zcrypt_msgtype6.c rc = convert_response_rng(zq, ap_msg, buffer); zq 1308 drivers/s390/crypto/zcrypt_msgtype6.c ap_cancel_message(zq->queue, ap_msg); zq 43 drivers/s390/crypto/zcrypt_queue.c struct zcrypt_queue *zq = to_ap_queue(dev)->private; zq 45 drivers/s390/crypto/zcrypt_queue.c return snprintf(buf, PAGE_SIZE, "%d\n", zq->online); zq 52 drivers/s390/crypto/zcrypt_queue.c struct zcrypt_queue *zq = to_ap_queue(dev)->private; zq 53 drivers/s390/crypto/zcrypt_queue.c struct zcrypt_card *zc = zq->zcard; zq 61 drivers/s390/crypto/zcrypt_queue.c zq->online = online; zq 64 drivers/s390/crypto/zcrypt_queue.c AP_QID_CARD(zq->queue->qid), zq 65 drivers/s390/crypto/zcrypt_queue.c AP_QID_QUEUE(zq->queue->qid), zq 69 drivers/s390/crypto/zcrypt_queue.c ap_flush_queue(zq->queue); zq 79 drivers/s390/crypto/zcrypt_queue.c struct zcrypt_queue *zq = to_ap_queue(dev)->private; zq 81 drivers/s390/crypto/zcrypt_queue.c return snprintf(buf, PAGE_SIZE, "%d\n", atomic_read(&zq->load)); zq 96 drivers/s390/crypto/zcrypt_queue.c void zcrypt_queue_force_online(struct zcrypt_queue *zq, int online) zq 98 drivers/s390/crypto/zcrypt_queue.c zq->online = online; zq 100 drivers/s390/crypto/zcrypt_queue.c ap_flush_queue(zq->queue); zq 105 drivers/s390/crypto/zcrypt_queue.c struct zcrypt_queue *zq; zq 107 drivers/s390/crypto/zcrypt_queue.c zq = kzalloc(sizeof(struct zcrypt_queue), GFP_KERNEL); zq 108 drivers/s390/crypto/zcrypt_queue.c if (!zq) zq 110 drivers/s390/crypto/zcrypt_queue.c zq->reply.message = kmalloc(max_response_size, GFP_KERNEL); zq 111 drivers/s390/crypto/zcrypt_queue.c if (!zq->reply.message) zq 113 drivers/s390/crypto/zcrypt_queue.c zq->reply.length = max_response_size; zq 114 drivers/s390/crypto/zcrypt_queue.c INIT_LIST_HEAD(&zq->list); zq 115 drivers/s390/crypto/zcrypt_queue.c kref_init(&zq->refcount); zq 116 drivers/s390/crypto/zcrypt_queue.c return zq; zq 119 drivers/s390/crypto/zcrypt_queue.c kfree(zq); zq 124 drivers/s390/crypto/zcrypt_queue.c void zcrypt_queue_free(struct zcrypt_queue *zq) zq 126 drivers/s390/crypto/zcrypt_queue.c kfree(zq->reply.message); zq 127 drivers/s390/crypto/zcrypt_queue.c kfree(zq); zq 133 drivers/s390/crypto/zcrypt_queue.c struct zcrypt_queue *zq = zq 135 drivers/s390/crypto/zcrypt_queue.c zcrypt_queue_free(zq); zq 138 drivers/s390/crypto/zcrypt_queue.c void zcrypt_queue_get(struct zcrypt_queue *zq) zq 140 drivers/s390/crypto/zcrypt_queue.c kref_get(&zq->refcount); zq 144 drivers/s390/crypto/zcrypt_queue.c int zcrypt_queue_put(struct zcrypt_queue *zq) zq 146 drivers/s390/crypto/zcrypt_queue.c return kref_put(&zq->refcount, zcrypt_queue_release); zq 156 drivers/s390/crypto/zcrypt_queue.c int zcrypt_queue_register(struct zcrypt_queue *zq) zq 162 drivers/s390/crypto/zcrypt_queue.c zc = zq->queue->card->private; zq 164 drivers/s390/crypto/zcrypt_queue.c zq->zcard = zc; zq 165 drivers/s390/crypto/zcrypt_queue.c zq->online = 1; /* New devices are online by default. */ zq 168 drivers/s390/crypto/zcrypt_queue.c AP_QID_CARD(zq->queue->qid), AP_QID_QUEUE(zq->queue->qid)); zq 170 drivers/s390/crypto/zcrypt_queue.c list_add_tail(&zq->list, &zc->zqueues); zq 174 drivers/s390/crypto/zcrypt_queue.c rc = sysfs_create_group(&zq->queue->ap_dev.device.kobj, zq 178 drivers/s390/crypto/zcrypt_queue.c get_device(&zq->queue->ap_dev.device); zq 180 drivers/s390/crypto/zcrypt_queue.c if (zq->ops->rng) { zq 188 drivers/s390/crypto/zcrypt_queue.c sysfs_remove_group(&zq->queue->ap_dev.device.kobj, zq 190 drivers/s390/crypto/zcrypt_queue.c put_device(&zq->queue->ap_dev.device); zq 193 drivers/s390/crypto/zcrypt_queue.c list_del_init(&zq->list); zq 206 drivers/s390/crypto/zcrypt_queue.c void zcrypt_queue_unregister(struct zcrypt_queue *zq) zq 211 drivers/s390/crypto/zcrypt_queue.c AP_QID_CARD(zq->queue->qid), AP_QID_QUEUE(zq->queue->qid)); zq 213 drivers/s390/crypto/zcrypt_queue.c zc = zq->zcard; zq 215 drivers/s390/crypto/zcrypt_queue.c list_del_init(&zq->list); zq 219 drivers/s390/crypto/zcrypt_queue.c if (zq->ops->rng) zq 221 drivers/s390/crypto/zcrypt_queue.c sysfs_remove_group(&zq->queue->ap_dev.device.kobj, zq 223 drivers/s390/crypto/zcrypt_queue.c put_device(&zq->queue->ap_dev.device); zq 224 drivers/s390/crypto/zcrypt_queue.c zcrypt_queue_put(zq);