Lines Matching refs:dax_drv

35 static struct dax_id *__dax_match_id(struct dax_device_driver *dax_drv,  in __dax_match_id()  argument
42 list_for_each_entry(dax_id, &dax_drv->ids, list) in __dax_match_id()
48 static int dax_match_id(struct dax_device_driver *dax_drv, struct device *dev) in dax_match_id() argument
53 match = !!__dax_match_id(dax_drv, dev_name(dev)); in dax_match_id()
67 struct dax_device_driver *dax_drv = to_dax_drv(drv); in do_id_store() local
82 dax_id = __dax_match_id(dax_drv, buf); in do_id_store()
88 list_add(&dax_id->list, &dax_drv->ids); in do_id_store()
126 ATTRIBUTE_GROUPS(dax_drv);
174 struct dax_device_driver *dax_drv = to_dax_drv(dev->driver); in dax_bus_probe() local
182 rc = dax_drv->probe(dev_dax); in dax_bus_probe()
199 struct dax_device_driver *dax_drv = to_dax_drv(dev->driver); in dax_bus_remove() local
202 if (dax_drv->remove) in dax_bus_remove()
203 dax_drv->remove(dev_dax); in dax_bus_remove()
217 struct dax_device_driver *dax_drv = to_dax_drv(drv); in dax_bus_match() local
223 if (dax_drv->match_always) in dax_bus_match()
226 return dax_match_id(dax_drv, dev); in dax_bus_match()
1418 int __dax_driver_register(struct dax_device_driver *dax_drv, in __dax_driver_register() argument
1421 struct device_driver *drv = &dax_drv->drv; in __dax_driver_register()
1428 if (!dax_drv->probe) in __dax_driver_register()
1431 INIT_LIST_HEAD(&dax_drv->ids); in __dax_driver_register()
1439 match_always_count += dax_drv->match_always; in __dax_driver_register()
1450 if (rc && dax_drv->match_always) { in __dax_driver_register()
1452 match_always_count -= dax_drv->match_always; in __dax_driver_register()
1460 void dax_driver_unregister(struct dax_device_driver *dax_drv) in dax_driver_unregister() argument
1462 struct device_driver *drv = &dax_drv->drv; in dax_driver_unregister()
1466 match_always_count -= dax_drv->match_always; in dax_driver_unregister()
1467 list_for_each_entry_safe(dax_id, _id, &dax_drv->ids, list) { in dax_driver_unregister()