Lines Matching defs:dax_drv
47 static struct dax_id *__dax_match_id(struct dax_device_driver *dax_drv,
54 list_for_each_entry(dax_id, &dax_drv->ids, list)
60 static int dax_match_id(struct dax_device_driver *dax_drv, struct device *dev)
65 match = !!__dax_match_id(dax_drv, dev_name(dev));
71 static int dax_match_type(struct dax_device_driver *dax_drv, struct device *dev)
79 if (dax_drv->type == type)
83 if (dax_drv->type == DAXDRV_DEVICE_TYPE &&
98 struct dax_device_driver *dax_drv = to_dax_drv(drv);
113 dax_id = __dax_match_id(dax_drv, buf);
119 list_add(&dax_id->list, &dax_drv->ids);
157 ATTRIBUTE_GROUPS(dax_drv);
205 struct dax_device_driver *dax_drv = to_dax_drv(dev->driver);
220 rc = dax_drv->probe(dev_dax);
237 struct dax_device_driver *dax_drv = to_dax_drv(dev->driver);
240 if (dax_drv->remove)
241 dax_drv->remove(dev_dax);
255 struct dax_device_driver *dax_drv = to_dax_drv(drv);
257 if (dax_match_id(dax_drv, dev))
259 return dax_match_type(dax_drv, dev);
1581 int __dax_driver_register(struct dax_device_driver *dax_drv,
1584 struct device_driver *drv = &dax_drv->drv;
1587 * dax_bus_probe() calls dax_drv->probe() unconditionally.
1590 if (!dax_drv->probe)
1593 INIT_LIST_HEAD(&dax_drv->ids);
1603 void dax_driver_unregister(struct dax_device_driver *dax_drv)
1605 struct device_driver *drv = &dax_drv->drv;
1609 list_for_each_entry_safe(dax_id, _id, &dax_drv->ids, list) {