Lines Matching refs:dax_drv
36 static struct dax_id *__dax_match_id(struct dax_device_driver *dax_drv, in __dax_match_id() argument
43 list_for_each_entry(dax_id, &dax_drv->ids, list) in __dax_match_id()
49 static int dax_match_id(struct dax_device_driver *dax_drv, struct device *dev) in dax_match_id() argument
54 match = !!__dax_match_id(dax_drv, dev_name(dev)); in dax_match_id()
68 struct dax_device_driver *dax_drv = to_dax_drv(drv); in do_id_store() local
83 dax_id = __dax_match_id(dax_drv, buf); in do_id_store()
89 list_add(&dax_id->list, &dax_drv->ids); in do_id_store()
129 ATTRIBUTE_GROUPS(dax_drv);
142 struct dax_device_driver *dax_drv = to_dax_drv(drv); in dax_bus_match() local
148 if (dax_drv->match_always) in dax_bus_match()
151 return dax_match_id(dax_drv, dev); in dax_bus_match()
459 int __dax_driver_register(struct dax_device_driver *dax_drv, in __dax_driver_register() argument
462 struct device_driver *drv = &dax_drv->drv; in __dax_driver_register()
465 INIT_LIST_HEAD(&dax_drv->ids); in __dax_driver_register()
473 match_always_count += dax_drv->match_always; in __dax_driver_register()
486 void dax_driver_unregister(struct dax_device_driver *dax_drv) in dax_driver_unregister() argument
488 struct device_driver *drv = &dax_drv->drv; in dax_driver_unregister()
492 match_always_count -= dax_drv->match_always; in dax_driver_unregister()
493 list_for_each_entry_safe(dax_id, _id, &dax_drv->ids, list) { in dax_driver_unregister()