Lines Matching refs:rdrv
88 struct rio_driver *rdrv = to_rio_driver(dev->driver); in rio_device_probe() local
93 if (!rdev->driver && rdrv->probe) { in rio_device_probe()
94 if (!rdrv->id_table) in rio_device_probe()
96 id = rio_match_device(rdrv->id_table, rdev); in rio_device_probe()
99 error = rdrv->probe(rdev, id); in rio_device_probe()
101 rdev->driver = rdrv; in rio_device_probe()
121 struct rio_driver *rdrv = rdev->driver; in rio_device_remove() local
123 if (rdrv) { in rio_device_remove()
124 if (rdrv->remove) in rio_device_remove()
125 rdrv->remove(rdev); in rio_device_remove()
143 int rio_register_driver(struct rio_driver *rdrv) in rio_register_driver() argument
146 rdrv->driver.name = rdrv->name; in rio_register_driver()
147 rdrv->driver.bus = &rio_bus_type; in rio_register_driver()
150 return driver_register(&rdrv->driver); in rio_register_driver()
162 void rio_unregister_driver(struct rio_driver *rdrv) in rio_unregister_driver() argument
164 driver_unregister(&rdrv->driver); in rio_unregister_driver()
186 struct rio_driver *rdrv = to_rio_driver(drv); in rio_match_bus() local
187 const struct rio_device_id *id = rdrv->id_table; in rio_match_bus()