Lines Matching refs:ap_dev

437 static int zcrypt_cex4_card_probe(struct ap_device *ap_dev)  in zcrypt_cex4_card_probe()  argument
476 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_probe()
484 dev_set_drvdata(&ap_dev->device, zc); in zcrypt_cex4_card_probe()
486 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
490 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
494 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
498 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX7) { in zcrypt_cex4_card_probe()
525 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
532 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
539 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
546 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX7) { in zcrypt_cex4_card_probe()
565 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
569 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
573 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
577 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX7) { in zcrypt_cex4_card_probe()
608 rc = sysfs_create_group(&ap_dev->device.kobj, in zcrypt_cex4_card_probe()
615 rc = sysfs_create_group(&ap_dev->device.kobj, in zcrypt_cex4_card_probe()
630 static void zcrypt_cex4_card_remove(struct ap_device *ap_dev) in zcrypt_cex4_card_remove() argument
632 struct zcrypt_card *zc = dev_get_drvdata(&ap_dev->device); in zcrypt_cex4_card_remove()
633 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_remove()
636 sysfs_remove_group(&ap_dev->device.kobj, &cca_card_attr_grp); in zcrypt_cex4_card_remove()
638 sysfs_remove_group(&ap_dev->device.kobj, &ep11_card_attr_grp); in zcrypt_cex4_card_remove()
656 static int zcrypt_cex4_queue_probe(struct ap_device *ap_dev) in zcrypt_cex4_queue_probe() argument
658 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex4_queue_probe()
690 dev_set_drvdata(&ap_dev->device, zq); in zcrypt_cex4_queue_probe()
698 rc = sysfs_create_group(&ap_dev->device.kobj, in zcrypt_cex4_queue_probe()
705 rc = sysfs_create_group(&ap_dev->device.kobj, in zcrypt_cex4_queue_probe()
720 static void zcrypt_cex4_queue_remove(struct ap_device *ap_dev) in zcrypt_cex4_queue_remove() argument
722 struct zcrypt_queue *zq = dev_get_drvdata(&ap_dev->device); in zcrypt_cex4_queue_remove()
723 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex4_queue_remove()
726 sysfs_remove_group(&ap_dev->device.kobj, &cca_queue_attr_grp); in zcrypt_cex4_queue_remove()
728 sysfs_remove_group(&ap_dev->device.kobj, &ep11_queue_attr_grp); in zcrypt_cex4_queue_remove()