Lines Matching refs:drv
39 struct soundbus_driver *drv; in soundbus_probe() local
42 drv = to_soundbus_driver(dev->driver); in soundbus_probe()
45 if (!drv->probe) in soundbus_probe()
50 error = drv->probe(soundbus_dev); in soundbus_probe()
110 struct soundbus_driver * drv = to_soundbus_driver(dev->driver); in soundbus_device_remove() local
112 if (dev->driver && drv->remove) in soundbus_device_remove()
113 drv->remove(soundbus_dev); in soundbus_device_remove()
120 struct soundbus_driver * drv = to_soundbus_driver(dev->driver); in soundbus_device_shutdown() local
122 if (dev->driver && drv->shutdown) in soundbus_device_shutdown()
123 drv->shutdown(soundbus_dev); in soundbus_device_shutdown()
162 int soundbus_register_driver(struct soundbus_driver *drv) in soundbus_register_driver() argument
165 drv->driver.name = drv->name; in soundbus_register_driver()
166 drv->driver.bus = &soundbus_bus_type; in soundbus_register_driver()
169 return driver_register(&drv->driver); in soundbus_register_driver()
173 void soundbus_unregister_driver(struct soundbus_driver *drv) in soundbus_unregister_driver() argument
175 driver_unregister(&drv->driver); in soundbus_unregister_driver()