Home
last modified time | relevance | path

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

/linux/drivers/s390/crypto/
H A Dzcrypt_cex4.c427 static int zcrypt_cex4_card_probe(struct ap_device *ap_dev) in zcrypt_cex4_card_probe() argument
466 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_probe()
474 dev_set_drvdata(&ap_dev->device, zc); in zcrypt_cex4_card_probe()
476 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
480 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
484 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
488 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX7) { in zcrypt_cex4_card_probe()
514 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
521 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
528 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
[all …]
H A 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()
H A Dap_card.c26 return sysfs_emit(buf, "%d\n", ac->ap_dev.device_type); in hwtype_show()
168 ap_send_config_uevent(&ac->ap_dev, ac->config); in config_store()
239 ac->ap_dev.device.release = ap_card_device_release; in ap_card_create()
240 ac->ap_dev.device.type = &ap_card_type; in ap_card_create()
241 ac->ap_dev.device_type = comp_type; in ap_card_create()
H A 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()
H A Dap_queue.c738 struct ap_device *ap_dev = &aq->ap_dev; in driver_override_show() local
742 if (ap_dev->driver_override) in driver_override_show()
743 rc = sysfs_emit(buf, "%s\n", ap_dev->driver_override); in driver_override_show()
756 struct ap_device *ap_dev = &aq->ap_dev; in driver_override_store() local
767 old_value = ap_dev->driver_override ? true : false; in driver_override_store()
768 rc = driver_set_override(dev, &ap_dev->driver_override, buf, count); in driver_override_store()
771 if (old_value && !ap_dev->driver_override) in driver_override_store()
773 else if (!old_value && ap_dev->driver_override) in driver_override_store()
1190 aq->ap_dev.device.release = ap_queue_device_release; in ap_queue_create()
1191 aq->ap_dev.device.type = &ap_queue_type; in ap_queue_create()
[all …]
H A Dzcrypt_api.c581 if (!zq || !try_module_get(zq->queue->ap_dev.device.driver->owner)) in zcrypt_pick_queue()
585 get_device(&zq->queue->ap_dev.device); in zcrypt_pick_queue()
589 *pmod = zq->queue->ap_dev.device.driver->owner; in zcrypt_pick_queue()
601 put_device(&zq->queue->ap_dev.device); in zcrypt_drop_queue()
1302 stat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_mask()
1330 stat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_mask_ext()
1353 devstat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_ext()
H A Dvfio_ap_ops.c1910 if (queue->ap_dev.device.driver == &matrix_dev->vfio_ap_drv->driver) in vfio_ap_find_queue()
1911 q = dev_get_drvdata(&queue->ap_dev.device); in vfio_ap_find_queue()
1913 put_device(&queue->ap_dev.device); in vfio_ap_find_queue()