Lines Matching refs:ndd
78 struct nvdimm_drvdata *ndd, int i) in to_namespace_index() argument
83 return ndd->data + sizeof_namespace_index(ndd) * i; in to_namespace_index()
87 struct nvdimm_drvdata *ndd) in to_current_namespace_index() argument
89 return to_namespace_index(ndd, ndd->ns_current); in to_current_namespace_index()
93 struct nvdimm_drvdata *ndd) in to_next_namespace_index() argument
95 return to_namespace_index(ndd, ndd->ns_next); in to_next_namespace_index()
104 #define for_each_dpa_resource(ndd, res) \ argument
105 for (res = (ndd)->dpa.child; res; res = res->sibling)
107 #define for_each_dpa_resource_safe(ndd, res, next) \ argument
108 for (res = (ndd)->dpa.child, next = res ? res->sibling : NULL; \
138 struct nvdimm_drvdata *ndd; member
235 int nvdimm_init_nsarea(struct nvdimm_drvdata *ndd);
236 int nvdimm_init_config_data(struct nvdimm_drvdata *ndd);
237 int nvdimm_set_config_data(struct nvdimm_drvdata *ndd, size_t offset,
336 void put_ndd(struct nvdimm_drvdata *ndd);
337 int nd_label_reserve_dpa(struct nvdimm_drvdata *ndd);
338 void nvdimm_free_dpa(struct nvdimm_drvdata *ndd, struct resource *res);
339 struct resource *nvdimm_allocate_dpa(struct nvdimm_drvdata *ndd,