Lines Matching defs:drv
50 struct dio_driver *drv = to_dio_driver(dev->driver);
53 if (!d->driver && drv->probe) {
56 id = dio_match_device(drv->id_table, d);
58 error = drv->probe(d, id);
60 d->driver = drv;
70 * @drv: the driver structure to register
76 int dio_register_driver(struct dio_driver *drv)
79 drv->driver.name = drv->name;
80 drv->driver.bus = &dio_bus_type;
83 return driver_register(&drv->driver);
89 * @drv: the driver structure to unregister
97 void dio_unregister_driver(struct dio_driver *drv)
99 driver_unregister(&drv->driver);
106 * @drv: the &device_driver that points to the array of DIO device id structures to search
113 static int dio_bus_match(struct device *dev, struct device_driver *drv)
116 struct dio_driver *dio_drv = to_dio_driver(drv);