Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/s390/crypto/
Dzcrypt_cex2a.c74 static int zcrypt_cex2a_card_probe(struct ap_device *ap_dev) in zcrypt_cex2a_card_probe() argument
85 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex2a_card_probe()
93 dev_set_drvdata(&ap_dev->device, zc); in zcrypt_cex2a_card_probe()
95 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX2A) { in zcrypt_cex2a_card_probe()
102 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX3A) { in zcrypt_cex2a_card_probe()
131 static void zcrypt_cex2a_card_remove(struct ap_device *ap_dev) in zcrypt_cex2a_card_remove() argument
133 struct zcrypt_card *zc = dev_get_drvdata(&ap_dev->device); in zcrypt_cex2a_card_remove()
150 static int zcrypt_cex2a_queue_probe(struct ap_device *ap_dev) in zcrypt_cex2a_queue_probe() argument
152 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex2a_queue_probe()
156 switch (ap_dev->device_type) { in zcrypt_cex2a_queue_probe()
[all …]
Dzcrypt_cex4.c437 static int zcrypt_cex4_card_probe(struct ap_device *ap_dev) in zcrypt_cex4_card_probe() argument
476 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_probe()
484 dev_set_drvdata(&ap_dev->device, zc); in zcrypt_cex4_card_probe()
486 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
490 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
494 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
498 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX7) { in zcrypt_cex4_card_probe()
525 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
532 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
539 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { 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()
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
[all …]
Dap_bus.h179 struct ap_device ap_dev; member
190 #define to_ap_card(x) container_of((x), struct ap_card, ap_dev.device)
193 struct ap_device ap_dev; member
215 #define to_ap_queue(x) container_of((x), struct ap_queue, ap_dev.device)
389 void ap_send_config_uevent(struct ap_device *ap_dev, bool cfg);
390 void ap_send_online_uevent(struct ap_device *ap_dev, int online);
Dzcrypt_queue.c72 ap_send_online_uevent(&aq->ap_dev, online); in online_store()
172 zc = dev_get_drvdata(&zq->queue->card->ap_dev.device); in zcrypt_queue_register()
184 rc = sysfs_create_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_register()
197 sysfs_remove_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_register()
228 sysfs_remove_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_unregister()
Dap_bus.c613 struct ap_device *ap_dev = to_ap_dev(dev); in ap_uevent() local
620 struct ap_card *ac = to_ap_card(&ap_dev->device); in ap_uevent()
623 rc = add_uevent_var(env, "DEV_TYPE=%04X", ap_dev->device_type); in ap_uevent()
627 rc = add_uevent_var(env, "MODALIAS=ap:t%02X", ap_dev->device_type); in ap_uevent()
641 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in ap_uevent()
674 void ap_send_config_uevent(struct ap_device *ap_dev, bool cfg) in ap_send_config_uevent() argument
681 kobject_uevent_env(&ap_dev->device.kobj, KOBJ_CHANGE, envp); in ap_send_config_uevent()
685 void ap_send_online_uevent(struct ap_device *ap_dev, int online) in ap_send_online_uevent() argument
692 kobject_uevent_env(&ap_dev->device.kobj, KOBJ_CHANGE, envp); in ap_send_online_uevent()
880 struct ap_device *ap_dev = to_ap_dev(dev); in ap_device_probe() local
[all …]
Dzcrypt_card.c81 ap_send_online_uevent(&ac->ap_dev, online); in online_store()
104 ap_send_online_uevent(&zq->queue->ap_dev, online); in online_store()
195 rc = sysfs_create_group(&zc->card->ap_dev.device.kobj, in zcrypt_card_register()
221 sysfs_remove_group(&zc->card->ap_dev.device.kobj, in zcrypt_card_unregister()
Dap_card.c27 return scnprintf(buf, PAGE_SIZE, "%d\n", ac->ap_dev.device_type); in hwtype_show()
170 ap_send_config_uevent(&ac->ap_dev, ac->config); in config_store()
241 ac->ap_dev.device.release = ap_card_device_release; in ap_card_create()
242 ac->ap_dev.device.type = &ap_card_type; in ap_card_create()
243 ac->ap_dev.device_type = comp_type; in ap_card_create()
Dzcrypt_msgtype6.c638 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_type86_ica()
803 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_response_ica()
838 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_response_xcrb()
868 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_response_ep11_xcrb()
899 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_response_rng()
Dzcrypt_api.c617 if (!zq || !try_module_get(zq->queue->ap_dev.device.driver->owner)) in zcrypt_pick_queue()
620 get_device(&zq->queue->ap_dev.device); in zcrypt_pick_queue()
624 *pmod = zq->queue->ap_dev.device.driver->owner; in zcrypt_pick_queue()
636 put_device(&zq->queue->ap_dev.device); in zcrypt_drop_queue()
1310 stat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_mask()
1335 stat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_mask_ext()
1358 devstat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_ext()
Dap_queue.c787 aq->ap_dev.device.release = ap_queue_device_release; in ap_queue_create()
788 aq->ap_dev.device.type = &ap_queue_type; in ap_queue_create()
789 aq->ap_dev.device_type = device_type; in ap_queue_create()
Dzcrypt_msgtype50.c376 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_type80()
414 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_response_cex2a()