Home
last modified time | relevance | path

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

/drivers/s390/crypto/
Dap_bus.c60 static int __ap_poll_device(struct ap_device *ap_dev, unsigned long *flags);
64 static void ap_reset(struct ap_device *ap_dev);
588 static void ap_increase_queue_count(struct ap_device *ap_dev) in ap_increase_queue_count() argument
590 int timeout = ap_dev->drv->request_timeout; in ap_increase_queue_count()
592 ap_dev->queue_count++; in ap_increase_queue_count()
593 if (ap_dev->queue_count == 1) { in ap_increase_queue_count()
594 mod_timer(&ap_dev->timeout, jiffies + timeout); in ap_increase_queue_count()
595 ap_dev->reset = AP_RESET_ARMED; in ap_increase_queue_count()
606 static void ap_decrease_queue_count(struct ap_device *ap_dev) in ap_decrease_queue_count() argument
608 int timeout = ap_dev->drv->request_timeout; in ap_decrease_queue_count()
[all …]
Dzcrypt_api.c91 ap_flush_queue(zdev->ap_dev); in zcrypt_online_store()
220 rc = sysfs_create_group(&zdev->ap_dev->device.kobj, in zcrypt_device_register()
224 get_device(&zdev->ap_dev->device); in zcrypt_device_register()
244 sysfs_remove_group(&zdev->ap_dev->device.kobj, in zcrypt_device_register()
246 put_device(&zdev->ap_dev->device); in zcrypt_device_register()
267 sysfs_remove_group(&zdev->ap_dev->device.kobj, in zcrypt_device_unregister()
269 put_device(&zdev->ap_dev->device); in zcrypt_device_unregister()
343 get_device(&zdev->ap_dev->device); in zcrypt_rsa_modexpo()
346 if (try_module_get(zdev->ap_dev->drv->driver.owner)) { in zcrypt_rsa_modexpo()
350 module_put(zdev->ap_dev->drv->driver.owner); in zcrypt_rsa_modexpo()
[all …]
Dzcrypt_pcixcc.c84 static int zcrypt_pcixcc_probe(struct ap_device *ap_dev);
85 static void zcrypt_pcixcc_remove(struct ap_device *ap_dev);
175 msg->cprbx.domain = AP_QID_QUEUE(zdev->ap_dev->qid); in ICAMEX_msg_to_type6MEX_msgX()
243 msg->cprbx.domain = AP_QID_QUEUE(zdev->ap_dev->qid); in ICACRT_msg_to_type6CRT_msgX()
338 static void rng_type6CPRB_msgX(struct ap_device *ap_dev, in rng_type6CPRB_msgX() argument
372 msg->cprbx.domain = AP_QID_QUEUE(ap_dev->qid); in rng_type6CPRB_msgX()
637 static void zcrypt_pcixcc_receive(struct ap_device *ap_dev, in zcrypt_pcixcc_receive() argument
708 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcixcc_modexpo()
715 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_pcixcc_modexpo()
748 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcixcc_modexpo_crt()
[all …]
Dzcrypt_pcica.c62 static int zcrypt_pcica_probe(struct ap_device *ap_dev);
63 static void zcrypt_pcica_remove(struct ap_device *ap_dev);
241 static void zcrypt_pcica_receive(struct ap_device *ap_dev, in zcrypt_pcica_receive() argument
294 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcica_modexpo()
301 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_pcica_modexpo()
332 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcica_modexpo_crt()
339 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_pcica_modexpo_crt()
358 static int zcrypt_pcica_probe(struct ap_device *ap_dev) in zcrypt_pcica_probe() argument
366 zdev->ap_dev = ap_dev; in zcrypt_pcica_probe()
375 ap_dev->reply = &zdev->reply; in zcrypt_pcica_probe()
[all …]
Dzcrypt_pcicc.c74 static int zcrypt_pcicc_probe(struct ap_device *ap_dev);
75 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()
443 static void zcrypt_pcicc_receive(struct ap_device *ap_dev, in zcrypt_pcicc_receive() argument
499 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcicc_modexpo()
506 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_pcicc_modexpo()
538 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcicc_modexpo_crt()
545 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_pcicc_modexpo_crt()
564 static int zcrypt_pcicc_probe(struct ap_device *ap_dev) in zcrypt_pcicc_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);
300 static void zcrypt_cex2a_receive(struct ap_device *ap_dev, in zcrypt_cex2a_receive() argument
318 if (ap_dev->device_type == AP_DEVICE_TYPE_CEX2A) in zcrypt_cex2a_receive()
359 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_cex2a_modexpo()
366 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_cex2a_modexpo()
400 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_cex2a_modexpo_crt()
407 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_cex2a_modexpo_crt()
426 static int zcrypt_cex2a_probe(struct ap_device *ap_dev) in zcrypt_cex2a_probe() argument
431 switch (ap_dev->device_type) { in zcrypt_cex2a_probe()
[all …]
Dap_bus.h212 void ap_queue_message(struct ap_device *ap_dev, struct ap_message *ap_msg);
213 void ap_cancel_message(struct ap_device *ap_dev, struct ap_message *ap_msg);
214 void ap_flush_queue(struct ap_device *ap_dev);
Dzcrypt_api.h98 struct ap_device *ap_dev; /* The "real" ap device. */ member