Lines Matching refs:parent
39 struct vfio_ccw_parent *parent = dev_get_drvdata(&sch->dev); in vfio_ccw_sch_quiesce() local
40 struct vfio_ccw_private *private = dev_get_drvdata(&parent->dev); in vfio_ccw_sch_quiesce()
133 struct vfio_ccw_parent *parent = dev_get_drvdata(&sch->dev); in vfio_ccw_sch_irq() local
134 struct vfio_ccw_private *private = dev_get_drvdata(&parent->dev); in vfio_ccw_sch_irq()
157 struct vfio_ccw_parent *parent = container_of(dev, struct vfio_ccw_parent, dev); in vfio_ccw_free_parent() local
159 kfree(parent); in vfio_ccw_free_parent()
165 struct vfio_ccw_parent *parent; in vfio_ccw_sch_probe() local
174 parent = kzalloc(struct_size(parent, mdev_types, 1), GFP_KERNEL); in vfio_ccw_sch_probe()
175 if (!parent) in vfio_ccw_sch_probe()
178 dev_set_name(&parent->dev, "parent"); in vfio_ccw_sch_probe()
179 parent->dev.parent = &sch->dev; in vfio_ccw_sch_probe()
180 parent->dev.release = &vfio_ccw_free_parent; in vfio_ccw_sch_probe()
181 ret = device_register(&parent->dev); in vfio_ccw_sch_probe()
185 dev_set_drvdata(&sch->dev, parent); in vfio_ccw_sch_probe()
187 parent->mdev_type.sysfs_name = "io"; in vfio_ccw_sch_probe()
188 parent->mdev_type.pretty_name = "I/O subchannel (Non-QDIO)"; in vfio_ccw_sch_probe()
189 parent->mdev_types[0] = &parent->mdev_type; in vfio_ccw_sch_probe()
190 ret = mdev_register_parent(&parent->parent, &sch->dev, in vfio_ccw_sch_probe()
192 parent->mdev_types, 1); in vfio_ccw_sch_probe()
202 device_del(&parent->dev); in vfio_ccw_sch_probe()
204 put_device(&parent->dev); in vfio_ccw_sch_probe()
211 struct vfio_ccw_parent *parent = dev_get_drvdata(&sch->dev); in vfio_ccw_sch_remove() local
213 mdev_unregister_parent(&parent->parent); in vfio_ccw_sch_remove()
215 device_unregister(&parent->dev); in vfio_ccw_sch_remove()
225 struct vfio_ccw_parent *parent = dev_get_drvdata(&sch->dev); in vfio_ccw_sch_shutdown() local
226 struct vfio_ccw_private *private = dev_get_drvdata(&parent->dev); in vfio_ccw_sch_shutdown()
247 struct vfio_ccw_parent *parent = dev_get_drvdata(&sch->dev); in vfio_ccw_sch_event() local
248 struct vfio_ccw_private *private = dev_get_drvdata(&parent->dev); in vfio_ccw_sch_event()
302 struct vfio_ccw_parent *parent = dev_get_drvdata(&sch->dev); in vfio_ccw_chp_event() local
303 struct vfio_ccw_private *private = dev_get_drvdata(&parent->dev); in vfio_ccw_chp_event()