ap_dev 573 drivers/s390/crypto/ap_bus.c struct ap_device *ap_dev = to_ap_dev(dev); ap_dev 576 drivers/s390/crypto/ap_bus.c if (!ap_dev) ap_dev 580 drivers/s390/crypto/ap_bus.c retval = add_uevent_var(env, "DEV_TYPE=%04X", ap_dev->device_type); ap_dev 585 drivers/s390/crypto/ap_bus.c retval = add_uevent_var(env, "MODALIAS=ap:t%02X", ap_dev->device_type); ap_dev 592 drivers/s390/crypto/ap_bus.c struct ap_device *ap_dev = to_ap_dev(dev); ap_dev 594 drivers/s390/crypto/ap_bus.c if (ap_dev->drv && ap_dev->drv->suspend) ap_dev 595 drivers/s390/crypto/ap_bus.c ap_dev->drv->suspend(ap_dev); ap_dev 601 drivers/s390/crypto/ap_bus.c struct ap_device *ap_dev = to_ap_dev(dev); ap_dev 603 drivers/s390/crypto/ap_bus.c if (ap_dev->drv && ap_dev->drv->resume) ap_dev 604 drivers/s390/crypto/ap_bus.c ap_dev->drv->resume(ap_dev); ap_dev 776 drivers/s390/crypto/ap_bus.c struct ap_device *ap_dev = to_ap_dev(dev); ap_dev 807 drivers/s390/crypto/ap_bus.c ap_dev->drv = ap_drv; ap_dev 808 drivers/s390/crypto/ap_bus.c rc = ap_drv->probe ? ap_drv->probe(ap_dev) : -ENODEV; ap_dev 817 drivers/s390/crypto/ap_bus.c ap_dev->drv = NULL; ap_dev 825 drivers/s390/crypto/ap_bus.c struct ap_device *ap_dev = to_ap_dev(dev); ap_dev 826 drivers/s390/crypto/ap_bus.c struct ap_driver *ap_drv = ap_dev->drv; ap_dev 834 drivers/s390/crypto/ap_bus.c ap_drv->remove(ap_dev); ap_dev 1501 drivers/s390/crypto/ap_bus.c ac->ap_dev.device.bus = &ap_bus_type; ap_dev 1502 drivers/s390/crypto/ap_bus.c ac->ap_dev.device.parent = ap_root_device; ap_dev 1503 drivers/s390/crypto/ap_bus.c dev_set_name(&ac->ap_dev.device, "card%02x", id); ap_dev 1505 drivers/s390/crypto/ap_bus.c rc = device_register(&ac->ap_dev.device); ap_dev 1507 drivers/s390/crypto/ap_bus.c put_device(&ac->ap_dev.device); ap_dev 1512 drivers/s390/crypto/ap_bus.c get_device(&ac->ap_dev.device); ap_dev 1519 drivers/s390/crypto/ap_bus.c aq->ap_dev.device.bus = &ap_bus_type; ap_dev 1520 drivers/s390/crypto/ap_bus.c aq->ap_dev.device.parent = &ac->ap_dev.device; ap_dev 1521 drivers/s390/crypto/ap_bus.c dev_set_name(&aq->ap_dev.device, "%02x.%04x", id, dom); ap_dev 1523 drivers/s390/crypto/ap_bus.c rc = device_register(&aq->ap_dev.device); ap_dev 1525 drivers/s390/crypto/ap_bus.c put_device(&aq->ap_dev.device); ap_dev 1531 drivers/s390/crypto/ap_bus.c put_device(&ac->ap_dev.device); ap_dev 157 drivers/s390/crypto/ap_bus.h struct ap_device ap_dev; ap_dev 168 drivers/s390/crypto/ap_bus.h #define to_ap_card(x) container_of((x), struct ap_card, ap_dev.device) ap_dev 171 drivers/s390/crypto/ap_bus.h struct ap_device ap_dev; ap_dev 190 drivers/s390/crypto/ap_bus.h #define to_ap_queue(x) container_of((x), struct ap_queue, ap_dev.device) ap_dev 26 drivers/s390/crypto/ap_card.c return snprintf(buf, PAGE_SIZE, "%d\n", ac->ap_dev.device_type); ap_dev 183 drivers/s390/crypto/ap_card.c ac->ap_dev.device.release = ap_card_device_release; ap_dev 184 drivers/s390/crypto/ap_card.c ac->ap_dev.device.type = &ap_card_type; ap_dev 185 drivers/s390/crypto/ap_card.c ac->ap_dev.device_type = comp_type; ap_dev 455 drivers/s390/crypto/ap_queue.c void ap_queue_suspend(struct ap_device *ap_dev) ap_dev 457 drivers/s390/crypto/ap_queue.c struct ap_queue *aq = to_ap_queue(&ap_dev->device); ap_dev 469 drivers/s390/crypto/ap_queue.c void ap_queue_resume(struct ap_device *ap_dev) ap_dev 637 drivers/s390/crypto/ap_queue.c aq->ap_dev.device.release = ap_queue_device_release; ap_dev 638 drivers/s390/crypto/ap_queue.c aq->ap_dev.device.type = &ap_queue_type; ap_dev 639 drivers/s390/crypto/ap_queue.c aq->ap_dev.device_type = device_type; ap_dev 574 drivers/s390/crypto/zcrypt_api.c if (!zq || !try_module_get(zq->queue->ap_dev.drv->driver.owner)) ap_dev 577 drivers/s390/crypto/zcrypt_api.c get_device(&zq->queue->ap_dev.device); ap_dev 581 drivers/s390/crypto/zcrypt_api.c *pmod = zq->queue->ap_dev.drv->driver.owner; ap_dev 593 drivers/s390/crypto/zcrypt_api.c put_device(&zq->queue->ap_dev.device); ap_dev 1110 drivers/s390/crypto/zcrypt_api.c stat->hwtype = zc->card->ap_dev.device_type; ap_dev 1135 drivers/s390/crypto/zcrypt_api.c stat->hwtype = zc->card->ap_dev.device_type; ap_dev 1158 drivers/s390/crypto/zcrypt_api.c devstat->hwtype = zc->card->ap_dev.device_type; ap_dev 154 drivers/s390/crypto/zcrypt_card.c rc = sysfs_create_group(&zc->card->ap_dev.device.kobj, ap_dev 184 drivers/s390/crypto/zcrypt_card.c sysfs_remove_group(&zc->card->ap_dev.device.kobj, ap_dev 73 drivers/s390/crypto/zcrypt_cex2a.c static int zcrypt_cex2a_card_probe(struct ap_device *ap_dev) ap_dev 84 drivers/s390/crypto/zcrypt_cex2a.c struct ap_card *ac = to_ap_card(&ap_dev->device); ap_dev 94 drivers/s390/crypto/zcrypt_cex2a.c if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX2A) { ap_dev 102 drivers/s390/crypto/zcrypt_cex2a.c } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX3A) { ap_dev 134 drivers/s390/crypto/zcrypt_cex2a.c static void zcrypt_cex2a_card_remove(struct ap_device *ap_dev) ap_dev 136 drivers/s390/crypto/zcrypt_cex2a.c struct zcrypt_card *zc = to_ap_card(&ap_dev->device)->private; ap_dev 154 drivers/s390/crypto/zcrypt_cex2a.c static int zcrypt_cex2a_queue_probe(struct ap_device *ap_dev) ap_dev 156 drivers/s390/crypto/zcrypt_cex2a.c struct ap_queue *aq = to_ap_queue(&ap_dev->device); ap_dev 160 drivers/s390/crypto/zcrypt_cex2a.c switch (ap_dev->device_type) { ap_dev 195 drivers/s390/crypto/zcrypt_cex2a.c static void zcrypt_cex2a_queue_remove(struct ap_device *ap_dev) ap_dev 197 drivers/s390/crypto/zcrypt_cex2a.c struct ap_queue *aq = to_ap_queue(&ap_dev->device); ap_dev 133 drivers/s390/crypto/zcrypt_cex2c.c static int zcrypt_cex2c_card_probe(struct ap_device *ap_dev) ap_dev 144 drivers/s390/crypto/zcrypt_cex2c.c struct ap_card *ac = to_ap_card(&ap_dev->device); ap_dev 153 drivers/s390/crypto/zcrypt_cex2c.c switch (ac->ap_dev.device_type) { ap_dev 191 drivers/s390/crypto/zcrypt_cex2c.c static void zcrypt_cex2c_card_remove(struct ap_device *ap_dev) ap_dev 193 drivers/s390/crypto/zcrypt_cex2c.c struct zcrypt_card *zc = to_ap_card(&ap_dev->device)->private; ap_dev 211 drivers/s390/crypto/zcrypt_cex2c.c static int zcrypt_cex2c_queue_probe(struct ap_device *ap_dev) ap_dev 213 drivers/s390/crypto/zcrypt_cex2c.c struct ap_queue *aq = to_ap_queue(&ap_dev->device); ap_dev 251 drivers/s390/crypto/zcrypt_cex2c.c static void zcrypt_cex2c_queue_remove(struct ap_device *ap_dev) ap_dev 253 drivers/s390/crypto/zcrypt_cex2c.c struct ap_queue *aq = to_ap_queue(&ap_dev->device); ap_dev 158 drivers/s390/crypto/zcrypt_cex4.c static int zcrypt_cex4_card_probe(struct ap_device *ap_dev) ap_dev 191 drivers/s390/crypto/zcrypt_cex4.c struct ap_card *ac = to_ap_card(&ap_dev->device); ap_dev 201 drivers/s390/crypto/zcrypt_cex4.c if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { ap_dev 206 drivers/s390/crypto/zcrypt_cex4.c } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { ap_dev 211 drivers/s390/crypto/zcrypt_cex4.c } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { ap_dev 237 drivers/s390/crypto/zcrypt_cex4.c if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { ap_dev 245 drivers/s390/crypto/zcrypt_cex4.c } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { ap_dev 253 drivers/s390/crypto/zcrypt_cex4.c } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { ap_dev 274 drivers/s390/crypto/zcrypt_cex4.c if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { ap_dev 279 drivers/s390/crypto/zcrypt_cex4.c } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { ap_dev 284 drivers/s390/crypto/zcrypt_cex4.c } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { ap_dev 315 drivers/s390/crypto/zcrypt_cex4.c rc = sysfs_create_group(&ap_dev->device.kobj, ap_dev 329 drivers/s390/crypto/zcrypt_cex4.c static void zcrypt_cex4_card_remove(struct ap_device *ap_dev) ap_dev 331 drivers/s390/crypto/zcrypt_cex4.c struct ap_card *ac = to_ap_card(&ap_dev->device); ap_dev 335 drivers/s390/crypto/zcrypt_cex4.c sysfs_remove_group(&ap_dev->device.kobj, &cca_card_attr_group); ap_dev 353 drivers/s390/crypto/zcrypt_cex4.c static int zcrypt_cex4_queue_probe(struct ap_device *ap_dev) ap_dev 355 drivers/s390/crypto/zcrypt_cex4.c struct ap_queue *aq = to_ap_queue(&ap_dev->device); ap_dev 396 drivers/s390/crypto/zcrypt_cex4.c rc = sysfs_create_group(&ap_dev->device.kobj, ap_dev 410 drivers/s390/crypto/zcrypt_cex4.c static void zcrypt_cex4_queue_remove(struct ap_device *ap_dev) ap_dev 412 drivers/s390/crypto/zcrypt_cex4.c struct ap_queue *aq = to_ap_queue(&ap_dev->device); ap_dev 416 drivers/s390/crypto/zcrypt_cex4.c sysfs_remove_group(&ap_dev->device.kobj, &cca_queue_attr_group); ap_dev 432 drivers/s390/crypto/zcrypt_msgtype50.c if (aq->ap_dev.device_type == AP_DEVICE_TYPE_CEX2A) ap_dev 174 drivers/s390/crypto/zcrypt_queue.c rc = sysfs_create_group(&zq->queue->ap_dev.device.kobj, ap_dev 178 drivers/s390/crypto/zcrypt_queue.c get_device(&zq->queue->ap_dev.device); ap_dev 188 drivers/s390/crypto/zcrypt_queue.c sysfs_remove_group(&zq->queue->ap_dev.device.kobj, ap_dev 190 drivers/s390/crypto/zcrypt_queue.c put_device(&zq->queue->ap_dev.device); ap_dev 221 drivers/s390/crypto/zcrypt_queue.c sysfs_remove_group(&zq->queue->ap_dev.device.kobj, ap_dev 223 drivers/s390/crypto/zcrypt_queue.c put_device(&zq->queue->ap_dev.device);