Searched refs:ap_dev (Results 1 – 11 of 11) sorted by relevance
/Linux-v4.19/drivers/s390/crypto/ |
D | zcrypt_cex4.c | 73 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 …]
|
D | zcrypt_cex2a.c | 75 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 …]
|
D | ap_bus.c | 556 struct ap_device *ap_dev = to_ap_dev(dev); in ap_uevent() local 559 if (!ap_dev) in ap_uevent() 563 retval = add_uevent_var(env, "DEV_TYPE=%04X", ap_dev->device_type); in ap_uevent() 568 retval = add_uevent_var(env, "MODALIAS=ap:t%02X", ap_dev->device_type); in ap_uevent() 575 struct ap_device *ap_dev = to_ap_dev(dev); in ap_dev_suspend() local 577 if (ap_dev->drv && ap_dev->drv->suspend) in ap_dev_suspend() 578 ap_dev->drv->suspend(ap_dev); in ap_dev_suspend() 584 struct ap_device *ap_dev = to_ap_dev(dev); in ap_dev_resume() local 586 if (ap_dev->drv && ap_dev->drv->resume) in ap_dev_resume() 587 ap_dev->drv->resume(ap_dev); in ap_dev_resume() [all …]
|
D | zcrypt_pcixcc.c | 156 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()
|
D | ap_bus.h | 153 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);
|
D | zcrypt_queue.c | 176 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()
|
D | ap_card.c | 26 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()
|
D | ap_queue.c | 443 void ap_queue_suspend(struct ap_device *ap_dev) in ap_queue_suspend() argument 445 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in ap_queue_suspend() 457 void ap_queue_resume(struct ap_device *ap_dev) in ap_queue_resume() argument 607 aq->ap_dev.device.release = ap_queue_device_release; in ap_queue_create() 608 aq->ap_dev.device.type = &ap_queue_type; in ap_queue_create() 609 aq->ap_dev.device_type = device_type; in ap_queue_create()
|
D | zcrypt_card.c | 156 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()
|
D | zcrypt_api.c | 159 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() 637 stat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_mask() 662 stat->hwtype = zc->card->ap_dev.device_type; in zcrypt_device_status_mask_ext()
|
D | zcrypt_msgtype50.c | 434 if (aq->ap_dev.device_type == AP_DEVICE_TYPE_CEX2A) in zcrypt_cex2a_receive()
|