Home
last modified time | relevance | path

Searched refs:ap_dev (Results 1 – 13 of 13) sorted by relevance

/drivers/s390/crypto/
Dap_bus.c59 static int __ap_poll_device(struct ap_device *ap_dev, unsigned long *flags);
63 static void ap_reset(struct ap_device *ap_dev);
623 static void ap_increase_queue_count(struct ap_device *ap_dev) in ap_increase_queue_count() argument
625 int timeout = ap_dev->drv->request_timeout; in ap_increase_queue_count()
627 ap_dev->queue_count++; in ap_increase_queue_count()
628 if (ap_dev->queue_count == 1) { in ap_increase_queue_count()
629 mod_timer(&ap_dev->timeout, jiffies + timeout); in ap_increase_queue_count()
630 ap_dev->reset = AP_RESET_ARMED; in ap_increase_queue_count()
641 static void ap_decrease_queue_count(struct ap_device *ap_dev) in ap_decrease_queue_count() argument
643 int timeout = ap_dev->drv->request_timeout; in ap_decrease_queue_count()
[all …]
Dzcrypt_cex4.c51 static int zcrypt_cex4_probe(struct ap_device *ap_dev);
52 static void zcrypt_cex4_remove(struct ap_device *ap_dev);
66 static int zcrypt_cex4_probe(struct ap_device *ap_dev) in zcrypt_cex4_probe() argument
71 switch (ap_dev->device_type) { in zcrypt_cex4_probe()
73 if (ap_test_bit(&ap_dev->functions, AP_FUNC_ACCEL)) { in zcrypt_cex4_probe()
80 if (ap_test_bit(&ap_dev->functions, AP_FUNC_MEX4K) && in zcrypt_cex4_probe()
81 ap_test_bit(&ap_dev->functions, AP_FUNC_CRT4K)) { in zcrypt_cex4_probe()
96 } else if (ap_test_bit(&ap_dev->functions, AP_FUNC_COPRO)) { in zcrypt_cex4_probe()
109 } else if (ap_test_bit(&ap_dev->functions, AP_FUNC_EP11)) { in zcrypt_cex4_probe()
127 zdev->ap_dev = ap_dev; in zcrypt_cex4_probe()
[all …]
Dzcrypt_pcixcc.c83 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 …]
Dzcrypt_cex2a.c72 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 …]
Dzcrypt_api.c105 ZCRYPT_DBF_DEV(DBF_INFO, zdev, "dev%04xo%dman", zdev->ap_dev->qid, in zcrypt_online_store()
108 ap_flush_queue(zdev->ap_dev); in zcrypt_online_store()
258 rc = sysfs_create_group(&zdev->ap_dev->device.kobj, in zcrypt_device_register()
262 get_device(&zdev->ap_dev->device); in zcrypt_device_register()
266 ZCRYPT_DBF_DEV(DBF_INFO, zdev, "dev%04xo%dreg", zdev->ap_dev->qid, in zcrypt_device_register()
284 sysfs_remove_group(&zdev->ap_dev->device.kobj, in zcrypt_device_register()
286 put_device(&zdev->ap_dev->device); in zcrypt_device_register()
307 sysfs_remove_group(&zdev->ap_dev->device.kobj, in zcrypt_device_unregister()
309 put_device(&zdev->ap_dev->device); in zcrypt_device_unregister()
443 get_device(&zdev->ap_dev->device); in zcrypt_rsa_modexpo()
[all …]
Dzcrypt_pcica.c63 static int zcrypt_pcica_probe(struct ap_device *ap_dev);
64 static void zcrypt_pcica_remove(struct ap_device *ap_dev);
206 zdev->ap_dev->qid); in convert_type84()
208 zdev->ap_dev->qid, zdev->online, t84h->code); in convert_type84()
234 zdev->ap_dev->qid); in convert_response()
236 zdev->ap_dev->qid, zdev->online); in convert_response()
249 static void zcrypt_pcica_receive(struct ap_device *ap_dev, in zcrypt_pcica_receive() argument
303 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcica_modexpo()
310 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_pcica_modexpo()
342 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcica_modexpo_crt()
[all …]
Dzcrypt_pcicc.c75 static int zcrypt_pcicc_probe(struct ap_device *ap_dev);
76 static void zcrypt_pcicc_remove(struct ap_device *ap_dev);
223 msg->cprb.usage_domain[0]= AP_QID_QUEUE(zdev->ap_dev->qid); in ICAMEX_msg_to_type6MEX_msg()
286 msg->cprb.usage_domain[0] = AP_QID_QUEUE(zdev->ap_dev->qid); in ICACRT_msg_to_type6CRT_msg()
379 zdev->ap_dev->qid); in convert_type86()
381 zdev->ap_dev->qid, zdev->online, in convert_type86()
437 zdev->ap_dev->qid); in convert_response()
439 zdev->ap_dev->qid, zdev->online); in convert_response()
452 static void zcrypt_pcicc_receive(struct ap_device *ap_dev, in zcrypt_pcicc_receive() argument
509 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcicc_modexpo()
[all …]
Dzcrypt_error.h115 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()
Dzcrypt_msgtype6.c207 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 …]
Dzcrypt_msgtype50.c339 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
404 if (ap_dev->device_type == AP_DEVICE_TYPE_CEX2A) in zcrypt_cex2a_receive()
450 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()
501 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_cex2a_modexpo_crt()
Dap_bus.h234 void ap_queue_message(struct ap_device *ap_dev, struct ap_message *ap_msg);
235 void ap_cancel_message(struct ap_device *ap_dev, struct ap_message *ap_msg);
236 void ap_flush_queue(struct ap_device *ap_dev);
Dzcrypt_msgtype6.h125 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()
Dzcrypt_api.h104 struct ap_device *ap_dev; /* The "real" ap device. */ member