Lines Matching refs:ap_dev
51 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()
129 ap_dev->reply = &zdev->reply; in zcrypt_cex4_probe()
130 ap_dev->private = zdev; in zcrypt_cex4_probe()
134 ap_dev->private = NULL; in zcrypt_cex4_probe()
144 static void zcrypt_cex4_remove(struct ap_device *ap_dev) in zcrypt_cex4_remove() argument
146 struct zcrypt_device *zdev = ap_dev->private; in zcrypt_cex4_remove()