Lines Matching refs:viodrv
706 struct vio_driver *viodrv = to_vio_driver(dev->driver); in vio_cmo_bus_probe() local
732 if (!viodrv->get_desired_dma) { in vio_cmo_bus_probe()
739 IOMMU_PAGE_ALIGN(viodrv->get_desired_dma(viodev), tbl); in vio_cmo_bus_probe()
1238 struct vio_driver *viodrv = to_vio_driver(dev->driver); in vio_bus_probe() local
1242 if (!viodrv->probe) in vio_bus_probe()
1245 id = vio_match_device(viodrv->id_table, viodev); in vio_bus_probe()
1253 error = viodrv->probe(viodev, id); in vio_bus_probe()
1265 struct vio_driver *viodrv = to_vio_driver(dev->driver); in vio_bus_remove() local
1274 if (viodrv->remove) in vio_bus_remove()
1275 viodrv->remove(viodev); in vio_bus_remove()
1286 struct vio_driver *viodrv; in vio_bus_shutdown() local
1289 viodrv = to_vio_driver(dev->driver); in vio_bus_shutdown()
1290 if (viodrv->shutdown) in vio_bus_shutdown()
1291 viodrv->shutdown(viodev); in vio_bus_shutdown()
1301 int __vio_register_driver(struct vio_driver *viodrv, struct module *owner, in __vio_register_driver() argument
1308 pr_debug("%s: driver %s registering\n", __func__, viodrv->name); in __vio_register_driver()
1311 viodrv->driver.name = viodrv->name; in __vio_register_driver()
1312 viodrv->driver.pm = viodrv->pm; in __vio_register_driver()
1313 viodrv->driver.bus = &vio_bus_type; in __vio_register_driver()
1314 viodrv->driver.owner = owner; in __vio_register_driver()
1315 viodrv->driver.mod_name = mod_name; in __vio_register_driver()
1317 return driver_register(&viodrv->driver); in __vio_register_driver()
1325 void vio_unregister_driver(struct vio_driver *viodrv) in vio_unregister_driver() argument
1327 driver_unregister(&viodrv->driver); in vio_unregister_driver()