Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/s390/crypto/
Dzcrypt_cex4.c158 static int zcrypt_cex4_card_probe(struct ap_device *ap_dev) in zcrypt_cex4_card_probe() argument
191 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_probe()
201 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
206 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
211 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
237 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
245 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
253 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
274 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
279 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
[all …]
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()
102 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX3A) { in zcrypt_cex2a_card_probe()
134 static void zcrypt_cex2a_card_remove(struct ap_device *ap_dev) in zcrypt_cex2a_card_remove() argument
136 struct zcrypt_card *zc = to_ap_card(&ap_dev->device)->private; in zcrypt_cex2a_card_remove()
154 static int zcrypt_cex2a_queue_probe(struct ap_device *ap_dev) in zcrypt_cex2a_queue_probe() argument
156 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex2a_queue_probe()
160 switch (ap_dev->device_type) { in zcrypt_cex2a_queue_probe()
194 static void zcrypt_cex2a_queue_remove(struct ap_device *ap_dev) in zcrypt_cex2a_queue_remove() argument
[all …]
Dzcrypt_cex2c.c133 static int zcrypt_cex2c_card_probe(struct ap_device *ap_dev) in zcrypt_cex2c_card_probe() argument
144 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex2c_card_probe()
153 switch (ac->ap_dev.device_type) { in zcrypt_cex2c_card_probe()
191 static void zcrypt_cex2c_card_remove(struct ap_device *ap_dev) in zcrypt_cex2c_card_remove() argument
193 struct zcrypt_card *zc = to_ap_card(&ap_dev->device)->private; in zcrypt_cex2c_card_remove()
211 static int zcrypt_cex2c_queue_probe(struct ap_device *ap_dev) in zcrypt_cex2c_queue_probe() argument
213 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex2c_queue_probe()
249 static void zcrypt_cex2c_queue_remove(struct ap_device *ap_dev) in zcrypt_cex2c_queue_remove() argument
251 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex2c_queue_remove()
Dap_bus.c573 struct ap_device *ap_dev = to_ap_dev(dev); in ap_uevent() local
576 if (!ap_dev) in ap_uevent()
580 retval = add_uevent_var(env, "DEV_TYPE=%04X", ap_dev->device_type); in ap_uevent()
585 retval = add_uevent_var(env, "MODALIAS=ap:t%02X", ap_dev->device_type); in ap_uevent()
592 struct ap_device *ap_dev = to_ap_dev(dev); in ap_dev_suspend() local
594 if (ap_dev->drv && ap_dev->drv->suspend) in ap_dev_suspend()
595 ap_dev->drv->suspend(ap_dev); in ap_dev_suspend()
601 struct ap_device *ap_dev = to_ap_dev(dev); in ap_dev_resume() local
603 if (ap_dev->drv && ap_dev->drv->resume) in ap_dev_resume()
604 ap_dev->drv->resume(ap_dev); in ap_dev_resume()
[all …]
Dap_bus.h157 struct ap_device ap_dev; member
168 #define to_ap_card(x) container_of((x), struct ap_card, ap_dev.device)
171 struct ap_device ap_dev; member
190 #define to_ap_queue(x) container_of((x), struct ap_queue, ap_dev.device)
262 void ap_queue_suspend(struct ap_device *ap_dev);
263 void ap_queue_resume(struct ap_device *ap_dev);
Dzcrypt_queue.c174 rc = sysfs_create_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_register()
178 get_device(&zq->queue->ap_dev.device); in zcrypt_queue_register()
188 sysfs_remove_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_register()
190 put_device(&zq->queue->ap_dev.device); in zcrypt_queue_register()
221 sysfs_remove_group(&zq->queue->ap_dev.device.kobj, in zcrypt_queue_unregister()
223 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.c455 void ap_queue_suspend(struct ap_device *ap_dev) in ap_queue_suspend() argument
457 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in ap_queue_suspend()
469 void ap_queue_resume(struct ap_device *ap_dev) in ap_queue_resume() argument
637 aq->ap_dev.device.release = ap_queue_device_release; in ap_queue_create()
638 aq->ap_dev.device.type = &ap_queue_type; in ap_queue_create()
639 aq->ap_dev.device_type = device_type; in ap_queue_create()
Dzcrypt_card.c154 rc = sysfs_create_group(&zc->card->ap_dev.device.kobj, in zcrypt_card_register()
184 sysfs_remove_group(&zc->card->ap_dev.device.kobj, in zcrypt_card_unregister()
Dzcrypt_api.c574 if (!zq || !try_module_get(zq->queue->ap_dev.drv->driver.owner)) in zcrypt_pick_queue()
577 get_device(&zq->queue->ap_dev.device); in zcrypt_pick_queue()
581 *pmod = zq->queue->ap_dev.drv->driver.owner; in zcrypt_pick_queue()
593 put_device(&zq->queue->ap_dev.device); in zcrypt_drop_queue()
1110 stat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_mask()
1135 stat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_mask_ext()
1158 devstat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_ext()
Dzcrypt_msgtype50.c432 if (aq->ap_dev.device_type == AP_DEVICE_TYPE_CEX2A) in zcrypt_cex2a_receive()