Home
last modified time | relevance | path

Searched refs:ap_dev (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/drivers/s390/crypto/
Dzcrypt_cex2a.c73 static int zcrypt_cex2a_card_probe(struct ap_device *ap_dev) in zcrypt_cex2a_card_probe() argument
84 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex2a_card_probe()
94 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX2A) { in zcrypt_cex2a_card_probe()
101 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX3A) { in zcrypt_cex2a_card_probe()
132 static void zcrypt_cex2a_card_remove(struct ap_device *ap_dev) in zcrypt_cex2a_card_remove() argument
134 struct zcrypt_card *zc = to_ap_card(&ap_dev->device)->private; in zcrypt_cex2a_card_remove()
152 static int zcrypt_cex2a_queue_probe(struct ap_device *ap_dev) in zcrypt_cex2a_queue_probe() argument
154 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex2a_queue_probe()
158 switch (ap_dev->device_type) { in zcrypt_cex2a_queue_probe()
193 static void zcrypt_cex2a_queue_remove(struct ap_device *ap_dev) in zcrypt_cex2a_queue_remove() argument
[all …]
Dzcrypt_cex4.c406 static int zcrypt_cex4_card_probe(struct ap_device *ap_dev) in zcrypt_cex4_card_probe() argument
439 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_probe()
449 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
453 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
457 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
481 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
488 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
495 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
514 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
518 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
[all …]
Dzcrypt_cex2c.c245 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()
265 switch (ac->ap_dev.device_type) { in zcrypt_cex2c_card_probe()
296 rc = sysfs_create_group(&ap_dev->device.kobj, in zcrypt_cex2c_card_probe()
312 static void zcrypt_cex2c_card_remove(struct ap_device *ap_dev) in zcrypt_cex2c_card_remove() argument
314 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex2c_card_remove()
315 struct zcrypt_card *zc = to_ap_card(&ap_dev->device)->private; in zcrypt_cex2c_card_remove()
318 sysfs_remove_group(&ap_dev->device.kobj, &cca_card_attr_grp); in zcrypt_cex2c_card_remove()
335 static int zcrypt_cex2c_queue_probe(struct ap_device *ap_dev) in zcrypt_cex2c_queue_probe() argument
337 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex2c_queue_probe()
[all …]
Dap_bus.c580 struct ap_device *ap_dev = to_ap_dev(dev); in ap_uevent() local
583 if (!ap_dev) in ap_uevent()
587 retval = add_uevent_var(env, "DEV_TYPE=%04X", ap_dev->device_type); in ap_uevent()
592 retval = add_uevent_var(env, "MODALIAS=ap:t%02X", ap_dev->device_type); in ap_uevent()
681 struct ap_device *ap_dev = to_ap_dev(dev); in ap_device_probe() local
713 ap_dev->drv = ap_drv; in ap_device_probe()
714 rc = ap_drv->probe ? ap_drv->probe(ap_dev) : -ENODEV; in ap_device_probe()
721 ap_dev->drv = NULL; in ap_device_probe()
732 struct ap_device *ap_dev = to_ap_dev(dev); in ap_device_remove() local
733 struct ap_driver *ap_drv = ap_dev->drv; in ap_device_remove()
[all …]
Dap_bus.h164 struct ap_device ap_dev; member
174 #define to_ap_card(x) container_of((x), struct ap_card, ap_dev.device)
177 struct ap_device ap_dev; member
199 #define to_ap_queue(x) container_of((x), struct ap_queue, ap_dev.device)
Dap_card.c27 return scnprintf(buf, PAGE_SIZE, "%d\n", ac->ap_dev.device_type); in hwtype_show()
217 ac->ap_dev.device.release = ap_card_device_release; in ap_card_create()
218 ac->ap_dev.device.type = &ap_card_type; in ap_card_create()
219 ac->ap_dev.device_type = comp_type; in ap_card_create()
Dzcrypt_queue.c179 rc = sysfs_create_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_register()
192 sysfs_remove_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_register()
223 sysfs_remove_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_unregister()
Dzcrypt_card.c168 rc = sysfs_create_group(&zc->card->ap_dev.device.kobj, in zcrypt_card_register()
193 sysfs_remove_group(&zc->card->ap_dev.device.kobj, in zcrypt_card_unregister()
Dap_queue.c739 aq->ap_dev.device.release = ap_queue_device_release; in ap_queue_create()
740 aq->ap_dev.device.type = &ap_queue_type; in ap_queue_create()
741 aq->ap_dev.device_type = device_type; in ap_queue_create()
Dzcrypt_api.c576 if (!zq || !try_module_get(zq->queue->ap_dev.drv->driver.owner)) in zcrypt_pick_queue()
579 get_device(&zq->queue->ap_dev.device); in zcrypt_pick_queue()
583 *pmod = zq->queue->ap_dev.drv->driver.owner; in zcrypt_pick_queue()
595 put_device(&zq->queue->ap_dev.device); in zcrypt_drop_queue()
1224 stat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_mask()
1249 stat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_mask_ext()
1272 devstat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_ext()
Dzcrypt_msgtype50.c443 if (aq->ap_dev.device_type == AP_DEVICE_TYPE_CEX2A) in zcrypt_cex2a_receive()