/linux-4.4.14/drivers/s390/crypto/ |
D | ap_bus.c | 326 static int ap_queue_enable_interruption(struct ap_device *ap_dev, void *ind) in ap_queue_enable_interruption() argument 330 status = ap_queue_interruption_control(ap_dev->qid, ind); in ap_queue_enable_interruption() 340 AP_QID_DEVICE(ap_dev->qid)); in ap_queue_enable_interruption() 539 static enum ap_wait ap_sm_nop(struct ap_device *ap_dev) in ap_sm_nop() argument 551 static struct ap_queue_status ap_sm_recv(struct ap_device *ap_dev) in ap_sm_recv() argument 556 status = __ap_recv(ap_dev->qid, &ap_dev->reply->psmid, in ap_sm_recv() 557 ap_dev->reply->message, ap_dev->reply->length); in ap_sm_recv() 561 ap_dev->queue_count--; in ap_sm_recv() 562 if (ap_dev->queue_count > 0) in ap_sm_recv() 563 mod_timer(&ap_dev->timeout, in ap_sm_recv() [all …]
|
D | zcrypt_cex4.c | 56 static int zcrypt_cex4_probe(struct ap_device *ap_dev); 57 static void zcrypt_cex4_remove(struct ap_device *ap_dev); 71 static int zcrypt_cex4_probe(struct ap_device *ap_dev) in zcrypt_cex4_probe() argument 76 switch (ap_dev->device_type) { in zcrypt_cex4_probe() 79 if (ap_test_bit(&ap_dev->functions, AP_FUNC_ACCEL)) { in zcrypt_cex4_probe() 83 if (ap_dev->device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_probe() 92 if (ap_test_bit(&ap_dev->functions, AP_FUNC_MEX4K) && in zcrypt_cex4_probe() 93 ap_test_bit(&ap_dev->functions, AP_FUNC_CRT4K)) { in zcrypt_cex4_probe() 107 } else if (ap_test_bit(&ap_dev->functions, AP_FUNC_COPRO)) { in zcrypt_cex4_probe() 111 if (ap_dev->device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_probe() [all …]
|
D | zcrypt_pcixcc.c | 83 static int zcrypt_pcixcc_probe(struct ap_device *ap_dev); 84 static void zcrypt_pcixcc_remove(struct ap_device *ap_dev); 98 static int zcrypt_pcixcc_mcl(struct ap_device *ap_dev) in zcrypt_pcixcc_mcl() argument 179 rc = ap_send(ap_dev->qid, 0x0102030405060708ULL, msg, sizeof(msg)); in zcrypt_pcixcc_mcl() 186 rc = ap_recv(ap_dev->qid, &psmid, reply, 4096); in zcrypt_pcixcc_mcl() 214 static int zcrypt_pcixcc_rng_supported(struct ap_device *ap_dev) in zcrypt_pcixcc_rng_supported() argument 230 rng_type6CPRB_msgX(ap_dev, &ap_msg, 4); in zcrypt_pcixcc_rng_supported() 231 rc = ap_send(ap_dev->qid, 0x0102030405060708ULL, ap_msg.message, in zcrypt_pcixcc_rng_supported() 239 rc = ap_recv(ap_dev->qid, &psmid, ap_msg.message, 4096); in zcrypt_pcixcc_rng_supported() 267 static int zcrypt_pcixcc_probe(struct ap_device *ap_dev) in zcrypt_pcixcc_probe() argument [all …]
|
D | zcrypt_cex2a.c | 72 static int zcrypt_cex2a_probe(struct ap_device *ap_dev); 73 static void zcrypt_cex2a_remove(struct ap_device *ap_dev); 87 static int zcrypt_cex2a_probe(struct ap_device *ap_dev) in zcrypt_cex2a_probe() argument 92 switch (ap_dev->device_type) { in zcrypt_cex2a_probe() 114 if (ap_test_bit(&ap_dev->functions, AP_FUNC_MEX4K) && in zcrypt_cex2a_probe() 115 ap_test_bit(&ap_dev->functions, AP_FUNC_CRT4K)) { in zcrypt_cex2a_probe() 127 zdev->ap_dev = ap_dev; in zcrypt_cex2a_probe() 129 ap_dev->reply = &zdev->reply; in zcrypt_cex2a_probe() 130 ap_dev->private = zdev; in zcrypt_cex2a_probe() 133 ap_dev->private = NULL; in zcrypt_cex2a_probe() [all …]
|
D | zcrypt_api.c | 109 ZCRYPT_DBF_DEV(DBF_INFO, zdev, "dev%04xo%dman", zdev->ap_dev->qid, in zcrypt_online_store() 112 ap_flush_queue(zdev->ap_dev); in zcrypt_online_store() 262 rc = sysfs_create_group(&zdev->ap_dev->device.kobj, in zcrypt_device_register() 266 get_device(&zdev->ap_dev->device); in zcrypt_device_register() 270 ZCRYPT_DBF_DEV(DBF_INFO, zdev, "dev%04xo%dreg", zdev->ap_dev->qid, in zcrypt_device_register() 288 sysfs_remove_group(&zdev->ap_dev->device.kobj, in zcrypt_device_register() 290 put_device(&zdev->ap_dev->device); in zcrypt_device_register() 311 sysfs_remove_group(&zdev->ap_dev->device.kobj, in zcrypt_device_unregister() 313 put_device(&zdev->ap_dev->device); in zcrypt_device_unregister() 445 get_device(&zdev->ap_dev->device); in zcrypt_rsa_modexpo() [all …]
|
D | zcrypt_error.h | 115 zdev->ap_dev->qid); in convert_error() 117 zdev->ap_dev->qid, zdev->online, ehdr->reply_code); in convert_error() 126 zdev->ap_dev->qid); in convert_error() 128 zdev->ap_dev->qid, zdev->online, ehdr->reply_code); in convert_error() 133 zdev->ap_dev->qid); in convert_error() 135 zdev->ap_dev->qid, zdev->online, ehdr->reply_code); in convert_error()
|
D | zcrypt_msgtype6.c | 207 msg->cprbx.domain = AP_QID_QUEUE(zdev->ap_dev->qid); in ICAMEX_msg_to_type6MEX_msgX() 275 msg->cprbx.domain = AP_QID_QUEUE(zdev->ap_dev->qid); in ICACRT_msg_to_type6CRT_msgX() 463 AP_QID_QUEUE(zdev->ap_dev->qid); in xcrb_msg_to_type6_ep11cprb_msgx() 481 AP_QID_QUEUE(zdev->ap_dev->qid); in xcrb_msg_to_type6_ep11cprb_msgx() 575 zdev->ap_dev->qid); in convert_type86_ica() 577 zdev->ap_dev->qid, zdev->online, in convert_type86_ica() 718 zdev->ap_dev->qid); in convert_response_ica() 720 zdev->ap_dev->qid, zdev->online); in convert_response_ica() 750 zdev->ap_dev->qid); in convert_response_xcrb() 752 zdev->ap_dev->qid, zdev->online); in convert_response_xcrb() [all …]
|
D | zcrypt_msgtype50.c | 339 zdev->ap_dev->qid); in convert_type80() 341 zdev->ap_dev->qid, zdev->online, t80h->code); in convert_type80() 371 zdev->ap_dev->qid); in convert_response() 373 zdev->ap_dev->qid, zdev->online); in convert_response() 386 static void zcrypt_cex2a_receive(struct ap_device *ap_dev, in zcrypt_cex2a_receive() argument 402 if (ap_dev->device_type == AP_DEVICE_TYPE_CEX2A) in zcrypt_cex2a_receive() 448 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_cex2a_modexpo() 457 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_cex2a_modexpo() 494 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_cex2a_modexpo_crt() 503 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_cex2a_modexpo_crt()
|
D | ap_bus.h | 177 typedef enum ap_wait (ap_func_t)(struct ap_device *ap_dev); 261 void ap_queue_message(struct ap_device *ap_dev, struct ap_message *ap_msg); 262 void ap_cancel_message(struct ap_device *ap_dev, struct ap_message *ap_msg); 263 void ap_flush_queue(struct ap_device *ap_dev);
|
D | zcrypt_msgtype6.h | 125 static inline void rng_type6CPRB_msgX(struct ap_device *ap_dev, in rng_type6CPRB_msgX() argument 159 msg->cprbx.domain = AP_QID_QUEUE(ap_dev->qid); in rng_type6CPRB_msgX()
|
D | zcrypt_api.h | 106 struct ap_device *ap_dev; /* The "real" ap device. */ member
|