Lines Matching defs:ap_dev

404  * @ap_dev: pointer to the AP device.
406 static int zcrypt_cex4_card_probe(struct ap_device *ap_dev)
439 struct ap_card *ac = to_ap_card(&ap_dev->device);
449 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) {
453 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) {
457 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) {
481 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) {
488 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) {
495 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) {
514 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) {
518 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) {
522 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) {
551 rc = sysfs_create_group(&ap_dev->device.kobj,
559 rc = sysfs_create_group(&ap_dev->device.kobj,
575 static void zcrypt_cex4_card_remove(struct ap_device *ap_dev)
577 struct ap_card *ac = to_ap_card(&ap_dev->device);
581 sysfs_remove_group(&ap_dev->device.kobj, &cca_card_attr_grp);
583 sysfs_remove_group(&ap_dev->device.kobj, &ep11_card_attr_grp);
599 * @ap_dev: pointer to the AP device.
601 static int zcrypt_cex4_queue_probe(struct ap_device *ap_dev)
603 struct ap_queue *aq = to_ap_queue(&ap_dev->device);
644 rc = sysfs_create_group(&ap_dev->device.kobj,
652 rc = sysfs_create_group(&ap_dev->device.kobj,
668 static void zcrypt_cex4_queue_remove(struct ap_device *ap_dev)
670 struct ap_queue *aq = to_ap_queue(&ap_dev->device);
674 sysfs_remove_group(&ap_dev->device.kobj, &cca_queue_attr_grp);
676 sysfs_remove_group(&ap_dev->device.kobj, &ep11_queue_attr_grp);