Lines Matching refs:ap_dev
72 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()
453 if (ap_4096_commands_available(ap_dev->qid)) { in zcrypt_cex2a_probe()
462 zdev->ap_dev = ap_dev; in zcrypt_cex2a_probe()
465 ap_dev->reply = &zdev->reply; in zcrypt_cex2a_probe()
466 ap_dev->private = zdev; in zcrypt_cex2a_probe()
470 ap_dev->private = NULL; in zcrypt_cex2a_probe()
480 static void zcrypt_cex2a_remove(struct ap_device *ap_dev) in zcrypt_cex2a_remove() argument
482 struct zcrypt_device *zdev = ap_dev->private; in zcrypt_cex2a_remove()