Lines Matching defs:ap_dev
426 * @ap_dev: pointer to the AP device.
428 static int zcrypt_cex4_card_probe(struct ap_device *ap_dev)
467 struct ap_card *ac = to_ap_card(&ap_dev->device);
475 dev_set_drvdata(&ap_dev->device, zc);
477 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) {
481 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) {
485 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) {
489 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX7) {
516 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) {
523 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) {
530 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) {
537 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX7) {
556 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) {
560 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) {
564 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) {
568 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX7) {
599 rc = sysfs_create_group(&ap_dev->device.kobj,
606 rc = sysfs_create_group(&ap_dev->device.kobj,
621 static void zcrypt_cex4_card_remove(struct ap_device *ap_dev)
623 struct zcrypt_card *zc = dev_get_drvdata(&ap_dev->device);
624 struct ap_card *ac = to_ap_card(&ap_dev->device);
627 sysfs_remove_group(&ap_dev->device.kobj, &cca_card_attr_grp);
629 sysfs_remove_group(&ap_dev->device.kobj, &ep11_card_attr_grp);
645 * @ap_dev: pointer to the AP device.
647 static int zcrypt_cex4_queue_probe(struct ap_device *ap_dev)
649 struct ap_queue *aq = to_ap_queue(&ap_dev->device);
681 dev_set_drvdata(&ap_dev->device, zq);
689 rc = sysfs_create_group(&ap_dev->device.kobj,
696 rc = sysfs_create_group(&ap_dev->device.kobj,
711 static void zcrypt_cex4_queue_remove(struct ap_device *ap_dev)
713 struct zcrypt_queue *zq = dev_get_drvdata(&ap_dev->device);
714 struct ap_queue *aq = to_ap_queue(&ap_dev->device);
717 sysfs_remove_group(&ap_dev->device.kobj, &cca_queue_attr_grp);
719 sysfs_remove_group(&ap_dev->device.kobj, &ep11_queue_attr_grp);