Lines Matching refs:ap_dev
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()
125 } else if (ap_test_bit(&ap_dev->functions, AP_FUNC_EP11)) { in zcrypt_cex4_probe()
129 if (ap_dev->device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_probe()
148 zdev->ap_dev = ap_dev; in zcrypt_cex4_probe()
150 ap_dev->reply = &zdev->reply; in zcrypt_cex4_probe()
151 ap_dev->private = zdev; in zcrypt_cex4_probe()
155 ap_dev->private = NULL; in zcrypt_cex4_probe()
165 static void zcrypt_cex4_remove(struct ap_device *ap_dev) in zcrypt_cex4_remove() argument
167 struct zcrypt_device *zdev = ap_dev->private; in zcrypt_cex4_remove()