Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/s390/crypto/
Dzcrypt_cex4.c432 static int zcrypt_cex4_card_probe(struct ap_device *ap_dev) in zcrypt_cex4_card_probe() argument
471 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_probe()
479 dev_set_drvdata(&ap_dev->device, zc); in zcrypt_cex4_card_probe()
481 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
485 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
489 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
493 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX7) { in zcrypt_cex4_card_probe()
519 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
526 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
533 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
[all …]
Dap_bus.h174 struct ap_device ap_dev; member
186 #define to_ap_card(x) container_of((x), struct ap_card, ap_dev.device)
189 struct ap_device ap_dev; member
213 #define to_ap_queue(x) container_of((x), struct ap_queue, ap_dev.device)
384 void ap_send_config_uevent(struct ap_device *ap_dev, bool cfg);
385 void ap_send_online_uevent(struct ap_device *ap_dev, int online);
Dzcrypt_queue.c73 ap_send_online_uevent(&aq->ap_dev, online); in online_store()
173 zc = dev_get_drvdata(&zq->queue->card->ap_dev.device); in zcrypt_queue_register()
185 rc = sysfs_create_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_register()
198 sysfs_remove_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_register()
229 sysfs_remove_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_unregister()
Dap_card.c27 return sysfs_emit(buf, "%d\n", ac->ap_dev.device_type); in hwtype_show()
169 ap_send_config_uevent(&ac->ap_dev, ac->config); in config_store()
240 ac->ap_dev.device.release = ap_card_device_release; in ap_card_create()
241 ac->ap_dev.device.type = &ap_card_type; in ap_card_create()
242 ac->ap_dev.device_type = comp_type; in ap_card_create()
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_bus.c589 const struct ap_device *ap_dev = to_ap_dev(dev); in ap_uevent() local
596 struct ap_card *ac = to_ap_card(&ap_dev->device); in ap_uevent()
599 rc = add_uevent_var(env, "DEV_TYPE=%04X", ap_dev->device_type); in ap_uevent()
603 rc = add_uevent_var(env, "MODALIAS=ap:t%02X", ap_dev->device_type); in ap_uevent()
617 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in ap_uevent()
650 void ap_send_config_uevent(struct ap_device *ap_dev, bool cfg) in ap_send_config_uevent() argument
657 kobject_uevent_env(&ap_dev->device.kobj, KOBJ_CHANGE, envp); in ap_send_config_uevent()
661 void ap_send_online_uevent(struct ap_device *ap_dev, int online) in ap_send_online_uevent() argument
668 kobject_uevent_env(&ap_dev->device.kobj, KOBJ_CHANGE, envp); in ap_send_online_uevent()
872 struct ap_device *ap_dev = to_ap_dev(dev); in ap_device_probe() local
[all …]
Dap_queue.c1120 aq->ap_dev.device.release = ap_queue_device_release; in ap_queue_create()
1121 aq->ap_dev.device.type = &ap_queue_type; in ap_queue_create()
1122 aq->ap_dev.device_type = ac->ap_dev.device_type; in ap_queue_create()
1125 aq->ap_dev.device.groups = ap_queue_dev_sb_attr_groups; in ap_queue_create()
Dzcrypt_msgtype6.c600 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_type86_ica()
742 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_response_ica()
777 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_response_xcrb()
807 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_response_ep11_xcrb()
838 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_response_rng()
Dzcrypt_msgtype50.c363 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_type80()
398 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_response()
Dzcrypt_api.c578 if (!zq || !try_module_get(zq->queue->ap_dev.device.driver->owner)) in zcrypt_pick_queue()
582 get_device(&zq->queue->ap_dev.device); in zcrypt_pick_queue()
586 *pmod = zq->queue->ap_dev.device.driver->owner; in zcrypt_pick_queue()
598 put_device(&zq->queue->ap_dev.device); in zcrypt_drop_queue()
1285 stat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_mask()
1307 stat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_mask_ext()
1330 devstat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_ext()
Dvfio_ap_ops.c1886 if (queue->ap_dev.device.driver == &matrix_dev->vfio_ap_drv->driver) in vfio_ap_find_queue()
1887 q = dev_get_drvdata(&queue->ap_dev.device); in vfio_ap_find_queue()
1889 put_device(&queue->ap_dev.device); in vfio_ap_find_queue()