Lines Matching refs:ap_dev
245 static int zcrypt_cex2c_card_probe(struct ap_device *ap_dev) in zcrypt_cex2c_card_probe() argument
256 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex2c_card_probe()
264 dev_set_drvdata(&ap_dev->device, zc); in zcrypt_cex2c_card_probe()
265 switch (ac->ap_dev.device_type) { in zcrypt_cex2c_card_probe()
295 rc = sysfs_create_group(&ap_dev->device.kobj, in zcrypt_cex2c_card_probe()
310 static void zcrypt_cex2c_card_remove(struct ap_device *ap_dev) in zcrypt_cex2c_card_remove() argument
312 struct zcrypt_card *zc = dev_get_drvdata(&ap_dev->device); in zcrypt_cex2c_card_remove()
313 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex2c_card_remove()
316 sysfs_remove_group(&ap_dev->device.kobj, &cca_card_attr_grp); in zcrypt_cex2c_card_remove()
333 static int zcrypt_cex2c_queue_probe(struct ap_device *ap_dev) in zcrypt_cex2c_queue_probe() argument
335 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex2c_queue_probe()
360 dev_set_drvdata(&ap_dev->device, zq); in zcrypt_cex2c_queue_probe()
368 rc = sysfs_create_group(&ap_dev->device.kobj, in zcrypt_cex2c_queue_probe()
383 static void zcrypt_cex2c_queue_remove(struct ap_device *ap_dev) in zcrypt_cex2c_queue_remove() argument
385 struct zcrypt_queue *zq = dev_get_drvdata(&ap_dev->device); in zcrypt_cex2c_queue_remove()
386 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex2c_queue_remove()
389 sysfs_remove_group(&ap_dev->device.kobj, &cca_queue_attr_grp); in zcrypt_cex2c_queue_remove()