Lines Matching refs:dax_id
16 struct dax_id { struct
35 static struct dax_id *__dax_match_id(struct dax_device_driver *dax_drv, in __dax_match_id() argument
38 struct dax_id *dax_id; in __dax_match_id() local
42 list_for_each_entry(dax_id, &dax_drv->ids, list) in __dax_match_id()
43 if (sysfs_streq(dax_id->dev_name, dev_name)) in __dax_match_id()
44 return dax_id; in __dax_match_id()
70 struct dax_id *dax_id; in do_id_store() local
82 dax_id = __dax_match_id(dax_drv, buf); in do_id_store()
83 if (!dax_id) { in do_id_store()
85 dax_id = kzalloc(sizeof(*dax_id), GFP_KERNEL); in do_id_store()
86 if (dax_id) { in do_id_store()
87 strncpy(dax_id->dev_name, buf, DAX_NAME_LEN); in do_id_store()
88 list_add(&dax_id->list, &dax_drv->ids); in do_id_store()
93 list_del(&dax_id->list); in do_id_store()
94 kfree(dax_id); in do_id_store()
1463 struct dax_id *dax_id, *_id; in dax_driver_unregister() local
1467 list_for_each_entry_safe(dax_id, _id, &dax_drv->ids, list) { in dax_driver_unregister()
1468 list_del(&dax_id->list); in dax_driver_unregister()
1469 kfree(dax_id); in dax_driver_unregister()