Lines Matching refs:ap_dev
158 static int zcrypt_cex4_card_probe(struct ap_device *ap_dev) in zcrypt_cex4_card_probe() argument
191 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_probe()
201 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
206 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
211 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
237 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
245 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
253 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
274 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
279 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
284 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
315 rc = sysfs_create_group(&ap_dev->device.kobj, in zcrypt_cex4_card_probe()
329 static void zcrypt_cex4_card_remove(struct ap_device *ap_dev) in zcrypt_cex4_card_remove() argument
331 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_remove()
335 sysfs_remove_group(&ap_dev->device.kobj, &cca_card_attr_group); in zcrypt_cex4_card_remove()
353 static int zcrypt_cex4_queue_probe(struct ap_device *ap_dev) in zcrypt_cex4_queue_probe() argument
355 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex4_queue_probe()
395 rc = sysfs_create_group(&ap_dev->device.kobj, in zcrypt_cex4_queue_probe()
409 static void zcrypt_cex4_queue_remove(struct ap_device *ap_dev) in zcrypt_cex4_queue_remove() argument
411 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex4_queue_remove()
415 sysfs_remove_group(&ap_dev->device.kobj, &cca_queue_attr_group); in zcrypt_cex4_queue_remove()