Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/s390/crypto/
Dzcrypt_cex2a.c75 static int zcrypt_cex2a_card_probe(struct ap_device *ap_dev) in zcrypt_cex2a_card_probe() argument
86 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex2a_card_probe()
96 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX2A) { in zcrypt_cex2a_card_probe()
104 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX3A) { in zcrypt_cex2a_card_probe()
136 static void zcrypt_cex2a_card_remove(struct ap_device *ap_dev) in zcrypt_cex2a_card_remove() argument
138 struct zcrypt_card *zc = to_ap_card(&ap_dev->device)->private; in zcrypt_cex2a_card_remove()
156 static int zcrypt_cex2a_queue_probe(struct ap_device *ap_dev) in zcrypt_cex2a_queue_probe() argument
158 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex2a_queue_probe()
162 switch (ap_dev->device_type) { in zcrypt_cex2a_queue_probe()
196 static void zcrypt_cex2a_queue_remove(struct ap_device *ap_dev) in zcrypt_cex2a_queue_remove() argument
[all …]
Dzcrypt_cex4.c73 static int zcrypt_cex4_card_probe(struct ap_device *ap_dev) in zcrypt_cex4_card_probe() argument
100 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_probe()
110 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
115 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
138 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
146 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
167 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
172 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
205 static void zcrypt_cex4_card_remove(struct ap_device *ap_dev) in zcrypt_cex4_card_remove() argument
207 struct zcrypt_card *zc = to_ap_card(&ap_dev->device)->private; in zcrypt_cex4_card_remove()
[all …]
Dap_bus.c557 struct ap_device *ap_dev = to_ap_dev(dev); in ap_uevent() local
560 if (!ap_dev) in ap_uevent()
564 retval = add_uevent_var(env, "DEV_TYPE=%04X", ap_dev->device_type); in ap_uevent()
569 retval = add_uevent_var(env, "MODALIAS=ap:t%02X", ap_dev->device_type); in ap_uevent()
576 struct ap_device *ap_dev = to_ap_dev(dev); in ap_dev_suspend() local
578 if (ap_dev->drv && ap_dev->drv->suspend) in ap_dev_suspend()
579 ap_dev->drv->suspend(ap_dev); in ap_dev_suspend()
585 struct ap_device *ap_dev = to_ap_dev(dev); in ap_dev_resume() local
587 if (ap_dev->drv && ap_dev->drv->resume) in ap_dev_resume()
588 ap_dev->drv->resume(ap_dev); in ap_dev_resume()
[all …]
Dzcrypt_pcixcc.c156 static int zcrypt_pcixcc_card_probe(struct ap_device *ap_dev) in zcrypt_pcixcc_card_probe() argument
167 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_pcixcc_card_probe()
176 switch (ac->ap_dev.device_type) { in zcrypt_pcixcc_card_probe()
214 static void zcrypt_pcixcc_card_remove(struct ap_device *ap_dev) in zcrypt_pcixcc_card_remove() argument
216 struct zcrypt_card *zc = to_ap_card(&ap_dev->device)->private; in zcrypt_pcixcc_card_remove()
236 static int zcrypt_pcixcc_queue_probe(struct ap_device *ap_dev) in zcrypt_pcixcc_queue_probe() argument
238 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_pcixcc_queue_probe()
274 static void zcrypt_pcixcc_queue_remove(struct ap_device *ap_dev) in zcrypt_pcixcc_queue_remove() argument
276 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_pcixcc_queue_remove()
Dap_bus.h153 struct ap_device ap_dev; member
164 #define to_ap_card(x) container_of((x), struct ap_card, ap_dev.device)
167 struct ap_device ap_dev; member
186 #define to_ap_queue(x) container_of((x), struct ap_queue, ap_dev.device)
254 void ap_queue_suspend(struct ap_device *ap_dev);
255 void ap_queue_resume(struct ap_device *ap_dev);
Dzcrypt_queue.c176 rc = sysfs_create_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_register()
180 get_device(&zq->queue->ap_dev.device); in zcrypt_queue_register()
190 sysfs_remove_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_register()
192 put_device(&zq->queue->ap_dev.device); in zcrypt_queue_register()
223 sysfs_remove_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_unregister()
225 put_device(&zq->queue->ap_dev.device); in zcrypt_queue_unregister()
Dap_card.c26 return snprintf(buf, PAGE_SIZE, "%d\n", ac->ap_dev.device_type); in hwtype_show()
183 ac->ap_dev.device.release = ap_card_device_release; in ap_card_create()
184 ac->ap_dev.device.type = &ap_card_type; in ap_card_create()
185 ac->ap_dev.device_type = comp_type; in ap_card_create()
Dap_queue.c446 void ap_queue_suspend(struct ap_device *ap_dev) in ap_queue_suspend() argument
448 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in ap_queue_suspend()
460 void ap_queue_resume(struct ap_device *ap_dev) in ap_queue_resume() argument
628 aq->ap_dev.device.release = ap_queue_device_release; in ap_queue_create()
629 aq->ap_dev.device.type = &ap_queue_type; in ap_queue_create()
630 aq->ap_dev.device_type = device_type; in ap_queue_create()
Dzcrypt_card.c156 rc = sysfs_create_group(&zc->card->ap_dev.device.kobj, in zcrypt_card_register()
186 sysfs_remove_group(&zc->card->ap_dev.device.kobj, in zcrypt_card_unregister()
Dzcrypt_api.c159 if (!zq || !try_module_get(zq->queue->ap_dev.drv->driver.owner)) in zcrypt_pick_queue()
162 get_device(&zq->queue->ap_dev.device); in zcrypt_pick_queue()
173 struct module *mod = zq->queue->ap_dev.drv->driver.owner; in zcrypt_drop_queue()
178 put_device(&zq->queue->ap_dev.device); in zcrypt_drop_queue()
641 stat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_mask()
666 stat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_mask_ext()
Dzcrypt_msgtype50.c434 if (aq->ap_dev.device_type == AP_DEVICE_TYPE_CEX2A) in zcrypt_cex2a_receive()