Lines Matching refs:drv
45 static int tifm_bus_match(struct device *dev, struct device_driver *drv) in tifm_bus_match() argument
48 struct tifm_driver *fm_drv = container_of(drv, struct tifm_driver, in tifm_bus_match()
75 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, in tifm_device_probe() local
80 if (dev->driver && drv->probe) { in tifm_device_probe()
81 rc = drv->probe(sock); in tifm_device_probe()
97 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, in tifm_device_remove() local
100 if (dev->driver && drv->remove) { in tifm_device_remove()
103 drv->remove(sock); in tifm_device_remove()
116 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, in tifm_device_suspend() local
119 if (dev->driver && drv->suspend) in tifm_device_suspend()
120 return drv->suspend(sock, state); in tifm_device_suspend()
127 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, in tifm_device_resume() local
130 if (dev->driver && drv->resume) in tifm_device_resume()
131 return drv->resume(sock); in tifm_device_resume()
318 int tifm_register_driver(struct tifm_driver *drv) in tifm_register_driver() argument
320 drv->driver.bus = &tifm_bus_type; in tifm_register_driver()
322 return driver_register(&drv->driver); in tifm_register_driver()
326 void tifm_unregister_driver(struct tifm_driver *drv) in tifm_unregister_driver() argument
328 driver_unregister(&drv->driver); in tifm_unregister_driver()