Lines Matching refs:rdrv
85 struct rio_driver *rdrv = to_rio_driver(dev->driver); in rio_device_probe() local
90 if (!rdev->driver && rdrv->probe) { in rio_device_probe()
91 if (!rdrv->id_table) in rio_device_probe()
93 id = rio_match_device(rdrv->id_table, rdev); in rio_device_probe()
96 error = rdrv->probe(rdev, id); in rio_device_probe()
98 rdev->driver = rdrv; in rio_device_probe()
118 struct rio_driver *rdrv = rdev->driver; in rio_device_remove() local
120 if (rdrv) { in rio_device_remove()
121 if (rdrv->remove) in rio_device_remove()
122 rdrv->remove(rdev); in rio_device_remove()
132 struct rio_driver *rdrv = rdev->driver; in rio_device_shutdown() local
136 if (rdrv && rdrv->shutdown) in rio_device_shutdown()
137 rdrv->shutdown(rdev); in rio_device_shutdown()
149 int rio_register_driver(struct rio_driver *rdrv) in rio_register_driver() argument
152 rdrv->driver.name = rdrv->name; in rio_register_driver()
153 rdrv->driver.bus = &rio_bus_type; in rio_register_driver()
156 return driver_register(&rdrv->driver); in rio_register_driver()
168 void rio_unregister_driver(struct rio_driver *rdrv) in rio_unregister_driver() argument
170 driver_unregister(&rdrv->driver); in rio_unregister_driver()
192 struct rio_driver *rdrv = to_rio_driver(drv); in rio_match_bus() local
193 const struct rio_device_id *id = rdrv->id_table; in rio_match_bus()