Lines Matching refs:dax_drv
44 static struct dax_id *__dax_match_id(const struct dax_device_driver *dax_drv, in __dax_match_id() argument
51 list_for_each_entry(dax_id, &dax_drv->ids, list) in __dax_match_id()
57 static int dax_match_id(const struct dax_device_driver *dax_drv, struct device *dev) in dax_match_id() argument
62 match = !!__dax_match_id(dax_drv, dev_name(dev)); in dax_match_id()
68 static int dax_match_type(const struct dax_device_driver *dax_drv, struct device *dev) in dax_match_type() argument
76 if (dax_drv->type == type) in dax_match_type()
80 if (dax_drv->type == DAXDRV_DEVICE_TYPE && in dax_match_type()
95 struct dax_device_driver *dax_drv = to_dax_drv(drv); in do_id_store() local
110 dax_id = __dax_match_id(dax_drv, buf); in do_id_store()
116 list_add(&dax_id->list, &dax_drv->ids); in do_id_store()
154 ATTRIBUTE_GROUPS(dax_drv);
202 struct dax_device_driver *dax_drv = to_dax_drv(dev->driver); in dax_bus_probe() local
217 rc = dax_drv->probe(dev_dax); in dax_bus_probe()
234 struct dax_device_driver *dax_drv = to_dax_drv(dev->driver); in dax_bus_remove() local
237 if (dax_drv->remove) in dax_bus_remove()
238 dax_drv->remove(dev_dax); in dax_bus_remove()
252 const struct dax_device_driver *dax_drv = to_dax_drv(drv); in dax_bus_match() local
254 if (dax_match_id(dax_drv, dev)) in dax_bus_match()
256 return dax_match_type(dax_drv, dev); in dax_bus_match()
1548 int __dax_driver_register(struct dax_device_driver *dax_drv, in __dax_driver_register() argument
1551 struct device_driver *drv = &dax_drv->drv; in __dax_driver_register()
1557 if (!dax_drv->probe) in __dax_driver_register()
1560 INIT_LIST_HEAD(&dax_drv->ids); in __dax_driver_register()
1570 void dax_driver_unregister(struct dax_device_driver *dax_drv) in dax_driver_unregister() argument
1572 struct device_driver *drv = &dax_drv->drv; in dax_driver_unregister()
1576 list_for_each_entry_safe(dax_id, _id, &dax_drv->ids, list) { in dax_driver_unregister()