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