Lines Matching defs:drv
32 static struct dax_device_driver *to_dax_drv(struct device_driver *drv)
34 return container_of(drv, struct dax_device_driver, drv);
66 static ssize_t do_id_store(struct device_driver *drv, const char *buf,
69 struct dax_device_driver *dax_drv = to_dax_drv(drv);
105 rc = driver_attach(drv);
111 static ssize_t new_id_store(struct device_driver *drv, const char *buf,
114 return do_id_store(drv, buf, count, ID_ADD);
118 static ssize_t remove_id_store(struct device_driver *drv, const char *buf,
121 return do_id_store(drv, buf, count, ID_REMOVE);
132 static int dax_bus_match(struct device *dev, struct device_driver *drv);
194 static int dax_bus_match(struct device *dev, struct device_driver *drv)
196 struct dax_device_driver *dax_drv = to_dax_drv(drv);
1422 struct device_driver *drv = &dax_drv->drv;
1426 drv->owner = module;
1427 drv->name = mod_name;
1428 drv->mod_name = mod_name;
1429 drv->bus = &dax_bus_type;
1442 return driver_register(drv);
1448 struct device_driver *drv = &dax_drv->drv;
1458 driver_unregister(drv);