Lines Matching defs:drv
41 static int tifm_bus_match(struct device *dev, struct device_driver *drv)
44 struct tifm_driver *fm_drv = container_of(drv, struct tifm_driver,
71 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver,
76 if (dev->driver && drv->probe) {
77 rc = drv->probe(sock);
93 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver,
96 if (dev->driver && drv->remove) {
99 drv->remove(sock);
111 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver,
114 if (dev->driver && drv->suspend)
115 return drv->suspend(sock, state);
122 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver,
125 if (dev->driver && drv->resume)
126 return drv->resume(sock);
313 int tifm_register_driver(struct tifm_driver *drv)
315 drv->driver.bus = &tifm_bus_type;
317 return driver_register(&drv->driver);
321 void tifm_unregister_driver(struct tifm_driver *drv)
323 driver_unregister(&drv->driver);