Lines Matching refs:dax_drv
37 static struct dax_id *__dax_match_id(struct dax_device_driver *dax_drv, in __dax_match_id() argument
44 list_for_each_entry(dax_id, &dax_drv->ids, list) in __dax_match_id()
50 static int dax_match_id(struct dax_device_driver *dax_drv, struct device *dev) in dax_match_id() argument
55 match = !!__dax_match_id(dax_drv, dev_name(dev)); in dax_match_id()
69 struct dax_device_driver *dax_drv = to_dax_drv(drv); in do_id_store() local
84 dax_id = __dax_match_id(dax_drv, buf); in do_id_store()
90 list_add(&dax_id->list, &dax_drv->ids); in do_id_store()
130 ATTRIBUTE_GROUPS(dax_drv);
154 struct dax_device_driver *dax_drv = to_dax_drv(dev->driver); in dax_bus_probe() local
162 rc = dax_drv->probe(dev_dax); in dax_bus_probe()
179 struct dax_device_driver *dax_drv = to_dax_drv(dev->driver); in dax_bus_remove() local
182 return dax_drv->remove(dev_dax); in dax_bus_remove()
196 struct dax_device_driver *dax_drv = to_dax_drv(drv); in dax_bus_match() local
202 if (dax_drv->match_always) in dax_bus_match()
205 return dax_match_id(dax_drv, dev); in dax_bus_match()
1404 int __dax_driver_register(struct dax_device_driver *dax_drv, in __dax_driver_register() argument
1407 struct device_driver *drv = &dax_drv->drv; in __dax_driver_register()
1410 INIT_LIST_HEAD(&dax_drv->ids); in __dax_driver_register()
1418 match_always_count += dax_drv->match_always; in __dax_driver_register()
1431 void dax_driver_unregister(struct dax_device_driver *dax_drv) in dax_driver_unregister() argument
1433 struct device_driver *drv = &dax_drv->drv; in dax_driver_unregister()
1437 match_always_count -= dax_drv->match_always; in dax_driver_unregister()
1438 list_for_each_entry_safe(dax_id, _id, &dax_drv->ids, list) { in dax_driver_unregister()