Lines Matching defs:drv
16 #define to_ipack_driver(drv) container_of(drv, struct ipack_driver, driver)
52 static int ipack_bus_match(struct device *dev, struct device_driver *drv)
55 struct ipack_driver *idrv = to_ipack_driver(drv);
65 struct ipack_driver *drv = to_ipack_driver(device->driver);
67 if (!drv->ops->probe)
70 return drv->ops->probe(dev);
76 struct ipack_driver *drv = to_ipack_driver(device->driver);
78 if (!drv->ops->remove)
81 drv->ops->remove(dev);