Lines Matching refs:ap_dev

403 static int zcrypt_cex4_card_probe(struct ap_device *ap_dev)  in zcrypt_cex4_card_probe()  argument
436 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_probe()
444 dev_set_drvdata(&ap_dev->device, zc); in zcrypt_cex4_card_probe()
446 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
450 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
454 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
478 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
485 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
492 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
511 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
515 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
519 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
547 rc = sysfs_create_group(&ap_dev->device.kobj, in zcrypt_cex4_card_probe()
554 rc = sysfs_create_group(&ap_dev->device.kobj, in zcrypt_cex4_card_probe()
569 static void zcrypt_cex4_card_remove(struct ap_device *ap_dev) in zcrypt_cex4_card_remove() argument
571 struct zcrypt_card *zc = dev_get_drvdata(&ap_dev->device); in zcrypt_cex4_card_remove()
572 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_remove()
575 sysfs_remove_group(&ap_dev->device.kobj, &cca_card_attr_grp); in zcrypt_cex4_card_remove()
577 sysfs_remove_group(&ap_dev->device.kobj, &ep11_card_attr_grp); in zcrypt_cex4_card_remove()
595 static int zcrypt_cex4_queue_probe(struct ap_device *ap_dev) in zcrypt_cex4_queue_probe() argument
597 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex4_queue_probe()
629 dev_set_drvdata(&ap_dev->device, zq); in zcrypt_cex4_queue_probe()
637 rc = sysfs_create_group(&ap_dev->device.kobj, in zcrypt_cex4_queue_probe()
644 rc = sysfs_create_group(&ap_dev->device.kobj, in zcrypt_cex4_queue_probe()
659 static void zcrypt_cex4_queue_remove(struct ap_device *ap_dev) in zcrypt_cex4_queue_remove() argument
661 struct zcrypt_queue *zq = dev_get_drvdata(&ap_dev->device); in zcrypt_cex4_queue_remove()
662 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex4_queue_remove()
665 sysfs_remove_group(&ap_dev->device.kobj, &cca_queue_attr_grp); in zcrypt_cex4_queue_remove()
667 sysfs_remove_group(&ap_dev->device.kobj, &ep11_queue_attr_grp); in zcrypt_cex4_queue_remove()