Lines Matching refs:drv
114 static int gio_bus_match(struct device *dev, struct device_driver *drv) in gio_bus_match() argument
117 struct gio_driver *gio_drv = to_gio_driver(drv); in gio_bus_match()
125 struct gio_driver *drv; in gio_device_probe() local
129 drv = to_gio_driver(dev->driver); in gio_device_probe()
132 if (!drv->probe) in gio_device_probe()
137 match = gio_match_device(drv->id_table, gio_dev); in gio_device_probe()
139 error = drv->probe(gio_dev, match); in gio_device_probe()
149 struct gio_driver *drv = to_gio_driver(dev->driver); in gio_device_remove() local
151 if (dev->driver && drv->remove) in gio_device_remove()
152 drv->remove(gio_dev); in gio_device_remove()
159 struct gio_driver *drv = to_gio_driver(dev->driver); in gio_device_shutdown() local
161 if (dev->driver && drv->shutdown) in gio_device_shutdown()
162 drv->shutdown(gio_dev); in gio_device_shutdown()
211 int gio_register_driver(struct gio_driver *drv) in gio_register_driver() argument
214 if (!drv->driver.name) in gio_register_driver()
215 drv->driver.name = drv->name; in gio_register_driver()
216 if (!drv->driver.owner) in gio_register_driver()
217 drv->driver.owner = drv->owner; in gio_register_driver()
218 drv->driver.bus = &gio_bus_type; in gio_register_driver()
221 return driver_register(&drv->driver); in gio_register_driver()
225 void gio_unregister_driver(struct gio_driver *drv) in gio_unregister_driver() argument
227 driver_unregister(&drv->driver); in gio_unregister_driver()